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

Unified Diff: LayoutTests/editing/spelling/right-click-no-renderer-crash.html

Issue 26168008: [blink] Avoid null pointer dereference in HitTestResult::isMisspelled() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Original fix Created 6 years, 10 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/spelling/right-click-no-renderer-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/spelling/right-click-no-renderer-crash.html
diff --git a/LayoutTests/editing/spelling/right-click-no-renderer-crash.html b/LayoutTests/editing/spelling/right-click-no-renderer-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..3ded568e24a7dbfeb6fbe2defc545777c5868871
--- /dev/null
+++ b/LayoutTests/editing/spelling/right-click-no-renderer-crash.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+<script>
+window.onload = function() {
+ var element = document.getElementsByTagName('html')[0];
+ document.adoptNode(element);
+ var newElement = document.createElementNS('http://www.w3.org/2000/svg', 'title');
+ document.appendChild(newElement);
+ document.execCommand('SelectAll', false)
+ document.designMode = 'on';
+
+ description('Page should not crash when a node does not have a renderer object associated with it. ' +
+ 'To test manually, right-click anywhere on the page. ' +
+ 'The test succeeds if the page does not crash. ');
+
+ if (window.eventSender) {
+ eventSender.mouseMoveTo(10, 10);
+ eventSender.contextClick();
+ }
+
+ finishJSTest();
+};
+</script>
+</head>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/spelling/right-click-no-renderer-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698