Closed
Bug 1213427
Opened 10 years ago
Closed 7 years ago
Investigate why browser_webconsole_output_04.js fails on Linux when invisibleToDebugger is true
Categories
(DevTools :: Console, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: jryans, Unassigned)
Details
While trying to land JSON viewer work in bug 1132203, `invisibleToDebugger` in Loader.jsm got set to true in the child process. We'll likely be correcting this before finally landing bug 1132203.
In any case, when `invisibleToDebugger === true`, the test browser_webconsole_output_04.js fails on Linux:
115 INFO checkInput(8): document.styleSheets[0].cssRules
116 INFO Logging: document.styleSheets[0].cssRules
117 INFO Waiting for messages...
118 INFO TEST-PASS | devtools/client/webconsole/test/browser_webconsole_output_04.js | matched rule: console.log() output: CSSRuleList [ CSSStyleRule, CSSMediaRule ] -
119 INFO Printing: document.styleSheets[0].cssRules
120 INFO Waiting for messages...
121 INFO TEST-PASS | devtools/client/webconsole/test/browser_webconsole_output_04.js | matched rule: print() output: [object CSSRuleList -
122 INFO Evaluating: document.styleSheets[0].cssRules
123 INFO Waiting for messages...
124 INFO TEST-PASS | devtools/client/webconsole/test/browser_webconsole_output_04.js | matched rule: JS eval output: CSSRuleList [ CSSStyleRule, CSSMediaRule ] -
125 INFO Clicking: document.styleSheets[0].cssRules
126 INFO TEST-PASS | devtools/client/webconsole/test/browser_webconsole_output_04.js | the message body -
127 INFO message body tagName 'a' className 'cm-variable'
128 INFO Variables view opened: document.styleSheets[0].cssRules
129 INFO TEST-PASS | devtools/client/webconsole/test/browser_webconsole_output_04.js | variables view was shown -
130 INFO checkInput(9): document.styleSheets[0].cssRules[0]
131 INFO Logging: document.styleSheets[0].cssRules[0]
132 INFO Waiting for messages...
JavaScript error: resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/webconsole.js, line 446: TypeError: object in compartment marked as invisible to Debugger
This error comes from the following line:
makeDebuggeeValue: function WCA_makeDebuggeeValue(aValue, aUseObjectGlobal)
{
let global = this.window;
if (aUseObjectGlobal && typeof aValue == "object") {
try {
global = Cu.getGlobalForObject(aValue);
}
catch (ex) {
// The above can throw an exception if aValue is not an actual object.
}
}
let dbgGlobal = this.dbg.makeGlobalObjectReference(global); <------------
return dbgGlobal.makeDebuggeeValue(aValue);
},
I believe the object is a CSSStyleRule at the time of the error.
This seems like either a bug in the test or in web console functionality, and it would be good to correct.
Updated•7 years ago
|
Product: Firefox → DevTools
Comment 1•7 years ago
|
||
Test was deleted during the old frontend test migration
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•