Changeset 291620 in webkit


Ignore:
Timestamp:
Mar 22, 2022 8:30:27 AM (2 years ago)
Author:
pvollan@apple.com
Message:

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):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r291618 r291620  
     12022-03-22  Per Arne Vollan  <pvollan@apple.com>
     2
     3        Ensure there is a Network process after launching the WebContent process
     4        https://bugs.webkit.org/show_bug.cgi?id=238080
     5        <rdar://88933565>
     6
     7        Reviewed by Chris Dumez.
     8
     9        After the WebContent process has finished launching, ensure there is a Network process
     10        which will provide the WebContent process with the Launch Services database.
     11
     12        * UIProcess/WebProcessProxy.cpp:
     13        (WebKit::WebProcessProxy::didFinishLaunching):
     14
    1152022-03-22  Wenson Hsieh  <wenson_hsieh@apple.com>
    216
  • trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp

    r291182 r291620  
    10471047    if (auto networkProcess = NetworkProcessProxy::defaultNetworkProcess())
    10481048        networkProcess->sendXPCEndpointToProcess(*this);
     1049    else {
     1050        RunLoop::main().dispatch([weakThis = WeakPtr { *this }] {
     1051            if (!weakThis)
     1052                return;
     1053            NetworkProcessProxy::ensureDefaultNetworkProcess()->sendXPCEndpointToProcess(*weakThis);
     1054        });
     1055    }
    10491056#endif
    10501057
Note: See TracChangeset for help on using the changeset viewer.