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

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: 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 </head>
6 <!-- This is a minified version of the clusterfuzz test case at https://code.goo gle.com/p/chromium/issues/detail?id=348283 -->
7 <body contenteditable="true">
8 <script>
9 window.onload = function () {
10 var table = document.getElementById("table");
11 table.insertAdjacentHTML('afterbegin', "<svg/><div><div id=\"div\">text</div >");
Yuta Kitamura 2014/03/04 06:36:18 nit: Don't use both '' and "" for string literals
yoichio 2014/03/04 07:05:56 Done.
12
13 var div = document.getElementById("div");
14 var selection = window.getSelection();
15 selection.collapse(div.firstChild, 0);
16 document.execCommand('InsertImage', false, 'about:blank');
17 window.parent.postMessage('FINISH', '*');
18 };
19 </script>
20 <style>
Yuta Kitamura 2014/03/04 06:36:18 nit: <style> usually appears within <head>.
yoichio 2014/03/04 07:05:56 Done.
21 table {
22 visibility: collapse;
23 }
24
25 *:only-child {
26 visibility: visible;
27 }
28 </style>
29 <table id="table" />
Yuta Kitamura 2014/03/04 06:36:18 nit: "<xxx />"-style tag should probably only be u
yoichio 2014/03/04 07:05:56 Done.
30 <div />
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698