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

Changeset 245298 in webkit


Ignore:
Timestamp:
May 14, 2019, 12:48:09 PM (7 years ago)
Author:
Chris Dumez
Message:

Crash under WebKit::WebProcessProxy::didBecomeUnresponsive()
https://bugs.webkit.org/show_bug.cgi?id=197883
<rdar://problem/50665984>

Reviewed by Alex Christensen.

Protect |this| in didBecomeUnresponsive() and didExceedCPULimit() since we call client
delegates and those may cause |this| to get destroyed.

  • UIProcess/WebProcessProxy.cpp:

(WebKit::WebProcessProxy::didBecomeUnresponsive):
(WebKit::WebProcessProxy::didExceedCPULimit):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r245297 r245298  
     12019-05-14  Chris Dumez  <cdumez@apple.com>
     2
     3        Crash under WebKit::WebProcessProxy::didBecomeUnresponsive()
     4        https://bugs.webkit.org/show_bug.cgi?id=197883
     5        <rdar://problem/50665984>
     6
     7        Reviewed by Alex Christensen.
     8
     9        Protect |this| in didBecomeUnresponsive() and didExceedCPULimit() since we call client
     10        delegates and those may cause |this| to get destroyed.
     11
     12        * UIProcess/WebProcessProxy.cpp:
     13        (WebKit::WebProcessProxy::didBecomeUnresponsive):
     14        (WebKit::WebProcessProxy::didExceedCPULimit):
     15
    1162019-05-14  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp

    r245255 r245298  
    714714void WebProcessProxy::didBecomeUnresponsive()
    715715{
     716    auto protectedThis = makeRef(*this);
     717
    716718    m_isResponsive = NoOrMaybe::No;
    717719
     
    13231325void WebProcessProxy::didExceedCPULimit()
    13241326{
     1327    auto protectedThis = makeRef(*this);
     1328
    13251329    for (auto& page : pages()) {
    13261330        if (page->isPlayingAudio()) {
Note: See TracChangeset for help on using the changeset viewer.