-
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.
Cherry-pick 272448.387@safari-7618-branch (303478e). https://bugs.web…
…kit.org/show_bug.cgi?id=268183 ASAN_ILL | WebCore::Document::removePlaybackTargetPickerClient. rdar://120661908 Reviewed by Chris Dumez. Unable to ref the page from removePlaybackTargetPickerClient as it may have started destruction. * LayoutTests/media/audio-remove-playback-crash-expected.txt: Added. * LayoutTests/media/audio-remove-playback-crash.html: Added. * Source/WebCore/dom/Document.cpp: (WebCore::Document::removePlaybackTargetPickerClient): Canonical link: https://commits.webkit.org/272448.387@safari-7618-branch Canonical link: https://commits.webkit.org/266719.407@webkitglib/2.42
- Loading branch information
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
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 no crash. |
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,22 @@ | ||
<p>This test passes if no crash.</p> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
function GetVariable(fuzzervars, var_type) { { return fuzzervars[var_type]; } { } } | ||
function SetVariable(fuzzervars, var_name, var_type) { fuzzervars[var_type] = var_name; } | ||
function jsfuzzer() { | ||
var fuzzervars = {}; | ||
SetVariable(fuzzervars, document, 'Document'); | ||
try { /* */ var var00041 = htmlvar00009.import; } catch (e) { } | ||
try { if (!var00041) { var00041 = GetVariable(fuzzervars, 'Document'); } { SetVariable(fuzzervars, 'GlobalEventHandlers'); } } catch (e) { } | ||
try { /* */ var00054 = htmlvar00002.outerHTML; } catch (e) { } | ||
try { /* */ var00066 = document.createElement("input"); } catch (e) { } | ||
try { document.all[81 % document.all.length].appendChild(var00066); } catch (e) { } | ||
try { var00066.selectionEnd = 20; } catch (e) { } | ||
try { var00041.execCommand("insertHTML", false, var00054); } catch (e) { } | ||
} | ||
</script> | ||
|
||
<body onload=jsfuzzer()> | ||
<audio id="htmlvar00002" srclang="ja-Hira" /> | ||
</body> |
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