Bug 1255177 - Add originAttributes argument to Services.cookies.remove calls in chat/. r=aleth a=jorgk
authorSourab Reddy <sourab.reddy2k14@gmail.com>
Tue, 29 Mar 2016 21:05:01 +0200
changeset 26969 05bc4f17ba6e44ec7ee17a9264fbf1e2b1b17e3b
parent 26968 0ca649e66d7bba5df7b151527bc43aca62e50a44
child 26970 e0ee809173f9161f938092d9c57da7062be80d43
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaleth, jorgk
bugs1255177
Bug 1255177 - Add originAttributes argument to Services.cookies.remove calls in chat/. r=aleth a=jorgk
chat/protocols/twitter/twitter.js
--- a/chat/protocols/twitter/twitter.js
+++ b/chat/protocols/twitter/twitter.js
@@ -889,17 +889,18 @@ Account.prototype = {
     Services.obs.notifyObservers(this._browserRequest, "browser-request", null);
   },
   finishAuthorizationRequest: function() {
     // Clean up the cookies, so that several twitter OAuth dialogs can work
     // during the same session (bug 954308).
     let cookies = Services.cookies.getCookiesFromHost("twitter.com");
     while (cookies.hasMoreElements()) {
       let cookie = cookies.getNext().QueryInterface(Ci.nsICookie2);
-      Services.cookies.remove(cookie.host, cookie.name, cookie.path, false);
+      Services.cookies.remove(cookie.host, cookie.name, cookie.path,
+                              cookie.originAttributes, false);
     }
 
     if (!("_browserRequest" in this))
       return;
     this._browserRequest._active = false;
     if ("_listener" in this._browserRequest)
       this._browserRequest._listener._cleanUp();
     delete this._browserRequest;