Title: [294135] trunk/Source/WebCore
- Revision
- 294135
- Author
- [email protected]
- Date
- 2022-05-12 18:02:49 -0700 (Thu, 12 May 2022)
Log Message
[WebAuthn] Remove document focus requirement for conditional mediation requests
https://bugs.webkit.org/show_bug.cgi?id=240361
rdar://problem/93201070
Reviewed by Brent Fulgham.
This is necessary so conditional mediation requests work when you open a page in
a new tab. Conditional mediation requests do not support security keys and the
request will be aborted if conditional mediation is not available.
* Modules/credentialmanagement/CredentialsContainer.cpp:
(WebCore::CredentialsContainer::get):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (294134 => 294135)
--- trunk/Source/WebCore/ChangeLog 2022-05-13 00:55:25 UTC (rev 294134)
+++ trunk/Source/WebCore/ChangeLog 2022-05-13 01:02:49 UTC (rev 294135)
@@ -1,3 +1,18 @@
+2022-05-12 J Pascoe <[email protected]>
+
+ [WebAuthn] Remove document focus requirement for conditional mediation requests
+ https://bugs.webkit.org/show_bug.cgi?id=240361
+ rdar://problem/93201070
+
+ Reviewed by Brent Fulgham.
+
+ This is necessary so conditional mediation requests work when you open a page in
+ a new tab. Conditional mediation requests do not support security keys and the
+ request will be aborted if conditional mediation is not available.
+
+ * Modules/credentialmanagement/CredentialsContainer.cpp:
+ (WebCore::CredentialsContainer::get):
+
2022-05-12 Alan Bujtas <[email protected]>
TextBoxPainter::paintForeground: painting text with no marking/decoration should be simple
Modified: trunk/Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp (294134 => 294135)
--- trunk/Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp 2022-05-13 00:55:25 UTC (rev 294134)
+++ trunk/Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp 2022-05-13 01:02:49 UTC (rev 294135)
@@ -92,8 +92,8 @@
return;
}
- // Extra.
- if (!m_document->hasFocus()) {
+ // The request will be aborted in WebAuthenticatorCoordinatorProxy if conditional mediation is not available.
+ if (options.mediation != CredentialRequestOptions::MediationRequirement::Conditional && !m_document->hasFocus()) {
promise.reject(Exception { NotAllowedError, "The document is not focused."_s });
return;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes