Skip to content

Check that an iframe is in a document with a browsing context before processing src #13964

@asajeffrey

Description

@asajeffrey

https://html.spec.whatwg.org/multipage/embedded-content.html#the-iframe-element says:

When an iframe element is inserted into a document that has a browsing context, the user agent must create a new browsing context, set the element's nested browsing context to the newly-created browsing context, and then process the iframe attributes for the "first time".

We are currently just checking that the iframe is in a document, not that the document has a browsing context.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions