| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="inspector-protocol-test.js"></script> | 3 <script type="text/javascript" src="inspector-protocol-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 if (window.testRunner) { | 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 } | 8 } |
| 9 | 9 |
| 10 function test() | 10 function test() |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 function didAddInspectedNode(messageObject) | 50 function didAddInspectedNode(messageObject) |
| 51 { | 51 { |
| 52 InspectorTest.sendCommand("Runtime.evaluate", { | 52 InspectorTest.sendCommand("Runtime.evaluate", { |
| 53 "expression": "$0", | 53 "expression": "$0", |
| 54 "includeCommandLineAPI": true | 54 "includeCommandLineAPI": true |
| 55 }, didEvaluate); | 55 }, didEvaluate); |
| 56 } | 56 } |
| 57 | 57 |
| 58 function didEvaluate(messageObject) | 58 function didEvaluate(messageObject) |
| 59 { | 59 { |
| 60 if (messageObject.result.wasThrown) | 60 if (!!messageObject.result.exceptionDetails) |
| 61 InspectorTest.log("FAIL: unexpected exception: " + JSON.stringify(me
ssageObject, null, 2)); | 61 InspectorTest.log("FAIL: unexpected exception: " + JSON.stringify(me
ssageObject, null, 2)); |
| 62 if (messageObject.result.result.value !== null) | 62 if (messageObject.result.result.value !== null) |
| 63 InspectorTest.log("FAIL: unexpected value: " + JSON.stringify(messag
eObject, null, 2)); | 63 InspectorTest.log("FAIL: unexpected value: " + JSON.stringify(messag
eObject, null, 2)); |
| 64 InspectorTest.completeTest(); | 64 InspectorTest.completeTest(); |
| 65 } | 65 } |
| 66 } | 66 } |
| 67 | 67 |
| 68 </script> | 68 </script> |
| 69 </head> | 69 </head> |
| 70 <body> | 70 <body> |
| 71 <p>Test that code evaluated in the main frame cannot access $0 that resolves int
o a node in a frame from a different domain. <a href="https://bugs.webkit.org/sh
ow_bug.cgi?id=105423">Bug 105423.</p> | 71 <p>Test that code evaluated in the main frame cannot access $0 that resolves int
o a node in a frame from a different domain. <a href="https://bugs.webkit.org/sh
ow_bug.cgi?id=105423">Bug 105423.</p> |
| 72 <iframe id="myframe" src="http://localhost:8000/inspector-protocol/resources/tes
t-page.html" onload="runTest()"></iframe> | 72 <iframe id="myframe" src="http://localhost:8000/inspector-protocol/resources/tes
t-page.html" onload="runTest()"></iframe> |
| 73 </body> | 73 </body> |
| 74 </html> | 74 </html> |
| OLD | NEW |