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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/crash-inserting-span.html

Issue 2135993003: Add null check to fix crash in blink::ComputedStyle::display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplify the test case Created 4 years, 5 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 | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('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 <script src="../../resources/testharness.js"></script>
2 <script src="../../resources/testharnessreport.js"></script>
3 <body>
4 <div id="description">
yosin_UTC9 2016/07/13 06:44:10 I think we don't need to have "description" DIV.
5 <span><p>test</p><p>On success, you will see a series of "<span class="pass">PAS S</span>" messages, followed by "<span class="pass">TEST COMPLETE</span>".</p></ span>
yosin_UTC9 2016/07/13 06:44:10 We might use random text such as "foo", "bar", "ab
6 </div>
7 </body>
8 <script>
9 test(function() {
10 // This test case was created by ClusterFuzz.
11 // See http://crbug.com/626991
12 document.designMode = 'on';
13 document.execCommand("selectAll");
14 document.execCommand("CreateLink", 0, "foo");
yosin_UTC9 2016/07/13 06:44:10 Can we use HTML after executing "createLink"? Also
joone 2016/07/13 07:31:50 What does it mean?
yosin_UTC9 2016/07/13 08:02:42 Since "createLink" isn't part of nullptr reference
15 document.execCommand("inserthtml", false, "<span id='green' style='color:green '>green</span>");
yosin_UTC9 2016/07/13 06:44:10 Let's use single-quote for JavaScript and double-q
16 }, 'No crash');
17 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698