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•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D41463
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D41465
Updated•5 years ago
|
Assignee | ||
Comment 4•5 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•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Depends on D41467
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D41467
Updated•5 years ago
|
Assignee | ||
Comment 9•5 years ago
|
||
Assignee | ||
Comment 10•5 years ago
|
||
https://phabricator.services.mozilla.com/D42379
Depends on D43716
Updated•5 years ago
|
Assignee | ||
Comment 11•5 years ago
|
||
Assignee | ||
Comment 12•5 years ago
|
||
Assignee | ||
Comment 13•5 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•5 years ago
|
||
Assignee | ||
Comment 15•5 years ago
|
||
Comment 16•5 years ago
|
||
Comment 17•5 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•5 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
•