Summary: | IFrame is resized incorrectly on orientation change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dima Voytenko <dvoytenko> | ||||||||
Component: | Frames | Assignee: | Frédéric Wang (:fredw) <fred.wang> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | fred.wang, simon.fraser, tonikitoo, webkit-bug-importer, zalan | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | Safari 9 | ||||||||||
Hardware: | iPhone / iPad | ||||||||||
OS: | iOS 9.3 | ||||||||||
Attachments: |
|
Description
Dima Voytenko
2016-03-08 15:00:12 PST
Created attachment 300208 [details]
testcase
Created attachment 300209 [details]
testcase
Testing with the simulator, the bug seems to be fixed on trunk (I can reproduce it with iOS 10.0 though). Created attachment 334041 [details]
Patch
Comment on attachment 334041 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=334041&action=review r+ w/ nits > LayoutTests/fast/events/ios/rotation/resize-iframe-after-orientation-change.html:26 > + uiController.simulateRotation('${orientation}', function() { let use either single or double quote throughout the test. > LayoutTests/fast/events/ios/rotation/resize-iframe-after-orientation-change.html:43 > + await rotateDevice('portrait'); > + var output = document.getElementById("output"); > + var outer = document.getElementById("outer"); > + shouldBe('document.getElementById("frame").scrollWidth', 'outer.scrollWidth'); > + shouldBe('document.getElementById("frame").contentDocument.getElementById("inner").scrollWidth', 'outer.scrollWidth'); ditto, unless where the difference makes sense. Committed r228692: <https://trac.webkit.org/changeset/228692> |