Skip to content

Fix blank iframe after remount by setting iframe.src on load#239

Open
sandmor wants to merge 1 commit into
readium:developfrom
sandmor:blank-iframe-after-remount
Open

Fix blank iframe after remount by setting iframe.src on load#239
sandmor wants to merge 1 commit into
readium:developfrom
sandmor:blank-iframe-after-remount

Conversation

@sandmor

@sandmor sandmor commented Jul 14, 2026

Copy link
Copy Markdown

This fixes #238

The frame managers loaded blob content with contentWindow.location.replace() and never set iframe.src, so the attribute stayed at about:blank, provoking later for remount/reparent to restore a blank document while the iframe stayed in the DOM.

This fixes it via setting iframe.src = source in FrameManager, FXLFrameManager and WebPubFrameManager.

@JayPanoz

Copy link
Copy Markdown
Contributor

@chocolatkey I am unable to review this PR ar the moment because I do not have the all the background information relevant to window.location.replace and iframe.src.

I know this was quite some time ago but would you happen to remember why you picked the former?

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.

FrameManager.load() never sets iframe.src, so browser remount/reload can blank the page

2 participants