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

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-callback-explicit-domain-DENY-expected.txt

Issue 19095003: Throw 'SecurityError' upon cross-origin Location access. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. Created 7 years, 5 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 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://127.0.0.1:8000". The frame requesting access set "document.domain" to "127.0.0.1", but the frame being accessed did not. Both mu st set "document.domain" to the same value to allow access. 1 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://127.0.0.1:8000". The frame requesting access set "document.domain" to "127.0.0.1", but the frame being accessed did not. Both mu st set "document.domain" to the same value to allow access.
2 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://127.0.0.1:8000". The frame requesting access set "document.domain" to "127.0.0.1", but the frame being accessed did not. Both mu st set "document.domain" to the same value to allow access.
2 Test that a child frame can't define a function and the use it to access parent properties after document.domain write blocks the access. 3 Test that a child frame can't define a function and the use it to access parent properties after document.domain write blocks the access.
3 4
4 5
5 6
6 -------- 7 --------
7 Frame: '<!--framePath //<!--frame0-->-->' 8 Frame: '<!--framePath //<!--frame0-->-->'
8 -------- 9 --------
9 PASS: canGet('parentWindow.location.href') should be 'false' and is. 10 PASS: canGet('parentWindow.location.href') should be 'false' and is.
11 PASS: accessThrowsException('parentWindow.location.href') should be 'true' and i s.
12
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698