diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.033/source/chrome/content/common.js releases/unplug-2.034/source/chrome/content/common.js
135c135
< version : 2.033,
---
> version : 2.034,
139c139
< revision : 201009080130,
---
> revision : 201009150122,
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.033/source/chrome/content/display/pop/pop.js releases/unplug-2.034/source/chrome/content/display/pop/pop.js
357,360c357,358
< _download_ff2_version : function (url, file) {
< var nsiurl = Components.classes["@mozilla.org/network/io-service;1"].
< getService(Components.interfaces.nsIIOService).
< newURI(url, null, null);
---
> _download_ff2_version : function (url, file, referer) {
> var nsiurl = this._io_service.newURI(url, null, null);
363,366c361
< // TODO - fix this to use the referer from result.download.referer, if avail
< nsireferer = Components.classes["@mozilla.org/network/io-service;1"].
< getService(Components.interfaces.nsIIOService).
< newURI(String(UnPlug2SearchPage._win.location), null, null);
---
> nsireferer = this._io_service.newURI(referer, null, null);
542c537
< if (!file)
---
> if (!file) {
543a539
> }
545,547c541
< // keep this here
< if (false)
< UnPlug2SearchPage._download_with_downloadmgr(res.download.url, file.file);
---
> // UnPlug2SearchPage._download_with_downloadmgr(res.download.url, file.file);
549c543,547
< UnPlug2SearchPage._download_ff2_version(res.download.url, file.fileURL);
---
> try {
> UnPlug2SearchPage._download_ff2_version(res.download.url, file.fileURL, res.download.referer);
> } catch (e) {
> alert("hello" + e);
> }
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.033/source/chrome/content/rules.xml releases/unplug-2.034/source/chrome/content/rules.xml
31a32
> 77.247.178.106
36a38
> adreactor.com
74a77,81
>
>
>
>
>
371c378
<
---
>
373,374c380,388
<
<
---
>
>
>
>
>
>
>
>
>
515a530,541
>
>
>
>
>
>
>
>
>
>
>
>
773a800,806
>
>
>
>
>
>
>
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.033/source/chrome/content/search/search.js releases/unplug-2.034/source/chrome/content/search/search.js
42c42,43
< this._xmlhttp = new XMLHttpRequest();
---
> this._xmlhttp = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
> .createInstance(Components.interfaces.nsIXMLHttpRequest);
64a66,70
> load_flags : (
> // load from cache (if possible)
> Components.interfaces.nsIRequest.LOAD_FROM_CACHE
> // supress popup warnings, http auth prompts, etc
> | Components.interfaces.nsIRequest.LOAD_BACKGROUND),
73c79
< * Starts the download
---
> * Starts the download (possibly after a small delay)
75c81
< start : function () {
---
> start : function (delay) {
79a86,96
> if (delay) {
> window.setTimeout((function (that) {
> return (function () {
> that._do_start();
> })
> })(this), delay);
> } else {
> this._do_start();
> }
> },
> _do_start : function () {
87a105
> this._xmlhttp.channel.loadFlags |= this.load_flags;
91a110
> this._xmlhttp.channel.loadFlags |= this.load_flags;
733c752,753
< UnPlug2Search._downloads[dl_id].download.start();
---
> // use a small (100ms) delay here so we don't block main thread for a long time
> UnPlug2Search._downloads[dl_id].download.start(100);
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.033/source/install.rdf releases/unplug-2.034/source/install.rdf
11c11
< em:version="2.033"
---
> em:version="2.034"
Binary files releases/unplug-2.033/unplug.xpi and releases/unplug-2.034/unplug.xpi differ