| OLD | NEW | 
|   1 <html> |   1 <html> | 
|   2 <head> |   2 <head> | 
|   3     <script src="../resources/cross-frame-access.js"></script> |   3     <script src="../resources/cross-frame-access.js"></script> | 
|   4 </head> |   4 </head> | 
|   5 <body> |   5 <body> | 
|   6     <p>This tests that the main frame can't access the contents of an iframe tha
    t contains a data: URL loaded page using the |   6     <p>This tests that the main frame can't access the contents of an iframe tha
    t contains a data: URL loaded page using the | 
|   7         uppercased variant DATA:</p> |   7         uppercased variant DATA:</p> | 
|   8     <iframe id="aFrame" name="aFrame"></iframe> |   8     <iframe id="aFrame"></iframe> | 
|   9     <pre id="console"></pre> |   9     <pre id="console"></pre> | 
|  10     <script> |  10     <script> | 
|  11         var url = "DATA:text/html,<html><scr" + "ipt>onload = function() { paren
    t.postMessage(\'LOADED\', \'*\'); } </scr" + "ipt><body><p id=\'accessMe\'></p><
    p>Inner iframe.</p></body></html>"; |  11         var url = "DATA:text/html,<html><scr" + "ipt>onload = function() { paren
    t.postMessage(\'LOADED\', \'*\'); } </scr" + "ipt><body><p id=\'accessMe\'></p><
    p>Inner iframe.</p></body></html>"; | 
|  12         var iframeId ="aFrame"; |  12         var iframeId ="aFrame"; | 
|  13         var passMessage = "PASS: Cross frame access to a DATA: URL was denied."; |  13         var passMessage = "PASS: Cross frame access to a DATA: URL was denied."; | 
|  14         var failMessage = "FAIL: Cross frame access to a DATA: URL was allowed."
    ; |  14         var failMessage = "FAIL: Cross frame access to a DATA: URL was allowed."
    ; | 
|  15         cannotAccessFrame(url, iframeId, passMessage, failMessage); |  15         cannotAccessFrame(url, iframeId, passMessage, failMessage); | 
|  16     </script> |  16     </script> | 
|  17 </body> |  17 </body> | 
|  18 </html> |  18 </html> | 
| OLD | NEW |