Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: LayoutTests/editing/inserting/insert-html-to-textarea-crash.html

Issue 1219723004: Make "insertHTML" execCommand not to crash on TEXTAREA (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/editing/inserting/insert-html-to-textarea-crash.html
diff --git a/LayoutTests/editing/inserting/insert-html-to-textarea-crash.html b/LayoutTests/editing/inserting/insert-html-to-textarea-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..41555442b4af6384b626f69e391519339e4d1147
--- /dev/null
+++ b/LayoutTests/editing/inserting/insert-html-to-textarea-crash.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<textarea></textarea>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+document.querySelector('textarea').setSelectionRange(0, 0);
+document.execCommand("InsertHTML", false, "<b></b>");
+document.body.textContent = 'PASS if Blink doesn\'t crash.';
+</script>

Powered by Google App Engine
This is Rietveld 408576698