Skip to content

Fix reload guard perma-fail#31

Open
rossjrw wants to merge 1 commit into
mainfrom
fix-broken-reload-guard
Open

Fix reload guard perma-fail#31
rossjrw wants to merge 1 commit into
mainfrom
fix-broken-reload-guard

Conversation

@rossjrw

@rossjrw rossjrw commented Jun 27, 2026

Copy link
Copy Markdown
Member

On network connectivity loss, the resize iframe will fail to load; its src will still be set (which prevents it from being set to the same value in future, to block unnecessary reloads), but if it failed, that src does not actually represent the resized height. Subsequent attempts to correct the height to that value, even with connectivity restored, will fail because the src already looks right. We can avoid that by checking if the iframe load succeeded.

This only helps for consecutive requests to set the value to a given height; a further request to set the value to a new height would have succeeded.

On network connectivity loss, the resize iframe will fail to load; its
src will still be set (which prevents it from being set to the same
value in future, to block unnecessary reloads), but if it failed, that
src does not actually represent the resized heigt. Subsequent attempts
to correct the height to that value, even with connectivity restored,
will fail because the src already looks right. We can avoid that by
checking if the iframe load succeeded.

This only helps for consecutive requests to set the value to a given
height; a further request to set the value to a new height would have
succeeded.
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://scpwiki.github.io/interwiki/pr-preview/pr-31/

Built to branch gh-pages at 2026-06-27 01:51 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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