Skip to content

Commit 2e2b05f

Browse files
committed
Use different method to obtain chrome context
1 parent 9cc4f16 commit 2e2b05f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

common/components/protocols.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ const nsIProtocolHandler = Ci.nsIProtocolHandler;
2222

2323
const ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
2424

25-
let channel = Components.classesByID["{61ba33c0-3031-11d3-8cd0-0060b0fc14a3}"]
26-
.getService(Ci.nsIProtocolHandler)
27-
.newChannel(ioService.newURI("chrome://liberator/content/data", null, null))
25+
let channel = ioService.newChannel("chrome://liberator/content/data", null, null)
2826
.QueryInterface(Ci.nsIRequest);
2927
const systemPrincipal = channel.owner;
3028
channel.cancel(NS_BINDING_ABORTED);

0 commit comments

Comments
 (0)