mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
Bug 443489: use the correct cookie xpcom interface
This commit is contained in:
parent
21c2151727
commit
a9952f3101
@ -203,7 +203,7 @@ CookieStore.prototype = {
|
||||
var matchingCookie = null;
|
||||
while (iter.hasMoreElements()){
|
||||
let cookie = iter.getNext();
|
||||
if (cookie.QueryInterface( Ci.nsICookie ) ){
|
||||
if (cookie.QueryInterface( Ci.nsICookie2 ) ){
|
||||
// see if host:path:name of cookie matches GUID given in command
|
||||
let key = cookie.host + ":" + cookie.path + ":" + cookie.name;
|
||||
if (key == command.GUID) {
|
||||
@ -248,7 +248,7 @@ CookieStore.prototype = {
|
||||
var iter = this._cookieManager.enumerator;
|
||||
while (iter.hasMoreElements()) {
|
||||
var cookie = iter.getNext();
|
||||
if (cookie.QueryInterface( Ci.nsICookie )) {
|
||||
if (cookie.QueryInterface( Ci.nsICookie2 )) {
|
||||
// String used to identify cookies is
|
||||
// host:path:name
|
||||
if ( cookie.isSession ) {
|
||||
|
@ -18,7 +18,7 @@ FakeCookie.prototype = {
|
||||
},
|
||||
|
||||
QueryInterface: function( aIID ) {
|
||||
if ( !aIID.equals( Components.interfaces.nsICookie ) ) {
|
||||
if ( !aIID.equals( Components.interfaces.nsICookie2 ) ) {
|
||||
throw Components.results.NS_ERROR_NO_INTERFACE;
|
||||
}
|
||||
return this;
|
||||
|
Loading…
Reference in New Issue
Block a user