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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/loading/state-object-security-exception-expected.txt

Issue 1495013002: Check for equality of the URL's origin in replaceState/pushState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put all logic in History.cpp, change tests to testharness Created 5 years 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: third_party/WebKit/LayoutTests/http/tests/loading/state-object-security-exception-expected.txt
diff --git a/third_party/WebKit/LayoutTests/http/tests/loading/state-object-security-exception-expected.txt b/third_party/WebKit/LayoutTests/http/tests/loading/state-object-security-exception-expected.txt
index de6f7d2602b3e85a21cb92a1666c013619b09cf7..f9d6d56f685226a930e861f60421a68cb10556ff 100644
--- a/third_party/WebKit/LayoutTests/http/tests/loading/state-object-security-exception-expected.txt
+++ b/third_party/WebKit/LayoutTests/http/tests/loading/state-object-security-exception-expected.txt
@@ -5,28 +5,28 @@ main frame - didHandleOnloadEventsForFrame
main frame - didFinishLoadForFrame
This test makes sure that calls to pushState() and replaceState() with URLs that violate the security origin check fail as expected.
-Trying to pushState() with url http://localhost/test.html failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://localhost/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to pushState() with url http://localhost/test.html failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://localhost/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to replaceState() with url http://localhost/test.html failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to replaceState() with url http://localhost/test.html failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to pushState() with url http://localhost:8001/test.html failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://localhost:8001/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to pushState() with url http://localhost:8001/test.html failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://localhost:8001/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to replaceState() with url http://localhost:8001/test.html failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost:8001/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to replaceState() with url http://localhost:8001/test.html failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost:8001/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to pushState() with url http://www.webkit.org/test.html failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://www.webkit.org/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to pushState() with url http://www.webkit.org/test.html failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://www.webkit.org/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to replaceState() with url http://www.webkit.org/test.html failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://www.webkit.org/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to replaceState() with url http://www.webkit.org/test.html failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://www.webkit.org/test.html' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to pushState() with url http://www.webkit.org/ failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://www.webkit.org/' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to pushState() with url http://www.webkit.org/ failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://www.webkit.org/' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to replaceState() with url http://www.webkit.org/ failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://www.webkit.org/' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to replaceState() with url http://www.webkit.org/ failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://www.webkit.org/' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to pushState() with url ftp://www.webkit.org/ failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'ftp://www.webkit.org/' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to pushState() with url ftp://www.webkit.org/ failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'ftp://www.webkit.org/' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to replaceState() with url ftp://www.webkit.org/ failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'ftp://www.webkit.org/' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to replaceState() with url ftp://www.webkit.org/ failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'ftp://www.webkit.org/' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to pushState() with url file://anyfile.html/ failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'file://anyfile.html/' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to pushState() with url file://anyfile.html/ failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'file://anyfile.html/' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1
-Trying to replaceState() with url file://anyfile.html/ failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file://anyfile.html/' cannot be created in a document with origin 'http://127.0.0.1:8000'.
+Trying to replaceState() with url file://anyfile.html/ failed with exception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file://anyfile.html/' cannot be created in a document with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security-exception.html'.
History length is 1

Powered by Google App Engine
This is Rietveld 408576698