Commit Graph
1 Commits
Author SHA1 Message Date
yetone 4f3ec591ae browser: an extension older than magpie's is to be reloaded, says the sheet and the agent
magpie rewrites the extension's folder when an older one connects, but
Chrome runs what it loaded until the extension is reloaded on
chrome://extensions or the browser starts again, so a user who never does
either stays on the old code. Now that is said:

- Library → Magpie Browser: under "Connected to your browser · 0.1.8" a
  line says "Magpie Browser 0.1.9 is ready: reload Magpie Browser on
  chrome://extensions (edge://extensions in Edge)." Looked at from another
  computer (the zip install), it says to download it again, unzip it over
  the old folder and reload it. /api/library/browser has outdated.
- The agent: the first browser answer on such a connection starts with a
  line telling it to have the user reload it (or download it again, for
  one connected with a gateway key). Once a connection.

The extension still isn't made to reload itself: an unpacked one that
calls chrome.runtime.reload() doesn't come back (the finding in
browser.go's hello).

The fake extension in the gateway's tests now says magpie's own version
(it said 0.1.0, which every test would now be told about).

Run (on mote):
- internal/gateway TestBrowser* (new TestBrowserSaysTheExtensionIsOlder,
  TestBrowserSaysNothingOfACurrentExtension), ok.
- internal/gui TestBrowser* (new TestBrowserStateOutdated), ok.
- GUI: library-browser-setup, library-browser-away, library-browser-ask,
  browser-access, i18n-keys in Chromium and WebKit, every language, at
  1100 and 420 wide: 127 of 128. The red is i18n-keys "a plugin's words
  are its own" for three keys this change doesn't touch, red on main and
  filed (#5332, #5482, #5426).
- go vet for darwin, linux (nogui) and windows; gofmt -l clean.

Broken by hand:
- the once-a-connection check removed: TestBrowserSaysTheExtensionIsOlder
  red ("s1's next answer" has the note again).
- the sheet's line never shown: library-browser-setup red, 20 of 20.
- Outdated without Connected: TestBrowserStateOutdated red.

Not tried: the whole GUI suite before this push (run next), and a real
Chrome with an older extension loaded by hand.
2026-11-09 06:57:40 +08:00