Diff
Modified: branches/safari-608-branch/Source/WebKit/ChangeLog (251793 => 251794)
--- branches/safari-608-branch/Source/WebKit/ChangeLog 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Source/WebKit/ChangeLog 2019-10-30 20:07:40 UTC (rev 251794)
@@ -1,3 +1,24 @@
+2019-10-30 Alex Christensen <[email protected]>
+
+ Branch build fix after r251754
+ https://bugs.webkit.org/show_bug.cgi?id=191523
+ <rdar://problem/56579665>
+
+ * UIProcess/WebAuthentication/AuthenticatorManager.cpp:
+ (WebKit::AuthenticatorManager::cancelRequest):
+ (WebKit::AuthenticatorManager::runPanel):
+ * UIProcess/WebAuthentication/AuthenticatorManager.h:
+ * UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.cpp:
+ (WebKit::WebAuthenticatorCoordinatorProxy::makeCredential):
+ (WebKit::WebAuthenticatorCoordinatorProxy::getAssertion):
+ * UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.h:
+ * UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.messages.in:
+ * UIProcess/WebPageProxy.cpp:
+ (WebKit::WebPageProxy::didStartProvisionalLoadForFrameShared):
+ (WebKit::WebPageProxy::resetState):
+ * UIProcess/WebProcessProxy.cpp:
+ (WebKit::WebProcessProxy::didDestroyFrame):
+
2019-10-29 Alan Coon <[email protected]>
Cherry-pick r251317. rdar://problem/56598357
Modified: branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp (251793 => 251794)
--- branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp 2019-10-30 20:07:40 UTC (rev 251794)
@@ -33,6 +33,7 @@
#include "APIWebAuthenticationPanelClient.h"
#include "WebPageProxy.h"
#include "WebPreferencesKeys.h"
+#include "WebProcessProxy.h"
#include <WebCore/AuthenticatorTransport.h>
#include <WebCore/PublicKeyCredentialCreationOptions.h>
#include <wtf/MonotonicTime.h>
@@ -164,7 +165,7 @@
runPanel();
}
-void AuthenticatorManager::cancelRequest(const WebCore::PageIdentifier& pageID, const Optional<FrameIdentifier>& frameID)
+void AuthenticatorManager::cancelRequest(const WebCore::PageIdentifier& pageID, uint64_t frameID)
{
if (!m_pendingCompletionHandler)
return;
@@ -298,7 +299,7 @@
auto* page = m_pendingRequestData.page.get();
if (!page)
return;
- ASSERT(m_pendingRequestData.frameID && page->webPageID() == m_pendingRequestData.frameID->pageID);
+ ASSERT(m_pendingRequestData.frameID && page->pageID() == m_pendingRequestData.frameID->pageID);
auto* frame = page->process().webFrame(m_pendingRequestData.frameID->frameID);
if (!frame)
return;
Modified: branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.h (251793 => 251794)
--- branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.h 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.h 2019-10-30 20:07:40 UTC (rev 251794)
@@ -59,7 +59,7 @@
virtual ~AuthenticatorManager() = default;
void handleRequest(WebAuthenticationRequestData&&, Callback&&);
- void cancelRequest(const WebCore::PageIdentifier&, const Optional<WebCore::FrameIdentifier>&); // Called from WebPageProxy/WebProcessProxy.
+ void cancelRequest(const WebCore::PageIdentifier&, uint64_t frameID); // Called from WebPageProxy/WebProcessProxy.
void cancelRequest(const API::WebAuthenticationPanel&); // Called from panel clients.
virtual bool isMock() const { return false; }
Modified: branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.cpp (251793 => 251794)
--- branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.cpp 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.cpp 2019-10-30 20:07:40 UTC (rev 251794)
@@ -55,14 +55,14 @@
m_webPageProxy.process().removeMessageReceiver(Messages::WebAuthenticatorCoordinatorProxy::messageReceiverName(), m_webPageProxy.pageID());
}
-void WebAuthenticatorCoordinatorProxy::makeCredential(FrameIdentifier frameId, SecurityOriginData&& origin, Vector<uint8_t>&& hash, PublicKeyCredentialCreationOptions&& options, RequestCompletionHandler&& handler)
+void WebAuthenticatorCoordinatorProxy::makeCredential(uint64_t frameId, SecurityOriginData&& origin, Vector<uint8_t>&& hash, PublicKeyCredentialCreationOptions&& options, RequestCompletionHandler&& handler)
{
- handleRequest({ WTFMove(hash), WTFMove(options), makeWeakPtr(m_webPageProxy), WebAuthenticationPanelResult::Unavailable, nullptr, GlobalFrameIdentifier { m_webPageProxy.webPageID(), frameId }, WTFMove(origin) }, WTFMove(handler));
+ handleRequest({ WTFMove(hash), WTFMove(options), makeWeakPtr(m_webPageProxy), WebAuthenticationPanelResult::Unavailable, nullptr, GlobalFrameIdentifier { m_webPageProxy.pageID(), frameId }, WTFMove(origin) }, WTFMove(handler));
}
-void WebAuthenticatorCoordinatorProxy::getAssertion(FrameIdentifier frameId, SecurityOriginData&& origin, Vector<uint8_t>&& hash, PublicKeyCredentialRequestOptions&& options, RequestCompletionHandler&& handler)
+void WebAuthenticatorCoordinatorProxy::getAssertion(uint64_t frameId, SecurityOriginData&& origin, Vector<uint8_t>&& hash, PublicKeyCredentialRequestOptions&& options, RequestCompletionHandler&& handler)
{
- handleRequest({ WTFMove(hash), WTFMove(options), makeWeakPtr(m_webPageProxy), WebAuthenticationPanelResult::Unavailable, nullptr, GlobalFrameIdentifier { m_webPageProxy.webPageID(), frameId }, WTFMove(origin) }, WTFMove(handler));
+ handleRequest({ WTFMove(hash), WTFMove(options), makeWeakPtr(m_webPageProxy), WebAuthenticationPanelResult::Unavailable, nullptr, GlobalFrameIdentifier { m_webPageProxy.pageID(), frameId }, WTFMove(origin) }, WTFMove(handler));
}
void WebAuthenticatorCoordinatorProxy::handleRequest(WebAuthenticationRequestData&& data, RequestCompletionHandler&& handler)
Modified: branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.h (251793 => 251794)
--- branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.h 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.h 2019-10-30 20:07:40 UTC (rev 251794)
@@ -28,7 +28,6 @@
#if ENABLE(WEB_AUTHN)
#include "MessageReceiver.h"
-#include <WebCore/FrameIdentifier.h>
#include <wtf/Forward.h>
#include <wtf/Noncopyable.h>
@@ -61,8 +60,8 @@
void didReceiveMessage(IPC::Connection&, IPC::Decoder&) override;
// Receivers.
- void makeCredential(WebCore::FrameIdentifier, WebCore::SecurityOriginData&&, Vector<uint8_t>&& hash, WebCore::PublicKeyCredentialCreationOptions&&, RequestCompletionHandler&&);
- void getAssertion(WebCore::FrameIdentifier, WebCore::SecurityOriginData&&, Vector<uint8_t>&& hash, WebCore::PublicKeyCredentialRequestOptions&&, RequestCompletionHandler&&);
+ void makeCredential(uint64_t frameID, WebCore::SecurityOriginData&&, Vector<uint8_t>&& hash, WebCore::PublicKeyCredentialCreationOptions&&, RequestCompletionHandler&&);
+ void getAssertion(uint64_t frameID, WebCore::SecurityOriginData&&, Vector<uint8_t>&& hash, WebCore::PublicKeyCredentialRequestOptions&&, RequestCompletionHandler&&);
void isUserVerifyingPlatformAuthenticatorAvailable(QueryCompletionHandler&&);
void handleRequest(WebAuthenticationRequestData&&, RequestCompletionHandler&&);
Modified: branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.messages.in (251793 => 251794)
--- branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.messages.in 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.messages.in 2019-10-30 20:07:40 UTC (rev 251794)
@@ -26,8 +26,8 @@
messages -> WebAuthenticatorCoordinatorProxy {
- MakeCredential(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData origin, Vector<uint8_t> hash, struct WebCore::PublicKeyCredentialCreationOptions options) -> (struct WebCore::PublicKeyCredentialData data, struct WebCore::ExceptionData exception) Async
- GetAssertion(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData origin, Vector<uint8_t> hash, struct WebCore::PublicKeyCredentialRequestOptions options) -> (struct WebCore::PublicKeyCredentialData data, struct WebCore::ExceptionData exception) Async
+ MakeCredential(uint64_t frameID, struct WebCore::SecurityOriginData origin, Vector<uint8_t> hash, struct WebCore::PublicKeyCredentialCreationOptions options) -> (struct WebCore::PublicKeyCredentialData data, struct WebCore::ExceptionData exception) Async
+ GetAssertion(uint64_t frameID, struct WebCore::SecurityOriginData origin, Vector<uint8_t> hash, struct WebCore::PublicKeyCredentialRequestOptions options) -> (struct WebCore::PublicKeyCredentialData data, struct WebCore::ExceptionData exception) Async
IsUserVerifyingPlatformAuthenticatorAvailable() -> (bool result) Async
}
Modified: branches/safari-608-branch/Source/WebKit/UIProcess/WebPageProxy.cpp (251793 => 251794)
--- branches/safari-608-branch/Source/WebKit/UIProcess/WebPageProxy.cpp 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/WebPageProxy.cpp 2019-10-30 20:07:40 UTC (rev 251794)
@@ -4056,7 +4056,7 @@
m_navigationClient->didStartProvisionalNavigation(*this, navigation.get(), process->transformHandlesToObjects(userData.object()).get());
#if ENABLE(WEB_AUTHN)
- m_websiteDataStore->authenticatorManager().cancelRequest(m_webPageID, frameID);
+ m_websiteDataStore->authenticatorManager().cancelRequest(m_pageID, frameID);
#endif
}
@@ -7132,7 +7132,7 @@
#endif
#if ENABLE(WEB_AUTHN)
- m_websiteDataStore->authenticatorManager().cancelRequest(m_webPageID, WTF::nullopt);
+ m_websiteDataStore->authenticatorManager().cancelRequest(m_pageID, 0);
#endif
}
Modified: branches/safari-608-branch/Source/WebKit/UIProcess/WebProcessProxy.cpp (251793 => 251794)
--- branches/safari-608-branch/Source/WebKit/UIProcess/WebProcessProxy.cpp 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/WebProcessProxy.cpp 2019-10-30 20:07:40 UTC (rev 251794)
@@ -849,7 +849,7 @@
#if ENABLE(WEB_AUTHN)
if (auto* frame = webFrame(frameID)) {
if (auto* page = frame->page())
- page->websiteDataStore().authenticatorManager().cancelRequest(page->webPageID(), frameID);
+ page->websiteDataStore().authenticatorManager().cancelRequest(page->pageID(), frameID);
}
#endif
m_frameMap.remove(frameID);
Modified: branches/safari-608-branch/Tools/ChangeLog (251793 => 251794)
--- branches/safari-608-branch/Tools/ChangeLog 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Tools/ChangeLog 2019-10-30 20:07:40 UTC (rev 251794)
@@ -1,3 +1,16 @@
+2019-10-30 Alex Christensen <[email protected]>
+
+ Branch build fix after r251754
+ https://bugs.webkit.org/show_bug.cgi?id=191523
+ <rdar://problem/56579665>
+
+ * TestWebKitAPI/Tests/WebCore/FidoHidMessageTest.cpp:
+ (TestWebKitAPI::TEST):
+ * TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm:
+ * TestWebKitAPI/WKWebViewConfigurationExtras.h:
+ * TestWebKitAPI/WKWebViewConfigurationExtras.mm:
+ (+[WKWebViewConfiguration _test_configurationWithTestPlugInClassName:configureJSCForTesting:]):
+
2019-10-29 Alan Coon <[email protected]>
Cherry-pick r251317. rdar://problem/56598357
Modified: branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebCore/FidoHidMessageTest.cpp (251793 => 251794)
--- branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebCore/FidoHidMessageTest.cpp 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebCore/FidoHidMessageTest.cpp 2019-10-30 20:07:40 UTC (rev 251794)
@@ -99,7 +99,7 @@
{
uint32_t channelId = 0xF5060708;
Vector<uint8_t> data {10, 11};
- auto initPacket = makeUnique<FidoHidContinuationPacket>(channelId, 0, Vector<uint8_t>(data));
+ auto initPacket = std::make_unique<FidoHidContinuationPacket>(channelId, 0, Vector<uint8_t>(data));
size_t index = 0;
Vector<uint8_t> serialized = initPacket->getSerializedData();
Modified: branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm (251793 => 251794)
--- branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm 2019-10-30 20:07:40 UTC (rev 251794)
@@ -44,6 +44,7 @@
static bool webAuthenticationPanelSucceded = false;
static bool webAuthenticationPanelUpdateMultipleNFCTagsPresent = false;
static bool webAuthenticationPanelUpdateNoCredentialsFound = false;
+static RetainPtr<_WKWebAuthenticationPanel> gPanel;
@interface TestWebAuthenticationPanelDelegate : NSObject <_WKWebAuthenticationPanelDelegate>
@end
Modified: branches/safari-608-branch/Tools/TestWebKitAPI/WKWebViewConfigurationExtras.h (251793 => 251794)
--- branches/safari-608-branch/Tools/TestWebKitAPI/WKWebViewConfigurationExtras.h 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Tools/TestWebKitAPI/WKWebViewConfigurationExtras.h 2019-10-30 20:07:40 UTC (rev 251794)
@@ -27,5 +27,6 @@
@interface WKWebViewConfiguration (TestWebKitAPIExtras)
+ (instancetype)_test_configurationWithTestPlugInClassName:(NSString *)className;
++ (instancetype)_test_configurationWithTestPlugInClassName:(NSString *)className configureJSCForTesting:(BOOL)value;
+ (instancetype)_test_configurationWithTestPlugInClassName:(NSString *)className configureJSCForTesting:(BOOL)value andCustomParameterClasses:(NSSet<Class> *)parameterClasses;
@end
Modified: branches/safari-608-branch/Tools/TestWebKitAPI/WKWebViewConfigurationExtras.mm (251793 => 251794)
--- branches/safari-608-branch/Tools/TestWebKitAPI/WKWebViewConfigurationExtras.mm 2019-10-30 19:43:36 UTC (rev 251793)
+++ branches/safari-608-branch/Tools/TestWebKitAPI/WKWebViewConfigurationExtras.mm 2019-10-30 20:07:40 UTC (rev 251794)
@@ -38,6 +38,11 @@
return [WKWebViewConfiguration _test_configurationWithTestPlugInClassName:className configureJSCForTesting:NO andCustomParameterClasses:nil];
}
++ (instancetype)_test_configurationWithTestPlugInClassName:(NSString *)className configureJSCForTesting:(BOOL)value
+{
+ return [WKWebViewConfiguration _test_configurationWithTestPlugInClassName:className configureJSCForTesting:value andCustomParameterClasses:nil];
+}
+
+ (instancetype)_test_configurationWithTestPlugInClassName:(NSString *)className configureJSCForTesting:(BOOL)value andCustomParameterClasses:(NSSet<Class> *)parameterClasses
{
auto processPoolConfiguration = adoptNS([[_WKProcessPoolConfiguration alloc] init]);