| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 </head> |
| 5 <body> |
| 6 <script src="../js/resources/js-test-pre.js"></script> |
| 7 <script> |
| 8 description("This tests that cookie access throws exceptions with reason
able messages inside 'data:' URLs."); |
| 9 |
| 10 window.jsTestIsAsync = true; |
| 11 |
| 12 var exceptionMessage; |
| 13 window.addEventListener('message', function (e) { |
| 14 exceptionMessage = e.data; |
| 15 shouldBeEqualToString('exceptionMessage', "Access to 'cookie' is den
ied for this document. Cookies are disabled inside 'data:' URLs."); |
| 16 finishJSTest(); |
| 17 }); |
| 18 |
| 19 </script> |
| 20 <iframe src="data:text/html,<script>try { document.cookie; } catch(e) { wind
ow.top.postMessage(e.message, '*'); };</script>"></iframe> |
| 21 <script src="../js/resources/js-test-post.js"></script> |
| 22 </body> |
| 23 </html> |
| OLD | NEW |