<?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>209672</bug_id>
          
          <creation_ts>2020-03-27 12:07:19 -0700</creation_ts>
          <short_desc>[ Mac wk2 ] ASSERTION FAILED: m_messageEventCount @ WebCore::ServiceWorkerThread::finishedFiringMessageEvent()</short_desc>
          <delta_ts>2020-06-17 05:18:20 -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>Service Workers</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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="Jason Lawrence">Lawrence.j</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1634935</commentid>
    <comment_count>0</comment_count>
    <who name="Jason Lawrence">Lawrence.j</who>
    <bug_when>2020-03-27 12:07:19 -0700</bug_when>
    <thetext>http/wpt/service-workers/service-worker-spinning-fetch.https.html

Description:
This test is flaky failing and crashing on Mac wk2. The flaky failures and crashes appear throughout the visible history, but are rather light in some areas.

History:
https://results.webkit.org/?suite=layout-tests&amp;test=http%2Fwpt%2Fservice-workers%2Fservice-worker-spinning-fetch.https.html&amp;platform=mac&amp;limit=50000

Diff:
--- /Volumes/Data/slave/mojave-release-tests-wk2/build/layout-test-results/http/wpt/service-workers/service-worker-spinning-fetch.https-expected.txt
+++ /Volumes/Data/slave/mojave-release-tests-wk2/build/layout-test-results/http/wpt/service-workers/service-worker-spinning-fetch.https-actual.txt
@@ -1,5 +1,5 @@
 
 
 PASS Spin in fetch 
-PASS Spin after fetch 
+FAIL Spin after fetch promise_test: Unhandled rejection with value: &quot;service worker is still running&quot;
 


stderr:
ASSERTION FAILED: m_messageEventCount
./workers/service/context/ServiceWorkerThread.cpp(296) : void WebCore::ServiceWorkerThread::finishedFiringMessageEvent()
1   0x781b987b9 WTFCrash
2   0x76505744b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x76990f3cc WebCore::ServiceWorkerThread::finishedFiringMessageEvent()
4   0x769946000 WebCore::ServiceWorkerThread::queueTaskToPostMessage(WebCore::MessageWithMessagePorts&amp;&amp;, WTF::Variant&lt;WebCore::ServiceWorkerData, WebCore::ServiceWorkerClientData&gt;&amp;&amp;)::$_23::operator()()::&apos;lambda&apos;()::operator()() const
5   0x769945f89 WTF::Detail::CallableWrapper&lt;WebCore::ServiceWorkerThread::queueTaskToPostMessage(WebCore::MessageWithMessagePorts&amp;&amp;, WTF::Variant&lt;WebCore::ServiceWorkerData, WebCore::ServiceWorkerClientData&gt;&amp;&amp;)::$_23::operator()()::&apos;lambda&apos;(), void&gt;::call()
6   0x781bc316a WTF::Function&lt;void ()&gt;::operator()() const
7   0x781c0267b WTF::dispatchFunctionsFromMainThread()
8   0x781c05775 -[JSWTFMainThreadCaller call]
9   0x7fff43ea1742 __NSThreadPerformPerform
10  0x7fff41bc6683 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
11  0x7fff41bc6629 __CFRunLoopDoSource0
12  0x7fff41ba9feb __CFRunLoopDoSources0
13  0x7fff41ba95b5 __CFRunLoopRun
14  0x7fff41ba8ebe CFRunLoopRunSpecific
15  0x7fff43e0d7df -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
16  0x7fff43e0d6b4 -[NSRunLoop(NSRunLoop) run]
17  0x7fff6dd38077 _xpc_objc_main
18  0x7fff6dd37b79 _xpc_copy_xpcservice_dictionary
19  0x7588a5958 WebKit::XPCServiceMain(int, char const**)
20  0x759c1aa4b WKXPCServiceMain
21  0x108c58ea2 main
22  0x7fff6daff3d5 start
23  0x1
LEAK: 1 WebPageProxy
LEAK: 1 WebPage
LEAK: 2 WebFrame
LEAK: 9 RenderObject
LEAK: 12 BidiRun
LEAK: 1 Page
LEAK: 2 Frame
LEAK: 20 CachedResource
LEAK: 29 WebCoreNode</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1634936</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-03-27 12:07:43 -0700</bug_when>
    <thetext>&lt;rdar://problem/60978663&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1634942</commentid>
    <comment_count>2</comment_count>
    <who name="Jason Lawrence">Lawrence.j</who>
    <bug_when>2020-03-27 12:12:39 -0700</bug_when>
    <thetext>I have marked this test as failing and crashing while this issue is investigated.
https://trac.webkit.org/changeset/259132/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1634945</commentid>
    <comment_count>3</comment_count>
    <who name="Jason Lawrence">Lawrence.j</who>
    <bug_when>2020-03-27 12:16:27 -0700</bug_when>
    <thetext>I can reproduce the failures with r259121 and the command below.
run-webkit-tests --iterations 1000 --force -f --exit-after-n-failures 3 http/wpt/service-workers/service-worker-spinning-fetch.https.html

[75/1000] http/wpt/service-workers/service-worker-spinning-fetch.https.html failed unexpectedly (text diff)
[202/1000] http/wpt/service-workers/service-worker-spinning-fetch.https.html failed unexpectedly (text diff)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1663442</commentid>
    <comment_count>4</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2020-06-17 05:18:20 -0700</bug_when>
    <thetext>Reverted test expectation in https://trac.webkit.org/changeset/262409</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>