Bug 1297138 - Signature for nsICookieManager.remove() changed. r=clokep a=jorgk
authorArlo Breault <arlolra@gmail.com>
Mon, 22 Aug 2016 10:31:00 +0200
changeset 27522 8f10f52f195829c856757ebb094fe9fbabe639eb
parent 27521 91c110a38bf4dade626da353f98243156c396fdd
child 27523 d38ae773f103a4ef814c68b118c81cbb1259297e
child 27525 21b62dc3d3cc119ce7a4992a8f483f17ed4a58e4
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)
reviewersclokep, jorgk
bugs1297138
Bug 1297138 - Signature for nsICookieManager.remove() changed. r=clokep a=jorgk Also, nsICookieManager2.getCookiesFromHost() wants an originAttributes object.
chat/protocols/twitter/twitter.js
--- a/chat/protocols/twitter/twitter.js
+++ b/chat/protocols/twitter/twitter.js
@@ -912,21 +912,21 @@ Account.prototype = {
       },
       QueryInterface: XPCOMUtils.generateQI([Ci.prplIRequestBrowser])
     };
     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");
+    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,
-                              cookie.originAttributes, false);
+      Services.cookies.remove(cookie.host, cookie.name, cookie.path, false,
+                              cookie.originAttributes);
     }
 
     if (!("_browserRequest" in this))
       return;
     this._browserRequest._active = false;
     if ("_listener" in this._browserRequest)
       this._browserRequest._listener._cleanUp();
     delete this._browserRequest;