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

Side by Side 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 unified diff | Download patch
OLDNEW
1 main frame - didStartProvisionalLoadForFrame 1 main frame - didStartProvisionalLoadForFrame
2 main frame - didCommitLoadForFrame 2 main frame - didCommitLoadForFrame
3 main frame - didFinishDocumentLoadForFrame 3 main frame - didFinishDocumentLoadForFrame
4 main frame - didHandleOnloadEventsForFrame 4 main frame - didHandleOnloadEventsForFrame
5 main frame - didFinishLoadForFrame 5 main frame - didFinishLoadForFrame
6 This test makes sure that calls to pushState() and replaceState() with URLs that violate the security origin check fail as expected. 6 This test makes sure that calls to pushState() and replaceState() with URLs that violate the security origin check fail as expected.
7 7
8 Trying to pushState() with url http://localhost/test.html failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state objec t with URL 'http://localhost/test.html' cannot be created in a document with ori gin 'http://127.0.0.1:8000'. 8 Trying to pushState() with url http://localhost/test.html failed with exception SecurityError: Failed to execute 'pushState' on 'History': A history state objec t with URL 'http://localhost/test.html' cannot be created in a document with ori gin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object- security-exception.html'.
9 History length is 1 9 History length is 1
10 Trying to replaceState() with url http://localhost/test.html failed with excepti on SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost/test.html' cannot be created in a document wi th origin 'http://127.0.0.1:8000'. 10 Trying to replaceState() with url http://localhost/test.html failed with excepti on SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost/test.html' cannot be created in a document wi th origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-o bject-security-exception.html'.
11 History length is 1 11 History length is 1
12 Trying to pushState() with url http://localhost:8001/test.html failed with excep tion SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://localhost:8001/test.html' cannot be created in a documen t with origin 'http://127.0.0.1:8000'. 12 Trying to pushState() with url http://localhost:8001/test.html failed with excep tion SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://localhost:8001/test.html' cannot be created in a documen t with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/sta te-object-security-exception.html'.
13 History length is 1 13 History length is 1
14 Trying to replaceState() with url http://localhost:8001/test.html failed with ex ception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost:8001/test.html' cannot be created in a d ocument with origin 'http://127.0.0.1:8000'. 14 Trying to replaceState() with url http://localhost:8001/test.html failed with ex ception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost:8001/test.html' cannot be created in a d ocument with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loadi ng/state-object-security-exception.html'.
15 History length is 1 15 History length is 1
16 Trying to pushState() with url http://www.webkit.org/test.html failed with excep tion SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://www.webkit.org/test.html' cannot be created in a documen t with origin 'http://127.0.0.1:8000'. 16 Trying to pushState() with url http://www.webkit.org/test.html failed with excep tion SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://www.webkit.org/test.html' cannot be created in a documen t with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/sta te-object-security-exception.html'.
17 History length is 1 17 History length is 1
18 Trying to replaceState() with url http://www.webkit.org/test.html failed with ex ception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://www.webkit.org/test.html' cannot be created in a d ocument with origin 'http://127.0.0.1:8000'. 18 Trying to replaceState() with url http://www.webkit.org/test.html failed with ex ception SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://www.webkit.org/test.html' cannot be created in a d ocument with origin 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loadi ng/state-object-security-exception.html'.
19 History length is 1 19 History length is 1
20 Trying to pushState() with url http://www.webkit.org/ failed with exception Secu rityError: Failed to execute 'pushState' on 'History': A history state object wi th URL 'http://www.webkit.org/' cannot be created in a document with origin 'htt p://127.0.0.1:8000'. 20 Trying to pushState() with url http://www.webkit.org/ failed with exception Secu rityError: Failed to execute 'pushState' on 'History': A history state object wi th URL 'http://www.webkit.org/' cannot be created in a document with origin 'htt p://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-security -exception.html'.
21 History length is 1 21 History length is 1
22 Trying to replaceState() with url http://www.webkit.org/ failed with exception S ecurityError: Failed to execute 'replaceState' on 'History': A history state obj ect with URL 'http://www.webkit.org/' cannot be created in a document with origi n 'http://127.0.0.1:8000'. 22 Trying to replaceState() with url http://www.webkit.org/ failed with exception S ecurityError: Failed to execute 'replaceState' on 'History': A history state obj ect with URL 'http://www.webkit.org/' cannot be created in a document with origi n 'http://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-se curity-exception.html'.
23 History length is 1 23 History length is 1
24 Trying to pushState() with url ftp://www.webkit.org/ failed with exception Secur ityError: Failed to execute 'pushState' on 'History': A history state object wit h URL 'ftp://www.webkit.org/' cannot be created in a document with origin 'http: //127.0.0.1:8000'. 24 Trying to pushState() with url ftp://www.webkit.org/ failed with exception Secur ityError: Failed to execute 'pushState' on 'History': A history state object wit h 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-e xception.html'.
25 History length is 1 25 History length is 1
26 Trying to replaceState() with url ftp://www.webkit.org/ failed with exception Se curityError: Failed to execute 'replaceState' on 'History': A history state obje ct with URL 'ftp://www.webkit.org/' cannot be created in a document with origin 'http://127.0.0.1:8000'. 26 Trying to replaceState() with url ftp://www.webkit.org/ failed with exception Se curityError: Failed to execute 'replaceState' on 'History': A history state obje ct 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-secu rity-exception.html'.
27 History length is 1 27 History length is 1
28 Trying to pushState() with url file://anyfile.html/ failed with exception Securi tyError: 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'. 28 Trying to pushState() with url file://anyfile.html/ failed with exception Securi tyError: 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-exc eption.html'.
29 History length is 1 29 History length is 1
30 Trying to replaceState() with url file://anyfile.html/ failed with exception Sec urityError: Failed to execute 'replaceState' on 'History': A history state objec t with URL 'file://anyfile.html/' cannot be created in a document with origin 'h ttp://127.0.0.1:8000'. 30 Trying to replaceState() with url file://anyfile.html/ failed with exception Sec urityError: Failed to execute 'replaceState' on 'History': A history state objec t with URL 'file://anyfile.html/' cannot be created in a document with origin 'h ttp://127.0.0.1:8000' and URL 'http://127.0.0.1:8000/loading/state-object-securi ty-exception.html'.
31 History length is 1 31 History length is 1
32 32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698