From 14a5f34bf5ae708d13bbe25b05ca80a3ef8099b1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 5 Sep 2008 04:08:56 +0000 Subject: [PATCH] Remove referrer in recognizePDF requests --- chrome/content/zotero/recognizePDF.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/chrome/content/zotero/recognizePDF.js b/chrome/content/zotero/recognizePDF.js index 94eeeb0ad..34de850fb 100644 --- a/chrome/content/zotero/recognizePDF.js +++ b/chrome/content/zotero/recognizePDF.js @@ -370,14 +370,8 @@ Zotero_RecognizePDF.Recognizer.prototype._queryGoogle = function() { this._hiddenBrowser.addEventListener("pageshow", function() { me._scrape(translate) }, true); - // to make us a little less obvious, specify a referrer - var referrer = Components.classes["@mozilla.org/network/io-service;1"] - .getService(Components.interfaces.nsIIOService) - .newURI(this._previousURL ? this._previousURL : "http://scholar.google.com/", null, null); this._hiddenBrowser.loadURIWithFlags(url, - Components.interfaces.nsIWebNavigation.LOAD_FLAGS_BYPASS_HISTORY, referrer, null, null); - - this._previousURL = url; + Components.interfaces.nsIWebNavigation.LOAD_FLAGS_BYPASS_HISTORY, null, null, null); } /**