Closed Bug 1347238 Opened 7 years ago Closed 7 years ago

Add a check for rootNode in getAllGrids

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(firefox55 fixed)

RESOLVED FIXED
Firefox 55
Tracking Status
firefox55 --- fixed

People

(Reporter: gl, Assigned: gl)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

console.error:
  Message: TypeError: rootNode is null
  Stack:
    getAllGrids@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/layout.js:129:7
onNavigate@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/layout.js:141:17
emitOnObject@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/core.js:112:9
emit@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/core.js:89:38
_navigate@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/tab.js:1323:5
DebuggerProgressListener.prototype.onStateChange<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/tab.js:1667:9
exports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14
Blocks: dt-grid
Blocks: 1347964
Attachment #8848499 - Flags: review?(jdescottes) → review?(pbrosset)
Forwarding this to you Patrick since jdescottes is on PTO
Comment on attachment 8848499 [details]
Bug 1347238 - Add a check for rootNode in getAllGrids.

https://reviewboard.mozilla.org/r/121426/#review123960

Do we have tests for these actors? We do have actor tests in \devtools\server\tests\mochitest\. Not sure if this is still the best place for them these days, but I would like to see some tests added to cover these methods.
The great thing is we can add tests for edge cases like the one here and make sure these still work in the future.
Feel free to add this in another patch.
Attachment #8848499 - Flags: review?(pbrosset) → review+
Pushed by gabriel.luong@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e7684ec77d04
Add a check for rootNode in getAllGrids. r=pbro
https://hg.mozilla.org/mozilla-central/rev/e7684ec77d04
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: