From 3bc328b234cc4cba2cc64ec64850dfa1d7c4d508 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Tue, 12 Nov 2013 21:50:40 +0000 Subject: [PATCH] [giow] (3) Change iframe, frame, and object.contentDocument to return null when cross-origin documents are involved. Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23219 Affected topics: HTML git-svn-id: http://svn.whatwg.org/webapps@8272 340c8d12-0b0e-0410-8428-c7bf67bfef74 --- complete.html | 14 ++++++++++---- index | 14 ++++++++++---- source | 14 ++++++++++---- 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/complete.html b/complete.html index e501c29c448..9cf48d1ffee 100644 --- a/complete.html +++ b/complete.html @@ -23170,7 +23170,9 @@

4.7.2 The iframeThe contentDocument IDL attribute must return the Document object of the active document of the - iframe element's nested browsing context, if any, or null otherwise.

+ iframe element's nested browsing context, if any and if its + effective script origin is the same origin as the effective script + origin specified by the incumbent settings object, or null otherwise.

The contentWindow IDL attribute must return the WindowProxy object of the iframe element's nested @@ -24141,8 +24143,9 @@

4.7.4 The objectThe contentDocument IDL attribute must return the Document object of the active document of the - object element's nested browsing context, if it has one; otherwise, it - must return null.

+ object element's nested browsing context, if any and if its + effective script origin is the same origin as the effective script + origin specified by the incumbent settings object, or null otherwise.

The contentWindow IDL attribute must return the WindowProxy object of the object element's nested @@ -96075,7 +96078,10 @@

15.3.3 Frames

The contentDocument IDL attribute of the frame element must return the Document object of the active - document of the frame element's nested browsing context.

+ document of the frame element's nested browsing context, if any + and if its effective script origin is the same origin as the + effective script origin specified by the incumbent settings object, or + null otherwise.

The contentWindow IDL attribute must return the WindowProxy object of the frame element's nested diff --git a/index b/index index e501c29c448..9cf48d1ffee 100644 --- a/index +++ b/index @@ -23170,7 +23170,9 @@ href="?audio">audio</a> test instead.)</p>

The contentDocument IDL attribute must return the Document object of the active document of the - iframe element's nested browsing context, if any, or null otherwise.

+ iframe element's nested browsing context, if any and if its + effective script origin is the same origin as the effective script + origin specified by the incumbent settings object, or null otherwise.

The contentWindow IDL attribute must return the WindowProxy object of the iframe element's nested @@ -24141,8 +24143,9 @@ href="?audio">audio</a> test instead.)</p>

The contentDocument IDL attribute must return the Document object of the active document of the - object element's nested browsing context, if it has one; otherwise, it - must return null.

+ object element's nested browsing context, if any and if its + effective script origin is the same origin as the effective script + origin specified by the incumbent settings object, or null otherwise.

The contentWindow IDL attribute must return the WindowProxy object of the object element's nested @@ -96075,7 +96078,10 @@ if (s = prompt('What is your name?')) {

The contentDocument IDL attribute of the frame element must return the Document object of the active - document of the frame element's nested browsing context.

+ document of the frame element's nested browsing context, if any + and if its effective script origin is the same origin as the + effective script origin specified by the incumbent settings object, or + null otherwise.

The contentWindow IDL attribute must return the WindowProxy object of the frame element's nested diff --git a/source b/source index 1be8beed418..5f5d52cd6f7 100644 --- a/source +++ b/source @@ -24389,7 +24389,9 @@ href="?audio">audio</a> test instead.)</p>

The contentDocument IDL attribute must return the Document object of the active document of the - iframe element's nested browsing context, if any, or null otherwise.

+ iframe element's nested browsing context, if any and if its + effective script origin is the same origin as the effective script + origin specified by the incumbent settings object, or null otherwise.

The contentWindow IDL attribute must return the WindowProxy object of the iframe element's nested @@ -25468,8 +25470,9 @@ href="?audio">audio</a> test instead.)</p>

The contentDocument IDL attribute must return the Document object of the active document of the - object element's nested browsing context, if it has one; otherwise, it - must return null.

+ object element's nested browsing context, if any and if its + effective script origin is the same origin as the effective script + origin specified by the incumbent settings object, or null otherwise.

The contentWindow IDL attribute must return the WindowProxy object of the object element's nested @@ -106867,7 +106870,10 @@ if (s = prompt('What is your name?')) {

The contentDocument IDL attribute of the frame element must return the Document object of the active - document of the frame element's nested browsing context.

+ document of the frame element's nested browsing context, if any + and if its effective script origin is the same origin as the + effective script origin specified by the incumbent settings object, or + null otherwise.

The contentWindow IDL attribute must return the WindowProxy object of the frame element's nested