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

Side by Side Diff: LayoutTests/fast/loader/stateobjects/replacestate-base-illegal.html

Issue 3106001: Merge 64077 - 2010-07-26 Justin Schuh <jschuh@chromium.org>... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/WebKit/375/
Patch Set: Created 10 years, 4 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/fast/loader/stateobjects/replacestate-base-illegal-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 <base href="https://www.test.com/">
4 <script>
5 if (window.layoutTestController)
6 layoutTestController.dumpAsText();
7
8 window.onload = function(){
9 var msg;
10 try {
11 window.history.replaceState({}, {}, 'https://www.test.com/');
12 msg = document.createTextNode("FAIL: URL bar was changed.");
13 } catch (e) {
14 if (e.code == 18)
15 msg = document.createTextNode("PASS: Security exception thrown.");
16 else
17 msg = document.createTextNode("FAIL: Unknown exception thrown.");
18 }
19 document.body.appendChild(msg);
20 };
21 </script>
22 </head>
23 <body>
24 <p>This page should trigger an error on attempting to set the URL bar to https:/ /www.test.com/</p>
25 </body>
26 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/loader/stateobjects/replacestate-base-illegal-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698