⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 281007 in webkit


Ignore:
Timestamp:
Aug 12, 2021, 8:58:52 PM (5 years ago)
Author:
Peng Liu
Message:

REGRESSION (r280951): [ Big Sur ] TestWebKitAPI.AudioRoutingArbitration.Close is failing
https://bugs.webkit.org/show_bug.cgi?id=229040

Reviewed by Eric Carlson.

Function AudioSessionRoutingArbitratorProxy::processDidTerminate() should
be called only in the case that the corresponding WebContent process exits,
whereas GPUProcessConnection::didClose() (in WebContent process) deals with
the case that the GPU process crashes.

No new tests. Fix an API test failure.

  • UIProcess/Media/cocoa/AudioSessionRoutingArbitratorProxyCocoa.mm:

(WebKit::AudioSessionRoutingArbitratorProxy::processDidTerminate):

  • UIProcess/WebProcessProxy.cpp:

(WebKit::WebProcessProxy::gpuProcessExited):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r280986 r281007  
     12021-08-12  Peng Liu  <peng.liu6@apple.com>
     2
     3        REGRESSION (r280951): [ Big Sur ] TestWebKitAPI.AudioRoutingArbitration.Close is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=229040
     5
     6        Reviewed by Eric Carlson.
     7
     8        Function `AudioSessionRoutingArbitratorProxy::processDidTerminate()` should
     9        be called only in the case that the corresponding WebContent process exits,
     10        whereas `GPUProcessConnection::didClose()` (in WebContent process) deals with
     11        the case that the GPU process crashes.
     12
     13        No new tests. Fix an API test failure.
     14
     15        * UIProcess/Media/cocoa/AudioSessionRoutingArbitratorProxyCocoa.mm:
     16        (WebKit::AudioSessionRoutingArbitratorProxy::processDidTerminate):
     17        * UIProcess/WebProcessProxy.cpp:
     18        (WebKit::WebProcessProxy::gpuProcessExited):
     19
    1202021-08-12  Wenson Hsieh  <wenson_hsieh@apple.com>
    221
  • trunk/Source/WebKit/UIProcess/Media/cocoa/AudioSessionRoutingArbitratorProxyCocoa.mm

    r280951 r281007  
    5353void AudioSessionRoutingArbitratorProxy::processDidTerminate()
    5454{
     55    if (SharedRoutingArbitrator::sharedInstance().isInRoutingArbitrationForToken(m_token))
     56        endRoutingArbitration();
    5557}
    5658
  • trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp

    r280811 r281007  
    821821    for (auto& page : copyToVectorOf<RefPtr<WebPageProxy>>(m_pageMap.values()))
    822822        page->gpuProcessExited(reason);
    823 
    824 #if ENABLE(ROUTING_ARBITRATION)
    825     m_routingArbitrator->processDidTerminate();
    826 #endif
    827823}
    828824#endif
Note: See TracChangeset for help on using the changeset viewer.