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

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-object-prototype-expected.txt

Issue 19932002: Throw exceptions on all failed cross-origin access checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test. 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://localhost:8000". Protocols, domains, and ports m ust match.
2 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
3 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
4 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
5 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
6 1
2 SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessin g a frame with origin "http://localhost:8000". Protocols, domains, and ports mus t match.
3 SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessin g a frame with origin "http://localhost:8000". Protocols, domains, and ports mus t match.
7 4
8 ----- test getting values cross-frame using Object.prototype ----- 5 ----- test getting values cross-frame using Object.prototype -----
9 6
10 PASS: Object.prototype.__lookupGetter__.call(targetFrame, 'myGetter'); should be 'undefined' and is. 7 PASS: Object.prototype.__lookupGetter__.call(targetFrame, 'myGetter'); should ha ve thrown an exception, and did.
11 PASS: Object.prototype.__lookupSetter__.call(targetFrame, 'mySetter'); should be 'undefined' and is. 8 PASS: Object.prototype.__lookupSetter__.call(targetFrame, 'mySetter'); should ha ve thrown an exception, and did.
12 PASS: Object.prototype.propertyIsEnumerable.call(targetFrame, 'myProp'); should be 'false' and is. 9 PASS: Object.prototype.propertyIsEnumerable.call(targetFrame, 'myProp'); should have thrown an exception, and did.
13 10
14 11
15 -------- 12 --------
16 Frame: 'target' 13 Frame: 'target'
17 -------- 14 --------
18 15
19 ----- test that functions could not be injected cross-frame using Object.prototy pe ----- 16 ----- test that functions could not be injected cross-frame using Object.prototy pe -----
20 17
21 PASS: window.hasOwnProperty('injectedGetter') should be 'false' and is. 18 PASS: window.hasOwnProperty('injectedGetter') should be 'false' and is.
22 PASS: window.__lookupGetter__('injectedGetter') should be 'undefined' and is. 19 PASS: window.__lookupGetter__('injectedGetter') should be 'undefined' and is.
23 PASS: window.hasOwnProperty('injectedSetter') should be 'false' and is. 20 PASS: window.hasOwnProperty('injectedSetter') should be 'false' and is.
24 PASS: window.__lookupSetter__('injectedSetter') should be 'undefined' and is. 21 PASS: window.__lookupSetter__('injectedSetter') should be 'undefined' and is.
25 PASS: window.injectedGetter should be 'undefined' and is. 22 PASS: window.injectedGetter should be 'undefined' and is.
26 PASS: window.injectedSetter = 1 should be '1' and is. 23 PASS: window.injectedSetter = 1 should be '1' and is.
27 24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698