Bug 231269

Summary: REGRESSION(iOS 15): fast/events/ios/rotation/safari-like-rotation.html is failing
Product: WebKit Reporter: ayumi_kojima
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: simon.fraser, thorton, webkit-bot-watchers-bugzilla, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=231264
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:54:42 PDT
fast/events/ios/rotation/safari-like-rotation.html

Is failing on iOS 15.

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

Result page: https://build.webkit.org/results/Apple-iOS-15-Simulator-Release-WK2-Tests/r283553%20(65)/results.html

Diff:

--- /Volumes/Data/worker/ios-simulator-15-release-tests-wk2/build/layout-test-results/fast/events/ios/rotation/safari-like-rotation-expected.txt
+++ /Volumes/Data/worker/ios-simulator-15-release-tests-wk2/build/layout-test-results/fast/events/ios/rotation/safari-like-rotation-actual.txt
@@ -1,11 +1,23 @@
 Before rotation
 PASS window.innerWidth is 320
 PASS window.innerHeight is 548
+In orientationchange event handler:
+FAIL window.innerWidth should be 568. Was 600.
+FAIL window.innerHeight should be 320. Was 800.
+
+In resize event handler:
+FAIL window.innerWidth should be 568. Was 600.
+FAIL window.innerHeight should be 320. Was 800.
+
 In resize event handler:
 PASS window.innerWidth is 568
 PASS window.innerHeight is 320
 
-In orientationchange event handler:
+In resize event handler:
+FAIL window.innerWidth should be 568. Was 600.
+FAIL window.innerHeight should be 320. Was 800.
+
+In resize event handler:
 PASS window.innerWidth is 568
 PASS window.innerHeight is 320
Comment 1 Radar WebKit Bug Importer 2021-10-05 16:54:59 PDT
<rdar://problem/83911162>
Comment 2 ayumi_kojima 2021-10-05 16:55:35 PDT
I believe the test started failing on iOS 15 because it was passing on iOS 14 when I looked at the history earlier.
Comment 3 ayumi_kojima 2021-10-06 08:31:45 PDT
Marked expectations https://trac.webkit.org/changeset/283621/webkit
Comment 4 ayumi_kojima 2021-10-06 11:09:02 PDT
I was able to reproduce the failure locally on iOS 15 sim (iPhone SE 2nd generation) using run-webkit-tests --force --ios-simulator fast/events/ios/rotation/safari-like-rotation.html

But the diff I got was different from the test run.

Diff:

--- /Volumes/Data/Builds/ios/buildToTest/layout-test-results/fast/events/ios/rotation/safari-like-rotation-expected.txt
+++ /Volumes/Data/Builds/ios/buildToTest/layout-test-results/fast/events/ios/rotation/safari-like-rotation-actual.txt
@@ -1,15 +1,15 @@
 Before rotation
-PASS window.innerWidth is 320
-PASS window.innerHeight is 548
+FAIL window.innerWidth should be 320. Was 375.
+FAIL window.innerHeight should be 548. Was 647.
+In orientationchange event handler:
+FAIL window.innerWidth should be 568. Was 667.
+FAIL window.innerHeight should be 320. Was 375.
+
 In resize event handler:
-PASS window.innerWidth is 568
-PASS window.innerHeight is 320
-
-In orientationchange event handler:
-PASS window.innerWidth is 568
-PASS window.innerHeight is 320
+FAIL window.innerWidth should be 568. Was 667.
+FAIL window.innerHeight should be 320. Was 375.
 
 After rotation
-PASS window.innerWidth is 568
-PASS window.innerHeight is 320
+FAIL window.innerWidth should be 568. Was 667.
+FAIL window.innerHeight should be 320. Was 375.
 Rotation test.
Comment 5 ayumi_kojima 2021-10-06 11:09:31 PDT
The test also failed with the oldest revision available to test (r265703).
Comment 6 Alexey Proskuryakov 2021-10-06 17:33:31 PDT
> I believe the test started failing on iOS 15 because it was passing on iOS 14 when I looked at the history earlier.

Updating the title accordingly.