| OLD | NEW |
| 1 <?php | 1 <?php |
| 2 header("Suborigin: foobar"); | 2 header("Suborigin: foobar"); |
| 3 ?> | 3 ?> |
| 4 <!DOCTYPE html> | 4 <!DOCTYPE html> |
| 5 <html> | 5 <html> |
| 6 <head> | 6 <head> |
| 7 <meta charset="utf-8"> |
| 7 <title>Suborigin can't access cross origin cssRules</title> | 8 <title>Suborigin can't access cross origin cssRules</title> |
| 8 <script src="/resources/testharness.js"></script> | 9 <script src="/resources/testharness.js"></script> |
| 9 <script src="/resources/testharnessreport.js"></script> | 10 <script src="/resources/testharnessreport.js"></script> |
| 10 <link rel="stylesheet" href="/security/resources/cssStyle.css"></link> | 11 <link rel="stylesheet" href="/security/resources/cssStyle.css"></link> |
| 11 </head> | 12 </head> |
| 12 <script> | 13 <script> |
| 13 window.onload = function() { | 14 window.onload = function() { |
| 14 var sheet = document.styleSheets[0]; | 15 var sheet = document.styleSheets[0]; |
| 15 assert_equals(sheet.cssRules, null, "stylesheet rules should not be readable
from a suborigin"); | 16 assert_equals(sheet.cssRules, null, |
| 16 done(); | 17 'stylesheet rules should not be readable from a suborigin'); |
| 18 done(); |
| 17 }; | 19 }; |
| 18 </script> | 20 </script> |
| 19 </html> | 21 </html> |
| OLD | NEW |