From 04730860a6564db79cb54bdbdb36c26c8ba42914 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 26 Jun 2006 16:18:55 +0000 Subject: [PATCH] Move Scholar.HTTP to Scholar.Utilities.HTTP; create Scholar.Utilities.Ingester.HTTPUtilities to handle proxied URLs for Ingester --- chrome/chromeFiles/content/scholar/xpcom/ingester.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/ingester.js b/chrome/chromeFiles/content/scholar/xpcom/ingester.js index 0e5e591604..ebd2ec6c93 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/ingester.js +++ b/chrome/chromeFiles/content/scholar/xpcom/ingester.js @@ -179,8 +179,6 @@ Scholar.Ingester.Model.prototype.detachRepository = function() {} * * Private properties: * _sandbox - sandbox for code execution - * _appSvc - AppShellService instance - * _hiddenBrowser - hiden browser object * _scrapeCallback - callback function to be executed when scraping is complete */ @@ -206,8 +204,6 @@ Scholar.Ingester.Document = function(browserWindow, myWindow){ } this.items = new Array(); - this._appSvc = Cc["@mozilla.org/appshell/appShellService;1"] - .getService(Ci.nsIAppShellService); this._generateSandbox(); } @@ -351,7 +347,7 @@ Scholar.Ingester.Document.prototype._generateSandbox = function() { this._sandbox.doc = this.browser.contentDocument; this._sandbox.url = this.url; this._sandbox.utilities = new Scholar.Utilities.Ingester(this.window, this.proxiedURL); - this._sandbox.utilities.HTTPUtilities = new Scholar.Utilities.HTTP(this._appSvc.hiddenDOMWindow, this.proxiedURL); + this._sandbox.utilities.HTTPUtilities = new Scholar.Utilities.Ingester.HTTPUtilities(this.proxiedURL); this._sandbox.window = this.window; this._sandbox.model = this.model; this._sandbox.XPathResult = Components.interfaces.nsIDOMXPathResult;