RESOLVED FIXED 204119
Take service worker assertions based on client processes assertion states
https://bugs.webkit.org/show_bug.cgi?id=204119
Summary Take service worker assertions based on client processes assertion states
youenn fablet
Reported 2019-11-12 09:57:57 PST
Take service worker assertions based on client processes assertion states
Attachments
Patch (25.17 KB, patch)
2019-11-12 10:04 PST, youenn fablet
no flags
Patch (25.32 KB, patch)
2019-11-12 11:46 PST, youenn fablet
no flags
Patch (25.32 KB, patch)
2019-11-12 15:17 PST, youenn fablet
no flags
Patch (25.50 KB, patch)
2019-11-12 17:43 PST, youenn fablet
no flags
Archive of layout-test-results from ews214 for win-future (14.34 MB, application/zip)
2019-11-13 04:53 PST, EWS Watchlist
no flags
Patch for landing (25.57 KB, patch)
2019-11-13 09:45 PST, youenn fablet
no flags
Patch for landing (25.66 KB, patch)
2019-11-13 10:15 PST, youenn fablet
no flags
youenn fablet
Comment 1 2019-11-12 10:04:45 PST
youenn fablet
Comment 2 2019-11-12 10:05:47 PST
youenn fablet
Comment 3 2019-11-12 11:46:16 PST
youenn fablet
Comment 4 2019-11-12 15:17:18 PST
youenn fablet
Comment 5 2019-11-12 17:43:48 PST
EWS Watchlist
Comment 6 2019-11-13 04:53:47 PST
Comment on attachment 383413 [details] Patch Attachment 383413 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/13246496 New failing tests: imported/blink/fast/events/panScroll-crash.html
EWS Watchlist
Comment 7 2019-11-13 04:53:49 PST
Created attachment 383449 [details] Archive of layout-test-results from ews214 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews214 Port: win-future Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
Chris Dumez
Comment 8 2019-11-13 08:14:56 PST
Comment on attachment 383413 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=383413&action=review > Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp:1239 > + serviceWorkerProcess->registerWebProcessToServiceWorkerProcess(*webProcess); Could this be named better? Maybe registerClientWebProcess() / unregisterClientWebProcess() ? > Source/WebKit/UIProcess/Network/NetworkProcessProxy.messages.in:65 > + RegisterWebProcessToServiceWorkerProcess(WebCore::ProcessIdentifier webProcessIdentifier, WebCore::ProcessIdentifier serviceWorkerProcessIdentifier) I think the naming could be better. Maybe RegisterServiceWorkerProcessClient() or RegisterServiceWorkerProcessClientWebProcess() > Source/WebKit/UIProcess/WebProcessPool.cpp:2051 > + callOnMainRunLoop([this, weakThis = makeWeakPtr(this)] { What's the benefit about doing this in the next run loop iteration? > Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:1667 > + waitUntilServiceWorkerProcessForegroundActivityState(webView.get(), false); to be safe? > Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:1669 > + waitUntilServiceWorkerProcessForegroundActivityState(webView.get(), true); waitUntilServiceWorkerProcessBackgroundActivityState(webView.get(), false); to be safe?
youenn fablet
Comment 9 2019-11-13 08:47:07 PST
Comment on attachment 383413 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=383413&action=review >> Source/WebKit/UIProcess/WebProcessPool.cpp:2051 >> + callOnMainRunLoop([this, weakThis = makeWeakPtr(this)] { > > What's the benefit about doing this in the next run loop iteration? I tried to explain this in the comment above. WebProcessPool::updateProcessAssertions gets called at creation of the token, but the token is not yet assigned to WebProcessProxy. If calling updateServiceWorkerProcessAssertion(), the WebProcessProxy will be seen as not holding an assertion although it will be just after.
youenn fablet
Comment 10 2019-11-13 09:28:11 PST
Let's go with registerServiceWorkerClientProcess/unregisterServiceWorkerClientProcess
youenn fablet
Comment 11 2019-11-13 09:45:44 PST
Created attachment 383463 [details] Patch for landing
youenn fablet
Comment 12 2019-11-13 10:15:54 PST
Created attachment 383466 [details] Patch for landing
WebKit Commit Bot
Comment 13 2019-11-13 11:15:20 PST
Comment on attachment 383466 [details] Patch for landing Clearing flags on attachment: 383466 Committed r252418: <https://trac.webkit.org/changeset/252418>
WebKit Commit Bot
Comment 14 2019-11-13 11:15:22 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.