X-Git-Url: https://git-public.kairo.at/?p=mandelbrot.git;a=blobdiff_plain;f=extension%2FaboutMandelbrot.js;h=b52f3fccb6253552621abe0dbf1f75d0239c00db;hp=9715b348893dcc42e3d470ef6eb9b732892164cd;hb=5e12f409ee6d13e488fbb4642e5d33640726ecaf;hpb=5bace81cf1864f73ddafeb5fa7ba3e7db12d4fb8 diff --git a/extension/aboutMandelbrot.js b/extension/aboutMandelbrot.js index 9715b34..b52f3fc 100644 --- a/extension/aboutMandelbrot.js +++ b/extension/aboutMandelbrot.js @@ -35,7 +35,7 @@ * * ***** END LICENSE BLOCK ***** */ -Components.utils.import("resource://gre/modules/Services.jsm"); +//Components.utils.import("resource://gre/modules/Services.jsm"); Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); function AboutMandelbrot() { } @@ -50,8 +50,12 @@ AboutMandelbrot.prototype = { }, newChannel: function(aURI) { - let channel = Services.io.newChannel("chrome://mandelbrot/content/mandelbrot-tab.xul", - null, null); + //let channel = Services.io.newChannel("chrome://mandelbrot/content/mandelbrot-tab.xul", + // null, null); + let ios = Components.classes["@mozilla.org/network/io-service;1"] + .getService(Components.interfaces.nsIIOService); + let channel = ios.newChannel("chrome://mandelbrot/content/mandelbrot-tab.xul", + null, null); channel.originalURI = aURI; return channel; }