Make visualViewport always use frame's layout viewport
VisualViewport:pageLeft and pageTop returns the visual viewport's offset from the document origin. This means it's a combination of the layout viewport's offset and the visualViewport's offset within the layout viewport. Currently, this uses the effective root scroller as the layout viewport. However, this can be used to leak information through a cross origin iframe and will break down for OOPIFs. The sensible thing to do here is to redefine these values to always use the original layout viewport. Bug: 505516 Change-Id: I616d497cc6f1ebe003ff48701da3d6691dc38326 Reviewed-on: https://chromium-review.googlesource.com/806479Reviewed-by:Dave Tapuska <dtapuska@chromium.org> Commit-Queue: David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#524072}
Showing
Please register or sign in to comment