Changeset 196774 in webkit


Ignore:
Timestamp:
Feb 18, 2016 1:30:23 PM (8 years ago)
Author:
BJ Burg
Message:

RemoteInspector deadlocks if _WKAutomationDelegate creates/registers a target synchronously
https://bugs.webkit.org/show_bug.cgi?id=154359
<rdar://problem/24708897>

Reviewed by Joseph Pecoraro.

  • UIProcess/Cocoa/AutomationClient.mm:

(WebKit::AutomationClient::requestAutomationSession):
Make an NSString out of the String reference so it gets captured correctly.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r196771 r196774  
     12016-02-18  Brian Burg  <bburg@apple.com>
     2
     3        RemoteInspector deadlocks if _WKAutomationDelegate creates/registers a target synchronously
     4        https://bugs.webkit.org/show_bug.cgi?id=154359
     5        <rdar://problem/24708897>
     6
     7        Reviewed by Joseph Pecoraro.
     8
     9        * UIProcess/Cocoa/AutomationClient.mm:
     10        (WebKit::AutomationClient::requestAutomationSession):
     11        Make an NSString out of the String reference so it gets captured correctly.
     12
    1132016-02-18  Brady Eidson  <beidson@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/Cocoa/AutomationClient.mm

    r196730 r196774  
    7373    // RemoteInspector will try to acquire its lock to register the new session and
    7474    // deadlock because it's already taken while handling XPC messages.
     75
     76    NSString *retainedIdentifier = sessionIdentifier;
    7577    dispatch_async(dispatch_get_main_queue(), ^{
    7678        if (m_delegateMethods.requestAutomationSession)
    77             [m_delegate.get() _processPool:m_processPool didRequestAutomationSessionWithIdentifier:sessionIdentifier];
     79            [m_delegate.get() _processPool:m_processPool didRequestAutomationSessionWithIdentifier:retainedIdentifier];
    7880    });
    7981}
Note: See TracChangeset for help on using the changeset viewer.