Changeset 256187 in webkit


Ignore:
Timestamp:
Feb 10, 2020 9:57:30 AM (4 years ago)
Author:
Chris Dumez
Message:

Crash under WebProcessProxy::shouldSendPendingMessage()
https://bugs.webkit.org/show_bug.cgi?id=207464
<rdar://problem/59293825>

Reviewed by Alex Christensen.

I suspect the WebProcessProxy object is getting destroyed as we are iterating over the
pending messages in AuxiliaryProcessProxy::didFinishLaunching(), thus crashing when
calling WebProcessProxy::shouldSendPendingMessage() inside the loop. As a speculative
fix, protect |this| at the beginning of WebProcessProxy::didFinishLaunching().

  • UIProcess/WebProcessProxy.cpp:

(WebKit::WebProcessProxy::didFinishLaunching):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r256185 r256187  
     12020-02-10  Chris Dumez  <cdumez@apple.com>
     2
     3        Crash under WebProcessProxy::shouldSendPendingMessage()
     4        https://bugs.webkit.org/show_bug.cgi?id=207464
     5        <rdar://problem/59293825>
     6
     7        Reviewed by Alex Christensen.
     8
     9        I suspect the WebProcessProxy object is getting destroyed as we are iterating over the
     10        pending messages in AuxiliaryProcessProxy::didFinishLaunching(), thus crashing when
     11        calling WebProcessProxy::shouldSendPendingMessage() inside the loop. As a speculative
     12        fix, protect |this| at the beginning of WebProcessProxy::didFinishLaunching().
     13
     14        * UIProcess/WebProcessProxy.cpp:
     15        (WebKit::WebProcessProxy::didFinishLaunching):
     16
    1172020-02-10  youenn fablet  <youenn@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp

    r256084 r256187  
    892892    RELEASE_ASSERT(isMainThreadOrCheckDisabled());
    893893
     894    auto protectedThis = makeRef(*this);
    894895    AuxiliaryProcessProxy::didFinishLaunching(launcher, connectionIdentifier);
    895896
Note: See TracChangeset for help on using the changeset viewer.