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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/images/invalid-image-url-crash.html

Issue 1865603004: Fix crash when setting invalid URL on content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pants Created 4 years, 8 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/LayoutTests/fast/css/getComputedStyle/disallowed-url-serialization.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <style>
5 #target {
6 background-image: url("chrome://");
7 }
8 #target:after {
9 content: url("filesystem://");
10 }
11 </style>
4 <div id="target"></div> 12 <div id="target"></div>
5 <script> 13 <script>
6 test(() => { 14 test(() => {
7 target.style.backgroundImage = 'url(filesystem://invalid_url.png)'; 15 // Force a second style recalc so that the image gets cached and reused.
8 // Force multiple style recalcs so that the image gets cached and reused.
9 getComputedStyle(target).backgroundImage; 16 getComputedStyle(target).backgroundImage;
17 getComputedStyle(target, 'after').content;
10 target.style.color = 'green'; 18 target.style.color = 'green';
11 getComputedStyle(target).backgroundImage; 19 getComputedStyle(target).backgroundImage;
20 getComputedStyle(target, 'after').content;
12 }, "Don't crash when using cached CSS images with invalid URLs"); 21 }, "Don't crash when using cached CSS images with invalid URLs");
13 </script> 22 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/getComputedStyle/disallowed-url-serialization.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698