зеркало из https://github.com/mozilla/gecko-dev.git
rollback last commit (1843a139184a), it causes cookie unit test to fail
This commit is contained in:
Родитель
1881fb20f5
Коммит
3b80869547
|
@ -202,7 +202,7 @@ CookieStore.prototype = {
|
||||||
var matchingCookie = null;
|
var matchingCookie = null;
|
||||||
while (iter.hasMoreElements()){
|
while (iter.hasMoreElements()){
|
||||||
let cookie = iter.getNext();
|
let cookie = iter.getNext();
|
||||||
if (cookie.QueryInterface( Ci.nsICookie2 ) ){
|
if (cookie.QueryInterface( Ci.nsICookie ) ){
|
||||||
// see if host:path:name of cookie matches GUID given in command
|
// see if host:path:name of cookie matches GUID given in command
|
||||||
let key = cookie.host + ":" + cookie.path + ":" + cookie.name;
|
let key = cookie.host + ":" + cookie.path + ":" + cookie.name;
|
||||||
if (key == command.GUID) {
|
if (key == command.GUID) {
|
||||||
|
@ -247,7 +247,7 @@ CookieStore.prototype = {
|
||||||
var iter = this._cookieManager.enumerator;
|
var iter = this._cookieManager.enumerator;
|
||||||
while (iter.hasMoreElements()) {
|
while (iter.hasMoreElements()) {
|
||||||
var cookie = iter.getNext();
|
var cookie = iter.getNext();
|
||||||
if (cookie.QueryInterface( Ci.nsICookie2 )) {
|
if (cookie.QueryInterface( Ci.nsICookie )) {
|
||||||
// String used to identify cookies is
|
// String used to identify cookies is
|
||||||
// host:path:name
|
// host:path:name
|
||||||
if ( cookie.isSession ) {
|
if ( cookie.isSession ) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче