blob: a7b098a53c7f89b8869e7e70e23b31b9fa9feda7 [file] [log] [blame]
CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foreign-domain-subframe.html from frame with URL about:blank. Domains, protocols and ports must match.
CONSOLE MESSAGE: line 1: TypeError: Undefined value
The scenario for this test is that you have an iframe with content from a foreign domain. In that foreign content is an iframe which loads a javascript: URL. This tests that the javascript: URL loaded iframe does not have access to the main frame using top.document.
Pass: Cross frame access from a javascript: URL on a different domain was denied.
--------
Frame: '<!--framePath //<!--frame0-->-->'
--------
Inner iframe on a foreign domain.
--------
Frame: 'aFrame'
--------
Inner-inner iframe. This iframe (which is javascript: URL and whose parent is on a foreign domain) is the frame attempting to access the main frame. It should not have access to it.