RDM pane should scale up/down with changes to full-page zoom
Categories
(DevTools :: Responsive Design Mode, defect, P1)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: bradwerth, Assigned: bradwerth)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [rdm-mvp])
Attachments
(5 files, 1 obsolete file)
When changing full-page zoom with RDM enabled, the RDM pane itself stays the same size. This has the undesirable effect of displaying content on the simulated device screen that could not actually be reached on a real device. It would be better for us to scale up/down the RDM pane itself along with the contents, simulating instead the experience of the device getting bigger/smaller, or perhaps closer to/farther from the viewer.
When changing the size of the RDM pane in this way, the reported pixel resolution of the device should not change.
This is also what Chrome developer tools does and may be better aligned with our users' expectations.
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D41463
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D41465
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Okay, the updated patches now kind of work. While we discuss whether or not we want to make this UI change, I will put the code up for review to address anything technically wrong with it.
Assignee | ||
Comment 5•4 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=661685206db286901c6ca9a1d04ff42ca4d6a1cd
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D41467
Assignee | ||
Comment 7•4 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=5bd293e39c26658993f90c30054122f09b6a11f0
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D41467
Updated•4 years ago
|
Assignee | ||
Comment 9•4 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ec03f97b071c923e63a1a3b03aba701acd07926f
Assignee | ||
Comment 10•4 years ago
|
||
https://phabricator.services.mozilla.com/D42379
Depends on D43716
Updated•4 years ago
|
Assignee | ||
Comment 11•4 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f29d6dc2e4a8bcbf5a7bbdac1e197a907e8e6021
Assignee | ||
Comment 12•4 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0db07ad74a3e3f9b2f5f5a502b1b7c98e1be88c8
Assignee | ||
Comment 13•4 years ago
|
||
Rounding errors when reconstituting device size in nsGlobalWindowOuter::GetRDMDeviceSize is making this challenging. With the changes in this patch, it's possible with < 100% zoom for the RDM pane to be locked to device pixels at the scaled-down size and that introduces inaccuracy when dividing out the zoom level again. This is the source of the test failures in devtools/client/responsive/test/browser/browser_window_sizing.js.
Ideally nsGlobalWindowOuter::GetRDMDeviceSize could get the size without relying on a lossy multiply by < 1, clamp to integer pixels then divide by < 1. We want screen.width and window.outerWidth to report the proper size at all zoom levels. So I don't want to just loosen up the test to accomodate a larger error value.
Assignee | ||
Comment 14•4 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b375ec0dcf3a7a65c44d4fe06e5b46ffce9651b7
Assignee | ||
Comment 15•4 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d853cf0395f15b4965dd8c6eb7e5023f49dbedc2
Comment 16•4 years ago
|
||
Pushed by bwerth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/23feecbe07eb Part 1: Add a zoom viewport action to RDM pane. r=gl https://hg.mozilla.org/integration/autoland/rev/038722cc5bf4 Part 2: Make the RDM viewport render scaled to the viewport.zoom property. r=gl https://hg.mozilla.org/integration/autoland/rev/8cd803e497e7 Part 3: Listen to fullzoom changes in the RDM pane and call the zoom viewport function. r=gl https://hg.mozilla.org/integration/autoland/rev/db42ac54835f Part 4: Change nsGlobalWindowOuter::GetRDMDeviceSize to divide out full zoom levels. r=Ehsan https://hg.mozilla.org/integration/autoland/rev/466e8f97c54f Part 5: Update test expectations. r=gl
Comment 17•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/23feecbe07eb
https://hg.mozilla.org/mozilla-central/rev/038722cc5bf4
https://hg.mozilla.org/mozilla-central/rev/8cd803e497e7
https://hg.mozilla.org/mozilla-central/rev/db42ac54835f
https://hg.mozilla.org/mozilla-central/rev/466e8f97c54f
Comment 18•4 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/23feecbe07eb
https://hg.mozilla.org/releases/mozilla-beta/rev/038722cc5bf4
https://hg.mozilla.org/releases/mozilla-beta/rev/8cd803e497e7
https://hg.mozilla.org/releases/mozilla-beta/rev/db42ac54835f
https://hg.mozilla.org/releases/mozilla-beta/rev/466e8f97c54f
Description
•