CSS media simulation not applied throughout navigation history
Categories
(DevTools :: General, defect, P3)
Tracking
(firefox110 verified, firefox111 verified)
People
(Reporter: ed7-aspire4925, Assigned: jdescottes)
References
Details
Attachments
(1 file, 2 obsolete files)
Steps to reproduce:
- Open any webpage using CSS media queries.
- Open DevTools > Inspector.
- Enable any media simulation.
- e.g.
print
.
- Go to some other webpage (simulation should preserve).
- Disable all media simulations.
- Go back one page.
- Oops.
Actual results:
Previous media simulations are preserved.
Expected results:
Media simulations applied to the webpage should match those of the toggle buttons.
If useful, here are the steps to a user workaround:
8. Close then open DevTools again.
9. Turn the previous simulations on, then off. The webpage should return to normal.
Oops. I forgot to write that this bug is found in Firefox 102.4.0esr.
Comment 3•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::CSS Parsing and Computation' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 4•3 years ago
|
||
Yes, I can reproduce this. It seems like it might be more of a DevTools issue than the CSS engine, though; like it's failing to apply the correct media simulation settings when going back to a cached page. Moving to DevTools component for consideration.
Assignee | ||
Comment 5•3 years ago
|
||
We could try to prevent navigation while in simulation mode, or restore the default browsing context settings before doing a navigation. Although that would be annoying for other simulation modes such as dark mode.
We should first check if the browsing context's flag has been updated and if only the document retains the print mode for some reason.
Assignee | ||
Comment 6•3 years ago
|
||
The issue is in DevTools, we do not update the BrowsingContext
targeted by target-configuration.
This is normally handled at https://searchfox.org/mozilla-central/rev/5a49163b7012ded5fa1c4da5aa4f8d3f7c85a5e7/devtools/server/actors/target-configuration.js#118-155, but bfcache navigations are missed.
Assignee | ||
Comment 7•3 years ago
|
||
Updated•3 years ago
|
Comment 8•3 years ago
|
||
The severity field is not set for this bug.
:Honza, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 9•3 years ago
|
||
The severity field is not set for this bug.
:Honza, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 10•3 years ago
|
||
Depends on D162998
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 11•3 years ago
|
||
Depends on D164217
Comment 13•3 years ago
|
||
Comment on attachment 9307316 [details]
Bug 1799383 - [devtools] Restore target configuration before switching to new browsing context
Revision D164217 was moved to bug 1805997. Setting attachment 9307316 [details] to obsolete.
Comment 14•3 years ago
|
||
Comment on attachment 9308570 [details]
Bug 1799383 - [devtools] Do not restore configuration on discarded browsing contexts
Revision D164846 was moved to bug 1805997. Setting attachment 9308570 [details] to obsolete.
Comment 15•3 years ago
|
||
Comment 16•3 years ago
|
||
bugherder |
Reporter | ||
Comment 17•3 years ago
|
||
Very much appreciated.
Will look forward to this in the next ESR.
Cheers,
Brendon
Updated•3 years ago
|
Reproduced on a 2022-12-18 Nightly build on macOS 12.
Verified as fixed on Firefox 110.0b8(build ID: 20230202190127) and Nightly 111.0a1(build ID: 20230202172003) on macOS 12, Windows 10, Ubuntu 22.
Description
•