Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/navigation/post-with-modifier.html

Issue 2453093003: child-src and frame-src CSP are not applicable when navigating a new window. (Closed)
Patch Set: Address a CR feedback nit - get rid of unnecessary parens. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <div id="container"> 1 <div id="container">
2 <p>You should run this test in Test Runner</p> 2 <p>You should run this test in Test Runner</p>
3 <form method="post" action="resources/post-with-modifier.php"> 3 <form method="post" action="resources/post-with-modifier.php">
4 <input type="hidden" name="a" value="b"> 4 <input type="hidden" name="a" value="b">
5 <input type="submit"> 5 <input type="submit">
6 </form> 6 </form>
7 </div> 7 </div>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script src="/js-test-resources/js-test.js"></script> 9 <script src="/js-test-resources/js-test.js"></script>
10 <script> 10 <script>
(...skipping 16 matching lines...) Expand all
27 window.onload = function() { 27 window.onload = function() {
28 var submit = document.querySelector('input[type="submit"]'); 28 var submit = document.querySelector('input[type="submit"]');
29 eventSender.dragMode = false; 29 eventSender.dragMode = false;
30 eventSender.mouseMoveTo(submit.offsetLeft + 3, submit.offsetTop + 3); 30 eventSender.mouseMoveTo(submit.offsetLeft + 3, submit.offsetTop + 3);
31 eventSender.mouseDown(0); 31 eventSender.mouseDown(0);
32 eventSender.mouseUp(0, ['shiftKey']); 32 eventSender.mouseUp(0, ['shiftKey']);
33 }; 33 };
34 34
35 // Shift-clicking doesn't set window.opener, so we allow the new window 35 // Shift-clicking doesn't set window.opener, so we allow the new window
36 // to find the opener using the name being set below. 36 // to find the opener using the name being set below.
37 // TODO(lukasza): After fixing https://crbug.com/658386, the test will
38 // need to use another mechanism for communicating verification results
39 // (most likely OOPIF-replicated testRunner.setCustomTextOutput).
37 window.name = "mainTestWindow"; 40 window.name = "mainTestWindow";
38 window.addEventListener('message', function(e) { 41 window.addEventListener('message', function(e) {
39 concludeTest(e.data); 42 concludeTest(e.data);
40 }); 43 });
41 } 44 }
42 </script> 45 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698