Persist "inRDMPane" attribute set on the document while in RDM mode
Categories
(DevTools :: Responsive Design Mode, defect, P1)
Tracking
(firefox72 fixed)
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: mtigley, Assigned: mtigley)
References
(Blocks 1 open bug)
Details
(Whiteboard: fission-rdm-mvp)
Attachments
(4 files)
When RDM is open and the user either refreshes or performs a "OnLocationChange" event, attributes on the document (such as the inRDMPane
) need to persist.
Steps to Reproduce
- Make sure
devtools.responsive.browserUI.enabled
- Open RDM, and select the iPad from the devices list.
- Check
screen.height
in the DevTools console. You should see a value of1022
(which is supposed to be 1024, but that's another issue) - Refresh the page and check the value
screen.height
again.
ER:
The value should still be 1022
AR:
The value is the actual height of the physical device.
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
•
|
||
For context, RDM is currently persisting these attributes by overriding the WebProgressListener
in its frame content script.
Since we're removing the use of the <iframe mozbrowser>
as part of the DevTools fission effort, this also means we will removing its injected content frame script. So we need to find another way to persist the document attributes RDM manipulates when refreshed or navigated. In particular, RDM is using these WebIDL Document extensions to set inRDMPane
and screen.orientation
:
Assignee | ||
Comment 2•5 years ago
•
|
||
After discussing this issue with the Fission team, we need to be setting the inRDMPane
attribute on the BrowsingContext and not the Document if we need it to persist. I can delve into this more.
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8dd6e18ae2af
https://hg.mozilla.org/mozilla-central/rev/157248203e4a
https://hg.mozilla.org/mozilla-central/rev/33d4fb0808c9
https://hg.mozilla.org/mozilla-central/rev/32913780ebb3
Description
•