Changeset 251627 in webkit
- Timestamp:
- Oct 25, 2019, 9:53:33 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ProcessThrottler.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r251616 r251627 1 2019-10-25 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION(r251599): Crash in MobileSafari tests (ASSERTION FAILED: m_pendingRequestToSuspendID) 4 https://bugs.webkit.org/show_bug.cgi?id=203437 5 <rdar://problem/56633399> 6 7 Reviewed by Geoffrey Garen. 8 9 * UIProcess/ProcessThrottler.cpp: 10 (WebKit::ProcessThrottler::updateAssertionIfNeeded): 11 Start the timer before sending the PrepareToSuspend IPC. The reason is that if the process has been 12 terminated, the completion handler may run synchronously and cancel the request to suspend / stop 13 the timer. Therefore, re-starting the timer after would be a mistake. 14 1 15 2019-10-25 David Kilzer <ddkilzer@apple.com> 2 16 -
trunk/Source/WebKit/UIProcess/ProcessThrottler.cpp
r251599 r251627 93 93 // in the background for too long. 94 94 if (m_assertion->state() != AssertionState::Suspended) { 95 m_prepareToSuspendTimeoutTimer.startOneShot(processSuspensionTimeout); 95 96 sendPrepareToSuspendIPC(IsSuspensionImminent::No); 96 m_prepareToSuspendTimeoutTimer.startOneShot(processSuspensionTimeout);97 97 return; 98 98 }
Note:
See TracChangeset
for help on using the changeset viewer.