Closed Bug 1926486 Opened 1 year ago Closed 11 months ago

Empty editor when opening the Debugger on a page where I opened a source in a previous session

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1873657

People

(Reporter: nchevobbe, Assigned: bomsy)

References

(Blocks 1 open bug)

Details

Attachments

(1 obsolete file)

Steps to reproduce

  1. Navigate to https://nchevobbe.github.io/demo/console-test-app.html
  2. Open the debugger, make sure to close all editor tabs you might have and clear all the breakpoints
  3. Open console-test-animation.js
  4. Close the toolbox
  5. 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

Severity: -- → S3
Priority: -- → P2
See Also: → 1928824
See Also: 1928824

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.

Assignee: nobody → hmanilla
Attachment #9440366 - Attachment description: WIP: Bug 1926486 - [devtools] Load the source content on editor component mount → Bug 1926486 - [devtools] Load the source content on editor component mount r=#devtools
Status: NEW → ASSIGNED

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.

Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Duplicate of bug: 1873657
Resolution: --- → DUPLICATE
Attachment #9440366 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: