OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/testharness.js"></script> |
| 5 <script src="../../../resources/testharnessreport.js"></script> |
| 6 <link rel="stylesheet" href="resources/font-face-via-https.css"> |
| 7 </head> |
| 8 <body> |
| 9 <p>Outer page text</p> |
| 10 <iframe></iframe> |
| 11 <script> |
| 12 async_test(function(t) { |
| 13 window.addEventListener('load', t.step_func(function() { |
| 14 if (window.internals) { |
| 15 // Check that the font face is in the Resource::Cached state. |
| 16 assert_true(window.internals.isLoadingFromMemoryCache( |
| 17 'https://localhost:8443/css/resources/cors-ahem.php')) |
| 18 } |
| 19 |
| 20 var iframe = document.querySelector('iframe'); |
| 21 |
| 22 // 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 |
| 24 // WebURLRequest::RequestContextFont context (crbug.com/624474). |
| 25 iframe.src = 'resources/font-face-src-cached-iframe.html'; |
| 26 iframe.addEventListener('load', t.step_func(function() { |
| 27 t.done(); |
| 28 })); |
| 29 })); |
| 30 }, 'Test using cached CSS font face src value resources (see ' + |
| 31 'CSSFontFaceSrcValue::restoreCachedResourceIfNeeded)'); |
| 32 </script> |
| 33 </body> |
| 34 </html> |
OLD | NEW |