Skip to content

Commit

Permalink
Ensure there is a Network process after launching the WebContent process
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=238080
<rdar://88933565>

Reviewed by Chris Dumez.

After the WebContent process has finished launching, ensure there is a Network process
which will provide the WebContent process with the Launch Services database.

* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::didFinishLaunching):



Canonical link: https://commits.webkit.org/248713@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@291620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
pvollan committed Mar 22, 2022
1 parent 0ad57da commit 4e23ed2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Source/WebKit/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
2022-03-22 Per Arne Vollan <pvollan@apple.com>

Ensure there is a Network process after launching the WebContent process
https://bugs.webkit.org/show_bug.cgi?id=238080
<rdar://88933565>

Reviewed by Chris Dumez.

After the WebContent process has finished launching, ensure there is a Network process
which will provide the WebContent process with the Launch Services database.

* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::didFinishLaunching):

2022-03-22 Wenson Hsieh <wenson_hsieh@apple.com>

-[WKWebView _spellCheckerDocumentTag] is inconsistent with the document tag passed into NSSpellChecker
Expand Down
7 changes: 7 additions & 0 deletions Source/WebKit/UIProcess/WebProcessProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,13 @@ void WebProcessProxy::didFinishLaunching(ProcessLauncher* launcher, IPC::Connect
#if PLATFORM(COCOA)
if (auto networkProcess = NetworkProcessProxy::defaultNetworkProcess())
networkProcess->sendXPCEndpointToProcess(*this);
else {
RunLoop::main().dispatch([weakThis = WeakPtr { *this }] {
if (!weakThis)
return;
NetworkProcessProxy::ensureDefaultNetworkProcess()->sendXPCEndpointToProcess(*weakThis);
});
}
#endif

RELEASE_ASSERT(!m_webConnection);
Expand Down

0 comments on commit 4e23ed2

Please sign in to comment.