| 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 24 matching lines...) Expand all Loading... |
| 35 return; | 35 return; |
| 36 InspectorTest.eventHandler["DOM.setChildNodes"] = null; | 36 InspectorTest.eventHandler["DOM.setChildNodes"] = null; |
| 37 InspectorTest.sendCommand("DOM.querySelector", { | 37 InspectorTest.sendCommand("DOM.querySelector", { |
| 38 "nodeId": node.contentDocument.nodeId, | 38 "nodeId": node.contentDocument.nodeId, |
| 39 "selector": "div#rootDiv" | 39 "selector": "div#rootDiv" |
| 40 }, didFindDiv); | 40 }, didFindDiv); |
| 41 } | 41 } |
| 42 | 42 |
| 43 function didFindDiv(messageObject) | 43 function didFindDiv(messageObject) |
| 44 { | 44 { |
| 45 InspectorTest.sendCommand("Console.enable", {}); | |
| 46 InspectorTest.sendCommand("DOM.setInspectedNode", { | 45 InspectorTest.sendCommand("DOM.setInspectedNode", { |
| 47 "nodeId": messageObject.result.nodeId | 46 "nodeId": messageObject.result.nodeId |
| 48 }, didAddInspectedNode); | 47 }, didAddInspectedNode); |
| 49 } | 48 } |
| 50 | 49 |
| 51 function didAddInspectedNode(messageObject) | 50 function didAddInspectedNode(messageObject) |
| 52 { | 51 { |
| 53 InspectorTest.sendCommand("Runtime.evaluate", { | 52 InspectorTest.sendCommand("Runtime.evaluate", { |
| 54 "expression": "$0", | 53 "expression": "$0", |
| 55 "includeCommandLineAPI": true | 54 "includeCommandLineAPI": true |
| (...skipping 10 matching lines...) Expand all Loading... |
| 66 } | 65 } |
| 67 } | 66 } |
| 68 | 67 |
| 69 </script> | 68 </script> |
| 70 </head> | 69 </head> |
| 71 <body> | 70 <body> |
| 72 <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> |
| 73 <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> |
| 74 </body> | 73 </body> |
| 75 </html> | 74 </html> |
| OLD | NEW |