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