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

Side by Side Diff: LayoutTests/http/tests/security/cross-origin-plugin-private-browsing-toggled-allowed.html

Issue 14142009: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 var frames = 2;
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.dumpChildFramesAsText();
8 testRunner.setPrivateBrowsingEnabled(true);
9 testRunner.waitUntilDone();
10 }
11
12 function decrement() {
13 --frames;
14 if (!frames) {
15 if (window.testRunner)
16 testRunner.setPrivateBrowsingEnabled(false);
17 for (var i = 0; i < 2; ++i) {
18 var frame = document.getElementsByTagName('iframe')[i].c ontentWindow;
19 frame.postMessage('loaded', '*');
20 }
21 frames = 2;
22 }
23 }
24
25 window.onmessage = function() {
26 --frames;
27 if (window.testRunner)
28 testRunner.notifyDone();
29 }
30 </script>
31 <body>
32 <p>This iframe should not have private browsing enabled:</p>
33 <iframe src="http://localhost:8000/security/resources/cross-origin-iframe-for-pl ugin-async.html" onload="decrement()"></iframe>
34 <p>This iframe should not have private browsing enabled:</p>
35 <iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-pl ugin-async.html" onload="decrement()"></iframe>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698