<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>231264</bug_id>
          
          <creation_ts>2021-10-05 16:21:31 -0700</creation_ts>
          <short_desc>[iOS] fast/events/ios/rotation/layout-viewport-during-rotation.html is constantly failing.</short_desc>
          <delta_ts>2024-06-20 11:53:28 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>275696</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=231269</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=231266</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=231315</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ayumi_kojima</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>a_protyasha</cc>
    
    <cc>ben_schwartz</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1800831</commentid>
    <comment_count>0</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-10-05 16:21:31 -0700</bug_when>
    <thetext>fast/events/ios/rotation/layout-viewport-during-rotation.html

Is failing on iOS 15 iPhone.

History: https://results.webkit.org/?suite=layout-tests&amp;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1800832</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-05 16:21:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/83909591&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1800839</commentid>
    <comment_count>2</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-10-05 16:30:24 -0700</bug_when>
    <thetext>Marked test expectations https://trac.webkit.org/changeset/283584/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1801362</commentid>
    <comment_count>3</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-10-06 14:52:52 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2023024</commentid>
    <comment_count>4</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2024-03-21 21:48:33 -0700</bug_when>
    <thetext>Removed &quot;REGRESSION (iOS 15)&quot; from the title, as this test was constantly failing before iOS 15.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2023073</commentid>
    <comment_count>5</comment_count>
    <who name="Abrar Rahman Protyasha">a_protyasha</who>
    <bug_when>2024-03-22 03:26:03 -0700</bug_when>
    <thetext>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

```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042272</commentid>
    <comment_count>6</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2024-06-20 11:53:28 -0700</bug_when>
    <thetext>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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>