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

Side by Side Diff: LayoutTests/editing/execCommand/resources/insert-image-changing-visibility-crash-iframe.html

Issue 183893018: Check VisualPosition.isNull() after DOM mutation in ReplaceSelectionCommand (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Issue 348283 crash test case</title>
5 <style>
6 table {
7 visibility: collapse;
8 }
9
10 *:only-child {
11 visibility: visible;
12 }
13 </style>
14 </head>
15 <!-- This is a minified version of the clusterfuzz test case at https://code.goo gle.com/p/chromium/issues/detail?id=348283 -->
16 <body contenteditable="true">
17 <script>
18 window.onload = function () {
19 var table = document.getElementById('table');
20 table.insertAdjacentHTML('afterbegin', '<svg></svg><div><div id=\'div\'>text </div>');
21
22 var div = document.getElementById('div');
23 var selection = window.getSelection();
24 selection.collapse(div.firstChild, 0);
25 document.execCommand('InsertImage', false, 'about:blank');
26 window.parent.postMessage('FINISH', '*');
27 };
28 </script>
29
30 <table id="table" ></table>
31 <div></div>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698