-
-
Notifications
You must be signed in to change notification settings - Fork 219
Add lastFetched PhishingController state #986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cdec915
to
96cc0ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes make sense! The title doesn't seem accurate though, since this controller already accepted initial state. Maybe we could title it "Add lastFetched
to PhishingController state` instead, or something like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Some additional console errors introduced here that we should cleanup, but we can do that in a follow-up PR since it's a pre-existing problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
checks in metamask-controller. Signed-off-by: Akintayo A. Olusegun <[email protected]>
Signed-off-by: Akintayo A. Olusegun <[email protected]>
Signed-off-by: Akintayo A. Olusegun <[email protected]>
Signed-off-by: Akintayo A. Olusegun <[email protected]>
result later Signed-off-by: Akintayo A. Olusegun <[email protected]>
Signed-off-by: Akintayo A. Olusegun <[email protected]>
Signed-off-by: Akintayo A. Olusegun <[email protected]>
Signed-off-by: Akintayo A. Olusegun <[email protected]>
Signed-off-by: Akintayo A. Olusegun <[email protected]>
660f0c8
to
af4b9b0
Compare
**Pass in initial state to PhishingController and load the initialState from persisted state** In Manifest V3, there's need to 1. Persist phishingcontroller state 2. Load phishingcontroller from persistent state Thos PR makes sure state is loaded from persistent state and also abstracts out the checks required before updating the lists - BREAKING: - All the code bases using PhishingController should continue to work as expected - CHANGED: - We should call initialise before calling PhishingDetector controller. - ADDED: - Added `maybeUpdatePhishingLists` method so that controllers don't have to do the check logic anymore **Checklist** - [ ] Tests are included if applicable - [ ] Any added code is fully documented **Issue** Resolves MetaMask/metamask-extension#16551 Signed-off-by: Akintayo A. Olusegun <[email protected]>
**Pass in initial state to PhishingController and load the initialState from persisted state** In Manifest V3, there's need to 1. Persist phishingcontroller state 2. Load phishingcontroller from persistent state Thos PR makes sure state is loaded from persistent state and also abstracts out the checks required before updating the lists - BREAKING: - All the code bases using PhishingController should continue to work as expected - CHANGED: - We should call initialise before calling PhishingDetector controller. - ADDED: - Added `maybeUpdatePhishingLists` method so that controllers don't have to do the check logic anymore **Checklist** - [ ] Tests are included if applicable - [ ] Any added code is fully documented **Issue** Resolves MetaMask/metamask-extension#16551 Signed-off-by: Akintayo A. Olusegun <[email protected]>
**Pass in initial state to PhishingController and load the initialState from persisted state** In Manifest V3, there's need to 1. Persist phishingcontroller state 2. Load phishingcontroller from persistent state Thos PR makes sure state is loaded from persistent state and also abstracts out the checks required before updating the lists - BREAKING: - All the code bases using PhishingController should continue to work as expected - CHANGED: - We should call initialise before calling PhishingDetector controller. - ADDED: - Added `maybeUpdatePhishingLists` method so that controllers don't have to do the check logic anymore **Checklist** - [ ] Tests are included if applicable - [ ] Any added code is fully documented **Issue** Resolves MetaMask/metamask-extension#16551 Signed-off-by: Akintayo A. Olusegun <[email protected]>
Pass in initial state to PhishingController and load the initialState from persisted state
In Manifest V3, there's need to
Thos PR makes sure state is loaded from persistent state and also abstracts out the checks required before updating the lists
BREAKING:
All the code bases using PhishingController should continue to work as expected
CHANGED:
ADDED:
maybeUpdatePhishingLists
method so that controllers don't have to do the check logic anymoreChecklist
Issue
Resolves MetaMask/metamask-extension#16551