Open Bug 2081573 Opened 29 days ago Updated 22 days ago

ancestorOrigins on <object> returns empty array regardless of referrerpolicy

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

People

(Reporter: mtan, Unassigned, NeedInfo)

Details

Gecko seems to treat the document inside of <object> as a top level document with no parent.
So the object.contentWindow.location.ancestorOrigins return [] in Firefox.

While <object> has a container document, so its ancestorOrigins must be [window.origin].

Step 3 of internal ancestor origin objects list creation steps is violated.

NI myself on this

Flags: needinfo?(sfarre)

FWIW, we have a test for this.

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.