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

Unified Diff: LayoutTests/editing/execCommand/remove-redundant-styles-and-keep-style-span-inline-crashed.html

Issue 212323004: Don't use dangling reference in ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2014-03-27T12:28:22 Created 6 years, 9 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/remove-redundant-styles-and-keep-style-span-inline-crashed-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/remove-redundant-styles-and-keep-style-span-inline-crashed.html
diff --git a/LayoutTests/editing/execCommand/remove-redundant-styles-and-keep-style-span-inline-crashed.html b/LayoutTests/editing/execCommand/remove-redundant-styles-and-keep-style-span-inline-crashed.html
new file mode 100644
index 0000000000000000000000000000000000000000..f148da079dad3ad061d86334e2c50c7ba9b475a7
--- /dev/null
+++ b/LayoutTests/editing/execCommand/remove-redundant-styles-and-keep-style-span-inline-crashed.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<head>
+<style>
+* {
+ border-image-source: url(foo);
+ background-position-x: 2147483470%;
+ font-style: normal;
+}
+</style>
+</head>
+<body>
+<i>PASS if Blink doesn't crash.</i>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+document.designMode = 'on';
+document.execCommand('SelectAll');
+document.execCommand('Cut');
+document.execCommand('Paste');
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/remove-redundant-styles-and-keep-style-span-inline-crashed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698