Empty editor when opening the Debugger on a page where I opened a source in a previous session
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(Not tracked)
People
(Reporter: nchevobbe, Assigned: bomsy)
References
(Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
Steps to reproduce
- Navigate to https://nchevobbe.github.io/demo/console-test-app.html
- Open the debugger, make sure to close all editor tabs you might have and clear all the breakpoints
- Open
console-test-animation.js - Close the toolbox
- Re-open the debugger
Expected results
The console-test-animation.js file is open and the source is visible
Actual results
The console-test-animation.js file is open but the source is not visible. The editor is empty and the gutter only has one line
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
Load the source content on componentDidMount, to make sure the selected source gets displayed.
In the majority of the scenarios a UNSAFE_componentWillReceiveProps will fire after the initial mount, but in a few cases
(mostly after a close and reopening of the toolbox) it does not fire.
Strugling to reproduce the failing scenarios with a test.
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 2•11 months ago
|
||
Fixed in Bug 1873657.
The issue was that sometimes we get the selected source content information before the editor is ready, but never updated the source content after the editor was finally received.
Updated•11 months ago
|
Description
•