commit 04730860a6564db79cb54bdbdb36c26c8ba42914
parent 714885295539dfb4e47576775b2a85a93eaa91c2
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 26 Jun 2006 16:18:55 +0000
Move Scholar.HTTP to Scholar.Utilities.HTTP; create Scholar.Utilities.Ingester.HTTPUtilities to handle proxied URLs for Ingester
Diffstat:
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
@@ -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;