You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal ancestor origin objects list creation steps always get a null parentDoc #13066
A document's container document goes through its node navigable, which is null until the document is some navigable's active document. Both callers run before that:
So parentDoc is always null and location.ancestorOrigins is always empty.
Maybe the callers could pass in parentDoc: the embedder's node document for the initial about:blank, and navigationParams's navigable's container document otherwise.
I think there's a bug in the ancestor origin list creation steps.
The algorithm starts by getting the document's container document, but this is derived from its node navigable, which is null until the document becomes a navigable's active document. Both callers invoke these steps before that happens:
create a new browsing context invokes them before creating the navigable.
create and initialize a Document object invokes them before the new document becomes active during navigation.
As a result, parentDoc is always null, and location.ancestorOrigins is always empty.
Could we pass parentDoc explicitly to the ancestor origin list creation steps instead? The initial about:blank document could use the embedder's node document, while documents created during navigation could use navigationParams' navigable's container document.
Activity
krasavamarat commentedon Oct 23, 2026
I think there's a bug in the ancestor origin list creation steps.
The algorithm starts by getting the document's container document, but this is derived from its node navigable, which is null until the document becomes a navigable's active document. Both callers invoke these steps before that happens:
create a new browsing context invokes them before creating the navigable.
create and initialize a Document object invokes them before the new document becomes active during navigation.
As a result, parentDoc is always null, and location.ancestorOrigins is always empty.
Could we pass parentDoc explicitly to the ancestor origin list creation steps instead? The initial about:blank document could use the embedder's node document, while documents created during navigation could use navigationParams' navigable's container document.