<?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>240579</bug_id>
          
          <creation_ts>2022-05-18 08:30:18 -0700</creation_ts>
          <short_desc>PROGRESSION (r294272): Correction to guard in Platform file caused multiple tests failures</short_desc>
          <delta_ts>2022-05-20 13:21:40 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=240469</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="Karl Rackler">rackler</reporter>
          <assigned_to name="Karl Rackler">rackler</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>jenner</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>1870009</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2022-05-18 08:30:18 -0700</bug_when>
    <thetext>Description:
http/tests/workers/service/shownotification-allowed-document.html
http/tests/workers/service/shownotification-allowed.html
http/tests/workers/service/shownotification-denied.html
http/tests/workers/service/shownotification-invalid-data.html

The first failure I saw on the dashboard was on 5/16/2022 at r294279. r294272 changed !defined(ENABLE_NOTIFICATIONS) from (PLATFORM(MAC) || PLATFORM(IOS)) to (PLATFORM(MAC) only, which seems to have started the issue.

REPRODUCTION STEPS
I can reproduce this on r294280, but unable to reproduce it on 294264 or earlier.  I cannot isolate and repro down to the commit that introduced the change due to a lack of commits to test with in the 294264-294280 range.   

Command: 
run-webkit-tests --root 294280 --ios-simulator --exit-after-n-failures 1 --exit-after-n-crashes-or-timeouts 1 --iterations 50 --no-retry http/tests/workers/service/shownotification-invalid-data.html

Result: 
Regressions: Unexpected text-only failures (1)
  http/tests/workers/service/shownotification-invalid-data.html [ Failure ]

History:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=http%2Ftests%2Fworkers%2Fservice%2Fshownotification-allowed-document.html&amp;test=http%2Ftests%2Fworkers%2Fservice%2Fshownotification-allowed.html&amp;test=http%2Ftests%2Fworkers%2Fservice%2Fshownotification-denied.html&amp;test=http%2Ftests%2Fworkers%2Fservice%2Fshownotification-invalid-data.html&amp;platform=ios&amp;limit=50000

Diff:
http/tests/workers/service/shownotification-allowed-document.html
https://build.webkit.org/results/Apple-iPadOS-15-Simulator-Release-WK2-Tests/250623@main%20(1751)/http/tests/workers/service/shownotification-allowed-document-diff.txt

http/tests/workers/service/shownotification-allowed.html
https://build.webkit.org/results/Apple-iPadOS-15-Simulator-Release-WK2-Tests/250623@main%20(1751)/http/tests/workers/service/shownotification-allowed-diff.txt

http/tests/workers/service/shownotification-denied.html
https://build.webkit.org/results/Apple-iPadOS-15-Simulator-Release-WK2-Tests/250623@main%20(1751)/http/tests/workers/service/shownotification-denied-diff.txt

http/tests/workers/service/shownotification-invalid-data.html 
https://build.webkit.org/results/Apple-iPadOS-15-Simulator-Release-WK2-Tests/250623@main%20(1751)/http/tests/workers/service/shownotification-invalid-data-diff.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870010</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-18 08:30:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/93504716&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870011</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2022-05-18 08:40:55 -0700</bug_when>
    <thetext>I have marked this test as a consistent failure while this issue is investigated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870013</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2022-05-18 08:44:38 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/724</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870015</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-18 08:50:15 -0700</bug_when>
    <thetext>Test gardening commit r294398 (250692@main): &lt;https://commits.webkit.org/250692@main&gt;

Reviewed commits have been landed. Closing PR #724 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870036</commentid>
    <comment_count>5</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2022-05-18 09:42:34 -0700</bug_when>
    <thetext>These tests are also affected by r294272, causing them to consistently timeout.

Description:
http/tests/workers/service/getnotifications-stop.html
http/tests/workers/service/getnotifications.html

History:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;test=http%2Ftests%2Fworkers%2Fservice%2Fgetnotifications-stop.html&amp;test=http%2Ftests%2Fworkers%2Fservice%2Fgetnotifications.html&amp;limit=50000

Diff:
http/tests/workers/service/getnotifications-stop.html
--- /Volumes/Data/worker/Apple-iPadOS-15-Simulator-Release-WK2-Tests/build/layout-test-results/http/tests/workers/service/getnotifications-stop-expected.txt
+++ /Volumes/Data/worker/Apple-iPadOS-15-Simulator-Release-WK2-Tests/build/layout-test-results/http/tests/workers/service/getnotifications-stop-actual.txt
@@ -1,57 +1,9 @@
+FAIL: Timed out waiting for notifyDone to be called
+
 This tests that persistent notifications created by a service worker are visible to getNotifications() even after Notification objects are stopped
 
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
 
 
-PASS Notification.permission is &quot;granted&quot;
-Got notifications
-There are 0 notifications
+FAIL Notification.permission should be granted. Threw exception ReferenceError: Can&apos;t find variable: Notification
 
-Notification was shown
-Notification was shown
-Notification was shown
-Got notifications
-There are 3 notifications
-Title: Hello
-Body: Body1
-Tag: tag-a
-Data: null
-Title: There
-Body: Body2
-Tag: tag-b
-Data: null
-Title: Buddy
-Body: Body3
-Tag: tag-b
-Data: Data3
-
-Got notifications
-There are 1 notifications
-Title: Hello
-Body: Body1
-Tag: tag-a
-Data: null
-
-Got notifications
-There are 2 notifications
-Title: There
-Body: Body2
-Tag: tag-b
-Data: null
-Title: Buddy
-Body: Body3
-Tag: tag-b
-Data: Data3
-
-Loading iframe
-Get notifications from iframe
-Remove iframes to stop notifications
-Retrieving notifications from page registration object - 3
-Notification: Hello / Body1 / tag-a / null
-Notification: There / Body2 / tag-b / null
-Notification: Buddy / Body3 / tag-b / Data3
-Retrieving notifications from page registration object - end
-PASS successfullyParsed is true
-
-TEST COMPLETE
-

http/tests/workers/service/getnotifications.html
--- /Volumes/Data/worker/Apple-iPadOS-15-Simulator-Release-WK2-Tests/build/layout-test-results/http/tests/workers/service/getnotifications-expected.txt
+++ /Volumes/Data/worker/Apple-iPadOS-15-Simulator-Release-WK2-Tests/build/layout-test-results/http/tests/workers/service/getnotifications-actual.txt
@@ -1,54 +1,9 @@
+FAIL: Timed out waiting for notifyDone to be called
+
 This tests that persistent notifications created by a service worker are visible to getNotifications()
 
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
 
 
-PASS Notification.permission is &quot;granted&quot;
-Got notifications
-There are 0 notifications
+FAIL Notification.permission should be granted. Threw exception ReferenceError: Can&apos;t find variable: Notification
 
-Notification was shown
-Notification was shown
-Notification was shown
-Got notifications
-There are 3 notifications
-Title: Hello
-Body: Body1
-Tag: tag-a
-Data: null
-Title: There
-Body: Body2
-Tag: tag-b
-Data: null
-Title: Buddy
-Body: Body3
-Tag: tag-b
-Data: Data3
-
-Got notifications
-There are 1 notifications
-Title: Hello
-Body: Body1
-Tag: tag-a
-Data: null
-
-Got notifications
-There are 2 notifications
-Title: There
-Body: Body2
-Tag: tag-b
-Data: null
-Title: Buddy
-Body: Body3
-Tag: tag-b
-Data: Data3
-
-Retrieving notifications from page registration object - 3
-Notification: Hello / Body1 / tag-a / null
-Notification: There / Body2 / tag-b / null
-Notification: Buddy / Body3 / tag-b / Data3
-Retrieving notifications from page registration object - end
-PASS successfullyParsed is true
-
-TEST COMPLETE
-

I have marked this test as a timeout while this issue is investigated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870039</commentid>
    <comment_count>6</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2022-05-18 09:53:35 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/731</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870042</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-18 09:56:16 -0700</bug_when>
    <thetext>Test gardening commit r294400 (250694@main): &lt;https://commits.webkit.org/250694@main&gt;

Reviewed commits have been landed. Closing PR #731 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870069</commentid>
    <comment_count>8</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-05-18 10:47:31 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/736</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870074</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-18 10:59:45 -0700</bug_when>
    <thetext>Test gardening commit r294406 (250700@main): &lt;https://commits.webkit.org/250700@main&gt;

Reviewed commits have been landed. Closing PR #736 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870081</commentid>
    <comment_count>10</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-05-18 11:35:41 -0700</bug_when>
    <thetext>I have disabled these tests for iOS as mentioned in this thread: 
https://a1391192.slack.com/archives/GK0ATJ6FJ/p1652893991995359

I believe that should resolve this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870162</commentid>
    <comment_count>11</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2022-05-18 14:57:35 -0700</bug_when>
    <thetext>This also affects the following: 

Description:
http/tests/push-api/subscribe-default-permissions-iframe-cross-origin.html
http/tests/push-api/subscribe-default-permissions-iframe-same-origin.html
http/tests/push-api/subscribe-default-permissions.html
http/tests/push-api/subscribe-deny-permissions-on-prompt.html
http/tests/push-api/subscribe-grant-permissions.html

History:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=http%2Ftests%2Fpush-api%2Fsubscribe-default-permissions-iframe-cross-origin.html&amp;test=http%2Ftests%2Fpush-api%2Fsubscribe-default-permissions-iframe-same-origin.html&amp;test=http%2Ftests%2Fpush-api%2Fsubscribe-default-permissions.html&amp;test=http%2Ftests%2Fpush-api%2Fsubscribe-deny-permissions-on-prompt.html&amp;test=http%2Ftests%2Fpush-api%2Fsubscribe-grant-permissions.html&amp;platform=ios&amp;limit=50000

Diff:
http/tests/push-api/subscribe-default-permissions-iframe-cross-origin.html
https://build.webkit.org/results/Apple-iPadOS-15-Simulator-Release-WK2-Tests/250623@main%20(1751)/http/tests/push-api/subscribe-default-permissions-iframe-cross-origin-diff.txt

http/tests/push-api/subscribe-default-permissions-iframe-same-origin.html
https://build.webkit.org/results/Apple-iPadOS-15-Simulator-Release-WK2-Tests/250623@main%20(1751)/http/tests/push-api/subscribe-default-permissions-iframe-same-origin-diff.txt

http/tests/push-api/subscribe-default-permissions.html
https://build.webkit.org/results/Apple-iPadOS-15-Simulator-Release-WK2-Tests/250623@main%20(1751)/http/tests/push-api/subscribe-default-permissions-diff.txt

http/tests/push-api/subscribe-deny-permissions-on-prompt.html
https://build.webkit.org/results/Apple-iPadOS-15-Simulator-Release-WK2-Tests/250623@main%20(1751)/http/tests/push-api/subscribe-deny-permissions-on-prompt-diff.txt

http/tests/push-api/subscribe-grant-permissions.html
https://build.webkit.org/results/Apple-iPadOS-15-Simulator-Release-WK2-Tests/250623@main%20(1751)/http/tests/push-api/subscribe-grant-permissions-diff.txt

Skipping tests affected in this bug for iOS per guidance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870168</commentid>
    <comment_count>12</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2022-05-18 15:10:11 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/749</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870176</commentid>
    <comment_count>13</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-18 15:17:32 -0700</bug_when>
    <thetext>Test gardening commit r294441 (250717@main): &lt;https://commits.webkit.org/250717@main&gt;

Reviewed commits have been landed. Closing PR #749 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870789</commentid>
    <comment_count>14</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2022-05-20 13:14:49 -0700</bug_when>
    <thetext>This also affects the following: 

Description:
http/wpt/push-api/pushEvent.any.serviceworker.html
http/wpt/push-api/pushManager.any.html
http/wpt/push-api/pushManager.any.serviceworker.html

History:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=http%2Fwpt%2Fpush-api%2FpushEvent.any.serviceworker.html&amp;test=http%2Fwpt%2Fpush-api%2FpushManager.any.html&amp;test=http%2Fwpt%2Fpush-api%2FpushManager.any.serviceworker.html&amp;platform=ios&amp;limit=50000

Diff:
https://build.webkit.org/results/Apple-iOS-15-Simulator-Release-WK2-Tests/250800@main%20(2672)/http/wpt/push-api/pushEvent.any.serviceworker-diff.txt

https://build.webkit.org/results/Apple-iOS-15-Simulator-Release-WK2-Tests/250800@main%20(2672)/http/wpt/push-api/pushManager.any-diff.txt
https://build.webkit.org/results/Apple-iOS-15-Simulator-Release-WK2-Tests/250800@main%20(2672)/http/wpt/push-api/pushManager.any.serviceworker-diff.txt

Per the guidance, skip these tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870792</commentid>
    <comment_count>15</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2022-05-20 13:18:27 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/849</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870795</commentid>
    <comment_count>16</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-20 13:21:40 -0700</bug_when>
    <thetext>Test gardening commit r294571 (250812@main): &lt;https://commits.webkit.org/250812@main&gt;

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

    </bug>

</bugzilla>