Currently service worker process is a web process. In the future, we might want it to have a dedicated type. In the meantime, it should not be selected to open WebView on it
Created attachment 324256 [details] Patch
Comment on attachment 324256 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=324256&action=review r=me with comments. > Source/WebKit/UIProcess/WebProcessPool.cpp:940 > + Vector<std::reference_wrapper<WebProcessProxy>> processes; I think processes is too generic, how about reusableProcesses ? > Source/WebKit/UIProcess/WebProcessPool.cpp:944 > + if (isMatchingStore && (process.get() != m_workerContextProcess)) You're going to need to protect the second check behind a #if ENABLE(SERVICE_WORKER)
Created attachment 324271 [details] Patch
Comment on attachment 324271 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=324271&action=review > Source/WebKit/UIProcess/WebProcessPool.cpp:940 > + WebProcessProxy* reusableProcess = nullptr; I would call this processToReuse. LGTM otherwise.
Created attachment 324274 [details] Patch
The commit-queue encountered the following flaky tests while processing attachment 324274 [details]: The commit-queue is continuing to process your patch.
The commit-queue encountered the following flaky tests while processing attachment 324274 [details]: http/tests/security/cross-origin-xsl-BLOCKED.html bug 51054 (authors: abarth@webkit.org, jochen@chromium.org, and rniwa@webkit.org) The commit-queue is continuing to process your patch.
Comment on attachment 324274 [details] Patch Clearing flags on attachment: 324274 Committed r223713: <https://trac.webkit.org/changeset/223713>
All reviewed patches have been landed. Closing bug.
Comment on attachment 324274 [details] Patch Is it possible to write a test for this change?
(In reply to Daniel Bates from comment #10) > Comment on attachment 324274 [details] > Patch > > Is it possible to write a test for this change? This is a crash fix which was split out of Bug 178475. When Bug 178475 lands, if API tests and layout tests do not crash, then this patch works as intended.
<rdar://problem/35568673>