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

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

Issue 6911011: Merge 85436 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/loader/stateobjects/replacestate-base-illegal.html
===================================================================
--- LayoutTests/fast/loader/stateobjects/replacestate-base-illegal.html (revision 85529)
+++ LayoutTests/fast/loader/stateobjects/replacestate-base-illegal.html (working copy)
@@ -1,26 +0,0 @@
-<html>
-<head>
-<base href="https://www.test.com/">
-<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
-
-window.onload = function(){
- var msg;
- try {
- window.history.replaceState({}, {}, 'https://www.test.com/');
- msg = document.createTextNode("FAIL: URL bar was changed.");
- } catch (e) {
- if (e.code == 18)
- msg = document.createTextNode("PASS: Security exception thrown.");
- else
- msg = document.createTextNode("FAIL: Unknown exception thrown.");
- }
- document.body.appendChild(msg);
-};
-</script>
-</head>
-<body>
-<p>This page should trigger an error on attempting to set the URL bar to https://www.test.com/</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698