Changeset 287604 in webkit
- Timestamp:
- Jan 4, 2022, 11:52:54 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/conf/mime.types (modified) (1 diff)
-
LayoutTests/http/tests/media/media-element-frame-destroyed-crash-expected.txt (added)
-
LayoutTests/http/tests/media/media-element-frame-destroyed-crash.html (added)
-
LayoutTests/http/tests/media/resources/empty.ts (added)
-
LayoutTests/http/tests/media/resources/media-element-frame-destroyed-crash-subframe.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLMediaElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r287602 r287604 1 2022-01-04 Frédéric Wang <fwang@igalia.com> 2 3 Protect frame from destruction in HTMLMediaElement::setupAndCallJS 4 https://bugs.webkit.org/show_bug.cgi?id=234259 5 6 Reviewed by Darin Adler. 7 8 Add non-regression test, embedded in multiple iframes to make regression easily reproducible. 9 10 * http/conf/mime.types: Ensure that ts files are served with MIME type video/mp2t as that's required 11 to make the non-regression test work properly. 12 * http/tests/media/media-element-frame-destroyed-crash-expected.txt: Added. 13 * http/tests/media/media-element-frame-destroyed-crash.html: Added. 14 * http/tests/media/resources/empty.ts: Added. 15 * http/tests/media/resources/media-element-frame-destroyed-crash-subframe.html: Added. 16 1 17 2022-01-04 Antoine Quint <graouts@webkit.org> 2 18 -
trunk/LayoutTests/http/conf/mime.types
r285936 r287604 580 580 video/mp1s 581 581 video/mp2p 582 video/mp2t 582 video/mp2t ts 583 583 video/mp4 mp4 584 584 video/mp4v-es -
trunk/Source/WebCore/ChangeLog
r287603 r287604 1 2022-01-04 Frédéric Wang <fwang@igalia.com> 2 3 Protect frame from destruction in HTMLMediaElement::setupAndCallJS 4 https://bugs.webkit.org/show_bug.cgi?id=234259 5 6 Reviewed by Darin Adler. 7 8 Test: http/tests/media/media-element-frame-destroyed-crash.html 9 10 * html/HTMLMediaElement.cpp: 11 (WebCore::HTMLMediaElement::setupAndCallJS): Protect the frame before executing the JS code, 12 so that it is not destroyed before its associated ScriptController. 13 1 14 2022-01-04 Antoine Quint <graouts@webkit.org> 2 15 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r287239 r287604 4585 4585 auto pendingActivity = makePendingActivity(*this); 4586 4586 auto& world = ensureIsolatedWorld(); 4587 auto& scriptController = document().frame()->script(); 4587 Ref protectedFrame = *document().frame(); 4588 auto& scriptController = protectedFrame->script(); 4588 4589 auto* globalObject = JSC::jsCast<JSDOMGlobalObject*>(scriptController.globalObject(world)); 4589 4590 auto& vm = globalObject->vm();
Note:
See TracChangeset
for help on using the changeset viewer.