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

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

Issue 1280263002: Make ApplyBlockElementCommand not to modify uneditable element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-10T14:45:18 Created 5 years, 4 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
« no previous file with comments | « no previous file | Source/core/editing/ApplyBlockElementCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/format-block-uneditable-crash.html
diff --git a/LayoutTests/editing/execCommand/format-block-uneditable-crash.html b/LayoutTests/editing/execCommand/format-block-uneditable-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..947b814a8b5d2665ed3d6abbfd4d812d328c394d
--- /dev/null
+++ b/LayoutTests/editing/execCommand/format-block-uneditable-crash.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<pre id="sample" contenteditable="true">
+foo
+<div contenteditable="false">bar
+</div>
+
+</pre>
+<div id="log"></div>
+<script>
+test(function() {
+ var container = document.getElementById('sample');
+ var range = document.createRange()
+ range.setEndAfter(container.lastChild);
+ window.getSelection().addRange(range);
+ document.execCommand('formatblock', false, '<h1>');
+}, 'formatblock');
+</script>
« no previous file with comments | « no previous file | Source/core/editing/ApplyBlockElementCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698