Skip to content
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

Passkeys: Position the confirm dialog with the parent window #10608

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/browser/BrowserService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ QJsonObject BrowserService::showPasskeysRegisterPrompt(const QJsonObject& public
const auto existingEntries = getPasskeyEntriesWithUserHandle(rpId, userId, keyList);

raiseWindow();
BrowserPasskeysConfirmationDialog confirmDialog;
BrowserPasskeysConfirmationDialog confirmDialog(m_currentDatabaseWidget);
confirmDialog.registerCredential(username, rpId, existingEntries, timeout);

auto dialogResult = confirmDialog.exec();
Expand Down Expand Up @@ -711,7 +711,7 @@ QJsonObject BrowserService::showPasskeysAuthenticationPrompt(const QJsonObject&
const auto timeout = publicKeyOptions["timeout"].toInt();

raiseWindow();
BrowserPasskeysConfirmationDialog confirmDialog;
BrowserPasskeysConfirmationDialog confirmDialog(m_currentDatabaseWidget);
confirmDialog.authenticateCredential(entries, rpId, timeout);
auto dialogResult = confirmDialog.exec();
if (dialogResult == QDialog::Accepted) {
Expand Down
Loading