Bug 24070

Summary: Changing "scrolling" attribute on iframe element already in DOM doesn't take effect
Product: WebKit Reporter: Tom Robinson <tom>
Component: ScrollingAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, jasneet, mattwoodrow, rniwa, simon.fraser, techrazy.yang, webkit-bug-importer, zwarich
Priority: P2 Keywords: GoodFirstBug, InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Reduction
none
First attempt to fix the bug
zwarich: review-
Reduction none

Tom Robinson
Reported 2009-02-20 19:47:47 PST
Changing "scrolling" attribute on iframe element already in DOM doesn't take effect. Works as expected in Firefox.
Attachments
Reduction (185 bytes, text/html)
2009-02-20 19:48 PST, Tom Robinson
no flags
First attempt to fix the bug (5.67 KB, patch)
2009-02-26 18:36 PST, Bo Yang
zwarich: review-
Reduction (297 bytes, text/html)
2022-08-19 21:14 PDT, Simon Fraser (smfr)
no flags
Tom Robinson
Comment 1 2009-02-20 19:48:21 PST
Created attachment 27847 [details] Reduction
Bo Yang
Comment 2 2009-02-20 20:51:40 PST
conform on Windows Safari.
Bo Yang
Comment 3 2009-02-26 18:36:05 PST
Created attachment 28060 [details] First attempt to fix the bug Add a new method in FrameView to change the scrollbar's state and a test case for this bug.
Cameron Zwarich (cpst)
Comment 4 2009-03-31 18:22:35 PDT
*** Bug 24972 has been marked as a duplicate of this bug. ***
Cameron Zwarich (cpst)
Comment 5 2009-03-31 18:42:48 PDT
Comment on attachment 28060 [details] First attempt to fix the bug + if (attached()) { Is there any need to check attached() here? Shouldn't checking contentFrame() be enough? + if (contentFrame() && contentFrame()->view()) { + FrameView* view = contentFrame()->view(); + view->changeScrollbarsState(m_scrolling != ScrollbarAlwaysOff); + } + } There is already a method on FrameView for setting the scrollbar state: void setCanHaveScrollbars(bool canScroll); You should use that instead of making your own. I'm r-'ing this patch, but I am glad that you are fixing this bug.
Ahmad Saleem
Comment 6 2022-08-10 17:26:46 PDT
I am able to reproduce this in Safari 15.6 on macOS using modified test case by changing HTTP to HTTPS in test case: Link - https://jsfiddle.net/fcjd6qr8/ Following are results across browsers: *** Firefox Nightly 105 *** Once iframe load, clicking "show scrollbars" load "scrollbar" in iframe *** Chrome Canary 106 *** Nothing loads and "show scrollbars" do nothing. *** Safari 15.6 on macOS 12.5 *** Nothing loads and "show scrollbars" do nothing. ________ I am not sure on web-spec but just wanted to share updated testing results. Thanks!
Radar WebKit Bug Importer
Comment 7 2022-08-19 20:43:34 PDT
Simon Fraser (smfr)
Comment 8 2022-08-19 21:14:58 PDT
Created attachment 461752 [details] Reduction
Simon Fraser (smfr)
Comment 9 2022-08-19 21:22:25 PDT
HTMLFrameElementBase::parseAttribute() needs to respond to "scrolling" attribute changes.
Matt Woodrow
Comment 10 2024-10-08 20:17:23 PDT
*** This bug has been marked as a duplicate of bug 281103 ***
Matt Woodrow
Comment 11 2024-10-09 15:31:15 PDT
I'll fix this as a separate task.
Matt Woodrow
Comment 12 2024-10-09 15:35:22 PDT
EWS
Comment 13 2024-10-09 21:02:07 PDT
Committed 284947@main (d98621968e3c): <https://commits.webkit.org/284947@main> Reviewed commits have been landed. Closing PR #34933 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.