Closed
Bug 1494281
Opened 6 years ago
Closed 6 years ago
React DevTools is broken in the latest Fx64 Nightly
Categories
(DevTools :: General, defect, P1)
DevTools
General
Tracking
(firefox-esr60 unaffected, firefox62 unaffected, firefox63 unaffected, firefox64 fixed)
RESOLVED
FIXED
Firefox 64
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox62 | --- | unaffected |
firefox63 | --- | unaffected |
firefox64 | --- | fixed |
People
(Reporter: pbro, Assigned: ochameau)
References
Details
(Keywords: regression, Whiteboard: dt-fission)
Attachments
(1 file)
This was originally filed in https://github.com/facebook/react-devtools/issues/1169 This seems to be a regression caused by a changed in Firefox, not in the extension, so filing it here for investigation. STR: - open the latest nightly - install the React DevTools from AMO https://addons.mozilla.org/en-US/firefox/addon/react-devtools/ - open a page that uses react (I think reactjs.org will do) - open the toolbox ==> the React DevTools tab is not displayed in the toolbox, and the following 2 JS errors appear in the browser console over and over again: Cannot set the context DevTools target twice ExtensionParent.jsm:749 set devToolsTarget resource://gre/modules/ExtensionParent.jsm:749:13 global.getDevToolsTargetForContext chrome://browser/content/parent/ext-devtools.js:51:34 InterpretGeneratorResume self-hosted:1255:8 next self-hosted:1210:9 Unchecked lastError value: Error: An unexpected error occurred main.js:18 createPanelIfReactLoaded moz-extension://50635c1b-0f3b-4cb5-a749-f657197dda92/build/main.js:18:25
Reporter | ||
Updated•6 years ago
|
Priority: -- → P1
Reporter | ||
Comment 1•6 years ago
|
||
I did a mozregression to pinpoint the cause. Here's the pushlog: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=bf90894b0f2eb4aa876496a71dae66107559dd42&tochange=02308fea5840d131e7684e330563470925aa5472 It points to bug 1485676. Alex: could you please look at the problem?
Assignee | ||
Comment 2•6 years ago
|
||
That might be this line: https://searchfox.org/mozilla-central/source/browser/components/extensions/parent/ext-devtools.js#51 Causing a race around target creation.
Assignee: nobody → poirot.alex
Flags: needinfo?(poirot.alex)
Assignee | ||
Comment 3•6 years ago
|
||
Yes, that is because of this line, I was able to fix the issue locally. Now trying to craft a patch for this. Try build: https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=201695833&revision=c8ec39abc9a8a3b20971f78b3dd4a58c26884344
Assignee | ||
Comment 4•6 years ago
|
||
MozReview-Commit-ID: DlB05jFPtGL
Comment 5•6 years ago
|
||
Comment on attachment 9012259 [details] Bug 1494281 - Fix possible race around devToolsTarget promise creation Luca Greco [:rpl] (PTO from 2018-09-24 to 2018-09-28) has approved the revision.
Attachment #9012259 -
Flags: review+
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/17311c934402 Fix possible race around devToolsTarget promise creation r=rpl
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/17311c934402
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
Updated•6 years ago
|
status-firefox62:
--- → unaffected
status-firefox63:
--- → unaffected
status-firefox-esr60:
--- → unaffected
Assignee | ||
Updated•6 years ago
|
Whiteboard: dt-fission
You need to log in
before you can comment on or make changes to this bug.
Description
•