Skip to content

Preserve authored iframe src during remote document navigation - #899

Merged
wieslawsoltes merged 1 commit into
mainfrom
fix/iframe-unload-reflected-src-267
Sep 21, 2026
Merged

wieslawsoltes merged 1 commit into
mainfrom
fix/iframe-unload-reflected-src-267

Conversation

@wieslawsoltes

@wieslawsoltes wieslawsoltes commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #896. Loading a relative iframe source silently rewrote getAttribute("src") to the resolved absolute URL, breaking authored markup and the existing beforeunload lifecycle gate. Preserve the authored value while keeping a separate resolved request/committed-origin URL for prefetch, navigation and security decisions.

Part 1 of the native GitHub stack #902: #899 → #900 → #901. Validate the top PR against the complete iframe lifecycle gate before merging the stack. The baseline reproduction exists on clean merged main 99cf2f86; full top-branch evidence is in docs/validation/iframe-url-history-896-898.md.

Stack created with GitHub Stacks CLI • Give Feedback 💬

@wieslawsoltes
wieslawsoltes added this pull request to stack #902 September 21, 2026 07:36
@wieslawsoltes wieslawsoltes changed the title fix/iframe unload reflected src 267 Preserve authored iframe src during remote document navigation Sep 21, 2026
@wieslawsoltes
wieslawsoltes merged commit e088888 into main Sep 21, 2026
2 of 17 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.

Preserve authored iframe src during remote document resolution

1 participant