[tor-commits] [torbutton/master] Revert "Bump Torbuton version to pre-release."

mikeperry at torproject.org mikeperry at torproject.org
Wed Dec 4 09:38:06 UTC 2013


commit 7eb48fb4eeec46266f50d561cb0d645680cf8b8c
Author: Mike Perry <mikeperry-git at torproject.org>
Date:   Wed Dec 4 01:35:09 2013 -0800

    Revert "Bump Torbuton version to pre-release."
    
    This reverts commit 609d5c25f035368c9fcc5c5a764f6529b8f612ca, which
    accidentally committed some working changes.
---
 src/chrome/content/stanford-safecache.js |   19 +++----------------
 src/install.rdf                          |    2 +-
 2 files changed, 4 insertions(+), 17 deletions(-)

diff --git a/src/chrome/content/stanford-safecache.js b/src/chrome/content/stanford-safecache.js
index a333e29..48f6d88 100644
--- a/src/chrome/content/stanford-safecache.js
+++ b/src/chrome/content/stanford-safecache.js
@@ -61,10 +61,7 @@ function SSC_dump(msg) {
 
 function SSC_RequestListener(controller) {
   this.controller = controller;
-  this.thirdPartyUtil = Cc["@mozilla.org/thirdpartyutil;1"].
-                            getService(Ci.mozIThirdPartyUtil);
-  this.cookie_permissions = Cc["@mozilla.org/cookie/permission;1"].
-                                getService(Ci.nsICookiePermission);
+  this.cookie_permissions = Cc["@mozilla.org/cookie/permission;1"].getService(Ci.nsICookiePermission);
 }
 
 SSC_RequestListener.prototype =
@@ -80,13 +77,11 @@ SSC_RequestListener.prototype =
         subject.QueryInterface(Components.interfaces.nsIHttpChannel);
         subject.QueryInterface(Components.interfaces.nsIHttpChannelInternal);
         subject.QueryInterface(Components.interfaces.nsICachingChannel);
-        subject.QueryInterface(Components.interfaces.nsIChannel);
         this.onModifyRequest(subject);
       } else if (topic == 'http-on-examine-response') {
         subject.QueryInterface(Components.interfaces.nsIHttpChannel);
         subject.QueryInterface(Components.interfaces.nsIHttpChannelInternal);
         subject.QueryInterface(Components.interfaces.nsICachingChannel);
-        subject.QueryInterface(Components.interfaces.nsIChannel);
         this.onExamineResponse(subject);
       }
     } catch(e) {try {torbutton_log(4, "SSC: "+e);} catch(ex) {}} 
@@ -140,19 +135,11 @@ SSC_RequestListener.prototype =
     } else if(!parent_host) {
       // Questionable first party interaction..
       try {
-        var anuri = null;
-        try {
-          anuri = this.thirdPartyUtil.getFirstPartyURI(channel, null);
-        } catch (e) {
-          torbutton_safelog(4, "FirstParty API failed to get parent: "+e, channel.URI.spec);
-          // We are not using the TBB based on ESR 24. Falling back to the old
-          // method.
-          anuri = this.cookie_permissions.getOriginatingURI(channel);
-        }
+        var anuri = this.cookie_permissions.getOriginatingURI(channel);
         parent_host = anuri.host;
         parent_spec = anuri.spec;
       } catch(e) {
-        torbutton_safelog(4, "Cookie API failed to get parent: "+e,channel.URI.spec);
+        torbutton_safelog(2, "Cookie API failed to get parent: "+e,channel.URI.spec);
         if (!channel.referrer) {
           torbutton_safelog(3, "SSC: No parent for ", channel.URI.spec);
         } else {
diff --git a/src/install.rdf b/src/install.rdf
index 3dd60f7..eed2a47 100644
--- a/src/install.rdf
+++ b/src/install.rdf
@@ -6,7 +6,7 @@
         <em:name>Torbutton</em:name>
         <em:creator>Mike Perry</em:creator>
         <em:id>torbutton at torproject.org</em:id>
-        <em:version>1.6.5pre</em:version>
+        <em:version>1.6.4.1</em:version>
         <em:homepageURL>https://www.torproject.org/projects/torbrowser.html.en</em:homepageURL>
         <em:optionsURL>chrome://torbutton/content/preferences.xul</em:optionsURL>
         <em:iconURL>chrome://torbutton/skin/tor.png</em:iconURL>





More information about the tor-commits mailing list