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

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: use of assert_selection 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
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <div id="log"></div>
6 <script>
7 // This test case was added to reproduce the crash reported by ClusterFuzz.
yosin_UTC9 2016/07/14 01:08:52 We don't need to have this comment, we can use git
joone 2016/07/14 07:06:54 Done.
8 // See http://crbug.com/626991
9 test(() => {
10 assert_selection(
11 '<span><p>^test</p><p>foo<span>bar</span>foo<span>bar</span>.|</p></span >',
12 selection => {
13 selection.document.designMode = 'on';
yosin_UTC9 2016/07/14 01:08:52 Please enclose a sample with '<div contenteditable
joone 2016/07/14 07:06:54 Done.
14 selection.document.execCommand('CreateLink', false, 'foo');
yosin_UTC9 2016/07/14 01:08:52 Could you encode result of "createLink" command in
joone 2016/07/14 07:06:54 Done.
yosin_UTC9 2016/07/14 07:53:34 PS#5 still has "createLink", did you forget to upd
15 selection.document.execCommand('inserthtml', false, '<span style="colo r:green">green</span>');
16 },
17 '<span><p><a href="foo"><span style="color:green">green|</span></a></p>< /span>');
18 }, 'Replace the selected tags with span tags');
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698