Closed
Bug 988991
Opened 11 years ago
Closed 11 years ago
Able to pan an iframe that shouldn't be pannable
Categories
(Firefox for Android Graveyard :: Toolbar, defect)
Tracking
(firefox28 affected, firefox29 affected, firefox30 affected, firefox31 affected)
RESOLVED
DUPLICATE
of bug 953239
People
(Reporter: kats, Assigned: kats)
Details
Attachments
(1 file, 1 obsolete file)
217 bytes,
text/html
|
Details |
STR:
1. Load the attached testcase (stolen from [1])
2. Pan the youtube thingy (works better when you pan on the left side of the black rect rather than the right side)
Expected:
Things shouldn't pan
Actual:
The iframe seems to pan and glitch, with the play icon moving up but also flashing in various other places.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=943206#c12
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Urgh, mixed-content blocking.
Attachment #8397992 -
Attachment is obsolete: true
Assignee | ||
Comment 3•11 years ago
|
||
The iframe has height="510" but layout is also reporting that the iframe has scrollTopMax 510, so Fennec allows panning it. Not sure why scrollTopMax is coming back as 510.
Assignee | ||
Comment 4•11 years ago
|
||
ScrollFrameHelper::GetScrolledRect() is returning the extra-tall rect. That in turn seems to be getting it from mScrolledFrame->GetScrollableOverflowRect().
Assignee | ||
Comment 5•11 years ago
|
||
Also note that this is reproducible even if you get the click-to-play block on the iframe; just pan the click-to-play gray background and it will scroll.
Assignee | ||
Updated•11 years ago
|
Component: Graphics, Panning and Zooming → Layout: HTML Frames
Product: Firefox for Android → Core
Assignee | ||
Comment 6•11 years ago
|
||
So it seems that even on Mac desktop, the iframe's body has a scrollTopMax equal to the height of the iframe. The difference is that the desktop browser respects the overflow:hidden that is also on the body, and so doesn't provide any mechanism for the user to scroll the frame. On Fennec we don't respect the overflow:hidden (there are existing bugs on file for this) and so we allow scrolling.
However I think this is still an underlying layout bug that just so happens to be more easily exposed on Fennec. You can see it on Mac desktop using the scratchpad in the browser chrome environment and inspecting the properties of the iframe.
Also interesting is that although the scrollTopMax of the iframe body is nonzero, the scrollLeftMax is not.
Assignee | ||
Comment 7•11 years ago
|
||
.. and it turns out that the embedded iframe actually has a second div that is abs-positioned out of sight but with a height that matches the height of the iframe. So layout is probably doing the right thing here, but we just need to support overflow:hidden better on subframes in Fennec.
Sorry for the bugspam/churn in Layout.
Component: Layout: HTML Frames → Graphics, Panning and Zooming
Product: Core → Firefox for Android
Assignee | ||
Comment 8•11 years ago
|
||
Just to bring this back full circle, I'm going to dupe it to the original bug that dholbert filed on Fennec for embedded youtube things being pannable, since this is not really a general problem with iframes and seems to be pretty limited in scope to iframes that are overflow:hidden.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•