3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline'">
7 function testFunction()
15 InspectorTest.startDebuggerTest(step1);
19 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
24 InspectorTest.evaluateInConsole("foo", step3);
27 function step3(result)
29 InspectorTest.addResult("Evaluated in console in the top frame context: foo = " + result);
30 InspectorTest.completeDebuggerTest();
36 <body onload="runTest()">
38 Test that evaluation in the context of top frame will not be blocked by Content-Security-Policy.
39 <a href="https://bugs.webkit.org/show_bug.cgi?id=77203">Bug 77203.</a>