Bug 1133481 - Make browser_webconsole_bug_597136_network_requests_from_chrome.js fail only if an exception is coming from webconsole code. r=past

This commit is contained in:
Sami Jaktholm 2015-02-19 08:43:31 +02:00
parent 9dd2cba6bf
commit 7a185bb620

View File

@ -11,7 +11,8 @@ let listener = {
QueryInterface: XPCOMUtils.generateQI([ Ci.nsIObserver ]),
observe: function(aSubject, aTopic, aData) {
if (aSubject instanceof Ci.nsIScriptError &&
aSubject.category === "XPConnect JavaScript") {
aSubject.category === "XPConnect JavaScript" &&
aSubject.sourceName.contains("webconsole")) {
good = false;
}
}