| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 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'"> | |
| 7 <script> | |
| 8 function testFunction() | |
| 9 { | |
| 10 var foo = 2012; | |
| 11 debugger; | |
| 12 } | |
| 13 | |
| 14 var test = function() | |
| 15 { | |
| 16 InspectorTest.startDebuggerTest(step1); | |
| 17 | |
| 18 function step1() | |
| 19 { | |
| 20 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); | |
| 21 } | |
| 22 | |
| 23 function step2() | |
| 24 { | |
| 25 InspectorTest.evaluateInConsole("foo", step3); | |
| 26 } | |
| 27 | |
| 28 function step3(result) | |
| 29 { | |
| 30 InspectorTest.addResult("Evaluated in console in the top frame context:
foo = " + result); | |
| 31 InspectorTest.completeDebuggerTest(); | |
| 32 } | |
| 33 } | |
| 34 | |
| 35 </script> | |
| 36 </head> | |
| 37 <body onload="runTest()"> | |
| 38 <p> | |
| 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> | |
| 41 </p> | |
| 42 | |
| 43 </body> | |
| 44 </html> | |
| OLD | NEW |