New issue
Advanced search Search tips

Issue 600744 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

.contentDocument on iframe whose current document is cross-origin should return null

Reported by bzbar...@mit.edu, Apr 5 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:48.0) Gecko/20100101 Firefox/48.0

Example URL:

Steps to reproduce the problem:
1. Load a cross-origin document in an iframe.
2. Access .contentDocument on that iframe.

What is the expected behavior?
Return null.  See https://html.spec.whatwg.org/multipage/embedded-content.html#dom-iframe-contentdocument

What went wrong?
Exception thrown.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 51.0.2693.2 (Official Build) dev (64-bit)  Channel: n/a
OS Version: OS X 10.10
Flash Version: Shockwave Flash 21.0 r0

This works correctly (per spec) in Firefox and Safari.  I did check the oldest Chrome version I have handy (37) and it has the bug, so I'm not sure whether the bug predates the Blink/WebKit fork or was introduced after that.
 

Comment 1 by kojii@chromium.org, Apr 6 2016

Components: -Blink Blink>DOM
Labels: -OS-Mac Hotlist-Interop OS-All
Owner: dominicc@chromium.org
Status: Available (was: Unconfirmed)
JSbin: http://jsbin.com/dayibemagu This does indeed throw an error instead of returning null. Likewise for <iframe sandbox>.

Comment 3 by tkent@chromium.org, May 30 2016

Components: -Blink>DOM Blink>SecurityFeature Blink>HTML>IFrame
Project Member

Comment 4 by sheriffbot@chromium.org, May 30 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by mkwst@chromium.org, Jun 19 2017

Components: -Blink>SecurityFeature Blink>SecurityFeature>SameOriginPolicy
Status: Assigned (was: Untriaged)
dominicc@: Do you plan to poke at this? It seems like a pretty small change if you have some time.

Comment 6 by est...@chromium.org, Nov 10 2017

Labels: Hotlist-EnamelAndFriendsFixIt

Comment 7 by rakina@chromium.org, Jan 15 2018

Owner: ----
Status: Available (was: Assigned)
Bulk edit bugs owned by dominicc@

Comment 8 by est...@chromium.org, Feb 18 2018

Labels: -Hotlist-EnamelAndFriendsFixIt

Sign in to add a comment