Bug 443489: use the correct cookie xpcom interface

This commit is contained in:
Dan Mills 2008-10-16 12:29:21 -07:00
parent 21c2151727
commit a9952f3101
2 changed files with 3 additions and 3 deletions

View File

@ -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 ) {

View File

@ -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;