Closed
Bug 1070837
Opened 11 years ago
Closed 11 years ago
devtools/framework/toolbox.js |doc| getter not e10s friendly
Categories
(DevTools :: Framework, defect)
DevTools
Framework
Tracking
(e10s+)
RESOLVED
WORKSFORME
Tracking | Status | |
---|---|---|
e10s | + | --- |
People
(Reporter: markh, Unassigned)
References
Details
(Whiteboard: [e10s-m6])
toolbox.js has a |doc| getter that returns |this.frame.contentDocument;| - this causes a few tests to fail when run in e10s mode. eg,
35 INFO TEST-PASS | chrome://mochitests/content/browser/browser/devtools/framework/test/browser_devtools_api.js | The tool is no longer registered
*************************
A coding exception was thrown in a Promise resolution callback.
See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise
Full message: TypeError: this.doc is undefined
Full stack: Toolbox.prototype.focusTool@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/framework/toolbox.js:1032:9
Toolbox.prototype.selectTool/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/framework/toolbox.js:1018:7
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:865:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:744:7
*************************
36 INFO TEST-PASS | chrome://mochitests/content/browser/browser/devtools/framework/test/browser_devtools_api.js | gDevTools doesn't know about target
37 INFO TEST-PASS | chrome://mochitests/content/browser/browser/devtools/framework/test/browser_devtools_api.js | toolbox doesn't know about target.
JavaScript error: chrome://browser/content/devtools/netmonitor-view.js, line 182: TypeError: this._body.selectedPanel is undefined
38 INFO TEST-FAIL | chrome://mochitests/content/browser/browser/devtools/framework/test/browser_devtools_api.js | A promise chain failed to handle a rejection
Fixing this doesn't look trivial, so I'm going to propose we disable the affected tests when run in e10s (referencing this bug) - currently I've identified browser_devtools_api.js and browser_toolbox_options_disable_js.js
It's kinda weird that this fails in e10s. It looks like everything being touched here is in-process, so contentDocument should be working. Maybe it's just a timing issue.
Updated•11 years ago
|
Blocks: dte10s
tracking-e10s:
--- → +
Comment 3•11 years ago
|
||
devtools bugs will block the e10s merge to Aurora, but blassey would like them to be tracked by dte10s meta bug 875871, not the tracking-e10s=m6+ flag.
Updated•11 years ago
|
Whiteboard: [e10s-m6]
Comment 4•11 years ago
|
||
This should be a dependency of bug 1030318
Comment 5•11 years ago
|
||
This doesn't seem to be a problem anymore, testing on latest fx-team
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 6•11 years ago
|
||
See https://dxr.mozilla.org/mozilla-central/search?q=1070837&case=false - can we remove them?
Flags: needinfo?(bgrinstead)
Comment 7•11 years ago
|
||
(In reply to Mark Hammond [:markh] from comment #6)
> See https://dxr.mozilla.org/mozilla-central/search?q=1070837&case=false -
> can we remove them?
Yeah, just removed them on fx-team in Bug 1030318: https://hg.mozilla.org/integration/fx-team/rev/700f4ab5423a
Flags: needinfo?(bgrinstead)
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•