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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/css/image-value-cached.html

Issue 2168903002: Set request context when restoring cached CSSImageValue resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/LayoutTests/http/tests/css/resources/image-value-cached-iframe.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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/testharness.js"></script> 4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script> 5 <script src="../../../resources/testharnessreport.js"></script>
6 <link rel="stylesheet" href="resources/font-face-via-https.css"> 6 <link rel="stylesheet" href="resources/image-value-via-https.css">
7 </head> 7 </head>
8 <body> 8 <body>
9 <p>Outer page text</p>
10 <iframe></iframe> 9 <iframe></iframe>
11 <script> 10 <script>
12 async_test(function(t) { 11 async_test(function(t) {
13 window.addEventListener('load', t.step_func(function() { 12 window.addEventListener('load', t.step_func(function() {
14 if (window.internals) { 13 if (window.internals) {
15 // Check that the font face is in the Resource::Cached state. 14 // Check that the image is in the Resource::Cached state.
16 assert_true(window.internals.isLoadingFromMemoryCache( 15 assert_true(window.internals.isLoadingFromMemoryCache(
17 'https://localhost:8443/css/resources/cors-ahem.php')) 16 'https://localhost:8443/css/resources/abe.png'))
18 } 17 }
19 18
20 var iframe = document.querySelector('iframe'); 19 var iframe = document.querySelector('iframe');
21 20
22 // This will cause a renderer crash if DCHECKs are enabled and the request 21 // This will cause a renderer crash if DCHECKs are enabled and the request
23 // for restoring the font face has SSL errors and doesn't have the 22 // for restoring the image has SSL errors and doesn't have the
24 // WebURLRequest::RequestContextFont context (crbug.com/624474). 23 // WebURLRequest::RequestContextImage context (crbug.com/630215).
25 iframe.src = 'resources/font-face-src-cached-iframe.html'; 24 iframe.src = 'resources/image-value-cached-iframe.html';
26 iframe.addEventListener('load', t.step_func(function() { 25 iframe.addEventListener('load', t.step_func(function() {
27 t.done(); 26 t.done();
28 })); 27 }));
29 })); 28 }));
30 }, 'Test using cached CSS font face src value resources (see ' + 29 }, 'Test using cached CSS image value resources (see ' +
31 'CSSFontFaceSrcValue::restoreCachedResourceIfNeeded)'); 30 'CSSImageValue::restoreCachedResourceIfNeeded)');
32 </script> 31 </script>
33 </body> 32 </body>
34 </html> 33 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/css/resources/image-value-cached-iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698