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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/remove-format-variable-crash.html

Issue 2103043004: Fix EditingStyle::mergeStyle()'s handling of custom properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test tweak 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/css/StylePropertySet.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 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 document.documentElement.contentEditable="true";
6 document.documentElement.appendChild(document.createElement('table'));
7 eAcronym = document.createElement('acronym');
8 document.documentElement.appendChild(eAcronym);
9 document.documentElement.appendChild(document.createElement('keygen'));
10 newElem = document.createElement('figure');
11 newElem.style.cssText = '--AAAA: var(--BBBB)';
yosin_UTC9 2016/06/30 04:07:38 I think this line should not affect test since it
Timothy Loh 2016/06/30 04:16:42 This is necessary for the crash, since this result
12 document.documentElement.appendChild(newElem);
13 eCite = document.createElement('cite');
14 eCite.style.cssText = 'float: var(--CCCC)';
yosin_UTC9 2016/06/30 04:07:38 I think this line should not affect test since it
Timothy Loh 2016/06/30 04:16:42 Seems to be required to repro the crash.
15 eAcronym.appendChild(eCite);
16 eCite.appendChild(document.createElement('marquee'));
17 document.execCommand('SelectAll', 'false', 'true');
yosin_UTC9 2016/06/30 04:07:38 nit: you don't need to have |, 'false', 'true'|.
Timothy Loh 2016/06/30 04:16:42 removed
18 document.execCommand('RemoveFormat', 'true', 'true');
yosin_UTC9 2016/06/30 04:07:38 nit: you don't need to have |, 'true', 'true'|.
Timothy Loh 2016/06/30 04:16:42 removed
19 test(() => {}, "This test passes if it doesn't crash.");
20 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698