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

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-private-browsing.html

Issue 13861033: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Repatch to ToT 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-frame-access-private-browsing-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="resources/cross-frame-access.js"></script>
4 <script>
5 function loaded() {
6 if (!window.testRunner) {
7 log("This test must be run in the DumpRenderTree to work.");
8 return;
9 }
10
11 testRunner.dumpAsText();
12 testRunner.dumpChildFramesAsText();
13 testRunner.waitUntilDone();
14
15 // Poll until the subframe has finished loading.
16 setTimeout(waitForFlag, 1);
17 function waitForFlag() {
18 if (!testRunner.globalFlag) {
19 setTimeout(waitForFlag, 1);
20 return;
21 }
22 runTest();
23 }
24 }
25
26 function runTest() {
27 var subFrame = window.frames[0];
28 testRunner.setPrivateBrowsingEnabled(true);
29
30 try {
31 log("Attempting to violate the same-origin policy with private b rowsing enabled. If this succeeds the console should not log the violation.");
32 // Access the document to violate the same-origin policy.
33 var doc = subFrame.document;
34 } catch(e) {
35 }
36
37 testRunner.notifyDone();
38 }
39 </script>
40 </head>
41 <body onload="loaded();">
42 <p>This test checks cross-frame access security checks don't log when privat e browsing is enabled (rdar://problem/5394877).</p>
43 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe.htm l"></iframe>
44 <pre id="console"></pre>
45 </body>
46 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-frame-access-private-browsing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698