Changeset 202928 in webkit
- Timestamp:
- Jul 7, 2016, 1:13:58 PM (10 years ago)
- Location:
- branches/safari-602.1.40-branch/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
html/HTMLMediaElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-602.1.40-branch/Source/WebCore/ChangeLog
r202921 r202928 1 2016-07-07 Babak Shafiei <bshafiei@apple.com> 2 3 Merge r202923. 4 5 2016-07-07 Jer Noble <jer.noble@apple.com> 6 7 Crash due to HTMLMediaElement at JavaScriptCore: JSC::JSLockHolder::JSLockHolder 8 https://bugs.webkit.org/show_bug.cgi?id=159517 9 <rdar://problem/27221109> 10 11 Reviewed by Eric Carlson. 12 13 When WebKit on iOS gets a notification that the UIProcess has been backgrounded, it sends an 14 interruption event to the WebProcess to pause any playing HTMLMediaElements. When the 15 elements which get this interruption have pending promises created during a previous call to 16 play(), these promises get rejected. 17 18 However, if the HTMLMediaElement's document has already been destroyed, the pending Promises 19 are in an inconsistent state: their script execution context (the document) has been 20 destroyed, leading to the crash in JSLockHolder. 21 22 When HTMLMediaElement is notified that its ScriptExecutionContext has been destroyed, also 23 clear the list of pending Promises. 24 25 * html/HTMLMediaElement.cpp: 26 (WebCore::HTMLMediaElement::contextDestroyed): 27 1 28 2016-07-07 Babak Shafiei <bshafiei@apple.com> 2 29 -
branches/safari-602.1.40-branch/Source/WebCore/html/HTMLMediaElement.cpp
r202872 r202928 5095 5095 m_pauseAfterDetachedTaskQueue.close(); 5096 5096 5097 m_pendingPlayPromises.clear(); 5098 5097 5099 ActiveDOMObject::contextDestroyed(); 5098 5100 }
Note:
See TracChangeset
for help on using the changeset viewer.