Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / resolve-node-blocked.html
blobbc0f0f690b43ecffc401d5ff88d8ef82cbfedc65
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline'">
6 <script>
7 function test()
9 InspectorTest.evaluateInPage("document", didReceiveDocumentObject);
10 function didReceiveDocumentObject(remoteObject, wasThrown)
12 InspectorTest.addResult("didReceiveDocumentObject");
13 InspectorTest.DOMAgent.requestNode(remoteObject.objectId, didRequestNode);
16 function didRequestNode(error, nodeId)
18 InspectorTest.addResult("didRequestNode error = " + error);
19 InspectorTest.completeTest();
22 </script>
23 </head>
24 <body onload="runTest()">
25 <p>
26 Tests that JS object to node resolution still works even if script evals are prohibited by Content-Security-Policy.
27 The test passes if it doesn't crash.
28 <a href="https://bugs.webkit.org/show_bug.cgi?id=78705">Bug 78705.</a>
29 </p>
30 </body>
31 </html>