-
Notifications
You must be signed in to change notification settings - Fork 558
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
feat(snaps-utils): Allow overriding allowed protocols in validateLink #2411
base: main
Are you sure you want to change the base?
Conversation
fb6eb15
to
bf7ef9c
Compare
f2f9505
to
eab77b9
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2411 +/- ##
=======================================
Coverage 94.27% 94.27%
=======================================
Files 435 435
Lines 8942 8942
Branches 1374 1376 +2
=======================================
Hits 8430 8430
Misses 512 512 ☔ View full report in Codecov by Sentry. |
7096061
to
0d113d7
Compare
0d113d7
to
d066a8c
Compare
@legobeat What is the use-case here? 🤔 |
@@ -272,6 +272,7 @@ export class SnapInterfaceController extends BaseController< | |||
); | |||
|
|||
await this.#triggerPhishingListUpdate(); | |||
// TODO: Expose configuration for allowedProtocols in validateJsxLinks |
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.
This change isn't very impactful until this is done, since all UI is converted to JSX as of recently.
isOnPhishingList, | ||
maybeUpdatePhishingList, | ||
}: NotifyMethodHooks, | ||
allowedProtocols?: string[], |
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.
Does the PermissionController support this?
By popular request, allow specifying custom protocols for link validation.