From 5e12f409ee6d13e488fbb4642e5d33640726ecaf Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Tue, 18 Jan 2011 18:23:50 +0100 Subject: [PATCH] re-introduce compatibility with Gecko < 2.0 apps --- extension/aboutMandelbrot.js | 10 +++++++--- .../mandelbrot/content/mandelbrot-tab.xul | 1 + .../chrome/mandelbrot/content/mandelbrot.js | 20 ++++++++++++++++--- .../chrome/mandelbrot/content/mandelbrot.xul | 1 + .../locales/en-US/mandelbrot-overlay.dtd | 2 +- 5 files changed, 27 insertions(+), 7 deletions(-) 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; } diff --git a/xulapp/chrome/mandelbrot/content/mandelbrot-tab.xul b/xulapp/chrome/mandelbrot/content/mandelbrot-tab.xul index 3b61bc6..48cb896 100644 --- a/xulapp/chrome/mandelbrot/content/mandelbrot-tab.xul +++ b/xulapp/chrome/mandelbrot/content/mandelbrot-tab.xul @@ -124,6 +124,7 @@ class="tabbable" label="&debugMenu.label;"> +