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

Changeset 245310 in webkit


Ignore:
Timestamp:
May 14, 2019, 2:08:02 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r245298. rdar://problem/50665984

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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245298 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-608.1.24-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608.1.24-branch/Source/WebKit/ChangeLog

    r245309 r245310  
     12019-05-14  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r245298. rdar://problem/50665984
     4
     5    Crash under WebKit::WebProcessProxy::didBecomeUnresponsive()
     6    https://bugs.webkit.org/show_bug.cgi?id=197883
     7    <rdar://problem/50665984>
     8   
     9    Reviewed by Alex Christensen.
     10   
     11    Protect |this| in didBecomeUnresponsive() and didExceedCPULimit() since we call client
     12    delegates and those may cause |this| to get destroyed.
     13   
     14    * UIProcess/WebProcessProxy.cpp:
     15    (WebKit::WebProcessProxy::didBecomeUnresponsive):
     16    (WebKit::WebProcessProxy::didExceedCPULimit):
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245298 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2019-05-14  Chris Dumez  <cdumez@apple.com>
     21
     22            Crash under WebKit::WebProcessProxy::didBecomeUnresponsive()
     23            https://bugs.webkit.org/show_bug.cgi?id=197883
     24            <rdar://problem/50665984>
     25
     26            Reviewed by Alex Christensen.
     27
     28            Protect |this| in didBecomeUnresponsive() and didExceedCPULimit() since we call client
     29            delegates and those may cause |this| to get destroyed.
     30
     31            * UIProcess/WebProcessProxy.cpp:
     32            (WebKit::WebProcessProxy::didBecomeUnresponsive):
     33            (WebKit::WebProcessProxy::didExceedCPULimit):
     34
    1352019-05-14  Alan Coon  <alancoon@apple.com>
    236
  • branches/safari-608.1.24-branch/Source/WebKit/UIProcess/WebProcessProxy.cpp

    r244979 r245310  
    714714void WebProcessProxy::didBecomeUnresponsive()
    715715{
     716    auto protectedThis = makeRef(*this);
     717
    716718    m_isResponsive = NoOrMaybe::No;
    717719
     
    13151317void WebProcessProxy::didExceedCPULimit()
    13161318{
     1319    auto protectedThis = makeRef(*this);
     1320
    13171321    for (auto& page : pages()) {
    13181322        if (page->isPlayingAudio()) {
Note: See TracChangeset for help on using the changeset viewer.