Skip to content

Fix: reload refreshing iframes without adding Back entries - #511

Merged
SandObserver merged 1 commit into
mainfrom
fix/iframe-refresh-history
Oct 19, 2026
Merged

SandObserver merged 1 commit into
mainfrom
fix/iframe-refresh-history

Conversation

@SandObserver

Copy link
Copy Markdown
Owner

Summary

  • Reload a tile with a refresh interval through contentWindow.location.replace, which adds no session history entry, including for a cross-origin frame.
  • Fall back to assigning src when the frame has no window yet.
  • Refresh the cache-busting stamps.

Testing
All green. Added a test that a reload replaces the frame location and leaves src unchanged.

Changelog

Fixed

  • Stop app tiles with a refresh interval from filling the browser Back history.

Checklist

  • Stays within the project constraints: one container, no runtime dependencies, no build step (see CONTRIBUTING.md).
  • Tests added or updated for new logic, and the full suite, lint, and typechecks pass.
  • Docs updated if behavior or configuration changed.

Reload with contentWindow.location.replace and fall back to setting src
when the frame has no window.
@SandObserver SandObserver added the bug Something isn't working label Oct 19, 2026
@SandObserver
SandObserver merged commit 052b345 into main Oct 19, 2026
6 checks passed
@SandObserver
SandObserver deleted the fix/iframe-refresh-history branch October 19, 2026 04:58
stackyard-release Bot pushed a commit that referenced this pull request Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant