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

Side by Side Diff: LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-child-iframe.html

Issue 242613009: Make window.history property non replaceable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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
1 <html> 1 <html>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 5
6 window.onmessage = function(evt) 6 window.onmessage = function(evt)
7 { 7 {
8 if (evt.data == "setHistoryLength") { 8 if (evt.data == "setHistoryLength") {
9 setHistoryLength(); 9 setHistoryLength();
10 return; 10 return;
11 } else 11 } else
12 alert("Unknown message."); 12 alert("Unknown message.");
13 } 13 }
14 14
15 function setHistoryLength() 15 function setHistoryLength()
16 { 16 {
17 alert("About to shadow child window's history object: " + window.history); 17 alert("About to shadow child window's history object: " + window.history);
18 window.history = ""; 18 window.history = "";
19 alert("Shadowed child window's history object: " + window.history); 19 alert("Child window's history object should not be shadowed: " + window.hist ory);
20 parent.window.postMessage("done", "*"); 20 parent.window.postMessage("done", "*");
21 } 21 }
22 22
23 </script> 23 </script>
24 <body> 24 <body>
25 HELLO THERE 25 HELLO THERE
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/history/cross-origin-replace-history-object-child-expected.txt ('k') | Source/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698