Commit Graph
100 Commits
Author SHA1 Message Date
ZacharyZhang-NY c95e3665c6 Omnibar Enter navigates the current tab instead of spawning a new one
`submit_command` matched every browser's "Enter to navigate" intent
to `open_tab(url)`, which always inserts a new `BrowserTab`. So
typing `google.com` and hitting Enter on a new-tab page would leave
both the new-tab and a fresh google.com tab in the sidebar.

Mirror the same in-place navigation rule the shell-level code now
uses: `navigate_active_tab(url)` for the Navigate and Search
intents, with `open_tab` as the fallback when there's no active tab
yet. Tab count only goes up when the user explicitly hits + New Tab.

cargo test --workspace: 440 passed, 0 failed.
2026-05-09 22:50:01 -04:00
ZacharyZhang-NY f8e05604ed Navigate the active tab in place instead of spawning a new tab
Root cause of "settings opens new tab for every click": every
internal navigation went through `open_internal_tab → open_url →
core.open_tab(url)`, and `open_tab` unconditionally inserts a new
`BrowserTab`. So three settings sub-page clicks left four tabs in
the sidebar, which is the screenshot the user keeps sending.

Real browsers navigate the active tab in place for in-app links and
spawn new tabs only on `+ New Tab` (or Cmd-click). Wire it through:

* `BrowserTab::set_url(url)` mutates the tab's URL and bumps
  `last_active_at`. Title stays put — the page renderer can refresh
  it from the new URL.
* `BrowserCore::navigate_active_tab(url)` finds the active tab,
  calls `set_url`, marks it Ready, records the history entry, and
  bumps activity. Returns `TabNotFound` if there's no active tab.
* `ElyShell::navigate_active_tab` calls the core method and falls
  back to `open_tab` if there's no active tab to navigate. The
  shell's `open_internal_tab` (used by settings nav, home pills,
  sidebar Settings + Profile rows, command-overlay routes, etc.)
  now routes through this in-place path.
* `open_url` keeps the explicit "spawn a new tab" semantics for
  `+ New Tab` and the deep-link router.

Settings, plugin marketplace, history, profile picker — every
sidebar nav now stays in one tab.

cargo test --workspace: 440 passed, 0 failed.
2026-05-09 22:42:25 -04:00
ZacharyZhang-NY 189b9b8b89 Add current page download pipeline 2026-05-09 12:54:24 -04:00
ZacharyZhang-NY 1faa7423c1 Add Servo page zoom support 2026-05-09 12:32:44 -04:00
ZacharyZhang-NY a1aa38dbb2 Add expired space trash purge 2026-05-09 11:38:45 -04:00
ZacharyZhang-NY 8b9c4579c1 Add active profile local data export 2026-05-09 08:23:37 -04:00
ZacharyZhang-NY 2b6de367b0 Add privacy local data inventory 2026-05-09 07:22:14 -04:00
ZacharyZhang-NY a8d2688020 Record local diagnostics events 2026-05-09 06:12:05 -04:00
ZacharyZhang-NY 1eb8e271f5 Add bookmark import export packages 2026-05-09 02:07:37 -04:00
ZacharyZhang-NY b3907f42a8 Add site compatibility diagnostics page 2026-05-09 01:43:10 -04:00
ZacharyZhang-NY d193f5a400 Add settings reset defaults 2026-05-09 01:14:15 -04:00
ZacharyZhang-NY 96732c8932 Gate plugins in private profiles 2026-05-09 00:44:15 -04:00
ZacharyZhang-NY 97a06d7b52 Add active tab reorder commands 2026-05-09 00:16:12 -04:00
ZacharyZhang-NY 0203840b68 Wire elyspace import export UI 2026-05-08 23:22:55 -04:00
ZacharyZhang-NY 058d377eab Add elyspace core import export model 2026-05-08 23:05:53 -04:00
ZacharyZhang-NY 784fe5a288 Move space navigation into state module 2026-05-08 22:49:57 -04:00
ZacharyZhang-NY 60426b6c18 Clear private profile download index on exit 2026-05-08 22:35:42 -04:00
ZacharyZhang-NY 2bd94710df Add active profile site data clearing 2026-05-08 21:40:18 -04:00
ZacharyZhang-NY d769b45f54 Wire plugin file install command 2026-05-08 21:20:29 -04:00
ZacharyZhang-NY 8e450496e0 Lock private profile sync state 2026-05-08 20:19:09 -04:00
ZacharyZhang-NY b4355d0f82 Add bookmark thumbnail metadata 2026-05-08 11:47:38 -04:00
ZacharyZhang-NY 24bdf3d2dc Add tab group ordering commands 2026-05-08 11:31:34 -04:00
ZacharyZhang-NY 0e01395a5d Add tab group color command 2026-05-08 11:13:39 -04:00
ZacharyZhang-NY 5588237a1f Add tab group rename command 2026-05-08 11:05:54 -04:00
ZacharyZhang-NY fb33771c8f Add tab group refresh command 2026-05-08 10:57:57 -04:00
ZacharyZhang-NY 475be06edc Add tab group close command 2026-05-08 10:49:45 -04:00
ZacharyZhang-NY a05b662fd6 Add tab group sleep command 2026-05-08 10:40:24 -04:00
ZacharyZhang-NY f167b7999b Add domain tab auto grouping 2026-05-08 10:32:09 -04:00
ZacharyZhang-NY 3c380e1455 Add sleeping tab recovery 2026-05-08 10:23:58 -04:00
ZacharyZhang-NY 1ec3bfcc3d Add crashed tab recovery 2026-05-08 10:14:00 -04:00
ZacharyZhang-NY b11668e75e Add space trash recovery 2026-05-08 09:17:59 -04:00
ZacharyZhang-NY e839b05415 Add space order controls 2026-05-08 09:07:20 -04:00
ZacharyZhang-NY 24338e0f71 Swap active split panes 2026-05-08 08:11:49 -04:00
ZacharyZhang-NY 1186509e26 Duplicate active split panes 2026-05-08 08:03:15 -04:00
ZacharyZhang-NY 5179a1adf7 Detach active split panes 2026-05-08 07:55:15 -04:00
ZacharyZhang-NY 4ed8ed9401 Add split layout axis commands 2026-05-08 07:48:43 -04:00
ZacharyZhang-NY 499bcc1e5a Convert split views to tab groups 2026-05-08 07:41:26 -04:00
ZacharyZhang-NY 2b8d9051df Convert tab groups to split views 2026-05-08 07:32:39 -04:00
ZacharyZhang-NY 20020185d0 Add tab group collapse controls 2026-05-08 07:24:01 -04:00
ZacharyZhang-NY adf5b27207 Add tab group sidebar support 2026-05-08 07:16:17 -04:00
ZacharyZhang-NY 818e8e550d Add note removal 2026-05-08 06:59:03 -04:00
ZacharyZhang-NY 7e68857eb8 Add page notes panel 2026-05-08 06:53:31 -04:00
ZacharyZhang-NY bae3c7789f Add reading list progress percent 2026-05-08 06:43:38 -04:00
ZacharyZhang-NY 5db300f107 Add reading list removal 2026-05-08 06:29:16 -04:00
ZacharyZhang-NY e13557814d Add reading list progress actions 2026-05-08 06:23:21 -04:00
ZacharyZhang-NY fc00840697 Add bookmark metadata editor 2026-05-08 06:14:31 -04:00
ZacharyZhang-NY 26d0e4346c Add bookmark metadata updates 2026-05-08 06:03:43 -04:00
ZacharyZhang-NY a236e6a53b Track history favicon keys 2026-05-08 05:58:05 -04:00
ZacharyZhang-NY e62d64874f Track tab favicon keys 2026-05-08 05:53:02 -04:00
ZacharyZhang-NY 668557773b Track tab sort keys 2026-05-08 05:47:50 -04:00