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

Changeset 246377 in webkit


Ignore:
Timestamp:
Jun 12, 2019, 3:20:47 PM (7 years ago)
Author:
Kocsen Chung
Message:

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

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-607-branch/Source/WebKit
Files:
2 edited

Legend:

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

    r246376 r246377  
     12019-06-12  Null  <null@apple.com>
     2
     3        Cherry-pick r245298. rdar://problem/51656613
     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-06-12  Null  <null@apple.com>
    236
  • branches/safari-607-branch/Source/WebKit/UIProcess/WebProcessProxy.cpp

    r245931 r246377  
    834834void WebProcessProxy::didBecomeUnresponsive()
    835835{
     836    auto protectedThis = makeRef(*this);
     837
    836838    m_isResponsive = NoOrMaybe::No;
    837839
     
    14091411void WebProcessProxy::didExceedCPULimit()
    14101412{
     1413    auto protectedThis = makeRef(*this);
     1414
    14111415    for (auto& page : pages()) {
    14121416        if (page->isPlayingAudio()) {
Note: See TracChangeset for help on using the changeset viewer.