Skip to content

Do not create an extra page for iframes - #173

Merged
soulgalore merged 2 commits into
mainfrom
fix-iframe-extra-page
Nov 3, 2026
Merged

soulgalore merged 2 commits into
mainfrom
fix-iframe-extra-page

Conversation

@soulgalore

Copy link
Copy Markdown
Member

Chrome sometimes reports that an iframe starts loading without first reporting that it is attached to the page. The HAR then got an extra page for the iframe, and the requests after that ended up on it. In sitespeed.io this showed up as a page without a URL and broke the report (sitespeed.io issue 4124).

A frame that we do not know about now gets a page only when it loads a document, which an iframe doing same-document navigations never does. A real new page still loads a document, so traces with more than one page keep working.

Assisted-by: Claude Opus 5.5 [email protected]

Chrome sometimes reports that an iframe starts loading without first reporting that it is attached to the page. The HAR then got an extra page for the iframe, and the requests after that ended up on it. In sitespeed.io this showed up as a page without a URL and broke the report (sitespeed.io issue 4124).

A frame that we do not know about now gets a page only when it loads a document, which an iframe doing same-document navigations never does. A real new page still loads a document, so traces with more than one page keep working.

Assisted-by: Claude Opus 5.5 [email protected]
… fix-iframe-extra-page

# Conflicts:
#	CHANGELOG.md
#	test/tests.js
@soulgalore
soulgalore merged commit dd0a9ed into main Nov 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant