Changeset 260595 in webkit


Ignore:
Timestamp:
Apr 23, 2020 1:28:54 PM (4 years ago)
Author:
Chris Dumez
Message:

[iOS] Crash on RunningBoard process assertion invalidation
https://bugs.webkit.org/show_bug.cgi?id=210873
<rdar://problem/62194917>

Unreviewed, nil out the observer only after we've removed it to fix crashes on the bots.

  • UIProcess/ios/ProcessAssertionIOS.mm:

(WebKit::ProcessAssertion::~ProcessAssertion):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r260594 r260595  
     12020-04-23  Chris Dumez  <cdumez@apple.com>
     2
     3        [iOS] Crash on RunningBoard process assertion invalidation
     4        https://bugs.webkit.org/show_bug.cgi?id=210873
     5        <rdar://problem/62194917>
     6
     7        Unreviewed, nil out the observer only after we've removed it to fix crashes on the bots.
     8
     9        * UIProcess/ios/ProcessAssertionIOS.mm:
     10        (WebKit::ProcessAssertion::~ProcessAssertion):
     11
    1122020-04-23  Kate Cheney  <katherine_cheney@apple.com>
    213
  • trunk/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm

    r260574 r260595  
    436436    if (m_rbsAssertion) {
    437437        m_delegate.get().invalidationCallback = nil;
     438        [m_rbsAssertion removeObserver:m_delegate.get()];
    438439        m_delegate = nil;
    439 
    440         [m_rbsAssertion removeObserver:m_delegate.get()];
    441440        [m_rbsAssertion invalidate];
    442441    }
Note: See TracChangeset for help on using the changeset viewer.