Dynamic changing of SCROLLING attribute
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: pollmann, Assigned: jesup)
References
()
Details
(Keywords: testcase)
Attachments
(1 external file)
Updated•27 years ago
|
Updated•26 years ago
|
Comment 1•26 years ago
|
||
Comment 2•26 years ago
|
||
| Reporter | ||
Comment 5•26 years ago
|
||
Comment 7•25 years ago
|
||
Comment 8•24 years ago
|
||
Comment 9•24 years ago
|
||
Comment 10•24 years ago
|
||
Comment 11•22 years ago
|
||
Updated•17 years ago
|
Updated•17 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•4 years ago
|
Comment 12•2 years ago
|
||
Hello Mozilla Team,
There is times that our website https://searchbusinessgroup.com/ the header doesn't load completely. We use a SVG image, but there is times which disappear. Is this something related with this bug?
Thank you for your continuous efforts to improve Mozilla. If there's anything more I can contribute, please let me know.
Comment 13•2 years ago
|
||
Please simplify your test into a reduced testcase and file a new bug.
| Assignee | ||
Comment 14•12 days ago
|
||
Updated•12 days ago
|
| Assignee | ||
Comment 15•12 days ago
|
||
Changing the scrolling attribute on a frame or iframe at runtime now works.
nsGenericHTMLFrameElement::AfterSetAttr handles the scrolling attribute: it maps the new value with MapScrollingAttribute and calls nsDocShell::SetScrollbarPreference. That dirties the root scroll container frame and reflows it, so the scrollbars are added or removed. For Fission out-of-process iframes the preference is sent to the child via ScrollbarPreferenceChanged.
The problem bz described in comment 11 (overflow changes reframing, and the frame constructor not handling subdocument frames) no longer applies to the current architecture.
Both directions are covered by web-platform-tests:
- html/semantics/embedded-content/the-iframe-element/iframe-modify-scrolling-attr-to-yes.html
- iframe-modify-scrolling-attr-to-no.html (added for this bug)
I checked the "no" test with scrollbars drawn (under Xvfb, classic scrollbars): it passes, and fails if the attribute change is removed. In headless mode with overlay scrollbars the two renderings are identical, so the test can't distinguish them there. I don't know how we typically run wpts in CI; hopefully it's with xvfb, and real windows in Windows. And I don't know what wpt.fyi does.
Not covered: a remote <browser> element (the GetBrowserParent() case), which AfterSetAttr deliberately skips. That isn't web content and isn't what this bug is about.
Comment 16•12 days ago
|
||
(In reply to Randell Jesup [:jesup] (needinfo me) from comment #15)
I checked the "no" test with scrollbars drawn (under Xvfb, classic scrollbars): it passes, and fails if the attribute change is removed. In headless mode with overlay scrollbars the two renderings are identical, so the test can't distinguish them there. I don't know how we typically run wpts in CI; hopefully it's with xvfb, and real windows in Windows.
I hope we don't use xvfb in CI, since that's not representative of how users actually use Firefox.
It sounds like you want to be sure the test gets run under both scrollbar configurations (classic and overlay). You can enforce either one, specifically on Linux, by setting about:config pref widget.gtk.overlay-scrollbars.enabled. You could hypothetically set that during the test with specialpowers to test both values (if it's a mozilla-only WPT) or in an .ini annotation for the test. (You might need two copies of the same test if you want to text both values using an .ini file.)
Comment 17•11 days ago
|
||
Comment 18•10 days ago
|
||
| bugherder | ||
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/64726 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Updated•6 days ago
|
Description
•