Closed Bug 7915 Opened 27 years ago Closed 10 days ago

Dynamic changing of SCROLLING attribute

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Future
Tracking Status
firefox161 --- fixed

People

(Reporter: pollmann, Assigned: jesup)

References

()

Details

(Keywords: testcase)

Attachments

(1 external file)

Need to work this into the frame reflow method
QA Contact: beppe → petersen
Whiteboard: [DONTTEST]
Marking [DONTTEST].
Bulk moving old [donttest] code to new donttest keyword. Sorry for the spam!
Keywords: donttest
Non PDT+, moving out.
Target Milestone: M14 → M16
Rescheduling
Status: NEW → ASSIGNED
Target Milestone: M16 → M20
This bug has been marked "future" because the original netscape engineer working on this is over-burdened. If you feel this is an error, that you or another known resource will be working on this bug,or if it blocks your work in some way -- please attach your concern to the bug for reconsideration.
Target Milestone: M20 → Future
QA Contact update
QA Contact: petersen → amar
Bulk reassignin HTML FRAME/IFRAME bugs to Eric.
Assignee: pollmann → evaughan
Status: ASSIGNED → NEW
Bulk re-assigning all of Eric's HTMLFrame bugs to John.
Assignee: eric → jkeiser
Adding testcase, but this bug depends on others to make scrolling="yes|no" etc. work at all.
Keywords: testcase
Summary: Dynamic changing of SCROLL attribute → Dynamic changing of SCROLLING attribute
Whiteboard: [DONTTEST]
I think this is the same thing. When using Mozilla to view the helpfiles of FlashMX or Director, the contents section [which dynamically opens and closes] is in a frame with scroll=yes. But if the info isn't large enough to require a scrollbar there's just this black box that sits at the top.
The main problem here is that overflow changes trigger reframe (NOT in the HTML frame sense) and that the frame constructor (again, not in the HTML frame sense) has no idea how to handle subdocument frames, really.
Assignee: john → nobody
QA Contact: amar → layout.html-frames
Flags: wanted1.9.2?
Flags: wanted1.9.2?
Flags: wanted1.9.2-
Flags: blocking1.9.2-
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
Severity: normal → S3

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.

Please simplify your test into a reduced testcase and file a new bug.

Assignee: nobody → rjesup
Status: NEW → ASSIGNED

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.

(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.)

Pushed by rjesup@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4bde0ccd695b https://hg.mozilla.org/integration/autoland/rev/32c2abd06903 Add a WPT reftest for changing an iframe's scrolling attribute from yes to no. r=layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED

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

QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: