<?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>255631</bug_id>
          
          <creation_ts>2023-04-18 16:36:34 -0700</creation_ts>
          <short_desc>REGRESSION(262632@main?): [ iOS ] 2X imported/w3c/web-platform-tests/screen-orientation (layout-tests) are consistent text failures</short_desc>
          <delta_ts>2023-04-25 09:50:45 -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>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=255931</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 name="Robert Jenner">jenner</reporter>
          <assigned_to name="Marcos Caceres">marcosc</assigned_to>
          <cc>dino</cc>
    
    <cc>marcosc</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>1949606</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-04-18 16:36:34 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/screen-orientation/nested-documents.html
imported/w3c/web-platform-tests/screen-orientation/unlock.html

are both consistent text failures on iOS. 


Note, they are not constant failures, but they appear to fail more than they pass. Which is why I&apos;m not off the bat calling these flaky. 


HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fscreen-orientation%2Fnested-documents.html&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fscreen-orientation%2Funlock.html

These tests both appear to have the same history as well. They started failing at the same. 



DIFF URLS:
https://build.webkit.org/results/Apple-iOS-16-Simulator-Debug-WK2-Tests/263081@main%20(966)/imported/w3c/web-platform-tests/screen-orientation/nested-documents-pretty-diff.html
https://build.webkit.org/results/Apple-iOS-16-Simulator-Debug-WK2-Tests/263081@main%20(966)/imported/w3c/web-platform-tests/screen-orientation/unlock-pretty-diff.html

TEXT DIFF for &quot;imported/w3c/web-platform-tests/screen-orientation/nested-documents.html&quot;:

+CONSOLE MESSAGE: Unhandled Promise Rejection: SecurityError: Locking the screen orientation is only allowed when in fullscreen
 
 
 Harness Error (FAIL), message = Test named &apos;Requesting orientation lock from one document cancels the lock request from another document&apos; specified 1 &apos;cleanup&apos; function, and 1 failed.
 
-FAIL Requesting orientation lock from one document cancels the lock request from another document promise_test: Unhandled rejection with value: object &quot;TypeError: Type error&quot;
+FAIL Requesting orientation lock from one document cancels the lock request from another document assert_unreached: Should have rejected: undefined Reached unreachable code
 NOTRUN The orientation lock from one document affects lock requests from other documents




TEXT DIFF for &quot;imported/w3c/web-platform-tests/screen-orientation/unlock.html&quot;:
-Harness Error (FAIL), message = Test named &apos;unlock() aborts a pending lock request across documents&apos; specified 1 &apos;cleanup&apos; function, and 1 failed.
 
 PASS unlock() doesn&apos;t throw when there is no lock
 PASS unlock() returns a void value
 PASS unlock() doesn&apos;t throw when there is no lock with fullscreen
 PASS unlock() aborts a pending lock request
-FAIL unlock() aborts a pending lock request across documents promise_test: Unhandled rejection with value: object &quot;TypeError: Type error&quot;
+FAIL unlock() aborts a pending lock request across documents promise_rejects_dom: function &quot;function () { throw e }&quot; threw object &quot;SecurityError: Locking the screen orientation is only allowed when in fullscreen&quot; that is not a DOMException AbortError: property &quot;code&quot; is equal to 18, expected 20</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1949607</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-18 16:37:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/108231120&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1949621</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-04-18 18:08:02 -0700</bug_when>
    <thetext>I was able to reproduce these failures at iOS 16 Release ToT running as follows:

run-webkit-tests --iOS-simulator &lt;test_goes_here&gt; --iterations 10


It will reproduce almost every single time. Adding 10 iterations guarantees successful reproduction every time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1949630</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-04-18 18:30:22 -0700</bug_when>
    <thetext>I&apos;m uncertain what the regression point is for this particular bug. 


It appears that these tests were mostly skipped prior to 262632@main because the history indicates that&apos;s the first time that these tests ran completely on all iOS queues for quite some time. Interestingly it was ONLY running on iOS 16 Simulator wk2 Release on iPhone 12 with x86_64 for sometime, and it was flaky failing. But it was less consistent. 


They stopped running on that queue, and started running on all other iOS queues on 262632@main. However, I don&apos;t see any test expectations added or removed at that commit, or any of the 15 subsequent commits before it. So It&apos;s a mystery to me. In any case I&apos;ve marked expectations for these tests below.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1949632</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-18 18:41:54 -0700</bug_when>
    <thetext>Test gardening commit 263112@main (d289e0001d2a): &lt;https://commits.webkit.org/263112@main&gt;

Reviewed commits have been landed. Closing PR #12897 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1949723</commentid>
    <comment_count>5</comment_count>
    <who name="Marcos Caceres">marcosc</who>
    <bug_when>2023-04-19 06:43:36 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/12909</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950280</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-21 01:58:14 -0700</bug_when>
    <thetext>Committed 263224@main (40235be133be): &lt;https://commits.webkit.org/263224@main&gt;

Reviewed commits have been landed. Closing PR #12909 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>