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

Side by Side 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, 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 window.onload = function() {
7 var element = document.getElementsByTagName('html')[0];
8 document.adoptNode(element);
9 var newElement = document.createElementNS('http://www.w3.org/2000/svg', 'title ');
10 document.appendChild(newElement);
11 document.execCommand('SelectAll', false)
12 document.designMode = 'on';
13
14 description('Page should not crash when a node does not have a renderer object associated with it. ' +
15 'To test manually, right-click anywhere on the page. ' +
16 'The test succeeds if the page does not crash. ');
17
18 if (window.eventSender) {
19 eventSender.mouseMoveTo(10, 10);
20 eventSender.contextClick();
21 }
22
23 finishJSTest();
24 };
25 </script>
26 </head>
27 </html>
OLDNEW
« 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