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'">
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();
24 <body onload=
"runTest()">
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>