1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 20:39:08 +01:00
metamask-extension/app/scripts/controllers/permissions
Mark Stacey bd23a49013
Revert "Moved subscribe and filter into network controller (#16693)" (#18129)
* Revert "Moved subscribe and filter into network controller (#16693)"

This reverts commit 6f6984fa58. That
commit was an RPC middleware refactor intended to move the subscribe
and filter middleware into the network controller, to simplify the
process of sharing this middleware between clients.

This refactor resulted in `eth_subscribe` notifications being sent on
the wrong connections, causing the UI to break in some cases (the UI
`provider` connection does not support notifications). This happened
because the `setupProviderEngine` function runs per-connection,
whereas the engine setup inside the network controller is global. The
global network client cannot support notifications because it has no
way to route them; they'll need to stay in the per-connection provider
engine.

Closes #17467

* Add e2e test

An e2e test has been added that confirms subscriptions are only
broadcast to the site that registered them. This test fails on
`develop`.
2023-03-15 12:16:31 -02:30
..
flask Pass excludedPermissions to SnapController (#17321) 2023-02-15 11:09:47 +01:00
background-api.js Making addPermittedAccount and removePermittedAccount methods idempotent (#15709) 2022-09-07 01:17:48 +05:30
background-api.test.js Making addPermittedAccount and removePermittedAccount methods idempotent (#15709) 2022-09-07 01:17:48 +05:30
caveat-mutators.js Migrate to new controller packages (#16547) 2022-11-24 16:29:07 -03:30
caveat-mutators.test.js Migrate to new controller packages (#16547) 2022-11-24 16:29:07 -03:30
enums.js
index.js
permission-log.js
permission-log.test.js
selectors.js
selectors.test.js
specifications.js Revert "Moved subscribe and filter into network controller (#16693)" (#18129) 2023-03-15 12:16:31 -02:30
specifications.test.js [FLASK] BREAKING - snaps-monorepo@0.30.0 (#17718) 2023-03-08 13:29:23 -05:00