Index: LayoutTests/editing/execCommand/crash-on-plaintext-createLink.html |
diff --git a/LayoutTests/editing/execCommand/crash-on-plaintext-createLink.html b/LayoutTests/editing/execCommand/crash-on-plaintext-createLink.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..eea07f56427e5771fb5087925e66683e7401a30e |
--- /dev/null |
+++ b/LayoutTests/editing/execCommand/crash-on-plaintext-createLink.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <title>Crash on "createLink" execCommand with plaintext-only</title> |
+ <script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ </script> |
+</head> |
+<body contentEditable> |
+ <div contentEditable="plaintext-only">PASS if the browser did not crash.</div> |
+ <script> |
+ document.execCommand("selectAll"); |
+ document.execCommand("createLink", false, "."); |
+ </script> |
+</body> |
+</html> |