Add tests of getViewportInfo with initial-scale smaller than min-scale
Categories
(DevTools :: Responsive Design Mode, defect, P1)
Tracking
(firefox69 fixed)
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: hiro, Assigned: bradwerth)
References
(Blocks 1 open bug)
Details
(Whiteboard: [rdm-mvp] [dt-q])
Attachments
(2 files, 2 obsolete files)
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Reporter | ||
Comment 3•7 years ago
|
||
Reporter | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Updated•7 years ago
|
Assignee | ||
Comment 6•7 years ago
|
||
Once Bug 1521814 lands, this issue will need the pref dom.meta-viewport.enabled set to true in order to properly test it.
Assignee | ||
Comment 7•7 years ago
|
||
(In reply to Brad Werth [:bradwerth] from comment #6)
Once Bug 1521814 lands, this issue will need the pref dom.meta-viewport.enabled set to true in order to properly test it.
Update: the relevant pref is devtools.responsive.metaViewport.enabled.
Comment 8•6 years ago
|
||
Hello Hiroyuki. Want to confirm if you are still working on this bug or if it can be reassigned to a member of the RDM Team? Thanks.
Updated•6 years ago
|
Assignee | ||
Comment 9•6 years ago
|
||
I attempted to reproduce this bug and noticed a more severe problem that's appeared since the bug was filed. After returning from RDM, the page content is cropped to a much smaller area. According to mozregression, this new unwanted behavior appeared with the landing of Bug 1501665. That isn't terribly surprising since that bug changed so much.
Not changing the bug title yet because these results are probably related to the same cause. In other words, the scrollbars being cropped to a too-small rectangle (the original bug) is now joined by the viewport being cropped to a too-small rectangle.
Assignee | ||
Comment 10•6 years ago
|
||
Attachment 8855130 [details] has meta viewport tag:
<meta name="viewport" content="width=250, initial-scale=0.01">
initial-scale is the likely issue for this problem. I don't think we have good test coverage of RDM with initial-scale.
Reporter | ||
Comment 11•6 years ago
|
||
No, I am not actively working on this any more. Thanks!
(In reply to Brad Werth [:bradwerth] from comment #10)
Attachment 8855130 [details] has meta viewport tag:
<meta name="viewport" content="width=250, initial-scale=0.01">
initial-scale is the likely issue for this problem. I don't think we have good test coverage of RDM with initial-scale.
FWIW, the behavior for cases where initial-scale < 0.25 might be changed by bug 1550105, since the spec says non negative scale value is clamped to the range [0.1, 10], and we changed the value of the minimum boundary to 0.25 in bug 1510214.
Assignee | ||
Comment 12•6 years ago
|
||
Still thinking this through. The call to nsPresContext::SetVisibleArea is getting correct values, but the visible area is getting scaled by the very high resolution value that was used by the RDM mode with meta viewport on. You can see the content cropping bug just by toggling touch simulation button (which also controls meta viewport).
Assignee | ||
Comment 13•6 years ago
|
||
Assignee | ||
Comment 14•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 15•6 years ago
|
||
This is another one that's difficult to test in an automated fashion. I'll request review of the patch as-is with an explanation of the difficulties.
Reporter | ||
Comment 16•6 years ago
|
||
I've been wondering we can simulate RDM in our reftest harness.
Assignee | ||
Comment 17•6 years ago
|
||
Hiro, would you please test that the attached patch solves the issue you found with the scrollbars? I was never really able to replicate that issue but instead found this screen cropping issue instead. I hope that the patch will resolve the issue you found, as well.
Reporter | ||
Comment 18•6 years ago
|
||
It's been already fixed by you! Bug 1521814 fixed the issue I mentioned in comment 0. Thank you!
Assignee | ||
Comment 19•6 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #18)
It's been already fixed by you! Bug 1521814 fixed the issue I mentioned in comment 0. Thank you!
In that case, would you please retest with the pref devtools.responsive.metaViewport.enabled set? That's all that Bug 1521814 affected.
Reporter | ||
Comment 20•6 years ago
|
||
With the pref set (true) the scrollbars in the example in question are not incorrectly rendered but initial-scale=0.1
seems not to be applied. But with the binary in the try in comment 14 the example looks fine to me.
Updated•6 years ago
|
Assignee | ||
Comment 21•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 22•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 23•6 years ago
|
||
Depends on D32321
Updated•6 years ago
|
Assignee | ||
Comment 24•6 years ago
|
||
It appears this has been fixed by Bug 1550105.
Updated•6 years ago
|
Comment 25•6 years ago
|
||
We might as well still land the test.
Assignee | ||
Comment 26•6 years ago
|
||
I just came to the same conclusion. The tests for Bug 1550105 don't go through getViewportInfo, and that seems useful to test as well.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 27•6 years ago
|
||
Updated•6 years ago
|
Comment 28•6 years ago
|
||
bugherder |
Description
•