Bug 231264

Summary: [iOS] fast/events/ios/rotation/layout-viewport-during-rotation.html is constantly failing.
Product: WebKit Reporter: ayumi_kojima
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: a_protyasha, ben_schwartz, sam, simon.fraser, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=231269
https://bugs.webkit.org/show_bug.cgi?id=231266
https://bugs.webkit.org/show_bug.cgi?id=231315

Description ayumi_kojima 2021-10-05 16:21:31 PDT
fast/events/ios/rotation/layout-viewport-during-rotation.html

Is failing on iOS 15 iPhone.

History: https://results.webkit.org/?suite=layout-tests&test=fast%2Fevents%2Fios%2Frotation%2Flayout-viewport-during-rotation.html

Diff:

--- /Volumes/Data/worker/ios-simulator-15-debug-tests-wk2/build/layout-test-results/fast/events/ios/rotation/layout-viewport-during-rotation-expected.txt
+++ /Volumes/Data/worker/ios-simulator-15-debug-tests-wk2/build/layout-test-results/fast/events/ios/rotation/layout-viewport-during-rotation-actual.txt
@@ -3,12 +3,12 @@
 visualViewport: 0, 0 - 320 x 548
 client rect of fixed object:0, 0 - 320 x 548
 
-In orientationchange event handler:
+In resize event handler:
 layoutViewport: 0, 0 - 320 x 548
-visualViewport: 0, 0 - 320 x 548
+visualViewport: 0, 0 - 320 x 320
 client rect of fixed object:0, 0 - 320 x 548
 
-In resize event handler:
+In orientationchange event handler:
 layoutViewport: 0, 0 - 568 x 320
 visualViewport: 0, 0 - 568 x 320
 client rect of fixed object:0, 0 - 568 x 320

I believe the test was passing on iOS 14 when I looked at the history earlier and started failing on iOS 15.
Comment 1 Radar WebKit Bug Importer 2021-10-05 16:21:53 PDT
<rdar://problem/83909591>
Comment 2 ayumi_kojima 2021-10-05 16:30:24 PDT
Marked test expectations https://trac.webkit.org/changeset/283584/webkit
Comment 3 ayumi_kojima 2021-10-06 14:52:52 PDT
I was able to reproduce the failure locally on iOS 15 sim iPhone SE 2nd generation, but with a different diff:
--- /Volumes/Data/Builds/ios/debugToTest/layout-test-results/fast/events/ios/rotation/layout-viewport-during-rotation-expected.txt
+++ /Volumes/Data/Builds/ios/debugToTest/layout-test-results/fast/events/ios/rotation/layout-viewport-during-rotation-actual.txt
@@ -1,20 +1,20 @@
 Before rotation
-layoutViewport: 0, 0 - 320 x 548
-visualViewport: 0, 0 - 320 x 548
-client rect of fixed object:0, 0 - 320 x 548
+layoutViewport: 0, 0 - 375 x 647
+visualViewport: 0, 0 - 375 x 647
+client rect of fixed object:0, 0 - 375 x 647
+
+In resize event handler:
+layoutViewport: 0, 0 - 375 x 647
+visualViewport: 0, 0 - 375 x 375
+client rect of fixed object:0, 0 - 375 x 647
 
 In orientationchange event handler:
-layoutViewport: 0, 0 - 320 x 548
-visualViewport: 0, 0 - 320 x 548
-client rect of fixed object:0, 0 - 320 x 548
-
-In resize event handler:
-layoutViewport: 0, 0 - 568 x 320
-visualViewport: 0, 0 - 568 x 320
-client rect of fixed object:0, 0 - 568 x 320
+layoutViewport: 0, 0 - 667 x 375
+visualViewport: 0, 0 - 667 x 375
+client rect of fixed object:0, 0 - 667 x 375
 
 After rotation
-layoutViewport: 0, 0 - 568 x 320
-visualViewport: 0, 0 - 568 x 320
-client rect of fixed object:0, 0 - 568 x 320
+layoutViewport: 0, 0 - 667 x 375
+visualViewport: 0, 0 - 667 x 375
+client rect of fixed object:0, 0 - 667 x 375
Comment 4 Ben Schwartz 2024-03-21 21:48:33 PDT
Removed "REGRESSION (iOS 15)" from the title, as this test was constantly failing before iOS 15.
Comment 5 Abrar Rahman Protyasha 2024-03-22 03:26:03 PDT
These are the results I currently get. Some of these make sense simply because the dimensions reported now correspond to iPhone 12 instead of iPhone SE (1st gen).

The only result that seems wrong is the layoutViewport in the resize event handler. Both dimensions are height-like.

```
Before rotation
layoutViewport: 0, 0 - 390 x 797
visualViewport: 0, 0 - 390 x 797
client rect of fixed object:0, 0 - 390 x 797

In resize event handler:
layoutViewport: 0, 0 - 844 x 797
visualViewport: 0, 0 - 844 x 390
client rect of fixed object:0, 0 - 844 x 797

In orientationchange event handler:
layoutViewport: 0, 0 - 844 x 390
visualViewport: 0, 0 - 844 x 390
client rect of fixed object:0, 0 - 844 x 390

After rotation
layoutViewport: 0, 0 - 844 x 390
visualViewport: 0, 0 - 844 x 390
client rect of fixed object:0, 0 - 844 x 390

```
Comment 6 Ben Schwartz 2024-06-20 11:53:28 PDT
Reverse duping this to bug #275696 / rdar://130212796, as it includes more tests that appear to have the same issue.

*** This bug has been marked as a duplicate of bug 275696 ***