-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
PM-14223: LoadUrl via messaging #12988
Conversation
New Issues (13)Checkmarx found the following issues in this Pull Request
|
@coroiu What do you think about this approach? |
@@ -331,6 +332,10 @@ const routes: Routes = [ | |||
children: [{ path: "", component: LoginDecryptionOptionsComponent }], | |||
}, | |||
), | |||
{ | |||
path: "passkeys", |
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.
nit: just to be consistent with naming scheme https://contributing.bitwarden.com/architecture/deep-dives/passkeys/naming-convention
path: "passkeys", | |
path: "fido2", |
async onMessage(message: any) { | ||
switch (message.command) { | ||
case "loadurl": | ||
await this.main.windowMain.loadUrl(message.url, message.modal); | ||
break; |
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.
issue: using messaging increases the size of this already big class, I would instead suggest taking advantage of IPC requests directly. For an example checkout out clipboard.main.ts
and platform/preload.ts
. Should be a pretty simple refactor :)
Closing in favour of: #13051 |
🎟️ Tracking
📔 Objective
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes