Bug 231264 - [iOS] fast/events/ios/rotation/layout-viewport-during-rotation.html is constantly failing.
Summary: [iOS] fast/events/ios/rotation/layout-viewport-during-rotation.html is consta...
Status: RESOLVED DUPLICATE of bug 275696
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-05 16:21 PDT by ayumi_kojima
Modified: 2024-06-20 11:53 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***