Skip to content

Pass the correct iframe fallback URL to resource timing#12124

Open
noamr wants to merge 1 commit intowhatwg:mainfrom
noamr:iframe-onload
Open

Pass the correct iframe fallback URL to resource timing#12124
noamr wants to merge 1 commit intowhatwg:mainfrom
noamr:iframe-onload

Conversation

@noamr
Copy link
Collaborator

@noamr noamr commented Feb 2, 2026

This fixes a bug of havinga a dangling "url" variable.

The name that is passed to resource timing is the parsed URL that was initially passed to the iframe for navigation.

This codepath is "fallback resource timing" - it produces a resource timing entry for a cross-origin iframe that starts when the iframe is navigated and ends when the iframe's load event is fired, for iframes that don't produce actual resource timing based on fetch (cross-origin iframes without TAO).

This is tested by https://wpt.fyi/results/resource-timing/cross-origin-iframe.html

Closes #12122


/iframe-embed-object.html ( diff )

This fixes a bug of havinga a dangling "url" variable.

The name that is passed to resource timing is the parsed URL that
was initially passed to the iframe for navigation.

This codepath is "fallback resource timing" - it produces a resource
timing entry for a cross-origin iframe that starts when the iframe is
navigated and ends when the iframe's load event is fired, for iframes
that don't produce actual resource timing based on fetch.

This is tested by https://wpt.fyi/results/resource-timing/cross-origin-iframe.html

Closes whatwg#12122
@noamr noamr requested a review from annevk February 2, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

url is not defined in iframe load event steps

1 participant