-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsc_fuz/wktr: null ptr deref in WebCore::invokeWritableStreamFunction…
…(...) (InternalWritableStream.cpp:49) https://bugs.webkit.org/show_bug.cgi\?id\=262865 rdar://116465595 Reviewed by Mark Lam. Return early when worker is terminated while trying to get function from globalObject. Set useDollarVM in test option initialization for cases when useDollarVM will be reset before injectInternalsObject is called in DRT. * LayoutTests/streams/writable-stream-create-within-multiple-workers-crash-expected.txt: Added. * LayoutTests/streams/writable-stream-create-within-multiple-workers-crash.html: Added. * Source/WebCore/bindings/js/InternalWritableStream.cpp: (WebCore::invokeWritableStreamFunction): * Tools/DumpRenderTree/mac/DumpRenderTree.mm: (testOptionsForTest): Originally-landed-as: 267815.398@safari-7617-branch (f11c81a). rdar://119596601 Canonical link: https://commits.webkit.org/272251@main
- Loading branch information
1 parent
a94a8a6
commit 8d90019
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
LayoutTests/streams/writable-stream-create-within-multiple-workers-crash-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This test passes if it doesn't crash. |
19 changes: 19 additions & 0 deletions
19
LayoutTests/streams/writable-stream-create-within-multiple-workers-crash.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- webkit-test-runner [ jscOptions=--slowPathAllocsBetweenGCs=50 ] --> | ||
<script> | ||
if (window.testRunner) { | ||
testRunner.dumpAsText(); | ||
internals.settings.setWebRTCSFrameTransformEnabled(true); | ||
testRunner.waitUntilDone(); | ||
} | ||
|
||
onload = () => { | ||
for (let i = 0; i < 100; i++) { | ||
new Worker(`data:text/javascript,for (let i = 0; i < 100; i++) new SFrameTransform().readable;`); | ||
} | ||
setTimeout(() => { | ||
if (window.testRunner) | ||
testRunner.notifyDone(); | ||
}, 100); | ||
}; | ||
</script> | ||
<p>This test passes if it doesn't crash.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters