Title: [292660] branches/safari-613-branch/Source/WebCore
Revision
292660
Author
[email protected]
Date
2022-04-08 17:14:15 -0700 (Fri, 08 Apr 2022)

Log Message

Cherry-pick r292034. rdar://problem/90916916

    Check page exists before trying to access authenticatorCoordinator
    https://bugs.webkit.org/show_bug.cgi?id=238507

    Reviewed by Brent Fulgham.

    Check we have a valid page before trying to access the authenticatorCoordinator.

    * Modules/webauthn/PublicKeyCredential.cpp:
    (WebCore::PublicKeyCredential::isUserVerifyingPlatformAuthenticatorAvailable):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292034 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (292659 => 292660)


--- branches/safari-613-branch/Source/WebCore/ChangeLog	2022-04-09 00:14:11 UTC (rev 292659)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog	2022-04-09 00:14:15 UTC (rev 292660)
@@ -1,5 +1,33 @@
 2022-04-07  Alan Coon  <[email protected]>
 
+        Cherry-pick r292034. rdar://problem/90916916
+
+    Check page exists before trying to access authenticatorCoordinator
+    https://bugs.webkit.org/show_bug.cgi?id=238507
+    
+    Reviewed by Brent Fulgham.
+    
+    Check we have a valid page before trying to access the authenticatorCoordinator.
+    
+    * Modules/webauthn/PublicKeyCredential.cpp:
+    (WebCore::PublicKeyCredential::isUserVerifyingPlatformAuthenticatorAvailable):
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-03-29  Brandon Stewart  <[email protected]>
+
+            Check page exists before trying to access authenticatorCoordinator
+            https://bugs.webkit.org/show_bug.cgi?id=238507
+
+            Reviewed by Brent Fulgham.
+
+            Check we have a valid page before trying to access the authenticatorCoordinator.
+
+            * Modules/webauthn/PublicKeyCredential.cpp:
+            (WebCore::PublicKeyCredential::isUserVerifyingPlatformAuthenticatorAvailable):
+
+2022-04-07  Alan Coon  <[email protected]>
+
         Cherry-pick r292029. rdar://problem/90977336
 
     Use Canvas/CanvasText system colors for <dialog> default styling

Modified: branches/safari-613-branch/Source/WebCore/Modules/webauthn/PublicKeyCredential.cpp (292659 => 292660)


--- branches/safari-613-branch/Source/WebCore/Modules/webauthn/PublicKeyCredential.cpp	2022-04-09 00:14:11 UTC (rev 292659)
+++ branches/safari-613-branch/Source/WebCore/Modules/webauthn/PublicKeyCredential.cpp	2022-04-09 00:14:15 UTC (rev 292660)
@@ -61,7 +61,8 @@
 
 void PublicKeyCredential::isUserVerifyingPlatformAuthenticatorAvailable(Document& document, DOMPromiseDeferred<IDLBoolean>&& promise)
 {
-    document.page()->authenticatorCoordinator().isUserVerifyingPlatformAuthenticatorAvailable(WTFMove(promise));
+    if (auto* page = document.page())
+        page->authenticatorCoordinator().isUserVerifyingPlatformAuthenticatorAvailable(WTFMove(promise));
 }
 
 } // namespace WebCore
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to