Bug 210589 - REGRESSION (r260102): ASSERTION FAILED: m_arbitrators.contains(proxy) in WebKit::SharedArbitrator::endRoutingArbitrationForArbitrator
Summary: REGRESSION (r260102): ASSERTION FAILED: m_arbitrators.contains(proxy) in WebK...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-15 20:00 PDT by Jer Noble
Modified: 2020-04-15 22:53 PDT (History)
7 users (show)

See Also:


Attachments
Patch (8.33 KB, patch)
2020-04-15 20:04 PDT, Jer Noble
eric.carlson: review+
Details | Formatted Diff | Diff
Patch for landing (8.33 KB, patch)
2020-04-15 22:13 PDT, Jer Noble
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2020-04-15 20:00:29 PDT
REGRESSION (r260102): ASSERTION FAILED: m_arbitrators.contains(proxy) in WebKit::SharedArbitrator::endRoutingArbitrationForArbitrator
Comment 1 Jer Noble 2020-04-15 20:00:51 PDT
<rdar://problem/61844208>
Comment 2 Jer Noble 2020-04-15 20:04:38 PDT
Created attachment 396607 [details]
Patch
Comment 3 Eric Carlson 2020-04-15 21:06:51 PDT
Comment on attachment 396607 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=396607&action=review

> Source/WebCore/platform/audio/mac/AudioSessionMac.mm:104
>          m_routingArbitrationClient->leaveRoutingAbritration();
> +        m_private->inRoutingArbitration = false;

Nit: I think it is generally a good idea to change the state before making the callback in case the callback results in a call back into this module.
Comment 4 Jer Noble 2020-04-15 22:10:59 PDT
(In reply to Eric Carlson from comment #3)
> Comment on attachment 396607 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=396607&action=review
> 
> > Source/WebCore/platform/audio/mac/AudioSessionMac.mm:104
> >          m_routingArbitrationClient->leaveRoutingAbritration();
> > +        m_private->inRoutingArbitration = false;
> 
> Nit: I think it is generally a good idea to change the state before making
> the callback in case the callback results in a call back into this module.

Good point!
Comment 5 Jer Noble 2020-04-15 22:13:02 PDT
Created attachment 396618 [details]
Patch for landing
Comment 6 EWS 2020-04-15 22:53:46 PDT
Committed r260172: <https://trac.webkit.org/changeset/260172>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 396618 [details].