mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 935973 - ThirdPartyCookieProbe errors r=yoric
This commit is contained in:
parent
7164947018
commit
812508b98a
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
let Ci = Components.interfaces;
|
let Ci = Components.interfaces;
|
||||||
let Cu = Components.utils;
|
let Cu = Components.utils;
|
||||||
|
let Cr = Components.results;
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
@ -88,7 +89,13 @@ this.ThirdPartyCookieProbe.prototype = {
|
|||||||
data.addRejected(firstParty);
|
data.addRejected(firstParty);
|
||||||
}
|
}
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
// Errors should not remain silent
|
if (ex instanceof Ci.nsIXPCException) {
|
||||||
|
if (ex.result == Cr.NS_ERROR_HOST_IS_IP_ADDRESS ||
|
||||||
|
ex.result == Cr.NS_ERROR_INSUFFICIENT_DOMAIN_LEVELS) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Other errors should not remain silent.
|
||||||
Services.console.logStringMessage("ThirdPartyCookieProbe: Uncaught error " + ex + "\n" + ex.stack);
|
Services.console.logStringMessage("ThirdPartyCookieProbe: Uncaught error " + ex + "\n" + ex.stack);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user