Title: [203237] trunk/LayoutTests
- Revision
- 203237
- Author
- [email protected]
- Date
- 2016-07-14 12:46:14 -0700 (Thu, 14 Jul 2016)
Log Message
Add test to confirm we do not crash in media destruction
https://bugs.webkit.org/show_bug.cgi?id=122816
Test based on a Blink change (patch by <[email protected]>):
<https://chromium.googlesource.com/chromium/blink/+/7a2b2dcefbc013003487d5055eeda7a57daafa93%5E%21/#F0>
We do not seem to have the bug that prompted the Chromium source change. Adding
test case to ensure we do not introduce this problem in the future.
* editing/undo/audio-in-undo-stack-crash-expected.txt: Added.
* editing/undo/audio-in-undo-stack-crash.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (203236 => 203237)
--- trunk/LayoutTests/ChangeLog 2016-07-14 19:45:22 UTC (rev 203236)
+++ trunk/LayoutTests/ChangeLog 2016-07-14 19:46:14 UTC (rev 203237)
@@ -1,3 +1,17 @@
+2016-07-14 Brent Fulgham <[email protected]>
+
+ Add test to confirm we do not crash in media destruction
+ https://bugs.webkit.org/show_bug.cgi?id=122816
+
+ Test based on a Blink change (patch by <[email protected]>):
+ <https://chromium.googlesource.com/chromium/blink/+/7a2b2dcefbc013003487d5055eeda7a57daafa93%5E%21/#F0>
+
+ We do not seem to have the bug that prompted the Chromium source change. Adding
+ test case to ensure we do not introduce this problem in the future.
+
+ * editing/undo/audio-in-undo-stack-crash-expected.txt: Added.
+ * editing/undo/audio-in-undo-stack-crash.html: Added.
+
2016-07-14 Youenn Fablet <[email protected]>
Remove support for value iterators from JSDOMIterator
Added: trunk/LayoutTests/editing/undo/audio-in-undo-stack-crash-expected.txt (0 => 203237)
--- trunk/LayoutTests/editing/undo/audio-in-undo-stack-crash-expected.txt (rev 0)
+++ trunk/LayoutTests/editing/undo/audio-in-undo-stack-crash-expected.txt 2016-07-14 19:46:14 UTC (rev 203237)
@@ -0,0 +1 @@
+PASS; NOT CRASHED
Added: trunk/LayoutTests/editing/undo/audio-in-undo-stack-crash.html (0 => 203237)
--- trunk/LayoutTests/editing/undo/audio-in-undo-stack-crash.html (rev 0)
+++ trunk/LayoutTests/editing/undo/audio-in-undo-stack-crash.html 2016-07-14 19:46:14 UTC (rev 203237)
@@ -0,0 +1,32 @@
+<div id="container">
+<iframe></iframe>
+<div id="sample" contenteditable="true">
+Foo<audio id="audio" src=""
+</div>
+</div>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+function clearUndoStack() {
+ document.querySelector('iframe').outerHTML = '';
+}
+function $(id) { return document.getElementById(id); }
+$('sample').focus();
+var range = document.createRange();
+range.selectNodeContents($('sample'));
+var selection = window.getSelection();
+selection.removeAllRanges();
+selection.addRange(range);
+setTimeout(function() {
+ clearUndoStack();
+}, 0);
+window._onload_ = function() {
+ $('container').outerHTML = 'PASS; NOT CRASHED';
+ if (window.testRunner)
+ testRunner.notifyDone();
+};
+document.execCommand('Delete', false);
+document.execCommand('InsertUnorderedList', false);
+</script>
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes