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

Unified Diff: LayoutTests/editing/execCommand/format-block-with-uneditable-crash-2.html

Issue 314923003: Make SVG elements not to consider editable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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/execCommand/format-block-with-uneditable-crash-2.html
diff --git a/LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html b/LayoutTests/editing/execCommand/format-block-with-uneditable-crash-2.html
similarity index 61%
copy from LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html
copy to LayoutTests/editing/execCommand/format-block-with-uneditable-crash-2.html
index 78d0b16afcd0b2f18a9d0e3015acfee5d9f2f1f8..e95f2ca89d170c66dc2221d59d668ee5fe1bc0df 100644
--- a/LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html
+++ b/LayoutTests/editing/execCommand/format-block-with-uneditable-crash-2.html
@@ -1,18 +1,18 @@
<!DOCTYPE html>
+<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
-
onload = function() {
- getSelection().collapse(document.body, 0);
- document.body.parentNode.removeChild(document.body);
document.designMode = 'on';
- document.execCommand("InsertText", false, '\t');
+ document.execCommand('SelectAll');
+ document.execCommand('FormatBlock', false, '<pre>');
document.documentElement.textContent = 'PASS if Blink doesn\'t crash.';
-}
+};
</script>
</head>
<body>
+ab<embed contenteditable="false"><svg>xyz</svg></embed>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698