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/delete-hidden-crash.html

Issue 340713003: Ignore visibility when checking whether Position is editable or not at DeletetSelectionCommand (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-06-19T03:44:02 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
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/delete-hidden-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/delete-hidden-crash.html
diff --git a/LayoutTests/editing/execCommand/delete-hidden-crash.html b/LayoutTests/editing/execCommand/delete-hidden-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..02b9dc4ebeaa23c9de925d448fafd540bf2ef318
--- /dev/null
+++ b/LayoutTests/editing/execCommand/delete-hidden-crash.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+onload = function() {
+ document.execCommand('SelectAll')
+ span = document.getElementsByTagName('span')[0];
+ span.contentEditable = 'true';
+ span.textContent = 'bar';
+ document.execCommand('InsertText', false, '1');
+ document.body.textContent = 'PASS if Blink doesn\'t crash.';
+};
+</script>
+<style>
+* { visibility:visible; }
+.inline { display:inline; }
+*:only-child { visibility:hidden; }
+</style>
+</head>
+<body>
+<table>
+<tr><td><span><table></table><span></span></span></td></tr>
+<tr><td><td class="inline">foo</td></tr>
+</table>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/delete-hidden-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698