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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/534617-crash.html

Issue 1395693009: [Editing][BugFix] Fix if condition in ReplaceSelectionCommand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/LayoutTests/editing/execCommand/534617-crash.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/534617-crash.html b/third_party/WebKit/LayoutTests/editing/execCommand/534617-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..9093e35316e7c89d7d882036da7e5b653e4788b9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/534617-crash.html
@@ -0,0 +1,22 @@
+ <html><head>
yosin_UTC9 2015/10/15 05:57:18 nit: Please remove a space before <html>. nit: Ple
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+function fuzz() {
+ document.designMode = 'on';
+ document.execCommand("selectAll");
+ document.execCommand("InsertHTML", false, "<blockquote type='cite'>Line 2</blockquote><img>");
+}
+
+test(function () {
+ document.addEventListener('DOMContentLoaded', fuzz);
yosin_UTC9 2015/10/15 05:57:18 Do we really need to use "DOMContentLoaded" event?
+});
+</script>
+</head>
+<body>
+<blockquote type="cite"><div>Three</div></blockquote>
+<br>
+"bar"
+<div id="log"></div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698