We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cc4f16 commit 2e2b05fCopy full SHA for 2e2b05f
common/components/protocols.js
@@ -22,9 +22,7 @@ const nsIProtocolHandler = Ci.nsIProtocolHandler;
22
23
const ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
24
25
-let channel = Components.classesByID["{61ba33c0-3031-11d3-8cd0-0060b0fc14a3}"]
26
- .getService(Ci.nsIProtocolHandler)
27
- .newChannel(ioService.newURI("chrome://liberator/content/data", null, null))
+let channel = ioService.newChannel("chrome://liberator/content/data", null, null)
28
.QueryInterface(Ci.nsIRequest);
29
const systemPrincipal = channel.owner;
30
channel.cancel(NS_BINDING_ABORTED);
0 commit comments