Where.src/background/index.js:60 (connectedSites), 646-651 (a
non-remembered Allow only sets connectedSites), 1650-1653
(AUTISTMASK_REMOVE_SITE handler is a no-op); src/popup/views/settings.js:37-70
(Settings lists only remembered hostnames).
What is wrong. A site connected without "Remember" lives only in the
in-memory connectedSites map. Settings lists only remembered hostnames, so such
a connection is neither shown nor revocable, and the AUTISTMASK_REMOVE_SITE
message the popup sends on a remove does nothing in the background. A session
connection ends only on an address switch or a worker restart (and on Firefox's
persistent background page, not until the browser restarts).
Why it matters. The user cannot disconnect a site they connected, and
Settings gives an incomplete picture of who is connected.
Reproduction. Connect to a site without Remember; open Settings — the site is
not listed and there is no control to disconnect it.
Acceptable. Show live session connections in Settings, and make removal (and AUTISTMASK_REMOVE_SITE) delete the matching connectedSites entries and
broadcast accountsChanged [] to that origin.
Definition of done.
Settings shows live session connections as well as remembered ones.
Removing a site clears both the remembered entry and any matching connectedSites entry, and notifies the tab.
A test asserts a removed site no longer returns the address from eth_accounts.
Severity: hardening.
**Where.** `src/background/index.js:60` (`connectedSites`), `646-651` (a
non-remembered Allow only sets `connectedSites`), `1650-1653`
(`AUTISTMASK_REMOVE_SITE` handler is a no-op); `src/popup/views/settings.js:37-70`
(Settings lists only remembered hostnames).
**What is wrong.** A site connected without "Remember" lives only in the
in-memory `connectedSites` map. Settings lists only remembered hostnames, so such
a connection is neither shown nor revocable, and the `AUTISTMASK_REMOVE_SITE`
message the popup sends on a remove does nothing in the background. A session
connection ends only on an address switch or a worker restart (and on Firefox's
persistent background page, not until the browser restarts).
**Why it matters.** The user cannot disconnect a site they connected, and
Settings gives an incomplete picture of who is connected.
**Reproduction.** Connect to a site without Remember; open Settings — the site is
not listed and there is no control to disconnect it.
**Acceptable.** Show live session connections in Settings, and make removal (and
`AUTISTMASK_REMOVE_SITE`) delete the matching `connectedSites` entries and
broadcast `accountsChanged []` to that origin.
**Definition of done.**
- [ ] Settings shows live session connections as well as remembered ones.
- [ ] Removing a site clears both the remembered entry and any matching
`connectedSites` entry, and notifies the tab.
- [ ] A test asserts a removed site no longer returns the address from
`eth_accounts`.
Related: https://git.eeqj.de/sneak/AutistMask/issues/245
Model: fable-5-1 (review); opus-4-8 (filing)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Severity: hardening.
Where.
src/background/index.js:60(connectedSites),646-651(anon-remembered Allow only sets
connectedSites),1650-1653(
AUTISTMASK_REMOVE_SITEhandler is a no-op);src/popup/views/settings.js:37-70(Settings lists only remembered hostnames).
What is wrong. A site connected without "Remember" lives only in the
in-memory
connectedSitesmap. Settings lists only remembered hostnames, so sucha connection is neither shown nor revocable, and the
AUTISTMASK_REMOVE_SITEmessage the popup sends on a remove does nothing in the background. A session
connection ends only on an address switch or a worker restart (and on Firefox's
persistent background page, not until the browser restarts).
Why it matters. The user cannot disconnect a site they connected, and
Settings gives an incomplete picture of who is connected.
Reproduction. Connect to a site without Remember; open Settings — the site is
not listed and there is no control to disconnect it.
Acceptable. Show live session connections in Settings, and make removal (and
AUTISTMASK_REMOVE_SITE) delete the matchingconnectedSitesentries andbroadcast
accountsChanged []to that origin.Definition of done.
connectedSitesentry, and notifies the tab.eth_accounts.Related: #245
Model: fable-5-1 (review); opus-4-8 (filing)