Skip to content

fix navigation state - #806

Merged
SharonStrats merged 2 commits into
stagingfrom
fixSafari
Nov 9, 2026
Merged

SharonStrats merged 2 commits into
stagingfrom
fixSafari

Conversation

@timea-solid

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the Safari navigation-state changes.

No open issues 🎉

What changed in this PR

Fixes navigation state handling when Safari reports application history writes as user-initiated navigation, preserving pane selection without interfering with address-bar navigation.

Changes:

  • Adds a guarded history-write helper and ignores synchronous navigation events during application writes.
  • Routes outline and pane-state history updates through the helper, with logging for outline history failures.
  • Adds regression tests for Storage selection, recursive interception, and guard cleanup, and documents the behavior.
File Description
test/​unit/​navigation/​browserEvents.test.ts Tests Safari-style history events and guard cleanup after errors.
test/​unit/​mainPage/​navbar.test.ts Verifies Storage remains selected during a Safari-style history event.
src/​outline/​manager.js Uses guarded history writes and logs history-update failures.
src/​navigation/​state.ts Adds the history-write guard and applies it when clearing pane state.
src/​navigation/​browserEvents.ts Skips interception during guarded application history writes.
docs/​navigation-design.md Documents guarded writes and Safari navigation handling.

Review effort: Balanced

…@5.0.2-8 pane-registry@5.0.2-3 folder-pane@4.0.1-2 profile-pane@4.1.0-0 source-pane@4.0.1-0) (latest: rdflib@2.4.1 activitystreams-pane@2.0.0 chat-pane@4.0.0 contacts-pane@4.0.0 issue-pane@4.0.0 meeting-pane@4.0.0)

@SharonStrats SharonStrats left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, so quirky. We have too many "flows" I feel like. It's hard to keep track of each and very one.

@SharonStrats
SharonStrats merged commit 3fad6ee into staging Nov 9, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in SolidOS NLNet UI Nov 9, 2026
@SharonStrats
SharonStrats deleted the fixSafari branch November 9, 2026 19:08
@SharonStrats SharonStrats linked an issue Nov 9, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Safari problems with navbar

3 participants