Changeset 287804 in webkit
- Timestamp:
- Jan 7, 2022, 6:45:22 PM (5 years ago)
- Location:
- branches/safari-612.4.9.3-branch
- Files:
-
- 4 deleted
- 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 (deleted)
-
LayoutTests/http/tests/media/media-element-frame-destroyed-crash.html (deleted)
-
LayoutTests/http/tests/media/resources/empty.ts (deleted)
-
LayoutTests/http/tests/media/resources/media-element-frame-destroyed-crash-subframe.html (deleted)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLMediaElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612.4.9.3-branch/LayoutTests/ChangeLog
r287751 r287804 1 2022-01-07 Russell Epstein <repstein@apple.com>2 3 Cherry-pick r287604. rdar://problem/859666224 5 Protect frame from destruction in HTMLMediaElement::setupAndCallJS6 https://bugs.webkit.org/show_bug.cgi?id=2342597 8 Patch by Frédéric Wang <fwang@igalia.com> on 2022-01-049 Reviewed by Darin Adler.10 11 Source/WebCore:12 13 Test: http/tests/media/media-element-frame-destroyed-crash.html14 15 * html/HTMLMediaElement.cpp:16 (WebCore::HTMLMediaElement::setupAndCallJS): Protect the frame before executing the JS code,17 so that it is not destroyed before its associated ScriptController.18 19 LayoutTests:20 21 Add non-regression test, embedded in multiple iframes to make regression easily reproducible.22 23 * http/conf/mime.types: Ensure that ts files are served with MIME type video/mp2t as that's required24 to make the non-regression test work properly.25 * http/tests/media/media-element-frame-destroyed-crash-expected.txt: Added.26 * http/tests/media/media-element-frame-destroyed-crash.html: Added.27 * http/tests/media/resources/empty.ts: Added.28 * http/tests/media/resources/media-element-frame-destroyed-crash-subframe.html: Added.29 30 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287604 268f45cc-cd09-0410-ab3c-d52691b4dbfc31 32 2022-01-04 Frédéric Wang <fwang@igalia.com>33 34 Protect frame from destruction in HTMLMediaElement::setupAndCallJS35 https://bugs.webkit.org/show_bug.cgi?id=23425936 37 Reviewed by Darin Adler.38 39 Add non-regression test, embedded in multiple iframes to make regression easily reproducible.40 41 * http/conf/mime.types: Ensure that ts files are served with MIME type video/mp2t as that's required42 to make the non-regression test work properly.43 * http/tests/media/media-element-frame-destroyed-crash-expected.txt: Added.44 * http/tests/media/media-element-frame-destroyed-crash.html: Added.45 * http/tests/media/resources/empty.ts: Added.46 * http/tests/media/resources/media-element-frame-destroyed-crash-subframe.html: Added.47 48 1 2022-01-06 Russell Epstein <repstein@apple.com> 49 2 -
branches/safari-612.4.9.3-branch/LayoutTests/http/conf/mime.types
r287751 r287804 579 579 video/mp1s 580 580 video/mp2p 581 video/mp2t ts581 video/mp2t 582 582 video/mp4 mp4 583 583 video/mp4v-es -
branches/safari-612.4.9.3-branch/Source/WebCore/ChangeLog
r287751 r287804 1 2022-01-07 Russell Epstein <repstein@apple.com>2 3 Cherry-pick r287604. rdar://problem/859666224 5 Protect frame from destruction in HTMLMediaElement::setupAndCallJS6 https://bugs.webkit.org/show_bug.cgi?id=2342597 8 Patch by Frédéric Wang <fwang@igalia.com> on 2022-01-049 Reviewed by Darin Adler.10 11 Source/WebCore:12 13 Test: http/tests/media/media-element-frame-destroyed-crash.html14 15 * html/HTMLMediaElement.cpp:16 (WebCore::HTMLMediaElement::setupAndCallJS): Protect the frame before executing the JS code,17 so that it is not destroyed before its associated ScriptController.18 19 LayoutTests:20 21 Add non-regression test, embedded in multiple iframes to make regression easily reproducible.22 23 * http/conf/mime.types: Ensure that ts files are served with MIME type video/mp2t as that's required24 to make the non-regression test work properly.25 * http/tests/media/media-element-frame-destroyed-crash-expected.txt: Added.26 * http/tests/media/media-element-frame-destroyed-crash.html: Added.27 * http/tests/media/resources/empty.ts: Added.28 * http/tests/media/resources/media-element-frame-destroyed-crash-subframe.html: Added.29 30 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287604 268f45cc-cd09-0410-ab3c-d52691b4dbfc31 32 2022-01-04 Frédéric Wang <fwang@igalia.com>33 34 Protect frame from destruction in HTMLMediaElement::setupAndCallJS35 https://bugs.webkit.org/show_bug.cgi?id=23425936 37 Reviewed by Darin Adler.38 39 Test: http/tests/media/media-element-frame-destroyed-crash.html40 41 * html/HTMLMediaElement.cpp:42 (WebCore::HTMLMediaElement::setupAndCallJS): Protect the frame before executing the JS code,43 so that it is not destroyed before its associated ScriptController.44 45 1 2022-01-06 Russell Epstein <repstein@apple.com> 46 2 -
branches/safari-612.4.9.3-branch/Source/WebCore/html/HTMLMediaElement.cpp
r287751 r287804 4398 4398 auto pendingActivity = makePendingActivity(*this); 4399 4399 auto& world = ensureIsolatedWorld(); 4400 Ref protectedFrame = *document().frame(); 4401 auto& scriptController = protectedFrame->script(); 4400 auto& scriptController = document().frame()->script(); 4402 4401 auto* globalObject = JSC::jsCast<JSDOMGlobalObject*>(scriptController.globalObject(world)); 4403 4402 auto& vm = globalObject->vm();
Note:
See TracChangeset
for help on using the changeset viewer.