Open
Bug 1311694
Opened 8 years ago
Updated 4 months ago
The inspector goes blank when calling document.open/write and never calling document.close
Categories
(DevTools :: Inspector, defect, P2)
DevTools
Inspector
Tracking
(Not tracked)
NEW
People
(Reporter: ochameau, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 obsolete file)
Followup of bug 1277348.
There is still some cases where the inspector goes blank when using document.open or document.write.
Using attachment 8769625 [details] from :pbro and his STR from bug 1277348 comment 8:
- open the URL in a new tab
- quickly open the inspector (you have 5 seconds)
- notice that the inspector is correctly loaded, with "content 1" being the only content in the page
- wait until the timeout expires
- notice that the page goes back in loading state, and the inspector goes empty
Now, if you switch to the console and execute 'document.close()' then things are going to go back to normal.
I imagine it triggers a will-navigate event from the TabActor and then never fire any navigate event, which is expected as "load" event will only fire once document.write is called.
Ideally, the inspector wouldn't wait for navigate/load event, but instead window-ready. I tried doing that but it breaks everything. It looks like it would require a significant refactoring on the inspector initiliazation/destruction codepath.
Updated•7 years ago
|
Product: Firefox → DevTools
![]() |
||
Comment 2•6 years ago
|
||
It looks like bug 1489308 did not fix this. I don't know what inspector is doing here, exactly, and why it's failing; document.open should not look like a navigation anymore!
Depends on: 1489308
Updated•2 years ago
|
Severity: normal → S3
Updated•1 year ago
|
Attachment #9386681 -
Attachment is obsolete: true
Updated•4 months ago
|
Blocks: dt-2025-h1-P2
You need to log in
before you can comment on or make changes to this bug.
Description
•