⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248713 in webkit


Ignore:
Timestamp:
Aug 15, 2019, 8:35:35 AM (7 years ago)
Author:
Simon Fraser
Message:

Use ObjectIdentifier<FrameIdentifierType> for frameIDs
https://bugs.webkit.org/show_bug.cgi?id=199986

Reviewed by Ryosuke Niwa.

Use the strongly-typed FrameIdentifier instead of uint64_t as frame identifiers everywhere.

Source/WebCore:

  • WebCore.xcodeproj/project.pbxproj:
  • loader/CookieJar.cpp:

(WebCore::CookieJar::cookies const):
(WebCore::CookieJar::setCookies):
(WebCore::CookieJar::cookieRequestHeaderFieldValue const):
(WebCore::CookieJar::getRawCookies const):

  • loader/CookieJar.h:
  • loader/EmptyFrameLoaderClient.h:
  • loader/FrameLoaderClient.h:
  • loader/NavigationAction.cpp:
  • loader/NavigationAction.h:

(WebCore::NavigationAction::Requester::frameID const):

  • page/ChromeClient.h:
  • page/GlobalFrameIdentifier.h:

(WebCore::GlobalFrameIdentifier::decode):

  • platform/network/CookieRequestHeaderFieldProxy.h:
  • platform/network/NetworkStorageSession.cpp:

(WebCore::NetworkStorageSession::shouldBlockCookies const):
(WebCore::NetworkStorageSession::hasStorageAccess const):
(WebCore::NetworkStorageSession::grantStorageAccess):
(WebCore::NetworkStorageSession::removeStorageAccessForFrame):

  • platform/network/NetworkStorageSession.h:
  • platform/network/cocoa/NetworkStorageSessionCocoa.mm:

(WebCore::cookiesForURL):
(WebCore::cookiesForSession):
(WebCore::NetworkStorageSession::cookiesForDOM const):
(WebCore::NetworkStorageSession::cookieRequestHeaderFieldValue const):
(WebCore::NetworkStorageSession::setCookiesFromDOM const):
(WebCore::NetworkStorageSession::getRawCookies const):

Source/WebKit:

  • NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:

(WebKit::ResourceLoadStatisticsDatabaseStore::hasStorageAccess):
(WebKit::ResourceLoadStatisticsDatabaseStore::requestStorageAccess):
(WebKit::ResourceLoadStatisticsDatabaseStore::grantStorageAccess):
(WebKit::ResourceLoadStatisticsDatabaseStore::grantStorageAccessInternal):

  • NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.h:
  • NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.cpp:

(WebKit::ResourceLoadStatisticsMemoryStore::hasStorageAccess):
(WebKit::ResourceLoadStatisticsMemoryStore::requestStorageAccess):
(WebKit::ResourceLoadStatisticsMemoryStore::grantStorageAccess):
(WebKit::ResourceLoadStatisticsMemoryStore::grantStorageAccessInternal):

  • NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.h:
  • NetworkProcess/Classifier/ResourceLoadStatisticsStore.h:
  • NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:

(WebKit::WebResourceLoadStatisticsStore::hasStorageAccess):
(WebKit::WebResourceLoadStatisticsStore::hasStorageAccessForFrame):
(WebKit::WebResourceLoadStatisticsStore::callHasStorageAccessForFrameHandler):
(WebKit::WebResourceLoadStatisticsStore::requestStorageAccess):
(WebKit::WebResourceLoadStatisticsStore::grantStorageAccess):
(WebKit::WebResourceLoadStatisticsStore::callGrantStorageAccessHandler):

  • NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h:
  • NetworkProcess/NetworkCORSPreflightChecker.h:
  • NetworkProcess/NetworkConnectionToWebProcess.cpp:

(WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
(WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
(WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
(WebKit::NetworkConnectionToWebProcess::getRawCookies):
(WebKit::NetworkConnectionToWebProcess::removeStorageAccessForFrame):
(WebKit::NetworkConnectionToWebProcess::hasStorageAccess):
(WebKit::NetworkConnectionToWebProcess::requestStorageAccess):

  • NetworkProcess/NetworkConnectionToWebProcess.h:
  • NetworkProcess/NetworkConnectionToWebProcess.messages.in:
  • NetworkProcess/NetworkLoadChecker.cpp:

(WebKit::NetworkLoadChecker::NetworkLoadChecker):

  • NetworkProcess/NetworkLoadChecker.h:
  • NetworkProcess/NetworkLoadParameters.h:
  • NetworkProcess/NetworkProcess.h:
  • NetworkProcess/NetworkResourceLoader.cpp:

(WebKit::NetworkResourceLoader::start):
(WebKit::NetworkResourceLoader::retrieveCacheEntry):
(WebKit::NetworkResourceLoader::startNetworkLoad):
(WebKit::NetworkResourceLoader::convertToDownload):
(WebKit::NetworkResourceLoader::abort):
(WebKit::NetworkResourceLoader::didReceiveResponse):
(WebKit::NetworkResourceLoader::didReceiveBuffer):
(WebKit::NetworkResourceLoader::didFinishLoading):
(WebKit::NetworkResourceLoader::didFailLoading):
(WebKit::NetworkResourceLoader::continueWillSendRequest):
(WebKit::escapeIDForJSON):
(WebKit::logBlockedCookieInformation):
(WebKit::logCookieInformationInternal):
(WebKit::NetworkResourceLoader::logCookieInformation):

  • NetworkProcess/NetworkResourceLoader.h:
  • NetworkProcess/cache/NetworkCache.h:
  • NetworkProcess/cocoa/NetworkDataTaskCocoa.h:
  • NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:

(WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa):
(WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection):

  • Scripts/webkit/messages.py:
  • Shared/API/APIFrameHandle.cpp:

(API::FrameHandle::create):
(API::FrameHandle::createAutoconverting):
(API::FrameHandle::FrameHandle):
(API::FrameHandle::decode):

  • Shared/API/APIFrameHandle.h:

(API::FrameHandle::frameID const):

  • Shared/API/Cocoa/_WKFrameHandle.mm:

(-[_WKFrameHandle hash]):
(-[_WKFrameHandle _frameID]):
(-[_WKFrameHandle initWithCoder:]):
(-[_WKFrameHandle encodeWithCoder:]):

  • Shared/Authentication/AuthenticationManager.cpp:

(WebKit::AuthenticationManager::didReceiveAuthenticationChallenge):

  • Shared/Authentication/AuthenticationManager.h:
  • Shared/FrameInfoData.h:
  • UIProcess/API/C/WKFrameHandleRef.cpp:

(WKFrameHandleGetFrameID):

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _printOperationWithPrintInfo:forFrame:]):
(-[WKWebView _canChangeFrameLayout:]):

  • UIProcess/API/Cocoa/_WKInspector.mm:

(-[_WKInspector showMainResourceForFrame:]):

  • UIProcess/Automation/SimulatedInputDispatcher.cpp:

(WebKit::SimulatedInputDispatcher::run):

  • UIProcess/Automation/SimulatedInputDispatcher.h:
  • UIProcess/Automation/WebAutomationSession.cpp:

(WebKit::WebAutomationSession::webFrameIDForHandle):
(WebKit::WebAutomationSession::handleForWebFrameID):
(WebKit::WebAutomationSession::switchToBrowsingContext):
(WebKit::WebAutomationSession::waitForNavigationToComplete):
(WebKit::findPageForFrameID):
(WebKit::WebAutomationSession::respondToPendingFrameNavigationCallbacksWithTimeout):
(WebKit::WebAutomationSession::evaluateJavaScriptFunction):
(WebKit::WebAutomationSession::resolveChildFrameHandle):
(WebKit::WebAutomationSession::resolveParentFrameHandle):
(WebKit::WebAutomationSession::computeElementLayout):
(WebKit::WebAutomationSession::selectOptionElement):
(WebKit::WebAutomationSession::getAllCookies):
(WebKit::WebAutomationSession::deleteSingleCookie):
(WebKit::WebAutomationSession::viewportInViewCenterPointOfElement):
(WebKit::WebAutomationSession::takeScreenshot):

  • UIProcess/Automation/WebAutomationSession.h:
  • UIProcess/Cocoa/UIDelegate.mm:

(WebKit::UIDelegate::UIClient::checkUserMediaPermissionForOrigin):

  • UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm:

(-[WKReloadFrameErrorRecoveryAttempter attemptRecovery]):

  • UIProcess/Cocoa/WebPageProxyCocoa.mm:

(WebKit::WebPageProxy::contentFilterDidBlockLoadForFrame):
(WebKit::WebPageProxy::contentFilterDidBlockLoadForFrameShared):

  • UIProcess/Network/NetworkProcessProxy.cpp:

(WebKit::NetworkProcessProxy::didReceiveAuthenticationChallenge):
(WebKit::NetworkProcessProxy::requestStorageAccessConfirm):

  • UIProcess/Network/NetworkProcessProxy.h:
  • UIProcess/Network/NetworkProcessProxy.messages.in:
  • UIProcess/ProvisionalPageProxy.cpp:

(WebKit::ProvisionalPageProxy::validateInput):
(WebKit::ProvisionalPageProxy::didCreateMainFrame):
(WebKit::ProvisionalPageProxy::didPerformClientRedirect):
(WebKit::ProvisionalPageProxy::didStartProvisionalLoadForFrame):
(WebKit::ProvisionalPageProxy::didFailProvisionalLoadForFrame):
(WebKit::ProvisionalPageProxy::didCommitLoadForFrame):
(WebKit::ProvisionalPageProxy::didNavigateWithNavigationData):
(WebKit::ProvisionalPageProxy::didChangeProvisionalURLForFrame):
(WebKit::ProvisionalPageProxy::decidePolicyForNavigationActionAsync):
(WebKit::ProvisionalPageProxy::decidePolicyForResponse):
(WebKit::ProvisionalPageProxy::didPerformServerRedirect):
(WebKit::ProvisionalPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
(WebKit::ProvisionalPageProxy::decidePolicyForNavigationActionSync):
(WebKit::ProvisionalPageProxy::contentFilterDidBlockLoadForFrame):

  • UIProcess/ProvisionalPageProxy.h:
  • UIProcess/ServiceWorkerProcessProxy.cpp:

(WebKit::ServiceWorkerProcessProxy::didReceiveAuthenticationChallenge):

  • UIProcess/ServiceWorkerProcessProxy.h:
  • UIProcess/SuspendedPageProxy.cpp:

(WebKit::SuspendedPageProxy::SuspendedPageProxy):

  • UIProcess/SuspendedPageProxy.h:
  • UIProcess/UserMediaPermissionCheckProxy.cpp:

(WebKit::UserMediaPermissionCheckProxy::UserMediaPermissionCheckProxy):

  • UIProcess/UserMediaPermissionCheckProxy.h:

(WebKit::UserMediaPermissionCheckProxy::create):
(WebKit::UserMediaPermissionCheckProxy::frameID const):

  • UIProcess/UserMediaPermissionRequestManagerProxy.cpp:

(WebKit::UserMediaPermissionRequestManagerProxy::resetAccess):
(WebKit::UserMediaPermissionRequestManagerProxy::searchForGrantedRequest const):
(WebKit::UserMediaPermissionRequestManagerProxy::wasRequestDenied):
(WebKit::UserMediaPermissionRequestManagerProxy::requestUserMediaPermissionForFrame):
(WebKit::UserMediaPermissionRequestManagerProxy::getUserMediaPermissionInfo):
(WebKit::UserMediaPermissionRequestManagerProxy::wasGrantedVideoOrAudioAccess):
(WebKit::UserMediaPermissionRequestManagerProxy::enumerateMediaDevicesForFrame):

  • UIProcess/UserMediaPermissionRequestManagerProxy.h:
  • UIProcess/UserMediaPermissionRequestProxy.cpp:

(WebKit::UserMediaPermissionRequestProxy::UserMediaPermissionRequestProxy):

  • UIProcess/UserMediaPermissionRequestProxy.h:

(WebKit::UserMediaPermissionRequestProxy::create):
(WebKit::UserMediaPermissionRequestProxy::mainFrameID const):
(WebKit::UserMediaPermissionRequestProxy::frameID const):

  • UIProcess/WebFrameProxy.cpp:

(WebKit::WebFrameProxy::WebFrameProxy):

  • UIProcess/WebFrameProxy.h:

(WebKit::WebFrameProxy::create):
(WebKit::WebFrameProxy::frameID const):

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::suspendCurrentPageIfPossible):
(WebKit::WebPageProxy::commitProvisionalPage):
(WebKit::WebPageProxy::runJavaScriptInFrame):
(WebKit::WebPageProxy::didCreateMainFrame):
(WebKit::WebPageProxy::didCreateSubframe):
(WebKit::WebPageProxy::didCreateWindow):
(WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
(WebKit::WebPageProxy::didStartProvisionalLoadForFrameShared):
(WebKit::WebPageProxy::didExplicitOpenForFrame):
(WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
(WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrameShared):
(WebKit::WebPageProxy::willPerformClientRedirectForFrame):
(WebKit::WebPageProxy::didCancelClientRedirectForFrame):
(WebKit::WebPageProxy::didChangeProvisionalURLForFrame):
(WebKit::WebPageProxy::didChangeProvisionalURLForFrameShared):
(WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
(WebKit::WebPageProxy::didFailProvisionalLoadForFrameShared):
(WebKit::WebPageProxy::didCommitLoadForFrame):
(WebKit::WebPageProxy::didFinishDocumentLoadForFrame):
(WebKit::WebPageProxy::didFinishLoadForFrame):
(WebKit::WebPageProxy::didFailLoadForFrame):
(WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
(WebKit::WebPageProxy::didChangeMainDocument):
(WebKit::WebPageProxy::didReceiveTitleForFrame):
(WebKit::WebPageProxy::didFirstLayoutForFrame):
(WebKit::WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame):
(WebKit::WebPageProxy::didDisplayInsecureContentForFrame):
(WebKit::WebPageProxy::didRunInsecureContentForFrame):
(WebKit::WebPageProxy::didDetectXSSForFrame):
(WebKit::WebPageProxy::frameDidBecomeFrameSet):
(WebKit::WebPageProxy::decidePolicyForNavigationActionAsync):
(WebKit::WebPageProxy::decidePolicyForNavigationActionAsyncShared):
(WebKit::WebPageProxy::decidePolicyForNavigationActionSync):
(WebKit::WebPageProxy::decidePolicyForNavigationActionSyncShared):
(WebKit::WebPageProxy::decidePolicyForNewWindowAction):
(WebKit::WebPageProxy::decidePolicyForResponse):
(WebKit::WebPageProxy::decidePolicyForResponseShared):
(WebKit::WebPageProxy::unableToImplementPolicy):
(WebKit::WebPageProxy::willSubmitForm):
(WebKit::WebPageProxy::didNavigateWithNavigationData):
(WebKit::WebPageProxy::didNavigateWithNavigationDataShared):
(WebKit::WebPageProxy::didPerformClientRedirect):
(WebKit::WebPageProxy::didPerformClientRedirectShared):
(WebKit::WebPageProxy::didPerformServerRedirect):
(WebKit::WebPageProxy::didPerformServerRedirectShared):
(WebKit::WebPageProxy::didUpdateHistoryTitle):
(WebKit::WebPageProxy::runJavaScriptAlert):
(WebKit::WebPageProxy::runJavaScriptConfirm):
(WebKit::WebPageProxy::runJavaScriptPrompt):
(WebKit::WebPageProxy::runBeforeUnloadConfirmPanel):
(WebKit::WebPageProxy::runOpenPanel):
(WebKit::WebPageProxy::printFrame):
(WebKit::WebPageProxy::focusedFrameChanged):
(WebKit::WebPageProxy::frameSetLargestFrameChanged):
(WebKit::WebPageProxy::didReceiveAuthenticationChallengeProxy):
(WebKit::WebPageProxy::exceededDatabaseQuota):
(WebKit::WebPageProxy::requestStorageSpace):
(WebKit::WebPageProxy::makeStorageSpaceRequest):
(WebKit::WebPageProxy::requestGeolocationPermissionForFrame):
(WebKit::WebPageProxy::requestUserMediaPermissionForFrame):
(WebKit::WebPageProxy::enumerateMediaDevicesForFrame):
(WebKit::WebPageProxy::shouldAllowDeviceOrientationAndMotionAccess):
(WebKit::WebPageProxy::requestStorageAccessConfirm):

  • UIProcess/WebPageProxy.h:
  • UIProcess/WebPageProxy.messages.in:
  • UIProcess/WebProcessProxy.cpp:

(WebKit::WebProcessProxy::webFrame const):
(WebKit::WebProcessProxy::canCreateFrame const):
(WebKit::WebProcessProxy::frameCreated):
(WebKit::WebProcessProxy::didDestroyFrame):

  • UIProcess/WebProcessProxy.h:
  • UIProcess/WebProcessProxy.messages.in:
  • UIProcess/ios/WKContentView.mm:

(-[WKContentView _wk_pageCountForPrintFormatter:]):

  • UIProcess/ios/WebPageProxyIOS.mm:

(WebKit::WebPageProxy::computePagesForPrintingAndDrawToPDF):

  • WebProcess/Automation/WebAutomationSessionProxy.cpp:

(WebKit::evaluateJavaScriptCallback):
(WebKit::WebAutomationSessionProxy::didClearWindowObjectForFrame):
(WebKit::WebAutomationSessionProxy::evaluateJavaScriptFunction):
(WebKit::WebAutomationSessionProxy::didEvaluateJavaScriptFunction):
(WebKit::WebAutomationSessionProxy::resolveChildFrameWithOrdinal):
(WebKit::WebAutomationSessionProxy::resolveChildFrameWithNodeHandle):
(WebKit::WebAutomationSessionProxy::resolveChildFrameWithName):
(WebKit::WebAutomationSessionProxy::resolveParentFrame):
(WebKit::WebAutomationSessionProxy::focusFrame):
(WebKit::WebAutomationSessionProxy::computeElementLayout):
(WebKit::WebAutomationSessionProxy::selectOptionElement):
(WebKit::WebAutomationSessionProxy::takeScreenshot):
(WebKit::WebAutomationSessionProxy::getCookiesForFrame):
(WebKit::WebAutomationSessionProxy::deleteCookie):

  • WebProcess/Automation/WebAutomationSessionProxy.h:
  • WebProcess/Automation/WebAutomationSessionProxy.messages.in:
  • WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:

(+[WKWebProcessPlugInFrame lookUpFrameFromHandle:]):

  • WebProcess/Network/WebLoaderStrategy.cpp:

(WebKit::WebLoaderStrategy::scheduleLoad):
(WebKit::WebLoaderStrategy::scheduleLoadFromNetworkProcess):
(WebKit::WebLoaderStrategy::loadResourceSynchronously):

  • WebProcess/Network/WebResourceLoader.cpp:

(WebKit::WebResourceLoader::willSendRequest):
(WebKit::WebResourceLoader::didReceiveResponse):
(WebKit::WebResourceLoader::didReceiveData):
(WebKit::WebResourceLoader::didFinishResourceLoad):
(WebKit::WebResourceLoader::didFailResourceLoad):
(WebKit::WebResourceLoader::didBlockAuthenticationChallenge):
(WebKit::WebResourceLoader::stopLoadingAfterXFrameOptionsOrContentSecurityPolicyDenied):
(WebKit::WebResourceLoader::didReceiveResource):

  • WebProcess/Network/WebResourceLoader.h:
  • WebProcess/Storage/WebSWContextManagerConnection.cpp:

(WebKit::WebSWContextManagerConnection::installServiceWorker):

  • WebProcess/WebCoreSupport/WebChromeClient.cpp:

(WebKit::WebChromeClient::focusedFrameChanged):
(WebKit::WebChromeClient::contentsSizeChanged const):
(WebKit::WebChromeClient::hasStorageAccess):
(WebKit::WebChromeClient::requestStorageAccess):

  • WebProcess/WebCoreSupport/WebChromeClient.h:
  • WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:

(WebKit::WebFrameLoaderClient::frameID const):
(WebKit::WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
(WebKit::WebFrameLoaderClient::dispatchDidFailLoad):

  • WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  • WebProcess/WebPage/WebCookieJar.cpp:

(WebKit::WebCookieJar::cookies const):
(WebKit::WebCookieJar::setCookies):
(WebKit::WebCookieJar::cookieRequestHeaderFieldValue const):
(WebKit::WebCookieJar::getRawCookies const):

  • WebProcess/WebPage/WebCookieJar.h:
  • WebProcess/WebPage/WebFrame.cpp:

(WebKit::WebFrame::WebFrame):
(WebKit::generateFrameID): Deleted.

  • WebProcess/WebPage/WebFrame.h:

(WebKit::WebFrame::frameID const):

  • WebProcess/WebPage/WebInspector.cpp:

(WebKit::WebInspector::showMainResourceForFrame):

  • WebProcess/WebPage/WebInspector.h:
  • WebProcess/WebPage/WebInspector.messages.in:
  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::loadURLInFrame):
(WebKit::WebPage::loadDataInFrame):
(WebKit::WebPage::stopLoadingFrame):
(WebKit::WebPage::didReceivePolicyDecision):
(WebKit::WebPage::continueWillSubmitForm):
(WebKit::WebPage::runJavaScriptInFrame):
(WebKit::WebPage::getSourceForFrame):
(WebKit::WebPage::getMainResourceDataOfFrame):
(WebKit::WebPage::getResourceDataFromFrame):
(WebKit::WebPage::getWebArchiveOfFrame):
(WebKit::WebPage::addConsoleMessage):
(WebKit::WebPage::sendCSPViolationReport):
(WebKit::WebPage::enqueueSecurityPolicyViolationEvent):
(WebKit::WebPage::beginPrinting):
(WebKit::WebPage::computePagesForPrinting):
(WebKit::WebPage::computePagesForPrintingImpl):
(WebKit::WebPage::drawRectToImage):
(WebKit::WebPage::drawPagesToPDF):
(WebKit::WebPage::drawPagesToPDFImpl):
(WebKit::WebPage::drawPagesForPrinting):
(WebKit::WebPage::frameBecameRemote):
(WebKit::WebPage::hasStorageAccess):
(WebKit::WebPage::requestStorageAccess):
(WebKit::WebPage::shouldAllowDeviceOrientationAndMotionAccess):

  • WebProcess/WebPage/WebPage.h:
  • WebProcess/WebPage/WebPage.messages.in:
  • WebProcess/WebPage/ios/WebPageIOS.mm:

(WebKit::WebPage::computePagesForPrintingPDFDocument):
(WebKit::WebPage::computePagesForPrintingAndDrawToPDF):

  • WebProcess/WebPage/mac/WebPageMac.mm:

(WebKit::WebPage::computePagesForPrintingPDFDocument):

  • WebProcess/WebProcess.cpp:

(WebKit::WebProcess::webFrame const):
(WebKit::WebProcess::addWebFrame):
(WebKit::WebProcess::removeWebFrame):

  • WebProcess/WebProcess.h:

Source/WebKitLegacy/mac:

  • WebCoreSupport/WebFrameLoaderClient.h:
  • WebCoreSupport/WebFrameLoaderClient.mm:

(WebFrameLoaderClient::frameID const):

Location:
trunk/Source
Files:
118 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r248712 r248713  
     12019-08-15  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Use ObjectIdentifier<FrameIdentifierType> for frameIDs
     4        https://bugs.webkit.org/show_bug.cgi?id=199986
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Use the strongly-typed FrameIdentifier instead of uint64_t as frame identifiers everywhere.
     9
     10        * WebCore.xcodeproj/project.pbxproj:
     11        * loader/CookieJar.cpp:
     12        (WebCore::CookieJar::cookies const):
     13        (WebCore::CookieJar::setCookies):
     14        (WebCore::CookieJar::cookieRequestHeaderFieldValue const):
     15        (WebCore::CookieJar::getRawCookies const):
     16        * loader/CookieJar.h:
     17        * loader/EmptyFrameLoaderClient.h:
     18        * loader/FrameLoaderClient.h:
     19        * loader/NavigationAction.cpp:
     20        * loader/NavigationAction.h:
     21        (WebCore::NavigationAction::Requester::frameID const):
     22        * page/ChromeClient.h:
     23        * page/GlobalFrameIdentifier.h:
     24        (WebCore::GlobalFrameIdentifier::decode):
     25        * platform/network/CookieRequestHeaderFieldProxy.h:
     26        * platform/network/NetworkStorageSession.cpp:
     27        (WebCore::NetworkStorageSession::shouldBlockCookies const):
     28        (WebCore::NetworkStorageSession::hasStorageAccess const):
     29        (WebCore::NetworkStorageSession::grantStorageAccess):
     30        (WebCore::NetworkStorageSession::removeStorageAccessForFrame):
     31        * platform/network/NetworkStorageSession.h:
     32        * platform/network/cocoa/NetworkStorageSessionCocoa.mm:
     33        (WebCore::cookiesForURL):
     34        (WebCore::cookiesForSession):
     35        (WebCore::NetworkStorageSession::cookiesForDOM const):
     36        (WebCore::NetworkStorageSession::cookieRequestHeaderFieldValue const):
     37        (WebCore::NetworkStorageSession::setCookiesFromDOM const):
     38        (WebCore::NetworkStorageSession::getRawCookies const):
     39
    1402019-08-15  Thibault Saunier  <tsaunier@igalia.com>
    241
  • trunk/Source/WebCore/Headers.cmake

    r248517 r248713  
    778778    page/Frame.h
    779779    page/FrameDestructionObserver.h
     780    page/FrameIdentifier.h
    780781    page/FrameSnapshotting.h
    781782    page/FrameTree.h
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r248657 r248713  
    281281                0F03C0751884805500A5F8CA /* InspectorOverlay.h in Headers */ = {isa = PBXBuildFile; fileRef = 7C522D4A15B478B2009B7C95 /* InspectorOverlay.h */; settings = {ATTRIBUTES = (Private, ); }; };
    282282                0F099D0917B968A100FF84B9 /* WebCoreTypedArrayController.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F099D0717B968A100FF84B9 /* WebCoreTypedArrayController.h */; settings = {ATTRIBUTES = (Private, ); }; };
     283                0F11781822E3C47F008BD570 /* FrameIdentifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F11781622E3C47E008BD570 /* FrameIdentifier.h */; settings = {ATTRIBUTES = (Private, ); }; };
    283284                0F11A54F0F39233100C37884 /* RenderSelectionInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F11A54E0F39233100C37884 /* RenderSelectionInfo.h */; settings = {ATTRIBUTES = (Private, ); }; };
    284285                0F13163E16ED0CC80035CC04 /* PlatformCAFilters.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F13163D16ED0CC80035CC04 /* PlatformCAFilters.h */; settings = {ATTRIBUTES = (Private, ); }; };
     
    55795580                0F099D0617B968A100FF84B9 /* WebCoreTypedArrayController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebCoreTypedArrayController.cpp; sourceTree = "<group>"; };
    55805581                0F099D0717B968A100FF84B9 /* WebCoreTypedArrayController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreTypedArrayController.h; sourceTree = "<group>"; };
     5582                0F11781622E3C47E008BD570 /* FrameIdentifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FrameIdentifier.h; sourceTree = "<group>"; };
    55815583                0F11A54E0F39233100C37884 /* RenderSelectionInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSelectionInfo.h; sourceTree = "<group>"; };
    55825584                0F13163D16ED0CC80035CC04 /* PlatformCAFilters.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlatformCAFilters.h; sourceTree = "<group>"; };
     
    2020520207                                974A862014B7ADBB003FDC76 /* FrameDestructionObserver.cpp */,
    2020620208                                974A862114B7ADBB003FDC76 /* FrameDestructionObserver.h */,
     20209                                0F11781622E3C47E008BD570 /* FrameIdentifier.h */,
    2020720210                                C4CD629818383766007EBAF1 /* FrameSnapshotting.cpp */,
    2020820211                                C4CD629918383766007EBAF1 /* FrameSnapshotting.h */,
     
    2925629259                                65BF022F0974816300C43196 /* Frame.h in Headers */,
    2925729260                                974A862314B7ADBB003FDC76 /* FrameDestructionObserver.h in Headers */,
     29261                                0F11781822E3C47F008BD570 /* FrameIdentifier.h in Headers */,
    2925829262                                656D373C0ADBA5DE00A4554D /* FrameLoader.h in Headers */,
    2925929263                                656D373E0ADBA5DE00A4554D /* FrameLoaderClient.h in Headers */,
  • trunk/Source/WebCore/loader/CookieJar.cpp

    r248668 r248713  
    7272    auto includeSecureCookies = shouldIncludeSecureCookies(document, url);
    7373
    74     Optional<uint64_t> frameID;
     74    Optional<FrameIdentifier> frameID;
    7575    Optional<PageIdentifier> pageID;
    7676    if (auto* frame = document.frame()) {
     
    9595    TraceScope scope(FetchCookiesStart, FetchCookiesEnd);
    9696
    97     Optional<uint64_t> frameID;
     97    Optional<FrameIdentifier> frameID;
    9898    Optional<PageIdentifier> pageID;
    9999    if (auto* frame = document.frame()) {
     
    107107void CookieJar::setCookies(Document& document, const URL& url, const String& cookieString)
    108108{
    109     Optional<uint64_t> frameID;
     109    Optional<FrameIdentifier> frameID;
    110110    Optional<PageIdentifier> pageID;
    111111    if (auto* frame = document.frame()) {
     
    129129}
    130130
    131 std::pair<String, SecureCookiesAccessed> CookieJar::cookieRequestHeaderFieldValue(const PAL::SessionID&, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
     131std::pair<String, SecureCookiesAccessed> CookieJar::cookieRequestHeaderFieldValue(const PAL::SessionID&, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
    132132{
    133133    if (auto* session = m_storageSessionProvider->storageSession()) {
     
    142142String CookieJar::cookieRequestHeaderFieldValue(Document& document, const URL& url) const
    143143{
    144     Optional<uint64_t> frameID;
     144    Optional<FrameIdentifier> frameID;
    145145    Optional<PageIdentifier> pageID;
    146146    if (auto* frame = document.frame()) {
     
    157157bool CookieJar::getRawCookies(const Document& document, const URL& url, Vector<Cookie>& cookies) const
    158158{
    159     Optional<uint64_t> frameID;
     159    Optional<FrameIdentifier> frameID;
    160160    Optional<PageIdentifier> pageID;
    161161    if (auto* frame = document.frame()) {
  • trunk/Source/WebCore/loader/CookieJar.h

    r245796 r248713  
    2626#pragma once
    2727
     28#include "FrameIdentifier.h"
    2829#include "PageIdentifier.h"
    2930#include <wtf/Forward.h>
     
    6061
    6162    virtual bool cookiesEnabled(const Document&) const;
    62     virtual std::pair<String, SecureCookiesAccessed> cookieRequestHeaderFieldValue(const PAL::SessionID&, const URL& firstParty, const SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<PageIdentifier>, IncludeSecureCookies) const;
     63    virtual std::pair<String, SecureCookiesAccessed> cookieRequestHeaderFieldValue(const PAL::SessionID&, const URL& firstParty, const SameSiteInfo&, const URL&, Optional<FrameIdentifier>, Optional<PageIdentifier>, IncludeSecureCookies) const;
    6364    virtual bool getRawCookies(const Document&, const URL&, Vector<Cookie>&) const;
    6465    virtual void deleteCookie(const Document&, const URL&, const String& cookieName);
  • trunk/Source/WebCore/loader/EmptyFrameLoaderClient.h

    r245796 r248713  
    3333    void frameLoaderDestroyed() override { }
    3434
    35     Optional<uint64_t> frameID() const override { return WTF::nullopt; }
     35    Optional<FrameIdentifier> frameID() const override { return WTF::nullopt; }
    3636    Optional<PageIdentifier> pageID() const override { return WTF::nullopt; }
    3737    PAL::SessionID sessionID() const override;
  • trunk/Source/WebCore/loader/FrameLoaderClient.h

    r245796 r248713  
    3030#pragma once
    3131
     32#include "FrameIdentifier.h"
    3233#include "FrameLoaderTypes.h"
    3334#include "LayoutMilestone.h"
     
    129130
    130131    virtual Optional<PageIdentifier> pageID() const = 0;
    131     virtual Optional<uint64_t> frameID() const = 0;
     132    virtual Optional<FrameIdentifier> frameID() const = 0;
    132133    virtual PAL::SessionID sessionID() const = 0;
    133134
  • trunk/Source/WebCore/loader/NavigationAction.cpp

    r246490 r248713  
    4242    : m_url { URL { document.url() } }
    4343    , m_origin { makeRefPtr(document.securityOrigin()) }
    44     , m_pageIDAndFrameIDPair { document.frame() ? std::make_pair(document.frame()->loader().client().pageID().valueOr(PageIdentifier { }), document.frame()->loader().client().frameID().valueOr(0)) : std::make_pair<PageIdentifier, uint64_t>({ }, 0) }
     44    , m_pageIDAndFrameIDPair { document.frame() ? std::make_pair(document.frame()->loader().client().pageID().valueOr(PageIdentifier { }), document.frame()->loader().client().frameID().valueOr(FrameIdentifier { })) : std::make_pair<PageIdentifier, FrameIdentifier>({ }, { }) }
    4545{
    4646}
  • trunk/Source/WebCore/loader/NavigationAction.h

    r246490 r248713  
    3131#include "AdClickAttribution.h"
    3232#include "BackForwardItemIdentifier.h"
     33#include "FrameIdentifier.h"
    3334#include "FrameLoaderTypes.h"
    3435#include "LayoutPoint.h"
     
    6566    NavigationAction& operator=(NavigationAction&&);
    6667
    67     using PageIDAndFrameIDPair = std::pair<PageIdentifier, uint64_t /* frameID */>;
     68    using PageIDAndFrameIDPair = std::pair<PageIdentifier, FrameIdentifier>; // FIXME: Use GlobalFrameIdentifier.
    6869    class Requester {
    6970    public:
     
    7374        const SecurityOrigin& securityOrigin() const { return *m_origin; }
    7475        PageIdentifier pageID() const { return m_pageIDAndFrameIDPair.first; }
    75         uint64_t frameID() const { return m_pageIDAndFrameIDPair.second; }
     76        FrameIdentifier frameID() const { return m_pageIDAndFrameIDPair.second; }
    7677    private:
    7778        URL m_url;
  • trunk/Source/WebCore/page/ChromeClient.h

    r248139 r248713  
    3131#include "DocumentStorageAccess.h"
    3232#include "FocusDirection.h"
     33#include "FrameIdentifier.h"
    3334#include "FrameLoader.h"
    3435#include "GraphicsContext.h"
     
    487488
    488489#if ENABLE(RESOURCE_LOAD_STATISTICS)
    489     virtual void hasStorageAccess(RegistrableDomain&& /*subFrameDomain*/, RegistrableDomain&& /*topFrameDomain*/, uint64_t /*frameID*/, PageIdentifier, WTF::CompletionHandler<void(bool)>&& completionHandler) { completionHandler(false); }
    490     virtual void requestStorageAccess(RegistrableDomain&& /*subFrameDomain*/, RegistrableDomain&& /*topFrameDomain*/, uint64_t /*frameID*/, PageIdentifier, WTF::CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&& completionHandler) { completionHandler(StorageAccessWasGranted::No, StorageAccessPromptWasShown::No); }
     490    virtual void hasStorageAccess(RegistrableDomain&& /*subFrameDomain*/, RegistrableDomain&& /*topFrameDomain*/, FrameIdentifier, PageIdentifier, WTF::CompletionHandler<void(bool)>&& completionHandler) { completionHandler(false); }
     491    virtual void requestStorageAccess(RegistrableDomain&& /*subFrameDomain*/, RegistrableDomain&& /*topFrameDomain*/, FrameIdentifier, PageIdentifier, WTF::CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&& completionHandler) { completionHandler(StorageAccessWasGranted::No, StorageAccessPromptWasShown::No); }
    491492#endif
    492493
  • trunk/Source/WebCore/page/FrameIdentifier.h

    r248712 r248713  
    11/*
    2  * Copyright (C) 2016 Apple Inc. All rights reserved.
     2 * Copyright (C) 2019 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    2424 */
    2525
    26 #include "config.h"
    27 #include "WKFrameHandleRef.h"
     26#pragma once
    2827
    29 #include "APIFrameHandle.h"
    30 #include "WKAPICast.h"
     28#include <wtf/ObjectIdentifier.h>
    3129
    32 using namespace WebKit;
     30namespace WebCore {
    3331
    34 WKTypeID WKFrameHandleGetTypeID()
     32enum FrameIdentifierType { };
     33using FrameIdentifier = ObjectIdentifier<FrameIdentifierType>;
     34
     35inline FrameIdentifier frameIdentifierFromID(uint64_t frameID)
    3536{
    36     return toAPI(API::FrameHandle::APIType);
     37    return makeObjectIdentifier<FrameIdentifierType>(frameID);
    3738}
    3839
    39 uint64_t WKFrameHandleGetFrameID(WKFrameHandleRef frameHandleRef)
    40 {
    41     return toImpl(frameHandleRef)->frameID();
    4240}
  • trunk/Source/WebCore/page/GlobalFrameIdentifier.h

    r245796 r248713  
    2626#pragma once
    2727
     28#include "FrameIdentifier.h"
    2829#include "PageIdentifier.h"
    2930#include <wtf/Optional.h>
     
    3435struct GlobalFrameIdentifier {
    3536    PageIdentifier pageID;
    36     uint64_t frameID;
     37    FrameIdentifier frameID;
    3738
    3839    template<class Encoder> void encode(Encoder&) const;
     
    5455        return WTF::nullopt;
    5556
    56     Optional<uint64_t> frameID;
     57    Optional<FrameIdentifier> frameID;
    5758    decoder >> frameID;
    5859    if (!frameID)
  • trunk/Source/WebCore/platform/network/CookieRequestHeaderFieldProxy.h

    r248668 r248713  
    2727
    2828#include "CookieJar.h"
     29#include "FrameIdentifier.h"
    2930#include "PageIdentifier.h"
    3031#include "SameSiteInfo.h"
     
    3940    SameSiteInfo sameSiteInfo;
    4041    URL url;
    41     Optional<uint64_t> frameID;
     42    Optional<FrameIdentifier> frameID;
    4243    Optional<PageIdentifier> pageID;
    4344    IncludeSecureCookies includeSecureCookies { IncludeSecureCookies::No };
     
    7980        return WTF::nullopt;
    8081
    81     Optional<uint64_t> frameID;
    82     if (!decoder.decode(frameID))
     82    Optional<Optional<FrameIdentifier>> frameID;
     83    decoder >> frameID;
     84    if (!frameID)
    8385        return WTF::nullopt;
    8486
     
    9294        return WTF::nullopt;
    9395
    94     return CookieRequestHeaderFieldProxy { *sessionID, WTFMove(firstParty), WTFMove(sameSiteInfo), WTFMove(url), frameID, *pageID, includeSecureCookies };
     96    return CookieRequestHeaderFieldProxy { *sessionID, WTFMove(firstParty), WTFMove(sameSiteInfo), WTFMove(url), *frameID, *pageID, includeSecureCookies };
    9597}
    9698
  • trunk/Source/WebCore/platform/network/NetworkStorageSession.cpp

    r248640 r248713  
    8080}
    8181
    82 bool NetworkStorageSession::shouldBlockCookies(const ResourceRequest& request, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID) const
     82bool NetworkStorageSession::shouldBlockCookies(const ResourceRequest& request, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID) const
    8383{
    8484    return shouldBlockCookies(request.firstPartyForCookies(), request.url(), frameID, pageID);
    8585}
    8686   
    87 bool NetworkStorageSession::shouldBlockCookies(const URL& firstPartyForCookies, const URL& resource, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID) const
     87bool NetworkStorageSession::shouldBlockCookies(const URL& firstPartyForCookies, const URL& resource, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID) const
    8888{
    8989    RegistrableDomain firstPartyDomain { firstPartyForCookies };
     
    137137}
    138138
    139 bool NetworkStorageSession::hasStorageAccess(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, Optional<uint64_t> frameID, PageIdentifier pageID) const
     139bool NetworkStorageSession::hasStorageAccess(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, Optional<FrameIdentifier> frameID, PageIdentifier pageID) const
    140140{
    141141    if (frameID) {
     
    170170}
    171171   
    172 void NetworkStorageSession::grantStorageAccess(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, Optional<uint64_t> frameID, PageIdentifier pageID)
     172void NetworkStorageSession::grantStorageAccess(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, Optional<FrameIdentifier> frameID, PageIdentifier pageID)
    173173{
    174174    if (!frameID) {
     
    192192    auto pagesGrantedIterator = m_framesGrantedStorageAccess.find(pageID);
    193193    if (pagesGrantedIterator == m_framesGrantedStorageAccess.end()) {
    194         HashMap<uint64_t, RegistrableDomain, DefaultHash<uint64_t>::Hash, WTF::UnsignedWithZeroKeyHashTraits<uint64_t>> entry;
     194        HashMap<FrameIdentifier, RegistrableDomain> entry;
    195195        entry.add(frameID.value(), resourceDomain);
    196196        m_framesGrantedStorageAccess.add(pageID, entry);
     
    204204}
    205205
    206 void NetworkStorageSession::removeStorageAccessForFrame(uint64_t frameID, PageIdentifier pageID)
     206void NetworkStorageSession::removeStorageAccessForFrame(FrameIdentifier frameID, PageIdentifier pageID)
    207207{
    208208    auto iteration = m_framesGrantedStorageAccess.find(pageID);
  • trunk/Source/WebCore/platform/network/NetworkStorageSession.h

    r248640 r248713  
    2727
    2828#include "CredentialStorage.h"
     29#include "FrameIdentifier.h"
    2930#include "PageIdentifier.h"
    3031#include "RegistrableDomain.h"
     
    124125    WEBCORE_EXPORT void setCookie(const Cookie&);
    125126    WEBCORE_EXPORT void setCookies(const Vector<Cookie>&, const URL&, const URL& mainDocumentURL);
    126     WEBCORE_EXPORT void setCookiesFromDOM(const URL& firstParty, const SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<PageIdentifier>, const String&) const;
     127    WEBCORE_EXPORT void setCookiesFromDOM(const URL& firstParty, const SameSiteInfo&, const URL&, Optional<FrameIdentifier>, Optional<PageIdentifier>, const String&) const;
    127128    WEBCORE_EXPORT void deleteCookie(const Cookie&);
    128129    WEBCORE_EXPORT void deleteCookie(const URL&, const String&) const;
     
    133134    WEBCORE_EXPORT Vector<Cookie> getAllCookies();
    134135    WEBCORE_EXPORT Vector<Cookie> getCookies(const URL&);
    135     WEBCORE_EXPORT bool getRawCookies(const URL& firstParty, const SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<PageIdentifier>, Vector<Cookie>&) const;
     136    WEBCORE_EXPORT bool getRawCookies(const URL& firstParty, const SameSiteInfo&, const URL&, Optional<FrameIdentifier>, Optional<PageIdentifier>, Vector<Cookie>&) const;
    136137    WEBCORE_EXPORT void flushCookieStore();
    137138    WEBCORE_EXPORT void getHostnamesWithCookies(HashSet<String>& hostnames);
    138     WEBCORE_EXPORT std::pair<String, bool> cookiesForDOM(const URL& firstParty, const SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<PageIdentifier>, IncludeSecureCookies) const;
    139     WEBCORE_EXPORT std::pair<String, bool> cookieRequestHeaderFieldValue(const URL& firstParty, const SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<PageIdentifier>, IncludeSecureCookies) const;
     139    WEBCORE_EXPORT std::pair<String, bool> cookiesForDOM(const URL& firstParty, const SameSiteInfo&, const URL&, Optional<FrameIdentifier>, Optional<PageIdentifier>, IncludeSecureCookies) const;
     140    WEBCORE_EXPORT std::pair<String, bool> cookieRequestHeaderFieldValue(const URL& firstParty, const SameSiteInfo&, const URL&, Optional<FrameIdentifier>, Optional<PageIdentifier>, IncludeSecureCookies) const;
    140141    WEBCORE_EXPORT std::pair<String, bool> cookieRequestHeaderFieldValue(const CookieRequestHeaderFieldProxy&) const;
    141142
    142143#if ENABLE(RESOURCE_LOAD_STATISTICS)
    143     WEBCORE_EXPORT bool shouldBlockCookies(const ResourceRequest&, Optional<uint64_t> frameID, Optional<PageIdentifier>) const;
    144     WEBCORE_EXPORT bool shouldBlockCookies(const URL& firstPartyForCookies, const URL& resource, Optional<uint64_t> frameID, Optional<PageIdentifier>) const;
     144    WEBCORE_EXPORT bool shouldBlockCookies(const ResourceRequest&, Optional<FrameIdentifier>, Optional<PageIdentifier>) const;
     145    WEBCORE_EXPORT bool shouldBlockCookies(const URL& firstPartyForCookies, const URL& resource, Optional<FrameIdentifier>, Optional<PageIdentifier>) const;
    145146    WEBCORE_EXPORT bool shouldBlockThirdPartyCookies(const RegistrableDomain&) const;
    146147    WEBCORE_EXPORT bool shouldBlockThirdPartyCookiesButKeepFirstPartyCookiesFor(const RegistrableDomain&) const;
     
    149150    WEBCORE_EXPORT void setAgeCapForClientSideCookies(Optional<Seconds>);
    150151    WEBCORE_EXPORT void removePrevalentDomains(const Vector<RegistrableDomain>& domains);
    151     WEBCORE_EXPORT bool hasStorageAccess(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, Optional<uint64_t> frameID, PageIdentifier) const;
     152    WEBCORE_EXPORT bool hasStorageAccess(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, Optional<FrameIdentifier>, PageIdentifier) const;
    152153    WEBCORE_EXPORT Vector<String> getAllStorageAccessEntries() const;
    153     WEBCORE_EXPORT void grantStorageAccess(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, Optional<uint64_t> frameID, PageIdentifier);
    154     WEBCORE_EXPORT void removeStorageAccessForFrame(uint64_t frameID, PageIdentifier);
     154    WEBCORE_EXPORT void grantStorageAccess(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, Optional<FrameIdentifier>, PageIdentifier);
     155    WEBCORE_EXPORT void removeStorageAccessForFrame(FrameIdentifier, PageIdentifier);
    155156    WEBCORE_EXPORT void clearPageSpecificDataForResourceLoadStatistics(PageIdentifier);
    156157    WEBCORE_EXPORT void removeAllStorageAccess();
     
    186187    HashSet<RegistrableDomain> m_registrableDomainsToBlockAndDeleteCookiesFor;
    187188    HashSet<RegistrableDomain> m_registrableDomainsToBlockButKeepCookiesFor;
    188     HashMap<PageIdentifier, HashMap<uint64_t, RegistrableDomain, DefaultHash<uint64_t>::Hash, WTF::UnsignedWithZeroKeyHashTraits<uint64_t>>> m_framesGrantedStorageAccess;
     189    HashMap<PageIdentifier, HashMap<FrameIdentifier, RegistrableDomain>> m_framesGrantedStorageAccess;
    189190    HashMap<PageIdentifier, HashMap<RegistrableDomain, RegistrableDomain>> m_pagesGrantedStorageAccess;
    190191    Optional<Seconds> m_cacheMaxAgeCapForPrevalentResources { };
  • trunk/Source/WebCore/platform/network/SocketStreamHandle.cpp

    r246405 r248713  
    6262    if (m_state == Connecting || m_state == Closing)
    6363        return completionHandler(false, false);
    64     platformSendHandshake(reinterpret_cast<const uint8_t*>(handshake.data()), handshake.length(), headerFieldProxy, WTFMove(completionHandler));
     64    platformSendHandshake(reinterpret_cast<const uint8_t*>(handshake.data()), handshake.length(), WTFMove(headerFieldProxy), WTFMove(completionHandler));
    6565}
    6666
  • trunk/Source/WebCore/platform/network/cf/NetworkStorageSessionCFNetWin.cpp

    r245796 r248713  
    190190}
    191191
    192 void NetworkStorageSession::setCookiesFromDOM(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, const String& value) const
     192void NetworkStorageSession::setCookiesFromDOM(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, const String& value) const
    193193{
    194194    UNUSED_PARAM(frameID);
     
    226226}
    227227
    228 std::pair<String, bool> NetworkStorageSession::cookiesForDOM(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
     228std::pair<String, bool> NetworkStorageSession::cookiesForDOM(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
    229229{
    230230    UNUSED_PARAM(frameID);
     
    241241}
    242242
    243 std::pair<String, bool> NetworkStorageSession::cookieRequestHeaderFieldValue(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
     243std::pair<String, bool> NetworkStorageSession::cookieRequestHeaderFieldValue(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
    244244{
    245245    UNUSED_PARAM(frameID);
     
    265265}
    266266
    267 bool NetworkStorageSession::getRawCookies(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, Vector<Cookie>& rawCookies) const
     267bool NetworkStorageSession::getRawCookies(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, Vector<Cookie>& rawCookies) const
    268268{
    269269    UNUSED_PARAM(frameID);
  • trunk/Source/WebCore/platform/network/cocoa/NetworkStorageSessionCocoa.mm

    r246942 r248713  
    295295}
    296296
    297 static NSArray *cookiesForURL(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID)
     297static NSArray *cookiesForURL(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID)
    298298{
    299299#if ENABLE(RESOURCE_LOAD_STATISTICS)
     
    308308
    309309enum IncludeHTTPOnlyOrNot { DoNotIncludeHTTPOnly, IncludeHTTPOnly };
    310 static std::pair<String, bool> cookiesForSession(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeHTTPOnlyOrNot includeHTTPOnly, IncludeSecureCookies includeSecureCookies)
     310static std::pair<String, bool> cookiesForSession(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeHTTPOnlyOrNot includeHTTPOnly, IncludeSecureCookies includeSecureCookies)
    311311{
    312312    ASSERT(hasProcessPrivilege(ProcessPrivilege::CanAccessRawCookies));
     
    364364}
    365365
    366 std::pair<String, bool> NetworkStorageSession::cookiesForDOM(const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
     366std::pair<String, bool> NetworkStorageSession::cookiesForDOM(const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
    367367{
    368368    return cookiesForSession(*this, firstParty, sameSiteInfo, url, frameID, pageID, DoNotIncludeHTTPOnly, includeSecureCookies);
    369369}
    370370
    371 std::pair<String, bool> NetworkStorageSession::cookieRequestHeaderFieldValue(const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
     371std::pair<String, bool> NetworkStorageSession::cookieRequestHeaderFieldValue(const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
    372372{
    373373    return cookiesForSession(*this, firstParty, sameSiteInfo, url, frameID, pageID, IncludeHTTPOnly, includeSecureCookies);
     
    379379}
    380380
    381 void NetworkStorageSession::setCookiesFromDOM(const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, const String& cookieStr) const
     381void NetworkStorageSession::setCookiesFromDOM(const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, const String& cookieStr) const
    382382{
    383383    ASSERT(hasProcessPrivilege(ProcessPrivilege::CanAccessRawCookies));
     
    444444}
    445445
    446 bool NetworkStorageSession::getRawCookies(const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, Vector<Cookie>& rawCookies) const
     446bool NetworkStorageSession::getRawCookies(const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, Vector<Cookie>& rawCookies) const
    447447{
    448448    rawCookies.clear();
  • trunk/Source/WebCore/platform/network/curl/CookieJarCurl.cpp

    r247064 r248713  
    6060}
    6161
    62 void CookieJarCurl::setCookiesFromDOM(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier>, const String& value) const
     62void CookieJarCurl::setCookiesFromDOM(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier>, const String& value) const
    6363{
    6464    UNUSED_PARAM(frameID);
     
    7474}
    7575
    76 std::pair<String, bool> CookieJarCurl::cookiesForDOM(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies) const
     76std::pair<String, bool> CookieJarCurl::cookiesForDOM(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies) const
    7777{
    7878    UNUSED_PARAM(frameID);
     
    8383}
    8484
    85 std::pair<String, bool> CookieJarCurl::cookieRequestHeaderFieldValue(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies) const
     85std::pair<String, bool> CookieJarCurl::cookieRequestHeaderFieldValue(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies) const
    8686{
    8787    UNUSED_PARAM(frameID);
     
    113113}
    114114
    115 bool CookieJarCurl::getRawCookies(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, Vector<Cookie>& rawCookies) const
     115bool CookieJarCurl::getRawCookies(const NetworkStorageSession& session, const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, Vector<Cookie>& rawCookies) const
    116116{
    117117    UNUSED_PARAM(frameID);
  • trunk/Source/WebCore/platform/network/curl/CookieJarCurl.h

    r245796 r248713  
    2525#pragma once
    2626
     27#include "FrameIdentifier.h"
    2728#include "PageIdentifier.h"
    2829#include <wtf/Forward.h>
     
    4344class CookieJarCurl {
    4445public:
    45     std::pair<String, bool> cookiesForDOM(const NetworkStorageSession&, const URL& firstParty, const SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<PageIdentifier>, IncludeSecureCookies) const;
    46     void setCookiesFromDOM(const NetworkStorageSession&, const URL& firstParty, const SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<PageIdentifier>, const String&) const;
     46    std::pair<String, bool> cookiesForDOM(const NetworkStorageSession&, const URL& firstParty, const SameSiteInfo&, const URL&, Optional<FrameIdentifier> frameID, Optional<PageIdentifier>, IncludeSecureCookies) const;
     47    void setCookiesFromDOM(const NetworkStorageSession&, const URL& firstParty, const SameSiteInfo&, const URL&, Optional<FrameIdentifier> frameID, Optional<PageIdentifier>, const String&) const;
    4748    void setCookiesFromHTTPResponse(const NetworkStorageSession&, const URL& firstParty, const URL&, const String&) const;
    4849    void setCookieAcceptPolicy(const NetworkStorageSession&, CookieAcceptPolicy) const;
    4950    CookieAcceptPolicy cookieAcceptPolicy(const NetworkStorageSession&) const;
    5051    bool cookiesEnabled(const NetworkStorageSession&) const;
    51     std::pair<String, bool> cookieRequestHeaderFieldValue(const NetworkStorageSession&, const URL& firstParty, const SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<PageIdentifier>, IncludeSecureCookies) const;
     52    std::pair<String, bool> cookieRequestHeaderFieldValue(const NetworkStorageSession&, const URL& firstParty, const SameSiteInfo&, const URL&, Optional<FrameIdentifier> frameID, Optional<PageIdentifier>, IncludeSecureCookies) const;
    5253    std::pair<String, bool> cookieRequestHeaderFieldValue(const NetworkStorageSession&, const CookieRequestHeaderFieldProxy&) const;
    53     bool getRawCookies(const NetworkStorageSession&, const URL& firstParty, const SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<PageIdentifier>, Vector<Cookie>&) const;
     54    bool getRawCookies(const NetworkStorageSession&, const URL& firstParty, const SameSiteInfo&, const URL&, Optional<FrameIdentifier> frameID, Optional<PageIdentifier>, Vector<Cookie>&) const;
    5455    void deleteCookie(const NetworkStorageSession&, const URL&, const String&) const;
    5556    void getHostnamesWithCookies(const NetworkStorageSession&, HashSet<String>& hostnames) const;
  • trunk/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp

    r248010 r248713  
    261261}
    262262
    263 void NetworkStorageSession::setCookiesFromDOM(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, const String& value) const
     263void NetworkStorageSession::setCookiesFromDOM(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, const String& value) const
    264264{
    265265    UNUSED_PARAM(frameID);
     
    414414}
    415415
    416 bool NetworkStorageSession::getRawCookies(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, Vector<Cookie>& rawCookies) const
     416bool NetworkStorageSession::getRawCookies(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, Vector<Cookie>& rawCookies) const
    417417{
    418418    UNUSED_PARAM(firstParty);
     
    484484}
    485485
    486 std::pair<String, bool> NetworkStorageSession::cookiesForDOM(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
     486std::pair<String, bool> NetworkStorageSession::cookiesForDOM(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
    487487{
    488488    UNUSED_PARAM(firstParty);
     
    492492}
    493493
    494 std::pair<String, bool> NetworkStorageSession::cookieRequestHeaderFieldValue(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
     494std::pair<String, bool> NetworkStorageSession::cookieRequestHeaderFieldValue(const URL& firstParty, const SameSiteInfo&, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies) const
    495495{
    496496    UNUSED_PARAM(firstParty);
  • trunk/Source/WebKit/ChangeLog

    r248700 r248713  
     12019-08-15  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Use ObjectIdentifier<FrameIdentifierType> for frameIDs
     4        https://bugs.webkit.org/show_bug.cgi?id=199986
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Use the strongly-typed FrameIdentifier instead of uint64_t as frame identifiers everywhere.
     9
     10        * NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:
     11        (WebKit::ResourceLoadStatisticsDatabaseStore::hasStorageAccess):
     12        (WebKit::ResourceLoadStatisticsDatabaseStore::requestStorageAccess):
     13        (WebKit::ResourceLoadStatisticsDatabaseStore::grantStorageAccess):
     14        (WebKit::ResourceLoadStatisticsDatabaseStore::grantStorageAccessInternal):
     15        * NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.h:
     16        * NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.cpp:
     17        (WebKit::ResourceLoadStatisticsMemoryStore::hasStorageAccess):
     18        (WebKit::ResourceLoadStatisticsMemoryStore::requestStorageAccess):
     19        (WebKit::ResourceLoadStatisticsMemoryStore::grantStorageAccess):
     20        (WebKit::ResourceLoadStatisticsMemoryStore::grantStorageAccessInternal):
     21        * NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.h:
     22        * NetworkProcess/Classifier/ResourceLoadStatisticsStore.h:
     23        * NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:
     24        (WebKit::WebResourceLoadStatisticsStore::hasStorageAccess):
     25        (WebKit::WebResourceLoadStatisticsStore::hasStorageAccessForFrame):
     26        (WebKit::WebResourceLoadStatisticsStore::callHasStorageAccessForFrameHandler):
     27        (WebKit::WebResourceLoadStatisticsStore::requestStorageAccess):
     28        (WebKit::WebResourceLoadStatisticsStore::grantStorageAccess):
     29        (WebKit::WebResourceLoadStatisticsStore::callGrantStorageAccessHandler):
     30        * NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h:
     31        * NetworkProcess/NetworkCORSPreflightChecker.h:
     32        * NetworkProcess/NetworkConnectionToWebProcess.cpp:
     33        (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
     34        (WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
     35        (WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
     36        (WebKit::NetworkConnectionToWebProcess::getRawCookies):
     37        (WebKit::NetworkConnectionToWebProcess::removeStorageAccessForFrame):
     38        (WebKit::NetworkConnectionToWebProcess::hasStorageAccess):
     39        (WebKit::NetworkConnectionToWebProcess::requestStorageAccess):
     40        * NetworkProcess/NetworkConnectionToWebProcess.h:
     41        * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
     42        * NetworkProcess/NetworkLoadChecker.cpp:
     43        (WebKit::NetworkLoadChecker::NetworkLoadChecker):
     44        * NetworkProcess/NetworkLoadChecker.h:
     45        * NetworkProcess/NetworkLoadParameters.h:
     46        * NetworkProcess/NetworkProcess.h:
     47        * NetworkProcess/NetworkResourceLoader.cpp:
     48        (WebKit::NetworkResourceLoader::start):
     49        (WebKit::NetworkResourceLoader::retrieveCacheEntry):
     50        (WebKit::NetworkResourceLoader::startNetworkLoad):
     51        (WebKit::NetworkResourceLoader::convertToDownload):
     52        (WebKit::NetworkResourceLoader::abort):
     53        (WebKit::NetworkResourceLoader::didReceiveResponse):
     54        (WebKit::NetworkResourceLoader::didReceiveBuffer):
     55        (WebKit::NetworkResourceLoader::didFinishLoading):
     56        (WebKit::NetworkResourceLoader::didFailLoading):
     57        (WebKit::NetworkResourceLoader::continueWillSendRequest):
     58        (WebKit::escapeIDForJSON):
     59        (WebKit::logBlockedCookieInformation):
     60        (WebKit::logCookieInformationInternal):
     61        (WebKit::NetworkResourceLoader::logCookieInformation):
     62        * NetworkProcess/NetworkResourceLoader.h:
     63        * NetworkProcess/cache/NetworkCache.h:
     64        * NetworkProcess/cocoa/NetworkDataTaskCocoa.h:
     65        * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
     66        (WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa):
     67        (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection):
     68        * Scripts/webkit/messages.py:
     69        * Shared/API/APIFrameHandle.cpp:
     70        (API::FrameHandle::create):
     71        (API::FrameHandle::createAutoconverting):
     72        (API::FrameHandle::FrameHandle):
     73        (API::FrameHandle::decode):
     74        * Shared/API/APIFrameHandle.h:
     75        (API::FrameHandle::frameID const):
     76        * Shared/API/Cocoa/_WKFrameHandle.mm:
     77        (-[_WKFrameHandle hash]):
     78        (-[_WKFrameHandle _frameID]):
     79        (-[_WKFrameHandle initWithCoder:]):
     80        (-[_WKFrameHandle encodeWithCoder:]):
     81        * Shared/Authentication/AuthenticationManager.cpp:
     82        (WebKit::AuthenticationManager::didReceiveAuthenticationChallenge):
     83        * Shared/Authentication/AuthenticationManager.h:
     84        * Shared/FrameInfoData.h:
     85        * UIProcess/API/C/WKFrameHandleRef.cpp:
     86        (WKFrameHandleGetFrameID):
     87        * UIProcess/API/Cocoa/WKWebView.mm:
     88        (-[WKWebView _printOperationWithPrintInfo:forFrame:]):
     89        (-[WKWebView _canChangeFrameLayout:]):
     90        * UIProcess/API/Cocoa/_WKInspector.mm:
     91        (-[_WKInspector showMainResourceForFrame:]):
     92        * UIProcess/Automation/SimulatedInputDispatcher.cpp:
     93        (WebKit::SimulatedInputDispatcher::run):
     94        * UIProcess/Automation/SimulatedInputDispatcher.h:
     95        * UIProcess/Automation/WebAutomationSession.cpp:
     96        (WebKit::WebAutomationSession::webFrameIDForHandle):
     97        (WebKit::WebAutomationSession::handleForWebFrameID):
     98        (WebKit::WebAutomationSession::switchToBrowsingContext):
     99        (WebKit::WebAutomationSession::waitForNavigationToComplete):
     100        (WebKit::findPageForFrameID):
     101        (WebKit::WebAutomationSession::respondToPendingFrameNavigationCallbacksWithTimeout):
     102        (WebKit::WebAutomationSession::evaluateJavaScriptFunction):
     103        (WebKit::WebAutomationSession::resolveChildFrameHandle):
     104        (WebKit::WebAutomationSession::resolveParentFrameHandle):
     105        (WebKit::WebAutomationSession::computeElementLayout):
     106        (WebKit::WebAutomationSession::selectOptionElement):
     107        (WebKit::WebAutomationSession::getAllCookies):
     108        (WebKit::WebAutomationSession::deleteSingleCookie):
     109        (WebKit::WebAutomationSession::viewportInViewCenterPointOfElement):
     110        (WebKit::WebAutomationSession::takeScreenshot):
     111        * UIProcess/Automation/WebAutomationSession.h:
     112        * UIProcess/Cocoa/UIDelegate.mm:
     113        (WebKit::UIDelegate::UIClient::checkUserMediaPermissionForOrigin):
     114        * UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm:
     115        (-[WKReloadFrameErrorRecoveryAttempter attemptRecovery]):
     116        * UIProcess/Cocoa/WebPageProxyCocoa.mm:
     117        (WebKit::WebPageProxy::contentFilterDidBlockLoadForFrame):
     118        (WebKit::WebPageProxy::contentFilterDidBlockLoadForFrameShared):
     119        * UIProcess/Network/NetworkProcessProxy.cpp:
     120        (WebKit::NetworkProcessProxy::didReceiveAuthenticationChallenge):
     121        (WebKit::NetworkProcessProxy::requestStorageAccessConfirm):
     122        * UIProcess/Network/NetworkProcessProxy.h:
     123        * UIProcess/Network/NetworkProcessProxy.messages.in:
     124        * UIProcess/ProvisionalPageProxy.cpp:
     125        (WebKit::ProvisionalPageProxy::validateInput):
     126        (WebKit::ProvisionalPageProxy::didCreateMainFrame):
     127        (WebKit::ProvisionalPageProxy::didPerformClientRedirect):
     128        (WebKit::ProvisionalPageProxy::didStartProvisionalLoadForFrame):
     129        (WebKit::ProvisionalPageProxy::didFailProvisionalLoadForFrame):
     130        (WebKit::ProvisionalPageProxy::didCommitLoadForFrame):
     131        (WebKit::ProvisionalPageProxy::didNavigateWithNavigationData):
     132        (WebKit::ProvisionalPageProxy::didChangeProvisionalURLForFrame):
     133        (WebKit::ProvisionalPageProxy::decidePolicyForNavigationActionAsync):
     134        (WebKit::ProvisionalPageProxy::decidePolicyForResponse):
     135        (WebKit::ProvisionalPageProxy::didPerformServerRedirect):
     136        (WebKit::ProvisionalPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
     137        (WebKit::ProvisionalPageProxy::decidePolicyForNavigationActionSync):
     138        (WebKit::ProvisionalPageProxy::contentFilterDidBlockLoadForFrame):
     139        * UIProcess/ProvisionalPageProxy.h:
     140        * UIProcess/ServiceWorkerProcessProxy.cpp:
     141        (WebKit::ServiceWorkerProcessProxy::didReceiveAuthenticationChallenge):
     142        * UIProcess/ServiceWorkerProcessProxy.h:
     143        * UIProcess/SuspendedPageProxy.cpp:
     144        (WebKit::SuspendedPageProxy::SuspendedPageProxy):
     145        * UIProcess/SuspendedPageProxy.h:
     146        * UIProcess/UserMediaPermissionCheckProxy.cpp:
     147        (WebKit::UserMediaPermissionCheckProxy::UserMediaPermissionCheckProxy):
     148        * UIProcess/UserMediaPermissionCheckProxy.h:
     149        (WebKit::UserMediaPermissionCheckProxy::create):
     150        (WebKit::UserMediaPermissionCheckProxy::frameID const):
     151        * UIProcess/UserMediaPermissionRequestManagerProxy.cpp:
     152        (WebKit::UserMediaPermissionRequestManagerProxy::resetAccess):
     153        (WebKit::UserMediaPermissionRequestManagerProxy::searchForGrantedRequest const):
     154        (WebKit::UserMediaPermissionRequestManagerProxy::wasRequestDenied):
     155        (WebKit::UserMediaPermissionRequestManagerProxy::requestUserMediaPermissionForFrame):
     156        (WebKit::UserMediaPermissionRequestManagerProxy::getUserMediaPermissionInfo):
     157        (WebKit::UserMediaPermissionRequestManagerProxy::wasGrantedVideoOrAudioAccess):
     158        (WebKit::UserMediaPermissionRequestManagerProxy::enumerateMediaDevicesForFrame):
     159        * UIProcess/UserMediaPermissionRequestManagerProxy.h:
     160        * UIProcess/UserMediaPermissionRequestProxy.cpp:
     161        (WebKit::UserMediaPermissionRequestProxy::UserMediaPermissionRequestProxy):
     162        * UIProcess/UserMediaPermissionRequestProxy.h:
     163        (WebKit::UserMediaPermissionRequestProxy::create):
     164        (WebKit::UserMediaPermissionRequestProxy::mainFrameID const):
     165        (WebKit::UserMediaPermissionRequestProxy::frameID const):
     166        * UIProcess/WebFrameProxy.cpp:
     167        (WebKit::WebFrameProxy::WebFrameProxy):
     168        * UIProcess/WebFrameProxy.h:
     169        (WebKit::WebFrameProxy::create):
     170        (WebKit::WebFrameProxy::frameID const):
     171        * UIProcess/WebPageProxy.cpp:
     172        (WebKit::WebPageProxy::suspendCurrentPageIfPossible):
     173        (WebKit::WebPageProxy::commitProvisionalPage):
     174        (WebKit::WebPageProxy::runJavaScriptInFrame):
     175        (WebKit::WebPageProxy::didCreateMainFrame):
     176        (WebKit::WebPageProxy::didCreateSubframe):
     177        (WebKit::WebPageProxy::didCreateWindow):
     178        (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
     179        (WebKit::WebPageProxy::didStartProvisionalLoadForFrameShared):
     180        (WebKit::WebPageProxy::didExplicitOpenForFrame):
     181        (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
     182        (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrameShared):
     183        (WebKit::WebPageProxy::willPerformClientRedirectForFrame):
     184        (WebKit::WebPageProxy::didCancelClientRedirectForFrame):
     185        (WebKit::WebPageProxy::didChangeProvisionalURLForFrame):
     186        (WebKit::WebPageProxy::didChangeProvisionalURLForFrameShared):
     187        (WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
     188        (WebKit::WebPageProxy::didFailProvisionalLoadForFrameShared):
     189        (WebKit::WebPageProxy::didCommitLoadForFrame):
     190        (WebKit::WebPageProxy::didFinishDocumentLoadForFrame):
     191        (WebKit::WebPageProxy::didFinishLoadForFrame):
     192        (WebKit::WebPageProxy::didFailLoadForFrame):
     193        (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
     194        (WebKit::WebPageProxy::didChangeMainDocument):
     195        (WebKit::WebPageProxy::didReceiveTitleForFrame):
     196        (WebKit::WebPageProxy::didFirstLayoutForFrame):
     197        (WebKit::WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame):
     198        (WebKit::WebPageProxy::didDisplayInsecureContentForFrame):
     199        (WebKit::WebPageProxy::didRunInsecureContentForFrame):
     200        (WebKit::WebPageProxy::didDetectXSSForFrame):
     201        (WebKit::WebPageProxy::frameDidBecomeFrameSet):
     202        (WebKit::WebPageProxy::decidePolicyForNavigationActionAsync):
     203        (WebKit::WebPageProxy::decidePolicyForNavigationActionAsyncShared):
     204        (WebKit::WebPageProxy::decidePolicyForNavigationActionSync):
     205        (WebKit::WebPageProxy::decidePolicyForNavigationActionSyncShared):
     206        (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
     207        (WebKit::WebPageProxy::decidePolicyForResponse):
     208        (WebKit::WebPageProxy::decidePolicyForResponseShared):
     209        (WebKit::WebPageProxy::unableToImplementPolicy):
     210        (WebKit::WebPageProxy::willSubmitForm):
     211        (WebKit::WebPageProxy::didNavigateWithNavigationData):
     212        (WebKit::WebPageProxy::didNavigateWithNavigationDataShared):
     213        (WebKit::WebPageProxy::didPerformClientRedirect):
     214        (WebKit::WebPageProxy::didPerformClientRedirectShared):
     215        (WebKit::WebPageProxy::didPerformServerRedirect):
     216        (WebKit::WebPageProxy::didPerformServerRedirectShared):
     217        (WebKit::WebPageProxy::didUpdateHistoryTitle):
     218        (WebKit::WebPageProxy::runJavaScriptAlert):
     219        (WebKit::WebPageProxy::runJavaScriptConfirm):
     220        (WebKit::WebPageProxy::runJavaScriptPrompt):
     221        (WebKit::WebPageProxy::runBeforeUnloadConfirmPanel):
     222        (WebKit::WebPageProxy::runOpenPanel):
     223        (WebKit::WebPageProxy::printFrame):
     224        (WebKit::WebPageProxy::focusedFrameChanged):
     225        (WebKit::WebPageProxy::frameSetLargestFrameChanged):
     226        (WebKit::WebPageProxy::didReceiveAuthenticationChallengeProxy):
     227        (WebKit::WebPageProxy::exceededDatabaseQuota):
     228        (WebKit::WebPageProxy::requestStorageSpace):
     229        (WebKit::WebPageProxy::makeStorageSpaceRequest):
     230        (WebKit::WebPageProxy::requestGeolocationPermissionForFrame):
     231        (WebKit::WebPageProxy::requestUserMediaPermissionForFrame):
     232        (WebKit::WebPageProxy::enumerateMediaDevicesForFrame):
     233        (WebKit::WebPageProxy::shouldAllowDeviceOrientationAndMotionAccess):
     234        (WebKit::WebPageProxy::requestStorageAccessConfirm):
     235        * UIProcess/WebPageProxy.h:
     236        * UIProcess/WebPageProxy.messages.in:
     237        * UIProcess/WebProcessProxy.cpp:
     238        (WebKit::WebProcessProxy::webFrame const):
     239        (WebKit::WebProcessProxy::canCreateFrame const):
     240        (WebKit::WebProcessProxy::frameCreated):
     241        (WebKit::WebProcessProxy::didDestroyFrame):
     242        * UIProcess/WebProcessProxy.h:
     243        * UIProcess/WebProcessProxy.messages.in:
     244        * UIProcess/ios/WKContentView.mm:
     245        (-[WKContentView _wk_pageCountForPrintFormatter:]):
     246        * UIProcess/ios/WebPageProxyIOS.mm:
     247        (WebKit::WebPageProxy::computePagesForPrintingAndDrawToPDF):
     248        * WebProcess/Automation/WebAutomationSessionProxy.cpp:
     249        (WebKit::evaluateJavaScriptCallback):
     250        (WebKit::WebAutomationSessionProxy::didClearWindowObjectForFrame):
     251        (WebKit::WebAutomationSessionProxy::evaluateJavaScriptFunction):
     252        (WebKit::WebAutomationSessionProxy::didEvaluateJavaScriptFunction):
     253        (WebKit::WebAutomationSessionProxy::resolveChildFrameWithOrdinal):
     254        (WebKit::WebAutomationSessionProxy::resolveChildFrameWithNodeHandle):
     255        (WebKit::WebAutomationSessionProxy::resolveChildFrameWithName):
     256        (WebKit::WebAutomationSessionProxy::resolveParentFrame):
     257        (WebKit::WebAutomationSessionProxy::focusFrame):
     258        (WebKit::WebAutomationSessionProxy::computeElementLayout):
     259        (WebKit::WebAutomationSessionProxy::selectOptionElement):
     260        (WebKit::WebAutomationSessionProxy::takeScreenshot):
     261        (WebKit::WebAutomationSessionProxy::getCookiesForFrame):
     262        (WebKit::WebAutomationSessionProxy::deleteCookie):
     263        * WebProcess/Automation/WebAutomationSessionProxy.h:
     264        * WebProcess/Automation/WebAutomationSessionProxy.messages.in:
     265        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
     266        (+[WKWebProcessPlugInFrame lookUpFrameFromHandle:]):
     267        * WebProcess/Network/WebLoaderStrategy.cpp:
     268        (WebKit::WebLoaderStrategy::scheduleLoad):
     269        (WebKit::WebLoaderStrategy::scheduleLoadFromNetworkProcess):
     270        (WebKit::WebLoaderStrategy::loadResourceSynchronously):
     271        * WebProcess/Network/WebResourceLoader.cpp:
     272        (WebKit::WebResourceLoader::willSendRequest):
     273        (WebKit::WebResourceLoader::didReceiveResponse):
     274        (WebKit::WebResourceLoader::didReceiveData):
     275        (WebKit::WebResourceLoader::didFinishResourceLoad):
     276        (WebKit::WebResourceLoader::didFailResourceLoad):
     277        (WebKit::WebResourceLoader::didBlockAuthenticationChallenge):
     278        (WebKit::WebResourceLoader::stopLoadingAfterXFrameOptionsOrContentSecurityPolicyDenied):
     279        (WebKit::WebResourceLoader::didReceiveResource):
     280        * WebProcess/Network/WebResourceLoader.h:
     281        * WebProcess/Storage/WebSWContextManagerConnection.cpp:
     282        (WebKit::WebSWContextManagerConnection::installServiceWorker):
     283        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
     284        (WebKit::WebChromeClient::focusedFrameChanged):
     285        (WebKit::WebChromeClient::contentsSizeChanged const):
     286        (WebKit::WebChromeClient::hasStorageAccess):
     287        (WebKit::WebChromeClient::requestStorageAccess):
     288        * WebProcess/WebCoreSupport/WebChromeClient.h:
     289        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
     290        (WebKit::WebFrameLoaderClient::frameID const):
     291        (WebKit::WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
     292        (WebKit::WebFrameLoaderClient::dispatchDidFailLoad):
     293        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
     294        * WebProcess/WebPage/WebCookieJar.cpp:
     295        (WebKit::WebCookieJar::cookies const):
     296        (WebKit::WebCookieJar::setCookies):
     297        (WebKit::WebCookieJar::cookieRequestHeaderFieldValue const):
     298        (WebKit::WebCookieJar::getRawCookies const):
     299        * WebProcess/WebPage/WebCookieJar.h:
     300        * WebProcess/WebPage/WebFrame.cpp:
     301        (WebKit::WebFrame::WebFrame):
     302        (WebKit::generateFrameID): Deleted.
     303        * WebProcess/WebPage/WebFrame.h:
     304        (WebKit::WebFrame::frameID const):
     305        * WebProcess/WebPage/WebInspector.cpp:
     306        (WebKit::WebInspector::showMainResourceForFrame):
     307        * WebProcess/WebPage/WebInspector.h:
     308        * WebProcess/WebPage/WebInspector.messages.in:
     309        * WebProcess/WebPage/WebPage.cpp:
     310        (WebKit::WebPage::loadURLInFrame):
     311        (WebKit::WebPage::loadDataInFrame):
     312        (WebKit::WebPage::stopLoadingFrame):
     313        (WebKit::WebPage::didReceivePolicyDecision):
     314        (WebKit::WebPage::continueWillSubmitForm):
     315        (WebKit::WebPage::runJavaScriptInFrame):
     316        (WebKit::WebPage::getSourceForFrame):
     317        (WebKit::WebPage::getMainResourceDataOfFrame):
     318        (WebKit::WebPage::getResourceDataFromFrame):
     319        (WebKit::WebPage::getWebArchiveOfFrame):
     320        (WebKit::WebPage::addConsoleMessage):
     321        (WebKit::WebPage::sendCSPViolationReport):
     322        (WebKit::WebPage::enqueueSecurityPolicyViolationEvent):
     323        (WebKit::WebPage::beginPrinting):
     324        (WebKit::WebPage::computePagesForPrinting):
     325        (WebKit::WebPage::computePagesForPrintingImpl):
     326        (WebKit::WebPage::drawRectToImage):
     327        (WebKit::WebPage::drawPagesToPDF):
     328        (WebKit::WebPage::drawPagesToPDFImpl):
     329        (WebKit::WebPage::drawPagesForPrinting):
     330        (WebKit::WebPage::frameBecameRemote):
     331        (WebKit::WebPage::hasStorageAccess):
     332        (WebKit::WebPage::requestStorageAccess):
     333        (WebKit::WebPage::shouldAllowDeviceOrientationAndMotionAccess):
     334        * WebProcess/WebPage/WebPage.h:
     335        * WebProcess/WebPage/WebPage.messages.in:
     336        * WebProcess/WebPage/ios/WebPageIOS.mm:
     337        (WebKit::WebPage::computePagesForPrintingPDFDocument):
     338        (WebKit::WebPage::computePagesForPrintingAndDrawToPDF):
     339        * WebProcess/WebPage/mac/WebPageMac.mm:
     340        (WebKit::WebPage::computePagesForPrintingPDFDocument):
     341        * WebProcess/WebProcess.cpp:
     342        (WebKit::WebProcess::webFrame const):
     343        (WebKit::WebProcess::addWebFrame):
     344        (WebKit::WebProcess::removeWebFrame):
     345        * WebProcess/WebProcess.h:
     346
    13472019-08-14  Wenson Hsieh  <wenson_hsieh@apple.com>
    2348
  • trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp

    r248640 r248713  
    717717}
    718718
    719 void ResourceLoadStatisticsDatabaseStore::hasStorageAccess(const SubFrameDomain& subFrameDomain, const TopFrameDomain& topFrameDomain, Optional<FrameID> frameID, PageIdentifier pageID, CompletionHandler<void(bool)>&& completionHandler)
     719void ResourceLoadStatisticsDatabaseStore::hasStorageAccess(const SubFrameDomain& subFrameDomain, const TopFrameDomain& topFrameDomain, Optional<FrameIdentifier> frameID, PageIdentifier pageID, CompletionHandler<void(bool)>&& completionHandler)
    720720{
    721721    ASSERT(!RunLoop::isMain());
     
    744744}
    745745
    746 void ResourceLoadStatisticsDatabaseStore::requestStorageAccess(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, FrameID frameID, PageIdentifier pageID, CompletionHandler<void(StorageAccessStatus)>&& completionHandler)
     746void ResourceLoadStatisticsDatabaseStore::requestStorageAccess(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, FrameIdentifier frameID, PageIdentifier pageID, CompletionHandler<void(StorageAccessStatus)>&& completionHandler)
    747747{
    748748    ASSERT(!RunLoop::isMain());
     
    805805}
    806806
    807 void ResourceLoadStatisticsDatabaseStore::grantStorageAccess(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, uint64_t frameID, PageIdentifier pageID, StorageAccessPromptWasShown promptWasShown, CompletionHandler<void(StorageAccessWasGranted)>&& completionHandler)
     807void ResourceLoadStatisticsDatabaseStore::grantStorageAccess(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, FrameIdentifier frameID, PageIdentifier pageID, StorageAccessPromptWasShown promptWasShown, CompletionHandler<void(StorageAccessWasGranted)>&& completionHandler)
    808808{
    809809    ASSERT(!RunLoop::isMain());
     
    819819}
    820820
    821 void ResourceLoadStatisticsDatabaseStore::grantStorageAccessInternal(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, Optional<FrameID> frameID, PageIdentifier pageID, StorageAccessPromptWasShown promptWasShownNowOrEarlier, CompletionHandler<void(StorageAccessWasGranted)>&& completionHandler)
     821void ResourceLoadStatisticsDatabaseStore::grantStorageAccessInternal(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, Optional<FrameIdentifier> frameID, PageIdentifier pageID, StorageAccessPromptWasShown promptWasShownNowOrEarlier, CompletionHandler<void(StorageAccessWasGranted)>&& completionHandler)
    822822{
    823823    ASSERT(!RunLoop::isMain());
  • trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.h

    r248640 r248713  
    9292    void calculateAndSubmitTelemetry() const override;
    9393
    94     void hasStorageAccess(const SubFrameDomain&, const TopFrameDomain&, Optional<FrameID>, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&) override;
    95     void requestStorageAccess(SubFrameDomain&&, TopFrameDomain&&, FrameID, WebCore::PageIdentifier, CompletionHandler<void(StorageAccessStatus)>&&) override;
    96     void grantStorageAccess(SubFrameDomain&&, TopFrameDomain&&, FrameID, WebCore::PageIdentifier, WebCore::StorageAccessPromptWasShown, CompletionHandler<void(WebCore::StorageAccessWasGranted)>&&) override;
     94    void hasStorageAccess(const SubFrameDomain&, const TopFrameDomain&, Optional<WebCore::FrameIdentifier>, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&) override;
     95    void requestStorageAccess(SubFrameDomain&&, TopFrameDomain&&, WebCore::FrameIdentifier, WebCore::PageIdentifier, CompletionHandler<void(StorageAccessStatus)>&&) override;
     96    void grantStorageAccess(SubFrameDomain&&, TopFrameDomain&&, WebCore::FrameIdentifier, WebCore::PageIdentifier, WebCore::StorageAccessPromptWasShown, CompletionHandler<void(WebCore::StorageAccessWasGranted)>&&) override;
    9797
    9898    void logFrameNavigation(const NavigatedToDomain&, const TopFrameDomain&, const NavigatedFromDomain&, bool isRedirect, bool isMainFrame) override;
     
    154154    unsigned recursivelyFindNonPrevalentDomainsThatRedirectedToThisDomain(unsigned primaryDomainID, StdSet<unsigned>& nonPrevalentRedirectionSources, unsigned numberOfRecursiveCalls);
    155155    void setDomainsAsPrevalent(StdSet<unsigned>&&);
    156     void grantStorageAccessInternal(SubFrameDomain&&, TopFrameDomain&&, Optional<FrameID>, WebCore::PageIdentifier, WebCore::StorageAccessPromptWasShown, CompletionHandler<void(WebCore::StorageAccessWasGranted)>&&);
     156    void grantStorageAccessInternal(SubFrameDomain&&, TopFrameDomain&&, Optional<WebCore::FrameIdentifier>, WebCore::PageIdentifier, WebCore::StorageAccessPromptWasShown, CompletionHandler<void(WebCore::StorageAccessWasGranted)>&&);
    157157    void markAsPrevalentIfHasRedirectedToPrevalent();
    158158    Vector<RegistrableDomain> ensurePrevalentResourcesForDebugMode() override;
  • trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.cpp

    r248640 r248713  
    212212}
    213213
    214 void ResourceLoadStatisticsMemoryStore::hasStorageAccess(const SubFrameDomain& subFrameDomain, const TopFrameDomain& topFrameDomain, Optional<FrameID> frameID, PageIdentifier pageID, CompletionHandler<void(bool)>&& completionHandler)
     214void ResourceLoadStatisticsMemoryStore::hasStorageAccess(const SubFrameDomain& subFrameDomain, const TopFrameDomain& topFrameDomain, Optional<FrameIdentifier> frameID, PageIdentifier pageID, CompletionHandler<void(bool)>&& completionHandler)
    215215{
    216216    ASSERT(!RunLoop::isMain());
     
    236236}
    237237
    238 void ResourceLoadStatisticsMemoryStore::requestStorageAccess(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, FrameID frameID, PageIdentifier pageID, CompletionHandler<void(StorageAccessStatus)>&& completionHandler)
     238void ResourceLoadStatisticsMemoryStore::requestStorageAccess(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, FrameIdentifier frameID, PageIdentifier pageID, CompletionHandler<void(StorageAccessStatus)>&& completionHandler)
    239239{
    240240    ASSERT(!RunLoop::isMain());
     
    289289}
    290290
    291 void ResourceLoadStatisticsMemoryStore::grantStorageAccess(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, uint64_t frameID, PageIdentifier pageID, StorageAccessPromptWasShown promptWasShown, CompletionHandler<void(StorageAccessWasGranted)>&& completionHandler)
     291void ResourceLoadStatisticsMemoryStore::grantStorageAccess(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, FrameIdentifier frameID, PageIdentifier pageID, StorageAccessPromptWasShown promptWasShown, CompletionHandler<void(StorageAccessWasGranted)>&& completionHandler)
    292292{
    293293    ASSERT(!RunLoop::isMain());
     
    301301}
    302302
    303 void ResourceLoadStatisticsMemoryStore::grantStorageAccessInternal(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, Optional<FrameID> frameID, PageIdentifier pageID, StorageAccessPromptWasShown promptWasShownNowOrEarlier, CompletionHandler<void(StorageAccessWasGranted)>&& completionHandler)
     303void ResourceLoadStatisticsMemoryStore::grantStorageAccessInternal(SubFrameDomain&& subFrameDomain, TopFrameDomain&& topFrameDomain, Optional<FrameIdentifier> frameID, PageIdentifier pageID, StorageAccessPromptWasShown promptWasShownNowOrEarlier, CompletionHandler<void(StorageAccessWasGranted)>&& completionHandler)
    304304{
    305305    ASSERT(!RunLoop::isMain());
  • trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.h

    r247119 r248713  
    9898    void calculateAndSubmitTelemetry() const override;
    9999
    100     void hasStorageAccess(const SubFrameDomain&, const TopFrameDomain&, Optional<FrameID>, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&) override;
    101     void requestStorageAccess(SubFrameDomain&&, TopFrameDomain&&, FrameID, WebCore::PageIdentifier, CompletionHandler<void(StorageAccessStatus)>&&) override;
    102     void grantStorageAccess(SubFrameDomain&&, TopFrameDomain&&, FrameID, WebCore::PageIdentifier, WebCore::StorageAccessPromptWasShown, CompletionHandler<void(WebCore::StorageAccessWasGranted)>&&) override;
     100    void hasStorageAccess(const SubFrameDomain&, const TopFrameDomain&, Optional<WebCore::FrameIdentifier>, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&) override;
     101    void requestStorageAccess(SubFrameDomain&&, TopFrameDomain&&, WebCore::FrameIdentifier, WebCore::PageIdentifier, CompletionHandler<void(StorageAccessStatus)>&&) override;
     102    void grantStorageAccess(SubFrameDomain&&, TopFrameDomain&&, WebCore::FrameIdentifier, WebCore::PageIdentifier, WebCore::StorageAccessPromptWasShown, CompletionHandler<void(WebCore::StorageAccessWasGranted)>&&) override;
    103103
    104104    void logFrameNavigation(const NavigatedToDomain&, const TopFrameDomain&, const NavigatedFromDomain&, bool isRedirect, bool isMainFrame) override;
     
    124124    void setPrevalentResource(ResourceLoadStatistics&, ResourceLoadPrevalence);
    125125    unsigned recursivelyGetAllDomainsThatHaveRedirectedToThisDomain(const ResourceLoadStatistics&, HashSet<RedirectedToDomain>&, unsigned numberOfRecursiveCalls) const;
    126     void grantStorageAccessInternal(SubFrameDomain&&, TopFrameDomain&&, Optional<FrameID>, WebCore::PageIdentifier, WebCore::StorageAccessPromptWasShown, CompletionHandler<void(WebCore::StorageAccessWasGranted)>&&);
     126    void grantStorageAccessInternal(SubFrameDomain&&, TopFrameDomain&&, Optional<WebCore::FrameIdentifier>, WebCore::PageIdentifier, WebCore::StorageAccessPromptWasShown, CompletionHandler<void(WebCore::StorageAccessWasGranted)>&&);
    127127    void markAsPrevalentIfHasRedirectedToPrevalent(ResourceLoadStatistics&);
    128128    bool isPrevalentDueToDebugMode(ResourceLoadStatistics&);
  • trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.h

    r248640 r248713  
    3030#include "ResourceLoadStatisticsClassifier.h"
    3131#include "WebResourceLoadStatisticsStore.h"
     32#include <WebCore/FrameIdentifier.h>
    3233#include <wtf/CompletionHandler.h>
    3334#include <wtf/Vector.h>
     
    9192    using DomainInNeedOfStorageAccess = WebCore::RegistrableDomain;
    9293    using OpenerDomain = WebCore::RegistrableDomain;
    93     using FrameID = uint64_t;
    9494   
    9595    virtual ~ResourceLoadStatisticsStore();
     
    160160    void setPrevalentResourceForDebugMode(const RegistrableDomain&);
    161161
    162     virtual void hasStorageAccess(const SubFrameDomain&, const TopFrameDomain&, Optional<FrameID>, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&) = 0;
    163     virtual void requestStorageAccess(SubFrameDomain&&, TopFrameDomain&&, FrameID, WebCore::PageIdentifier, CompletionHandler<void(StorageAccessStatus)>&&) = 0;
    164     virtual void grantStorageAccess(SubFrameDomain&&, TopFrameDomain&&, FrameID, WebCore::PageIdentifier, WebCore::StorageAccessPromptWasShown, CompletionHandler<void(WebCore::StorageAccessWasGranted)>&&) = 0;
     162    virtual void hasStorageAccess(const SubFrameDomain&, const TopFrameDomain&, Optional<WebCore::FrameIdentifier>, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&) = 0;
     163    virtual void requestStorageAccess(SubFrameDomain&&, TopFrameDomain&&, WebCore::FrameIdentifier, WebCore::PageIdentifier, CompletionHandler<void(StorageAccessStatus)>&&) = 0;
     164    virtual void grantStorageAccess(SubFrameDomain&&, TopFrameDomain&&, WebCore::FrameIdentifier, WebCore::PageIdentifier, WebCore::StorageAccessPromptWasShown, CompletionHandler<void(WebCore::StorageAccessWasGranted)>&&) = 0;
    165165
    166166    virtual void logFrameNavigation(const NavigatedToDomain&, const TopFrameDomain&, const NavigatedFromDomain&, bool isRedirect, bool isMainFrame) = 0;
  • trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp

    r248640 r248713  
    281281}
    282282
    283 void WebResourceLoadStatisticsStore::hasStorageAccess(const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, Optional<uint64_t> frameID, PageIdentifier pageID, CompletionHandler<void(bool)>&& completionHandler)
     283void WebResourceLoadStatisticsStore::hasStorageAccess(const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, Optional<FrameIdentifier> frameID, PageIdentifier pageID, CompletionHandler<void(bool)>&& completionHandler)
    284284{
    285285    ASSERT(subFrameDomain != topFrameDomain);
     
    302302}
    303303
    304 bool WebResourceLoadStatisticsStore::hasStorageAccessForFrame(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, uint64_t frameID, PageIdentifier pageID)
     304bool WebResourceLoadStatisticsStore::hasStorageAccessForFrame(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, FrameIdentifier frameID, PageIdentifier pageID)
    305305{
    306306    ASSERT(RunLoop::isMain());
     
    315315}
    316316
    317 void WebResourceLoadStatisticsStore::callHasStorageAccessForFrameHandler(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, uint64_t frameID, PageIdentifier pageID, CompletionHandler<void(bool hasAccess)>&& callback)
     317void WebResourceLoadStatisticsStore::callHasStorageAccessForFrameHandler(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, FrameIdentifier frameID, PageIdentifier pageID, CompletionHandler<void(bool hasAccess)>&& callback)
    318318{
    319319    ASSERT(RunLoop::isMain());
     
    329329}
    330330
    331 void WebResourceLoadStatisticsStore::requestStorageAccess(const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, uint64_t frameID, PageIdentifier pageID, CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&& completionHandler)
     331void WebResourceLoadStatisticsStore::requestStorageAccess(const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, FrameIdentifier frameID, PageIdentifier pageID, CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&& completionHandler)
    332332{
    333333    ASSERT(RunLoop::isMain());
     
    392392}
    393393
    394 void WebResourceLoadStatisticsStore::grantStorageAccess(const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, uint64_t frameID, PageIdentifier pageID, StorageAccessPromptWasShown promptWasShown, CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&& completionHandler)
     394void WebResourceLoadStatisticsStore::grantStorageAccess(const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, FrameIdentifier frameID, PageIdentifier pageID, StorageAccessPromptWasShown promptWasShown, CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&& completionHandler)
    395395{
    396396    ASSERT(RunLoop::isMain());
     
    411411}
    412412
    413 StorageAccessWasGranted WebResourceLoadStatisticsStore::grantStorageAccess(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, Optional<uint64_t> frameID, PageIdentifier pageID)
     413StorageAccessWasGranted WebResourceLoadStatisticsStore::grantStorageAccess(const RegistrableDomain& resourceDomain, const RegistrableDomain& firstPartyDomain, Optional<FrameIdentifier> frameID, PageIdentifier pageID)
    414414{
    415415    ASSERT(RunLoop::isMain());
     
    428428}
    429429
    430 void WebResourceLoadStatisticsStore::callGrantStorageAccessHandler(const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, Optional<uint64_t> frameID, PageIdentifier pageID, CompletionHandler<void(StorageAccessWasGranted)>&& completionHandler)
     430void WebResourceLoadStatisticsStore::callGrantStorageAccessHandler(const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, Optional<FrameIdentifier> frameID, PageIdentifier pageID, CompletionHandler<void(StorageAccessWasGranted)>&& completionHandler)
    431431{
    432432    ASSERT(RunLoop::isMain());
  • trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h

    r248640 r248713  
    3131#include "StorageAccessStatus.h"
    3232#include "WebsiteDataType.h"
     33#include <WebCore/FrameIdentifier.h>
    3334#include <WebCore/PageIdentifier.h>
    3435#include <WebCore/RegistrableDomain.h>
     
    9091    using DomainInNeedOfStorageAccess = WebCore::RegistrableDomain;
    9192    using OpenerDomain = WebCore::RegistrableDomain;
    92     using FrameID = uint64_t;
    9393    using StorageAccessWasGranted = WebCore::StorageAccessWasGranted;
    9494    using StorageAccessPromptWasShown = WebCore::StorageAccessPromptWasShown;
     
    112112    void setShouldSubmitTelemetry(bool);
    113113
    114     void grantStorageAccess(const SubFrameDomain&, const TopFrameDomain&, FrameID, WebCore::PageIdentifier, StorageAccessPromptWasShown, CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&&);
     114    void grantStorageAccess(const SubFrameDomain&, const TopFrameDomain&, WebCore::FrameIdentifier, WebCore::PageIdentifier, StorageAccessPromptWasShown, CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&&);
    115115
    116116    void applicationWillTerminate();
     
    126126    void deleteWebsiteDataForRegistrableDomains(OptionSet<WebsiteDataType>, HashMap<RegistrableDomain, WebsiteDataToRemove>&&, bool shouldNotifyPage, CompletionHandler<void(const HashSet<RegistrableDomain>&)>&&);
    127127    void registrableDomainsWithWebsiteData(OptionSet<WebsiteDataType>, bool shouldNotifyPage, CompletionHandler<void(HashSet<RegistrableDomain>&&)>&&);
    128     StorageAccessWasGranted grantStorageAccess(const SubFrameDomain&, const TopFrameDomain&, Optional<FrameID>, WebCore::PageIdentifier);
     128    StorageAccessWasGranted grantStorageAccess(const SubFrameDomain&, const TopFrameDomain&, Optional<WebCore::FrameIdentifier>, WebCore::PageIdentifier);
    129129    void hasHadUserInteraction(const RegistrableDomain&, CompletionHandler<void(bool)>&&);
    130     void hasStorageAccess(const SubFrameDomain&, const TopFrameDomain&, Optional<FrameID>, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&);
    131     bool hasStorageAccessForFrame(const SubFrameDomain&, const TopFrameDomain&, FrameID, WebCore::PageIdentifier);
    132     void requestStorageAccess(const SubFrameDomain&, const TopFrameDomain&, FrameID, WebCore::PageIdentifier, CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&&);
     130    void hasStorageAccess(const SubFrameDomain&, const TopFrameDomain&, Optional<WebCore::FrameIdentifier>, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&);
     131    bool hasStorageAccessForFrame(const SubFrameDomain&, const TopFrameDomain&, WebCore::FrameIdentifier, WebCore::PageIdentifier);
     132    void requestStorageAccess(const SubFrameDomain&, const TopFrameDomain&, WebCore::FrameIdentifier, WebCore::PageIdentifier, CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&&);
    133133    void setLastSeen(const RegistrableDomain&, Seconds, CompletionHandler<void()>&&);
    134134    void setPrevalentResource(const RegistrableDomain&, CompletionHandler<void()>&&);
     
    173173
    174174    void logTestingEvent(const String&);
    175     void callGrantStorageAccessHandler(const SubFrameDomain&, const TopFrameDomain&, Optional<FrameID>, WebCore::PageIdentifier, CompletionHandler<void(StorageAccessWasGranted)>&&);
     175    void callGrantStorageAccessHandler(const SubFrameDomain&, const TopFrameDomain&, Optional<WebCore::FrameIdentifier>, WebCore::PageIdentifier, CompletionHandler<void(StorageAccessWasGranted)>&&);
    176176    void removeAllStorageAccess(CompletionHandler<void()>&&);
    177177    void callUpdatePrevalentDomainsToBlockCookiesForHandler(const RegistrableDomainsToBlockCookiesFor&, CompletionHandler<void()>&&);
    178178    void callRemoveDomainsHandler(const Vector<RegistrableDomain>&);
    179     void callHasStorageAccessForFrameHandler(const SubFrameDomain&, const TopFrameDomain&, FrameID, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&);
     179    void callHasStorageAccessForFrameHandler(const SubFrameDomain&, const TopFrameDomain&, WebCore::FrameIdentifier, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&);
    180180
    181181    void didCreateNetworkProcess();
  • trunk/Source/WebKit/NetworkProcess/NetworkCORSPreflightChecker.h

    r247705 r248713  
    5252        PAL::SessionID sessionID;
    5353        WebCore::PageIdentifier pageID;
    54         uint64_t frameID;
     54        WebCore::FrameIdentifier frameID;
    5555        WebCore::StoredCredentialsPolicy storedCredentialsPolicy;
    5656    };
  • trunk/Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.cpp

    r248670 r248713  
    526526}
    527527
    528 void NetworkConnectionToWebProcess::cookiesForDOM(PAL::SessionID sessionID, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies, CompletionHandler<void(String cookieString, bool secureCookiesAccessed)>&& completionHandler)
     528void NetworkConnectionToWebProcess::cookiesForDOM(PAL::SessionID sessionID, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies, CompletionHandler<void(String cookieString, bool secureCookiesAccessed)>&& completionHandler)
    529529{
    530530    auto& networkStorageSession = storageSession(networkProcess(), sessionID);
     
    539539}
    540540
    541 void NetworkConnectionToWebProcess::setCookiesFromDOM(PAL::SessionID sessionID, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, const String& cookieString)
     541void NetworkConnectionToWebProcess::setCookiesFromDOM(PAL::SessionID sessionID, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<WebCore::FrameIdentifier> frameID, Optional<PageIdentifier> pageID, const String& cookieString)
    542542{
    543543    auto& networkStorageSession = storageSession(networkProcess(), sessionID);
     
    556556}
    557557
    558 void NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue(PAL::SessionID sessionID, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies, CompletionHandler<void(String, bool)>&& completionHandler)
     558void NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue(PAL::SessionID sessionID, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, IncludeSecureCookies includeSecureCookies, CompletionHandler<void(String, bool)>&& completionHandler)
    559559{
    560560    auto result = storageSession(networkProcess(), sessionID).cookieRequestHeaderFieldValue(firstParty, sameSiteInfo, url, frameID, pageID, includeSecureCookies);
     
    562562}
    563563
    564 void NetworkConnectionToWebProcess::getRawCookies(PAL::SessionID sessionID, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, CompletionHandler<void(Vector<WebCore::Cookie>&&)>&& completionHandler)
     564void NetworkConnectionToWebProcess::getRawCookies(PAL::SessionID sessionID, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, CompletionHandler<void(Vector<WebCore::Cookie>&&)>&& completionHandler)
    565565{
    566566    Vector<WebCore::Cookie> result;
     
    671671
    672672#if ENABLE(RESOURCE_LOAD_STATISTICS)
    673 void NetworkConnectionToWebProcess::removeStorageAccessForFrame(PAL::SessionID sessionID, uint64_t frameID, PageIdentifier pageID)
     673void NetworkConnectionToWebProcess::removeStorageAccessForFrame(PAL::SessionID sessionID, FrameIdentifier frameID, PageIdentifier pageID)
    674674{
    675675    if (auto* storageSession = networkProcess().storageSession(sessionID))
     
    729729}
    730730
    731 void NetworkConnectionToWebProcess::hasStorageAccess(PAL::SessionID sessionID, const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, uint64_t frameID, PageIdentifier pageID, CompletionHandler<void(bool)>&& completionHandler)
     731void NetworkConnectionToWebProcess::hasStorageAccess(PAL::SessionID sessionID, const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, FrameIdentifier frameID, PageIdentifier pageID, CompletionHandler<void(bool)>&& completionHandler)
    732732{
    733733    if (auto* networkSession = networkProcess().networkSession(sessionID)) {
     
    741741}
    742742
    743 void NetworkConnectionToWebProcess::requestStorageAccess(PAL::SessionID sessionID, const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, uint64_t frameID, PageIdentifier pageID, CompletionHandler<void(WebCore::StorageAccessWasGranted wasGranted, WebCore::StorageAccessPromptWasShown promptWasShown)>&& completionHandler)
     743void NetworkConnectionToWebProcess::requestStorageAccess(PAL::SessionID sessionID, const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, FrameIdentifier frameID, PageIdentifier pageID, CompletionHandler<void(WebCore::StorageAccessWasGranted wasGranted, WebCore::StorageAccessPromptWasShown promptWasShown)>&& completionHandler)
    744744{
    745745    if (auto* networkSession = networkProcess().networkSession(sessionID)) {
  • trunk/Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.h

    r248670 r248713  
    3535#include "NetworkResourceLoadMap.h"
    3636#include "WebPaymentCoordinatorProxy.h"
     37#include <WebCore/FrameIdentifier.h>
    3738#include <WebCore/NetworkLoadInformation.h>
    3839#include <WebCore/PageIdentifier.h>
     
    175176    void convertMainResourceLoadToDownload(PAL::SessionID, uint64_t mainResourceLoadIdentifier, DownloadID, const WebCore::ResourceRequest&, const WebCore::ResourceResponse&);
    176177
    177     void cookiesForDOM(PAL::SessionID, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<WebCore::PageIdentifier>, WebCore::IncludeSecureCookies, CompletionHandler<void(String cookieString, bool secureCookiesAccessed)>&&);
    178     void setCookiesFromDOM(PAL::SessionID, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<WebCore::PageIdentifier>, const String&);
     178    void cookiesForDOM(PAL::SessionID, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, Optional<WebCore::FrameIdentifier>, Optional<WebCore::PageIdentifier>, WebCore::IncludeSecureCookies, CompletionHandler<void(String cookieString, bool secureCookiesAccessed)>&&);
     179    void setCookiesFromDOM(PAL::SessionID, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, Optional<WebCore::FrameIdentifier>, Optional<WebCore::PageIdentifier>, const String&);
    179180    void cookiesEnabled(PAL::SessionID, CompletionHandler<void(bool)>&&);
    180     void cookieRequestHeaderFieldValue(PAL::SessionID, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<WebCore::PageIdentifier>, WebCore::IncludeSecureCookies, CompletionHandler<void(String cookieString, bool secureCookiesAccessed)>&&);
    181     void getRawCookies(PAL::SessionID, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<WebCore::PageIdentifier>, CompletionHandler<void(Vector<WebCore::Cookie>&&)>&&);
     181    void cookieRequestHeaderFieldValue(PAL::SessionID, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, Optional<WebCore::FrameIdentifier>, Optional<WebCore::PageIdentifier>, WebCore::IncludeSecureCookies, CompletionHandler<void(String cookieString, bool secureCookiesAccessed)>&&);
     182    void getRawCookies(PAL::SessionID, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, Optional<WebCore::FrameIdentifier>, Optional<WebCore::PageIdentifier>, CompletionHandler<void(Vector<WebCore::Cookie>&&)>&&);
    182183    void deleteCookie(PAL::SessionID, const URL&, const String& cookieName);
    183184
     
    219220
    220221#if ENABLE(RESOURCE_LOAD_STATISTICS)
    221     void removeStorageAccessForFrame(PAL::SessionID, uint64_t frameID, WebCore::PageIdentifier);
     222    void removeStorageAccessForFrame(PAL::SessionID, WebCore::FrameIdentifier, WebCore::PageIdentifier);
    222223    void clearPageSpecificDataForResourceLoadStatistics(PAL::SessionID, WebCore::PageIdentifier);
    223224
     
    227228    void logSubresourceRedirect(PAL::SessionID, const RegistrableDomain& sourceDomain, const RegistrableDomain& targetDomain);
    228229    void resourceLoadStatisticsUpdated(Vector<WebCore::ResourceLoadStatistics>&&);
    229     void hasStorageAccess(PAL::SessionID, const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, uint64_t frameID, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&);
    230     void requestStorageAccess(PAL::SessionID, const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, uint64_t frameID, WebCore::PageIdentifier, CompletionHandler<void(WebCore::StorageAccessWasGranted, WebCore::StorageAccessPromptWasShown)>&&);
     230    void hasStorageAccess(PAL::SessionID, const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, WebCore::FrameIdentifier, WebCore::PageIdentifier, CompletionHandler<void(bool)>&&);
     231    void requestStorageAccess(PAL::SessionID, const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, WebCore::FrameIdentifier, WebCore::PageIdentifier, CompletionHandler<void(WebCore::StorageAccessWasGranted, WebCore::StorageAccessPromptWasShown)>&&);
    231232    void requestStorageAccessUnderOpener(PAL::SessionID, WebCore::RegistrableDomain&& domainInNeedOfStorageAccess, WebCore::PageIdentifier openerPageID, WebCore::RegistrableDomain&& openerDomain);
    232233#endif
  • trunk/Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in

    r248670 r248713  
    3535    ConvertMainResourceLoadToDownload(PAL::SessionID sessionID, uint64_t mainResourceLoadIdentifier, WebKit::DownloadID downloadID, WebCore::ResourceRequest request, WebCore::ResourceResponse response)
    3636
    37     CookiesForDOM(PAL::SessionID sessionID, URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, URL url, Optional<uint64_t> frameID, Optional<WebCore::PageIdentifier> pageID, enum:bool WebCore::IncludeSecureCookies includeSecureCookies) -> (String cookieString, bool didAccessSecureCookies) Synchronous
    38     SetCookiesFromDOM(PAL::SessionID sessionID, URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, URL url, Optional<uint64_t> frameID, Optional<WebCore::PageIdentifier> pageID, String cookieString)
     37    CookiesForDOM(PAL::SessionID sessionID, URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, URL url, Optional<WebCore::FrameIdentifier> frameID, Optional<WebCore::PageIdentifier> pageID, enum:bool WebCore::IncludeSecureCookies includeSecureCookies) -> (String cookieString, bool didAccessSecureCookies) Synchronous
     38    SetCookiesFromDOM(PAL::SessionID sessionID, URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, URL url, Optional<WebCore::FrameIdentifier> frameID, Optional<WebCore::PageIdentifier> pageID, String cookieString)
    3939    CookiesEnabled(PAL::SessionID sessionID) -> (bool enabled) Synchronous
    40     CookieRequestHeaderFieldValue(PAL::SessionID sessionID, URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, URL url, Optional<uint64_t> frameID, Optional<WebCore::PageIdentifier> pageID, enum:bool WebCore::IncludeSecureCookies includeSecureCookies) -> (String cookieString, bool didAccessSecureCookies) Synchronous
    41     GetRawCookies(PAL::SessionID sessionID, URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, URL url, Optional<uint64_t> frameID, Optional<WebCore::PageIdentifier> pageID) -> (Vector<WebCore::Cookie> cookies) Synchronous
     40    CookieRequestHeaderFieldValue(PAL::SessionID sessionID, URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, URL url, Optional<WebCore::FrameIdentifier> frameID, Optional<WebCore::PageIdentifier> pageID, enum:bool WebCore::IncludeSecureCookies includeSecureCookies) -> (String cookieString, bool didAccessSecureCookies) Synchronous
     41    GetRawCookies(PAL::SessionID sessionID, URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, URL url, Optional<WebCore::FrameIdentifier> frameID, Optional<WebCore::PageIdentifier> pageID) -> (Vector<WebCore::Cookie> cookies) Synchronous
    4242    DeleteCookie(PAL::SessionID sessionID, URL url, String cookieName)
    4343
     
    5959
    6060#if ENABLE(RESOURCE_LOAD_STATISTICS)
    61     RemoveStorageAccessForFrame(PAL::SessionID sessionID, uint64_t frameID, WebCore::PageIdentifier pageID);
     61    RemoveStorageAccessForFrame(PAL::SessionID sessionID, WebCore::FrameIdentifier frameID, WebCore::PageIdentifier pageID);
    6262    ClearPageSpecificDataForResourceLoadStatistics(PAL::SessionID sessionID, WebCore::PageIdentifier pageID);
    6363    LogUserInteraction(PAL::SessionID sessionID, WebCore::RegistrableDomain domain)
     
    6666    LogSubresourceRedirect(PAL::SessionID sessionID, WebCore::RegistrableDomain sourceDomain, WebCore::RegistrableDomain targetDomain)
    6767    ResourceLoadStatisticsUpdated(Vector<WebCore::ResourceLoadStatistics> statistics)
    68     HasStorageAccess(PAL::SessionID sessionID, WebCore::RegistrableDomain subFrameDomain, WebCore::RegistrableDomain topFrameDomain, uint64_t frameID, WebCore::PageIdentifier pageID) -> (bool hasStorageAccess) Async
    69     RequestStorageAccess(PAL::SessionID sessionID, WebCore::RegistrableDomain subFrameDomain, WebCore::RegistrableDomain topFrameDomain, uint64_t frameID, WebCore::PageIdentifier pageID) -> (enum:bool WebCore::StorageAccessWasGranted wasGranted, enum:bool WebCore::StorageAccessPromptWasShown promptWasShown) Async
     68    HasStorageAccess(PAL::SessionID sessionID, WebCore::RegistrableDomain subFrameDomain, WebCore::RegistrableDomain topFrameDomain, WebCore::FrameIdentifier frameID, WebCore::PageIdentifier pageID) -> (bool hasStorageAccess) Async
     69    RequestStorageAccess(PAL::SessionID sessionID, WebCore::RegistrableDomain subFrameDomain, WebCore::RegistrableDomain topFrameDomain, WebCore::FrameIdentifier frameID, WebCore::PageIdentifier pageID) -> (enum:bool WebCore::StorageAccessWasGranted wasGranted, enum:bool WebCore::StorageAccessPromptWasShown promptWasShown) Async
    7070    RequestStorageAccessUnderOpener(PAL::SessionID sessionID, WebCore::RegistrableDomain domainInNeedOfStorageAccess, WebCore::PageIdentifier openerPageID, WebCore::RegistrableDomain openerDomain)
    7171#endif
  • trunk/Source/WebKit/NetworkProcess/NetworkLoadChecker.cpp

    r245796 r248713  
    4949}
    5050
    51 NetworkLoadChecker::NetworkLoadChecker(NetworkProcess& networkProcess, FetchOptions&& options, PAL::SessionID sessionID, PageIdentifier pageID, uint64_t frameID, HTTPHeaderMap&& originalRequestHeaders, URL&& url, RefPtr<SecurityOrigin>&& sourceOrigin, PreflightPolicy preflightPolicy, String&& referrer, bool isHTTPSUpgradeEnabled, bool shouldCaptureExtraNetworkLoadMetrics, LoadType requestLoadType)
     51NetworkLoadChecker::NetworkLoadChecker(NetworkProcess& networkProcess, FetchOptions&& options, PAL::SessionID sessionID, PageIdentifier pageID, FrameIdentifier frameID, HTTPHeaderMap&& originalRequestHeaders, URL&& url, RefPtr<SecurityOrigin>&& sourceOrigin, PreflightPolicy preflightPolicy, String&& referrer, bool isHTTPSUpgradeEnabled, bool shouldCaptureExtraNetworkLoadMetrics, LoadType requestLoadType)
    5252    : m_options(WTFMove(options))
    5353    , m_sessionID(sessionID)
  • trunk/Source/WebKit/NetworkProcess/NetworkLoadChecker.h

    r247705 r248713  
    3030#include <WebCore/ContentSecurityPolicyResponseHeaders.h>
    3131#include <WebCore/FetchOptions.h>
     32#include <WebCore/FrameIdentifier.h>
    3233#include <WebCore/NetworkLoadInformation.h>
    3334#include <WebCore/PageIdentifier.h>
     
    5657    enum class LoadType : bool { MainFrame, Other };
    5758
    58     NetworkLoadChecker(NetworkProcess&, WebCore::FetchOptions&&, PAL::SessionID, WebCore::PageIdentifier, uint64_t frameID, WebCore::HTTPHeaderMap&&, URL&&, RefPtr<WebCore::SecurityOrigin>&&, WebCore::PreflightPolicy, String&& referrer, bool isHTTPSUpgradeEnabled = false, bool shouldCaptureExtraNetworkLoadMetrics = false, LoadType requestLoadType = LoadType::Other);
     59    NetworkLoadChecker(NetworkProcess&, WebCore::FetchOptions&&, PAL::SessionID, WebCore::PageIdentifier, WebCore::FrameIdentifier, WebCore::HTTPHeaderMap&&, URL&&, RefPtr<WebCore::SecurityOrigin>&&, WebCore::PreflightPolicy, String&& referrer, bool isHTTPSUpgradeEnabled = false, bool shouldCaptureExtraNetworkLoadMetrics = false, LoadType requestLoadType = LoadType::Other);
    5960    ~NetworkLoadChecker();
    6061
     
    128129    Ref<NetworkProcess> m_networkProcess;
    129130    WebCore::PageIdentifier m_pageID;
    130     uint64_t m_frameID;
     131    WebCore::FrameIdentifier m_frameID;
    131132    WebCore::HTTPHeaderMap m_originalRequestHeaders; // Needed for CORS checks.
    132133    WebCore::HTTPHeaderMap m_firstRequestHeaders; // Needed for CORS checks.
  • trunk/Source/WebKit/NetworkProcess/NetworkLoadParameters.h

    r248677 r248713  
    2828#include "NetworkActivityTracker.h"
    2929#include <WebCore/BlobDataFileReference.h>
     30#include <WebCore/FrameIdentifier.h>
    3031#include <WebCore/PageIdentifier.h>
    3132#include <WebCore/ResourceLoaderOptions.h>
     
    4748    PAL::SessionID sessionID;
    4849    WebCore::PageIdentifier webPageID;
    49     uint64_t webFrameID { 0 };
     50    WebCore::FrameIdentifier webFrameID;
    5051    WTF::ProcessID parentPID { 0 };
    5152    WebCore::ResourceRequest request;
  • trunk/Source/WebKit/NetworkProcess/NetworkProcess.h

    r248699 r248713  
    138138    using DomainInNeedOfStorageAccess = WebCore::RegistrableDomain;
    139139    using OpenerDomain = WebCore::RegistrableDomain;
    140     using FrameID = uint64_t;
    141140
    142141    NetworkProcess(AuxiliaryProcessInitializationParameters&&);
  • trunk/Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp

    r248593 r248713  
    181181            WTF::switchOn(result,
    182182                [this] (ResourceError& error) {
    183                     RELEASE_LOG_IF_ALLOWED("start: error checking (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d, parentPID = %d, error.domain = %{public}s, error.code = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, this->isMainResource(), this->isSynchronous(), m_parameters.parentPID, error.domain().utf8().data(), error.errorCode());
     183                    RELEASE_LOG_IF_ALLOWED("start: error checking (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d, parentPID = %d, error.domain = %{public}s, error.code = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, this->isMainResource(), this->isSynchronous(), m_parameters.parentPID, error.domain().utf8().data(), error.errorCode());
    184184                    if (!error.isCancellation())
    185185                        this->didFailLoading(error);
     
    188188                    this->m_isWaitingContinueWillSendRequestForCachedRedirect = true;
    189189                    this->willSendRedirectedRequest(WTFMove(triplet.request), WTFMove(triplet.redirectRequest), WTFMove(triplet.redirectResponse));
    190                     RELEASE_LOG_IF_ALLOWED("start: synthetic redirect sent because request URL was modified (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d, parentPID = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, this->isMainResource(), this->isSynchronous(), m_parameters.parentPID);
     190                    RELEASE_LOG_IF_ALLOWED("start: synthetic redirect sent because request URL was modified (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d, parentPID = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, this->isMainResource(), this->isSynchronous(), m_parameters.parentPID);
    191191                },
    192192                [this] (ResourceRequest& request) {
    193193                    if (this->canUseCache(request)) {
    194                         RELEASE_LOG_IF_ALLOWED("start: Checking cache for resource (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d, parentPID = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, this->isMainResource(), this->isSynchronous(), m_parameters.parentPID);
     194                        RELEASE_LOG_IF_ALLOWED("start: Checking cache for resource (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d, parentPID = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, this->isMainResource(), this->isSynchronous(), m_parameters.parentPID);
    195195                        this->retrieveCacheEntry(request);
    196196                        return;
     
    205205    // FIXME: Remove that code path once m_networkLoadChecker is used for all network loads.
    206206    if (canUseCache(originalRequest())) {
    207         RELEASE_LOG_IF_ALLOWED("start: Checking cache for resource (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d, parentPID = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous(), m_parameters.parentPID);
     207        RELEASE_LOG_IF_ALLOWED("start: Checking cache for resource (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d, parentPID = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, isMainResource(), isSynchronous(), m_parameters.parentPID);
    208208        retrieveCacheEntry(originalRequest());
    209209        return;
     
    245245
    246246        if (!entry) {
    247             RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Resource not in cache (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous());
     247            RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Resource not in cache (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, isMainResource(), isSynchronous());
    248248            startNetworkLoad(WTFMove(request), FirstLoad::Yes);
    249249            return;
     
    257257#if ENABLE(RESOURCE_LOAD_STATISTICS)
    258258    if (entry->hasReachedPrevalentResourceAgeCap()) {
    259         RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Resource has reached prevalent resource age cap (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous());
     259        RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Resource has reached prevalent resource age cap (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, isMainResource(), isSynchronous());
    260260        m_cacheEntryForMaxAgeCapValidation = WTFMove(entry);
    261261        ResourceRequest revalidationRequest = originalRequest();
     
    265265#endif
    266266    if (entry->redirectRequest()) {
    267         RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Handling redirect (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous());
     267        RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Handling redirect (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, isMainResource(), isSynchronous());
    268268        dispatchWillSendRequestForCacheEntry(WTFMove(request), WTFMove(entry));
    269269        return;
    270270    }
    271271    if (m_parameters.needsCertificateInfo && !entry->response().certificateInfo()) {
    272         RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Resource does not have required certificate (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous());
     272        RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Resource does not have required certificate (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, isMainResource(), isSynchronous());
    273273        startNetworkLoad(WTFMove(request), FirstLoad::Yes);
    274274        return;
    275275    }
    276276    if (entry->needsValidation() || request.cachePolicy() == WebCore::ResourceRequestCachePolicy::RefreshAnyCacheData) {
    277         RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Validating cache entry (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous());
     277        RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Validating cache entry (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, isMainResource(), isSynchronous());
    278278        validateCacheEntry(WTFMove(entry));
    279279        return;
    280280    }
    281     RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Retrieved resource from cache (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous());
     281    RELEASE_LOG_IF_ALLOWED("retrieveCacheEntry: Retrieved resource from cache (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, isMainResource(), isSynchronous());
    282282    didRetrieveCacheEntry(WTFMove(entry));
    283283}
     
    286286{
    287287    if (load == FirstLoad::Yes) {
    288         RELEASE_LOG_IF_ALLOWED("startNetworkLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous());
     288        RELEASE_LOG_IF_ALLOWED("startNetworkLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, isMainResource(), isSynchronous());
    289289
    290290        consumeSandboxExtensions();
     
    309309    if (!networkSession) {
    310310        WTFLogAlways("Attempted to create a NetworkLoad with a session (id=%" PRIu64 ") that does not exist.", parameters.sessionID.sessionID());
    311         RELEASE_LOG_ERROR_IF_ALLOWED("startNetworkLoad: Attempted to create a NetworkLoad with a session that does not exist (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", sessionID=%" PRIu64 ")", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, parameters.sessionID.sessionID());
     311        RELEASE_LOG_ERROR_IF_ALLOWED("startNetworkLoad: Attempted to create a NetworkLoad with a session that does not exist (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", sessionID=%" PRIu64 ")", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, parameters.sessionID.sessionID());
    312312        m_connection->networkProcess().logDiagnosticMessage(m_parameters.webPageID, WebCore::DiagnosticLoggingKeys::internalErrorKey(), WebCore::DiagnosticLoggingKeys::invalidSessionIDKey(), WebCore::ShouldSample::No);
    313313        didFailLoading(internalError(request.url()));
     
    321321    m_networkLoad = std::make_unique<NetworkLoad>(*this, &networkSession->blobRegistry(), WTFMove(parameters), *networkSession);
    322322
    323     RELEASE_LOG_IF_ALLOWED("startNetworkLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", description = %{public}s)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, m_networkLoad->description().utf8().data());
     323    RELEASE_LOG_IF_ALLOWED("startNetworkLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", description = %{public}s)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, m_networkLoad->description().utf8().data());
    324324}
    325325
     
    345345void NetworkResourceLoader::convertToDownload(DownloadID downloadID, const ResourceRequest& request, const ResourceResponse& response)
    346346{
    347     RELEASE_LOG(Loading, "Converting NetworkResourceLoader %p to download %" PRIu64 " (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", this, downloadID.downloadID(), m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier);
     347    RELEASE_LOG(Loading, "Converting NetworkResourceLoader %p to download %" PRIu64 " (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", this, downloadID.downloadID(), m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier);
    348348   
    349349    // This can happen if the resource came from the disk cache.
     
    363363
    364364    RELEASE_LOG_IF_ALLOWED("abort: Canceling resource load (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")",
    365         m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier);
     365        m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier);
    366366
    367367    if (m_parameters.options.keepAlive && m_response.isNull() && !m_isKeptAlive) {
     
    448448void NetworkResourceLoader::didReceiveResponse(ResourceResponse&& receivedResponse, ResponseCompletionHandler&& completionHandler)
    449449{
    450     RELEASE_LOG_IF_ALLOWED("didReceiveResponse: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", httpStatusCode = %d, length = %" PRId64 ")", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, receivedResponse.httpStatusCode(), receivedResponse.expectedContentLength());
     450    RELEASE_LOG_IF_ALLOWED("didReceiveResponse: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", httpStatusCode = %d, length = %" PRId64 ")", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, receivedResponse.httpStatusCode(), receivedResponse.expectedContentLength());
    451451
    452452    m_response = WTFMove(receivedResponse);
     
    528528{
    529529    if (!m_numBytesReceived)
    530         RELEASE_LOG_IF_ALLOWED("didReceiveBuffer: Started receiving data (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier);
     530        RELEASE_LOG_IF_ALLOWED("didReceiveBuffer: Started receiving data (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier);
    531531    m_numBytesReceived += buffer->size();
    532532
     
    557557void NetworkResourceLoader::didFinishLoading(const NetworkLoadMetrics& networkLoadMetrics)
    558558{
    559     RELEASE_LOG_IF_ALLOWED("didFinishLoading: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", length = %zd)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, m_numBytesReceived);
     559    RELEASE_LOG_IF_ALLOWED("didFinishLoading: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", length = %zd)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, m_numBytesReceived);
    560560
    561561    if (shouldCaptureExtraNetworkLoadMetrics())
     
    592592void NetworkResourceLoader::didFailLoading(const ResourceError& error)
    593593{
    594     RELEASE_LOG_IF_ALLOWED("didFailLoading: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isTimeout = %d, isCancellation = %d, isAccessControl = %d, errCode = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier, error.isTimeout(), error.isCancellation(), error.isAccessControl(), error.errorCode());
     594    RELEASE_LOG_IF_ALLOWED("didFailLoading: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", isTimeout = %d, isCancellation = %d, isAccessControl = %d, errCode = %d)", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier, error.isTimeout(), error.isCancellation(), error.isAccessControl(), error.errorCode());
    595595
    596596    if (shouldCaptureExtraNetworkLoadMetrics())
     
    757757    }
    758758
    759     RELEASE_LOG_IF_ALLOWED("continueWillSendRequest: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID, m_parameters.identifier);
     759    RELEASE_LOG_IF_ALLOWED("continueWillSendRequest: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_parameters.webPageID.toUInt64(), m_parameters.webFrameID.toUInt64(), m_parameters.identifier);
    760760
    761761    m_isAllowedToAskUserForCredentials = isAllowedToAskUserForCredentials;
     
    10121012{
    10131013    return value ? String::number(value.value()) : String("None"_s);
    1014 };
     1014}
     1015
     1016static String escapeIDForJSON(const Optional<FrameIdentifier>& value)
     1017{
     1018    return value ? String::number(value->toUInt64()) : String("None"_s);
     1019}
    10151020
    10161021static String escapeIDForJSON(const Optional<PageIdentifier>& value)
    10171022{
    10181023    return value ? String::number(value->toUInt64()) : String("None"_s);
    1019 };
     1024}
    10201025
    10211026void NetworkResourceLoader::logCookieInformation() const
     
    10291034}
    10301035
    1031 static void logBlockedCookieInformation(NetworkConnectionToWebProcess& connection, const String& label, const void* loggedObject, const WebCore::NetworkStorageSession& networkStorageSession, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, const String& referrer, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, Optional<uint64_t> identifier)
     1036static void logBlockedCookieInformation(NetworkConnectionToWebProcess& connection, const String& label, const void* loggedObject, const WebCore::NetworkStorageSession& networkStorageSession, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, const String& referrer, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, Optional<uint64_t> identifier)
    10321037{
    10331038    ASSERT(NetworkResourceLoader::shouldLogCookieInformation(connection, networkStorageSession.sessionID()));
     
    10561061}
    10571062
    1058 static void logCookieInformationInternal(NetworkConnectionToWebProcess& connection, const String& label, const void* loggedObject, const WebCore::NetworkStorageSession& networkStorageSession, const URL& firstParty, const WebCore::SameSiteInfo& sameSiteInfo, const URL& url, const String& referrer, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, Optional<uint64_t> identifier)
     1063static void logCookieInformationInternal(NetworkConnectionToWebProcess& connection, const String& label, const void* loggedObject, const WebCore::NetworkStorageSession& networkStorageSession, const URL& firstParty, const WebCore::SameSiteInfo& sameSiteInfo, const URL& url, const String& referrer, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, Optional<uint64_t> identifier)
    10591064{
    10601065    ASSERT(NetworkResourceLoader::shouldLogCookieInformation(connection, networkStorageSession.sessionID()));
     
    11171122}
    11181123
    1119 void NetworkResourceLoader::logCookieInformation(NetworkConnectionToWebProcess& connection, const String& label, const void* loggedObject, const NetworkStorageSession& networkStorageSession, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, const String& referrer, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, Optional<uint64_t> identifier)
     1124void NetworkResourceLoader::logCookieInformation(NetworkConnectionToWebProcess& connection, const String& label, const void* loggedObject, const NetworkStorageSession& networkStorageSession, const URL& firstParty, const SameSiteInfo& sameSiteInfo, const URL& url, const String& referrer, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, Optional<uint64_t> identifier)
    11201125{
    11211126    ASSERT(shouldLogCookieInformation(connection, networkStorageSession.sessionID()));
  • trunk/Source/WebKit/NetworkProcess/NetworkResourceLoader.h

    r248540 r248713  
    8686    PAL::SessionID sessionID() const { return m_parameters.sessionID; }
    8787    ResourceLoadIdentifier identifier() const { return m_parameters.identifier; }
    88     uint64_t frameID() const { return m_parameters.webFrameID; }
     88    WebCore::FrameIdentifier frameID() const { return m_parameters.webFrameID; }
    8989    WebCore::PageIdentifier pageID() const { return m_parameters.webPageID; }
    9090
     
    113113#if ENABLE(RESOURCE_LOAD_STATISTICS) && !RELEASE_LOG_DISABLED
    114114    static bool shouldLogCookieInformation(NetworkConnectionToWebProcess&, const PAL::SessionID&);
    115     static void logCookieInformation(NetworkConnectionToWebProcess&, const String& label, const void* loggedObject, const WebCore::NetworkStorageSession&, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, const String& referrer, Optional<uint64_t> frameID, Optional<WebCore::PageIdentifier>, Optional<uint64_t> identifier);
     115    static void logCookieInformation(NetworkConnectionToWebProcess&, const String& label, const void* loggedObject, const WebCore::NetworkStorageSession&, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, const String& referrer, Optional<WebCore::FrameIdentifier>, Optional<WebCore::PageIdentifier>, Optional<uint64_t> identifier);
    116116#endif
    117117
  • trunk/Source/WebKit/NetworkProcess/cache/NetworkCache.h

    r247567 r248713  
    2929#include "NetworkCacheStorage.h"
    3030#include "ShareableResource.h"
     31#include <WebCore/FrameIdentifier.h>
    3132#include <WebCore/PageIdentifier.h>
    3233#include <WebCore/ResourceResponse.h>
     
    8687};
    8788
    88 using GlobalFrameID = std::pair<WebCore::PageIdentifier, uint64_t /*webFrameID*/>;
     89using GlobalFrameID = std::pair<WebCore::PageIdentifier, WebCore::FrameIdentifier>; // FIXME: Use GlobalFrameIdentifier.
    8990
    9091enum class CacheOption : uint8_t {
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.h

    r248273 r248713  
    4343    friend class NetworkSessionCocoa;
    4444public:
    45     static Ref<NetworkDataTask> create(NetworkSession& session, NetworkDataTaskClient& client, const WebCore::ResourceRequest& request, uint64_t frameID, WebCore::PageIdentifier pageID, WebCore::StoredCredentialsPolicy storedCredentialsPolicy, WebCore::ContentSniffingPolicy shouldContentSniff, WebCore::ContentEncodingSniffingPolicy shouldContentEncodingSniff, bool shouldClearReferrerOnHTTPSToHTTPRedirect, PreconnectOnly shouldPreconnectOnly, bool dataTaskIsForMainFrameNavigation, bool dataTaskIsForMainResourceNavigationForAnyFrame, Optional<NetworkActivityTracker> networkActivityTracker)
     45    static Ref<NetworkDataTask> create(NetworkSession& session, NetworkDataTaskClient& client, const WebCore::ResourceRequest& request, WebCore::FrameIdentifier frameID, WebCore::PageIdentifier pageID, WebCore::StoredCredentialsPolicy storedCredentialsPolicy, WebCore::ContentSniffingPolicy shouldContentSniff, WebCore::ContentEncodingSniffingPolicy shouldContentEncodingSniff, bool shouldClearReferrerOnHTTPSToHTTPRedirect, PreconnectOnly shouldPreconnectOnly, bool dataTaskIsForMainFrameNavigation, bool dataTaskIsForMainResourceNavigationForAnyFrame, Optional<NetworkActivityTracker> networkActivityTracker)
    4646    {
    4747        return adoptRef(*new NetworkDataTaskCocoa(session, client, request, frameID, pageID, storedCredentialsPolicy, shouldContentSniff, shouldContentEncodingSniff, shouldClearReferrerOnHTTPSToHTTPRedirect, shouldPreconnectOnly, dataTaskIsForMainFrameNavigation, dataTaskIsForMainResourceNavigationForAnyFrame, networkActivityTracker));
     
    7070    WebCore::NetworkLoadMetrics& networkLoadMetrics() { return m_networkLoadMetrics; }
    7171
    72     uint64_t frameID() const { return m_frameID; };
     72    WebCore::FrameIdentifier frameID() const { return m_frameID; };
    7373    WebCore::PageIdentifier pageID() const { return m_pageID; };
    7474
     
    7676
    7777private:
    78     NetworkDataTaskCocoa(NetworkSession&, NetworkDataTaskClient&, const WebCore::ResourceRequest&, uint64_t frameID, WebCore::PageIdentifier, WebCore::StoredCredentialsPolicy, WebCore::ContentSniffingPolicy, WebCore::ContentEncodingSniffingPolicy, bool shouldClearReferrerOnHTTPSToHTTPRedirect, PreconnectOnly, bool dataTaskIsForMainFrameNavigation, bool dataTaskIsForMainResourceNavigationForAnyFrame, Optional<NetworkActivityTracker>);
     78    NetworkDataTaskCocoa(NetworkSession&, NetworkDataTaskClient&, const WebCore::ResourceRequest&, WebCore::FrameIdentifier, WebCore::PageIdentifier, WebCore::StoredCredentialsPolicy, WebCore::ContentSniffingPolicy, WebCore::ContentEncodingSniffingPolicy, bool shouldClearReferrerOnHTTPSToHTTPRedirect, PreconnectOnly, bool dataTaskIsForMainFrameNavigation, bool dataTaskIsForMainResourceNavigationForAnyFrame, Optional<NetworkActivityTracker>);
    7979
    8080    bool tryPasswordBasedAuthentication(const WebCore::AuthenticationChallenge&, ChallengeCompletionHandler&);
     
    9393    RetainPtr<NSURLSessionDataTask> m_task;
    9494    WebCore::NetworkLoadMetrics m_networkLoadMetrics;
    95     uint64_t m_frameID;
     95    WebCore::FrameIdentifier m_frameID;
    9696    WebCore::PageIdentifier m_pageID;
    9797
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm

    r248640 r248713  
    171171}
    172172
    173 NetworkDataTaskCocoa::NetworkDataTaskCocoa(NetworkSession& session, NetworkDataTaskClient& client, const WebCore::ResourceRequest& requestWithCredentials, uint64_t frameID, WebCore::PageIdentifier pageID, WebCore::StoredCredentialsPolicy storedCredentialsPolicy, WebCore::ContentSniffingPolicy shouldContentSniff, WebCore::ContentEncodingSniffingPolicy shouldContentEncodingSniff, bool shouldClearReferrerOnHTTPSToHTTPRedirect, PreconnectOnly shouldPreconnectOnly, bool dataTaskIsForMainFrameNavigation, bool dataTaskIsForMainResourceNavigationForAnyFrame, Optional<NetworkActivityTracker> networkActivityTracker)
     173NetworkDataTaskCocoa::NetworkDataTaskCocoa(NetworkSession& session, NetworkDataTaskClient& client, const WebCore::ResourceRequest& requestWithCredentials, WebCore::FrameIdentifier frameID, WebCore::PageIdentifier pageID, WebCore::StoredCredentialsPolicy storedCredentialsPolicy, WebCore::ContentSniffingPolicy shouldContentSniff, WebCore::ContentEncodingSniffingPolicy shouldContentEncodingSniff, bool shouldClearReferrerOnHTTPSToHTTPRedirect, PreconnectOnly shouldPreconnectOnly, bool dataTaskIsForMainFrameNavigation, bool dataTaskIsForMainResourceNavigationForAnyFrame, Optional<NetworkActivityTracker> networkActivityTracker)
    174174    : NetworkDataTask(session, client, requestWithCredentials, storedCredentialsPolicy, shouldClearReferrerOnHTTPSToHTTPRedirect, dataTaskIsForMainFrameNavigation)
    175175    , m_frameID(frameID)
     
    257257#if !RELEASE_LOG_DISABLED
    258258        if (m_session->shouldLogCookieInformation())
    259             RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), Network, "%p - NetworkDataTaskCocoa::logCookieInformation: pageID = %llu, frameID = %llu, taskID = %lu: Blocking cookies for URL %s", this, pageID.toUInt64(), frameID, (unsigned long)[m_task taskIdentifier], nsRequest.URL.absoluteString.UTF8String);
     259            RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), Network, "%p - NetworkDataTaskCocoa::logCookieInformation: pageID = %llu, frameID = %llu, taskID = %lu: Blocking cookies for URL %s", this, pageID.toUInt64(), frameID.toUInt64(), (unsigned long)[m_task taskIdentifier], nsRequest.URL.absoluteString.UTF8String);
    260260#else
    261261        LOG(NetworkSession, "%llu Blocking cookies for URL %s", [m_task taskIdentifier], nsRequest.URL.absoluteString.UTF8String);
     
    391391#if !RELEASE_LOG_DISABLED
    392392    if (m_session->shouldLogCookieInformation())
    393         RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), Network, "%p - NetworkDataTaskCocoa::willPerformHTTPRedirection::logCookieInformation: pageID = %llu, frameID = %llu, taskID = %lu: %s cookies for redirect URL %s", this, m_pageID.toUInt64(), m_frameID, (unsigned long)[m_task taskIdentifier], (m_hasBeenSetToUseStatelessCookieStorage ? "Blocking" : "Not blocking"), request.url().string().utf8().data());
     393        RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), Network, "%p - NetworkDataTaskCocoa::willPerformHTTPRedirection::logCookieInformation: pageID = %llu, frameID = %llu, taskID = %lu: %s cookies for redirect URL %s", this, m_pageID.toUInt64(), m_frameID.toUInt64(), (unsigned long)[m_task taskIdentifier], (m_hasBeenSetToUseStatelessCookieStorage ? "Blocking" : "Not blocking"), request.url().string().utf8().data());
    394394#else
    395395    LOG(NetworkSession, "%llu %s cookies for redirect URL %s", [m_task taskIdentifier], (m_hasBeenSetToUseStatelessCookieStorage ? "Blocking" : "Not blocking"), request.url().string().utf8().data());
  • trunk/Source/WebKit/Scripts/webkit/messages.py

    r245796 r248713  
    206206        'WebCore::DocumentIdentifier',
    207207        'WebCore::FetchIdentifier',
     208        'WebCore::FrameIdentifier',
    208209        'WebCore::PageIdentifier',
    209210        'WebCore::PointerID',
  • trunk/Source/WebKit/Shared/API/APIFrameHandle.cpp

    r204668 r248713  
    3232namespace API {
    3333
    34 Ref<FrameHandle> FrameHandle::create(uint64_t frameID)
     34Ref<FrameHandle> FrameHandle::create(WebCore::FrameIdentifier frameID)
    3535{
    3636    return adoptRef(*new FrameHandle(frameID, false));
    3737}
    3838
    39 Ref<FrameHandle> FrameHandle::createAutoconverting(uint64_t frameID)
     39Ref<FrameHandle> FrameHandle::createAutoconverting(WebCore::FrameIdentifier frameID)
    4040{
    4141    return adoptRef(*new FrameHandle(frameID, true));
    4242}
    4343
    44 FrameHandle::FrameHandle(uint64_t frameID, bool isAutoconverting)
     44FrameHandle::FrameHandle(WebCore::FrameIdentifier frameID, bool isAutoconverting)
    4545    : m_frameID(frameID)
    4646    , m_isAutoconverting(isAutoconverting)
     
    6060bool FrameHandle::decode(IPC::Decoder& decoder, RefPtr<Object>& result)
    6161{
    62     uint64_t frameID;
     62    WebCore::FrameIdentifier frameID;
    6363    if (!decoder.decode(frameID))
    6464        return false;
  • trunk/Source/WebKit/Shared/API/APIFrameHandle.h

    r204668 r248713  
    2828
    2929#include "APIObject.h"
     30#include <WebCore/FrameIdentifier.h>
    3031#include <wtf/Ref.h>
    3132
     
    3940class FrameHandle : public ObjectImpl<Object::Type::FrameHandle> {
    4041public:
    41     static Ref<FrameHandle> create(uint64_t frameID);
    42     static Ref<FrameHandle> createAutoconverting(uint64_t frameID);
     42    static Ref<FrameHandle> create(WebCore::FrameIdentifier);
     43    static Ref<FrameHandle> createAutoconverting(WebCore::FrameIdentifier);
    4344
    44     explicit FrameHandle(uint64_t frameID, bool isAutoconverting);
     45    explicit FrameHandle(WebCore::FrameIdentifier, bool isAutoconverting);
    4546    virtual ~FrameHandle();
    4647
    47     uint64_t frameID() const { return m_frameID; }
     48    WebCore::FrameIdentifier frameID() const { return m_frameID; }
    4849    bool isAutoconverting() const { return m_isAutoconverting; }
    4950
     
    5253
    5354private:
    54     const uint64_t m_frameID;
     55    const WebCore::FrameIdentifier m_frameID;
    5556    const bool m_isAutoconverting;
    5657};
  • trunk/Source/WebKit/Shared/API/Cocoa/_WKFrameHandle.mm

    r242339 r248713  
    2727#import "_WKFrameHandleInternal.h"
    2828
     29#import <WebCore/FrameIdentifier.h>
     30
    2931@implementation _WKFrameHandle {
    3032    API::ObjectStorage<API::FrameHandle> _frameHandle;
     
    5153- (NSUInteger)hash
    5254{
    53     return _frameHandle->frameID();
     55    return _frameHandle->frameID().toUInt64();
    5456}
    5557
    5658- (uint64_t)_frameID
    5759{
    58     return _frameHandle->frameID();
     60    return _frameHandle->frameID().toUInt64();
    5961}
    6062
     
    8486    }
    8587
    86     API::Object::constructInWrapper<API::FrameHandle>(self, frameID.unsignedLongLongValue, false);
     88    API::Object::constructInWrapper<API::FrameHandle>(self, WebCore::frameIdentifierFromID(frameID.unsignedLongLongValue), false);
    8789
    8890    return self;
     
    9193- (void)encodeWithCoder:(NSCoder *)coder
    9294{
    93     [coder encodeObject:@(_frameHandle->frameID()) forKey:@"frameID"];
     95    [coder encodeObject:@([self _frameID]) forKey:@"frameID"];
    9496}
    9597
  • trunk/Source/WebKit/Shared/Authentication/AuthenticationManager.cpp

    r245796 r248713  
    109109}
    110110
    111 void AuthenticationManager::didReceiveAuthenticationChallenge(PageIdentifier pageID, uint64_t frameID, const AuthenticationChallenge& authenticationChallenge, ChallengeCompletionHandler&& completionHandler)
     111void AuthenticationManager::didReceiveAuthenticationChallenge(PageIdentifier pageID, FrameIdentifier frameID, const AuthenticationChallenge& authenticationChallenge, ChallengeCompletionHandler&& completionHandler)
    112112{
    113113    ASSERT(pageID);
  • trunk/Source/WebKit/Shared/Authentication/AuthenticationManager.h

    r245796 r248713  
    3030#include "WebProcessSupplement.h"
    3131#include <WebCore/AuthenticationChallenge.h>
     32#include <WebCore/FrameIdentifier.h>
    3233#include <WebCore/PageIdentifier.h>
    3334#include <wtf/CompletionHandler.h>
     
    6263    static const char* supplementName();
    6364
    64     void didReceiveAuthenticationChallenge(WebCore::PageIdentifier, uint64_t frameID, const WebCore::AuthenticationChallenge&, ChallengeCompletionHandler&&);
     65    void didReceiveAuthenticationChallenge(WebCore::PageIdentifier, WebCore::FrameIdentifier, const WebCore::AuthenticationChallenge&, ChallengeCompletionHandler&&);
    6566    void didReceiveAuthenticationChallenge(IPC::MessageSender& download, const WebCore::AuthenticationChallenge&, ChallengeCompletionHandler&&);
    6667
  • trunk/Source/WebKit/Shared/FrameInfoData.cpp

    r239427 r248713  
    5050        return false;
    5151    result.securityOrigin = WTFMove(*securityOrigin);
    52     if (!decoder.decode(result.frameID))
     52   
     53    Optional<Optional<FrameIdentifier>> frameID;
     54    decoder >> frameID;
     55    if (!frameID)
    5356        return false;
     57    result.frameID = WTFMove(*frameID);
    5458
    5559    return true;
  • trunk/Source/WebKit/Shared/FrameInfoData.h

    r205150 r248713  
    2626#pragma once
    2727
     28#include <WebCore/FrameIdentifier.h>
    2829#include <WebCore/ResourceRequest.h>
    2930#include <WebCore/SecurityOriginData.h>
     
    4344    WebCore::ResourceRequest request;
    4445    WebCore::SecurityOriginData securityOrigin;
    45     uint64_t frameID { 0 };
     46    Optional<WebCore::FrameIdentifier> frameID;
    4647};
    4748
  • trunk/Source/WebKit/UIProcess/API/APIFrameInfo.cpp

    r229979 r248713  
    5656    , m_request { frameInfoData.request }
    5757    , m_securityOrigin { SecurityOrigin::create(frameInfoData.securityOrigin.securityOrigin()) }
    58     , m_handle { API::FrameHandle::create(frameInfoData.frameID) }
     58    , m_handle { API::FrameHandle::create(frameInfoData.frameID ? *frameInfoData.frameID : WebCore::FrameIdentifier{ }) }
    5959    , m_page { makeRefPtr(page) }
    6060{
  • trunk/Source/WebKit/UIProcess/API/C/WKFrameHandleRef.cpp

    r197114 r248713  
    3939uint64_t WKFrameHandleGetFrameID(WKFrameHandleRef frameHandleRef)
    4040{
    41     return toImpl(frameHandleRef)->frameID();
     41    return toImpl(frameHandleRef)->frameID().toUInt64();
    4242}
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm

    r248522 r248713  
    66226622- (NSPrintOperation *)_printOperationWithPrintInfo:(NSPrintInfo *)printInfo forFrame:(_WKFrameHandle *)frameHandle
    66236623{
    6624     if (auto* webFrameProxy = _page->process().webFrame(frameHandle._frameID))
     6624    if (auto* webFrameProxy = _page->process().webFrame(WebCore::frameIdentifierFromID(frameHandle._frameID)))
    66256625        return _impl->printOperationWithPrintInfo(printInfo, *webFrameProxy);
    66266626    return nil;
     
    71157115- (BOOL)_canChangeFrameLayout:(_WKFrameHandle *)frameHandle
    71167116{
    7117     if (auto* webFrameProxy = _page->process().webFrame(frameHandle._frameID))
     7117    if (auto* webFrameProxy = _page->process().webFrame(WebCore::frameIdentifierFromID(frameHandle._frameID)))
    71187118        return _impl->canChangeFrameLayout(*webFrameProxy);
    71197119    return false;
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKInspector.mm

    r248177 r248713  
    3131#import "_WKFrameHandleInternal.h"
    3232#import "_WKInspectorInternal.h"
     33#import <WebCore/FrameIdentifier.h>
    3334#import <wtf/RetainPtr.h>
    3435
     
    100101{
    101102    if (auto* page = _inspector->inspectedPage())
    102         _inspector->showMainResourceForFrame(page->process().webFrame(frame._frameID));
     103        _inspector->showMainResourceForFrame(page->process().webFrame(WebCore::frameIdentifierFromID(frame._frameID)));
    103104}
    104105
  • trunk/Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp

    r245320 r248713  
    383383}
    384384
    385 void SimulatedInputDispatcher::run(uint64_t frameID, Vector<SimulatedInputKeyFrame>&& keyFrames, HashSet<Ref<SimulatedInputSource>>& inputSources, AutomationCompletionHandler&& completionHandler)
     385void SimulatedInputDispatcher::run(WebCore::FrameIdentifier frameID, Vector<SimulatedInputKeyFrame>&& keyFrames, HashSet<Ref<SimulatedInputSource>>& inputSources, AutomationCompletionHandler&& completionHandler)
    386386{
    387387    ASSERT(!isActive());
  • trunk/Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h

    r240554 r248713  
    2929
    3030#include "WebEvent.h"
     31#include <WebCore/FrameIdentifier.h>
    3132#include <wtf/CompletionHandler.h>
    3233#include <wtf/HashSet.h>
     
    133134        virtual void simulateKeyboardInteraction(WebPageProxy&, KeyboardInteraction, WTF::Variant<VirtualKey, CharKey>&&, AutomationCompletionHandler&&) = 0;
    134135#endif
    135         virtual void viewportInViewCenterPointOfElement(WebPageProxy&, uint64_t frameID, const String& nodeHandle, Function<void (Optional<WebCore::IntPoint>, Optional<AutomationCommandError>)>&&) = 0;
     136        virtual void viewportInViewCenterPointOfElement(WebPageProxy&, WebCore::FrameIdentifier, const String& nodeHandle, Function<void (Optional<WebCore::IntPoint>, Optional<AutomationCommandError>)>&&) = 0;
    136137    };
    137138
     
    143144    ~SimulatedInputDispatcher();
    144145
    145     void run(uint64_t frameID, Vector<SimulatedInputKeyFrame>&& keyFrames, HashSet<Ref<SimulatedInputSource>>& inputSources, AutomationCompletionHandler&&);
     146    void run(WebCore::FrameIdentifier, Vector<SimulatedInputKeyFrame>&& keyFrames, HashSet<Ref<SimulatedInputSource>>& inputSources, AutomationCompletionHandler&&);
    146147    void cancel();
    147148
     
    166167    SimulatedInputDispatcher::Client& m_client;
    167168
    168     Optional<uint64_t> m_frameID;
     169    Optional<WebCore::FrameIdentifier> m_frameID;
    169170    AutomationCompletionHandler m_runCompletionHandler;
    170171    AutomationCompletionHandler m_keyFrameTransitionCompletionHandler;
  • trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp

    r248696 r248713  
    203203}
    204204
    205 Optional<uint64_t> WebAutomationSession::webFrameIDForHandle(const String& handle)
     205Optional<FrameIdentifier> WebAutomationSession::webFrameIDForHandle(const String& handle, bool& frameNotFound)
    206206{
    207207    if (handle.isEmpty())
    208         return 0;
     208        return WTF::nullopt;
    209209
    210210    auto iter = m_handleWebFrameMap.find(handle);
    211     if (iter == m_handleWebFrameMap.end())
     211    if (iter == m_handleWebFrameMap.end()) {
     212        frameNotFound = true;
    212213        return WTF::nullopt;
     214    }
    213215
    214216    return iter->value;
    215217}
    216218
    217 String WebAutomationSession::handleForWebFrameID(uint64_t frameID)
    218 {
    219     if (!frameID)
     219String WebAutomationSession::handleForWebFrameID(Optional<FrameIdentifier> frameID)
     220{
     221    if (!frameID || !*frameID)
    220222        return emptyString();
    221223
    222224    for (auto& process : m_processPool->processes()) {
    223         if (WebFrameProxy* frame = process->webFrame(frameID)) {
     225        if (WebFrameProxy* frame = process->webFrame(*frameID)) {
    224226            if (frame->isMainFrame())
    225227                return emptyString();
     
    228230    }
    229231
    230     auto iter = m_webFrameHandleMap.find(frameID);
     232    auto iter = m_webFrameHandleMap.find(*frameID);
    231233    if (iter != m_webFrameHandleMap.end())
    232234        return iter->value;
     
    234236    String handle = "frame-" + createCanonicalUUIDString().convertToASCIIUppercase();
    235237
    236     auto firstAddResult = m_webFrameHandleMap.add(frameID, handle);
     238    auto firstAddResult = m_webFrameHandleMap.add(*frameID, handle);
    237239    RELEASE_ASSERT(firstAddResult.isNewEntry);
    238240
    239     auto secondAddResult = m_handleWebFrameMap.add(handle, frameID);
     241    auto secondAddResult = m_handleWebFrameMap.add(handle, *frameID);
    240242    RELEASE_ASSERT(secondAddResult.isNewEntry);
    241243
     
    363365        ASYNC_FAIL_WITH_PREDEFINED_ERROR(WindowNotFound);
    364366
    365     Optional<uint64_t> frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString());
    366     if (!frameID)
     367    bool frameNotFound = false;
     368    auto frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString(), frameNotFound);
     369    if (frameNotFound)
    367370        ASYNC_FAIL_WITH_PREDEFINED_ERROR(FrameNotFound);
    368371
     
    370373    m_client->requestSwitchToPage(*this, *page, [frameID, page = makeRef(*page), callback = WTFMove(callback)]() {
    371374        page->setFocus(true);
    372         page->process().send(Messages::WebAutomationSessionProxy::FocusFrame(page->pageID(), frameID.value()), 0);
     375        page->process().send(Messages::WebAutomationSessionProxy::FocusFrame(page->pageID(), frameID), 0);
    373376
    374377        callback->sendSuccess();
     
    460463
    461464    if (optionalFrameHandle && !optionalFrameHandle->isEmpty()) {
    462         Optional<uint64_t> frameID = webFrameIDForHandle(*optionalFrameHandle);
    463         if (!frameID)
     465        bool frameNotFound = false;
     466        auto frameID = webFrameIDForHandle(*optionalFrameHandle, frameNotFound);
     467        if (frameNotFound)
    464468            ASYNC_FAIL_WITH_PREDEFINED_ERROR(FrameNotFound);
    465469        WebFrameProxy* frame = page->process().webFrame(frameID.value());
     
    538542}
    539543
    540 static WebPageProxy* findPageForFrameID(const WebProcessPool& processPool, uint64_t frameID)
     544static WebPageProxy* findPageForFrameID(const WebProcessPool& processPool, FrameIdentifier frameID)
    541545{
    542546    for (auto& process : processPool.processes()) {
     
    547551}
    548552
    549 void WebAutomationSession::respondToPendingFrameNavigationCallbacksWithTimeout(HashMap<uint64_t, RefPtr<Inspector::BackendDispatcher::CallbackBase>>& map)
     553void WebAutomationSession::respondToPendingFrameNavigationCallbacksWithTimeout(HashMap<FrameIdentifier, RefPtr<Inspector::BackendDispatcher::CallbackBase>>& map)
    550554{
    551555    Inspector::ErrorString timeoutError = STRING_FOR_PREDEFINED_ERROR_NAME(Timeout);
     
    925929        ASYNC_FAIL_WITH_PREDEFINED_ERROR(WindowNotFound);
    926930
    927     Optional<uint64_t> frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString());
    928     if (!frameID)
     931    bool frameNotFound = false;
     932    auto frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString(), frameNotFound);
     933    if (frameNotFound)
    929934        ASYNC_FAIL_WITH_PREDEFINED_ERROR(FrameNotFound);
    930935
     
    944949    m_evaluateJavaScriptFunctionCallbacks.set(callbackID, WTFMove(callback));
    945950
    946     page->process().send(Messages::WebAutomationSessionProxy::EvaluateJavaScriptFunction(page->pageID(), frameID.value(), function, argumentsVector, expectsImplicitCallbackArgument, callbackTimeout, callbackID), 0);
     951    page->process().send(Messages::WebAutomationSessionProxy::EvaluateJavaScriptFunction(page->pageID(), frameID, function, argumentsVector, expectsImplicitCallbackArgument, callbackTimeout, callbackID), 0);
    947952}
    948953
     
    968973        ASYNC_FAIL_WITH_PREDEFINED_ERROR(WindowNotFound);
    969974
    970     Optional<uint64_t> frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString());
    971     if (!frameID)
     975    bool frameNotFound = false;
     976    auto frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString(), frameNotFound);
     977    if (frameNotFound)
    972978        ASYNC_FAIL_WITH_PREDEFINED_ERROR(FrameNotFound);
    973979
    974     WTF::CompletionHandler<void(Optional<String>, uint64_t)> completionHandler = [this, protectedThis = makeRef(*this), callback = callback.copyRef()](Optional<String> errorType, uint64_t frameID) mutable {
     980    WTF::CompletionHandler<void(Optional<String>, Optional<FrameIdentifier>)> completionHandler = [this, protectedThis = makeRef(*this), callback = callback.copyRef()](Optional<String> errorType, Optional<FrameIdentifier> frameID) mutable {
    975981        if (errorType) {
    976982            callback->sendFailure(STRING_FOR_PREDEFINED_ERROR_MESSAGE(*errorType));
     
    982988
    983989    if (optionalNodeHandle) {
    984         page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::ResolveChildFrameWithNodeHandle(page->pageID(), frameID.value(), *optionalNodeHandle), WTFMove(completionHandler));
     990        page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::ResolveChildFrameWithNodeHandle(page->pageID(), frameID, *optionalNodeHandle), WTFMove(completionHandler));
    985991        return;
    986992    }
    987993
    988994    if (optionalName) {
    989         page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::ResolveChildFrameWithName(page->pageID(), frameID.value(), *optionalName), WTFMove(completionHandler));
     995        page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::ResolveChildFrameWithName(page->pageID(), frameID, *optionalName), WTFMove(completionHandler));
    990996        return;
    991997    }
    992998
    993999    if (optionalOrdinal) {
    994         page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::ResolveChildFrameWithOrdinal(page->pageID(), frameID.value(), *optionalOrdinal), WTFMove(completionHandler));
     1000        page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::ResolveChildFrameWithOrdinal(page->pageID(), frameID, *optionalOrdinal), WTFMove(completionHandler));
    9951001        return;
    9961002    }
     
    10051011        ASYNC_FAIL_WITH_PREDEFINED_ERROR(WindowNotFound);
    10061012
    1007     Optional<uint64_t> frameID = webFrameIDForHandle(frameHandle);
    1008     if (!frameID)
     1013    bool frameNotFound = false;
     1014    auto frameID = webFrameIDForHandle(frameHandle, frameNotFound);
     1015    if (frameNotFound)
    10091016        ASYNC_FAIL_WITH_PREDEFINED_ERROR(FrameNotFound);
    10101017
    1011     WTF::CompletionHandler<void(Optional<String>, uint64_t)> completionHandler = [this, protectedThis = makeRef(*this), callback = callback.copyRef()](Optional<String> errorType, uint64_t frameID) mutable {
     1018    WTF::CompletionHandler<void(Optional<String>, Optional<FrameIdentifier>)> completionHandler = [this, protectedThis = makeRef(*this), callback = callback.copyRef()](Optional<String> errorType, Optional<FrameIdentifier> frameID) mutable {
    10121019        if (errorType) {
    10131020            callback->sendFailure(STRING_FOR_PREDEFINED_ERROR_MESSAGE(*errorType));
     
    10181025    };
    10191026
    1020     page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::ResolveParentFrame(page->pageID(), frameID.value()), WTFMove(completionHandler));
     1027    page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::ResolveParentFrame(page->pageID(), frameID), WTFMove(completionHandler));
    10211028}
    10221029
     
    10361043        ASYNC_FAIL_WITH_PREDEFINED_ERROR(WindowNotFound);
    10371044
    1038     Optional<uint64_t> frameID = webFrameIDForHandle(frameHandle);
    1039     if (!frameID)
     1045    bool frameNotFound = false;
     1046    auto frameID = webFrameIDForHandle(frameHandle, frameNotFound);
     1047    if (frameNotFound)
    10401048        ASYNC_FAIL_WITH_PREDEFINED_ERROR(FrameNotFound);
    10411049
     
    10791087
    10801088    bool scrollIntoViewIfNeeded = optionalScrollIntoViewIfNeeded ? *optionalScrollIntoViewIfNeeded : false;
    1081     page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::ComputeElementLayout(page->pageID(), frameID.value(), nodeHandle, scrollIntoViewIfNeeded, coordinateSystem.value()), WTFMove(completionHandler));
     1089    page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::ComputeElementLayout(page->pageID(), frameID, nodeHandle, scrollIntoViewIfNeeded, coordinateSystem.value()), WTFMove(completionHandler));
    10821090}
    10831091
     
    10881096        ASYNC_FAIL_WITH_PREDEFINED_ERROR(WindowNotFound);
    10891097
    1090     Optional<uint64_t> frameID = webFrameIDForHandle(frameHandle);
    1091     if (!frameID)
     1098    bool frameNotFound = false;
     1099    auto frameID = webFrameIDForHandle(frameHandle, frameNotFound);
     1100    if (frameNotFound)
    10921101        ASYNC_FAIL_WITH_PREDEFINED_ERROR(FrameNotFound);
    10931102
     
    11011110    };
    11021111
    1103     page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::SelectOptionElement(page->pageID(), frameID.value(), nodeHandle), WTFMove(completionHandler));
     1112    page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::SelectOptionElement(page->pageID(), frameID, nodeHandle), WTFMove(completionHandler));
    11041113}
    11051114
     
    12711280    };
    12721281
    1273     // Always send the main frame ID as 0 so it is resolved on the WebProcess side. This avoids a race when page->mainFrame() is null still.
    1274     const uint64_t mainFrameID = 0;
    1275     page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::GetCookiesForFrame(page->pageID(), mainFrameID), WTFMove(completionHandler));
     1282    page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::GetCookiesForFrame(page->pageID(), WTF::nullopt), WTFMove(completionHandler));
    12761283}
    12771284
     
    12911298    };
    12921299
    1293     // Always send the main frame ID as 0 so it is resolved on the WebProcess side. This avoids a race when page->mainFrame() is null still.
    1294     const uint64_t mainFrameID = 0;
    1295     page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::DeleteCookie(page->pageID(), mainFrameID, cookieName), WTFMove(completionHandler));
     1300    page->process().sendWithAsyncReply(Messages::WebAutomationSessionProxy::DeleteCookie(page->pageID(), WTF::nullopt, cookieName), WTFMove(completionHandler));
    12961301}
    12971302
     
    14581463
    14591464// MARK: SimulatedInputDispatcher::Client API
    1460 void WebAutomationSession::viewportInViewCenterPointOfElement(WebPageProxy& page, uint64_t frameID, const String& nodeHandle, Function<void (Optional<WebCore::IntPoint>, Optional<AutomationCommandError>)>&& completionHandler)
     1465void WebAutomationSession::viewportInViewCenterPointOfElement(WebPageProxy& page, FrameIdentifier frameID, const String& nodeHandle, Function<void (Optional<WebCore::IntPoint>, Optional<AutomationCommandError>)>&& completionHandler)
    14611466{
    14621467    WTF::CompletionHandler<void(Optional<String>, WebCore::IntRect, Optional<WebCore::IntPoint>, bool)> didComputeElementLayoutHandler = [completionHandler = WTFMove(completionHandler)](Optional<String> errorType, WebCore::IntRect, Optional<WebCore::IntPoint> inViewCenterPoint, bool) mutable {
     
    17791784        ASYNC_FAIL_WITH_PREDEFINED_ERROR(WindowNotFound);
    17801785
    1781     auto frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString());
    1782     if (!frameID)
     1786    bool frameNotFound = false;
     1787    auto frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString(), frameNotFound);
     1788    if (frameNotFound)
    17831789        ASYNC_FAIL_WITH_PREDEFINED_ERROR(FrameNotFound);
    17841790
     
    19541960        ASYNC_FAIL_WITH_PREDEFINED_ERROR(WindowNotFound);
    19551961
    1956     auto frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString());
    1957     if (!frameID)
     1962    bool frameNotFound = false;
     1963    auto frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString(), frameNotFound);
     1964    if (frameNotFound)
    19581965        ASYNC_FAIL_WITH_PREDEFINED_ERROR(FrameNotFound);
    19591966
     
    19771984        ASYNC_FAIL_WITH_PREDEFINED_ERROR(WindowNotFound);
    19781985
    1979     Optional<uint64_t> frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString());
    1980     if (!frameID)
     1986    bool frameNotFound = false;
     1987    auto frameID = webFrameIDForHandle(optionalFrameHandle ? *optionalFrameHandle : emptyString(), frameNotFound);
     1988    if (frameNotFound)
    19811989        ASYNC_FAIL_WITH_PREDEFINED_ERROR(FrameNotFound);
    19821990
     
    19881996    m_screenshotCallbacks.set(callbackID, WTFMove(callback));
    19891997
    1990     page->process().send(Messages::WebAutomationSessionProxy::TakeScreenshot(page->pageID(), frameID.value(), nodeHandle, scrollIntoViewIfNeeded, clipToViewport, callbackID), 0);
     1998    page->process().send(Messages::WebAutomationSessionProxy::TakeScreenshot(page->pageID(), frameID, nodeHandle, scrollIntoViewIfNeeded, clipToViewport, callbackID), 0);
    19911999}
    19922000
  • trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.h

    r248696 r248713  
    3535#include "SimulatedInputDispatcher.h"
    3636#include "WebEvent.h"
     37#include <WebCore/FrameIdentifier.h>
    3738#include <WebCore/PageIdentifier.h>
    3839#include <wtf/CompletionHandler.h>
     
    153154    void simulateKeyboardInteraction(WebPageProxy&, KeyboardInteraction, WTF::Variant<VirtualKey, CharKey>&&, AutomationCompletionHandler&&) final;
    154155#endif
    155     void viewportInViewCenterPointOfElement(WebPageProxy&, uint64_t frameID, const String& nodeHandle, Function<void (Optional<WebCore::IntPoint>, Optional<AutomationCommandError>)>&&) final;
     156    void viewportInViewCenterPointOfElement(WebPageProxy&, WebCore::FrameIdentifier, const String& nodeHandle, Function<void (Optional<WebCore::IntPoint>, Optional<AutomationCommandError>)>&&) final;
    156157
    157158#endif // ENABLE(WEBDRIVER_ACTIONS_API)
     
    221222    void getNextContext(Ref<WebAutomationSession>&&, Vector<Ref<WebPageProxy>>&&, Ref<JSON::ArrayOf<Inspector::Protocol::Automation::BrowsingContext>>, Ref<WebAutomationSession::GetBrowsingContextsCallback>&&);
    222223
    223     Optional<uint64_t> webFrameIDForHandle(const String&);
    224     String handleForWebFrameID(uint64_t frameID);
     224    Optional<WebCore::FrameIdentifier> webFrameIDForHandle(const String&, bool& frameNotFound);
     225    String handleForWebFrameID(Optional<WebCore::FrameIdentifier>);
    225226    String handleForWebFrameProxy(const WebFrameProxy&);
    226227
     
    228229    void waitForNavigationToCompleteOnFrame(WebFrameProxy&, Inspector::Protocol::Automation::PageLoadStrategy, Seconds, Ref<Inspector::BackendDispatcher::CallbackBase>&&);
    229230    void respondToPendingPageNavigationCallbacksWithTimeout(HashMap<WebCore::PageIdentifier, RefPtr<Inspector::BackendDispatcher::CallbackBase>>&);
    230     void respondToPendingFrameNavigationCallbacksWithTimeout(HashMap<uint64_t, RefPtr<Inspector::BackendDispatcher::CallbackBase>>&);
     231    void respondToPendingFrameNavigationCallbacksWithTimeout(HashMap<WebCore::FrameIdentifier, RefPtr<Inspector::BackendDispatcher::CallbackBase>>&);
    231232    void loadTimerFired();
    232233
     
    285286    HashMap<String, WebCore::PageIdentifier> m_handleWebPageMap;
    286287
    287     HashMap<uint64_t, String> m_webFrameHandleMap;
    288     HashMap<String, uint64_t> m_handleWebFrameMap;
     288    HashMap<WebCore::FrameIdentifier, String> m_webFrameHandleMap;
     289    HashMap<String, WebCore::FrameIdentifier> m_handleWebFrameMap;
    289290
    290291    HashMap<WebCore::PageIdentifier, RefPtr<Inspector::BackendDispatcher::CallbackBase>> m_pendingNormalNavigationInBrowsingContextCallbacksPerPage;
    291292    HashMap<WebCore::PageIdentifier, RefPtr<Inspector::BackendDispatcher::CallbackBase>> m_pendingEagerNavigationInBrowsingContextCallbacksPerPage;
    292     HashMap<uint64_t, RefPtr<Inspector::BackendDispatcher::CallbackBase>> m_pendingNormalNavigationInBrowsingContextCallbacksPerFrame;
    293     HashMap<uint64_t, RefPtr<Inspector::BackendDispatcher::CallbackBase>> m_pendingEagerNavigationInBrowsingContextCallbacksPerFrame;
     293    HashMap<WebCore::FrameIdentifier, RefPtr<Inspector::BackendDispatcher::CallbackBase>> m_pendingNormalNavigationInBrowsingContextCallbacksPerFrame;
     294    HashMap<WebCore::FrameIdentifier, RefPtr<Inspector::BackendDispatcher::CallbackBase>> m_pendingEagerNavigationInBrowsingContextCallbacksPerFrame;
    294295    HashMap<WebCore::PageIdentifier, RefPtr<Inspector::BackendDispatcher::CallbackBase>> m_pendingInspectorCallbacksPerPage;
    295296#if ENABLE(WEBDRIVER_KEYBOARD_INTERACTIONS)
  • trunk/Source/WebKit/UIProcess/Cocoa/UIDelegate.mm

    r244704 r248713  
    10331033    URL mainFrameURL { URL(), mainFrame->url() };
    10341034
    1035     [(id <WKUIDelegatePrivate>)delegate _webView:m_uiDelegate.m_webView checkUserMediaPermissionForURL:requestFrameURL mainFrameURL:mainFrameURL frameIdentifier:frame.frameID() decisionHandler:decisionHandler.get()];
     1035    [(id <WKUIDelegatePrivate>)delegate _webView:m_uiDelegate.m_webView checkUserMediaPermissionForURL:requestFrameURL mainFrameURL:mainFrameURL frameIdentifier:frame.frameID().toUInt64() decisionHandler:decisionHandler.get()];
    10361036}
    10371037
  • trunk/Source/WebKit/UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm

    r242339 r248713  
    3333#import "WebPageProxy.h"
    3434#import "WebProcessProxy.h"
     35#import <WebCore/FrameIdentifier.h>
    3536#import <wtf/RetainPtr.h>
    3637#import <wtf/WeakObjCPtr.h>
     
    6364        return NO;
    6465
    65     uint64_t frameID = [_frameHandle _frameID];
    66     WebKit::WebFrameProxy* webFrameProxy = webView->_page->process().webFrame(frameID);
     66    WebKit::WebFrameProxy* webFrameProxy = webView->_page->process().webFrame(WebCore::frameIdentifierFromID([_frameHandle _frameID]));
    6767    if (!webFrameProxy)
    6868        return NO;
  • trunk/Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm

    r247755 r248713  
    102102
    103103#if ENABLE(CONTENT_FILTERING)
    104 void WebPageProxy::contentFilterDidBlockLoadForFrame(const WebCore::ContentFilterUnblockHandler& unblockHandler, uint64_t frameID)
     104void WebPageProxy::contentFilterDidBlockLoadForFrame(const WebCore::ContentFilterUnblockHandler& unblockHandler, FrameIdentifier frameID)
    105105{
    106106    contentFilterDidBlockLoadForFrameShared(m_process.copyRef(), unblockHandler, frameID);
    107107}
    108108
    109 void WebPageProxy::contentFilterDidBlockLoadForFrameShared(Ref<WebProcessProxy>&& process, const WebCore::ContentFilterUnblockHandler& unblockHandler, uint64_t frameID)
     109void WebPageProxy::contentFilterDidBlockLoadForFrameShared(Ref<WebProcessProxy>&& process, const WebCore::ContentFilterUnblockHandler& unblockHandler, FrameIdentifier frameID)
    110110{
    111111    if (WebFrameProxy* frame = process->webFrame(frameID))
  • trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp

    r248640 r248713  
    313313}
    314314
    315 void NetworkProcessProxy::didReceiveAuthenticationChallenge(PageIdentifier pageID, uint64_t frameID, WebCore::AuthenticationChallenge&& coreChallenge, uint64_t challengeID)
     315void NetworkProcessProxy::didReceiveAuthenticationChallenge(PageIdentifier pageID, FrameIdentifier frameID, WebCore::AuthenticationChallenge&& coreChallenge, uint64_t challengeID)
    316316{
    317317#if ENABLE(SERVICE_WORKER)
     
    738738}
    739739
    740 void NetworkProcessProxy::requestStorageAccessConfirm(PageIdentifier pageID, uint64_t frameID, const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, CompletionHandler<void(bool)>&& completionHandler)
     740void NetworkProcessProxy::requestStorageAccessConfirm(PageIdentifier pageID, FrameIdentifier frameID, const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, CompletionHandler<void(bool)>&& completionHandler)
    741741{
    742742    WebPageProxy* page = WebProcessProxy::webPage(pageID);
  • trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.h

    r248640 r248713  
    8383    using DomainInNeedOfStorageAccess = WebCore::RegistrableDomain;
    8484    using OpenerDomain = WebCore::RegistrableDomain;
    85     using FrameID = uint64_t;
    8685
    8786    explicit NetworkProcessProxy(WebProcessPool&);
     
    131130    void setVeryPrevalentResource(PAL::SessionID, const RegistrableDomain&, CompletionHandler<void()>&&);
    132131    void getAllStorageAccessEntries(PAL::SessionID, CompletionHandler<void(Vector<String> domains)>&&);
    133     void requestStorageAccessConfirm(WebCore::PageIdentifier, FrameID, const SubFrameDomain&, const TopFrameDomain&, CompletionHandler<void(bool)>&&);
     132    void requestStorageAccessConfirm(WebCore::PageIdentifier, WebCore::FrameIdentifier, const SubFrameDomain&, const TopFrameDomain&, CompletionHandler<void(bool)>&&);
    134133    void resetParametersToDefaultValues(PAL::SessionID, CompletionHandler<void()>&&);
    135134    void scheduleClearInMemoryAndPersistent(PAL::SessionID, ShouldGrandfatherStatistics, CompletionHandler<void()>&&);
     
    214213    void didReceiveNetworkProcessProxyMessage(IPC::Connection&, IPC::Decoder&);
    215214    void didCreateNetworkConnectionToWebProcess(const IPC::Attachment&);
    216     void didReceiveAuthenticationChallenge(WebCore::PageIdentifier, uint64_t frameID, WebCore::AuthenticationChallenge&&, uint64_t challengeID);
     215    void didReceiveAuthenticationChallenge(WebCore::PageIdentifier, WebCore::FrameIdentifier, WebCore::AuthenticationChallenge&&, uint64_t challengeID);
    217216    void didFetchWebsiteData(uint64_t callbackID, const WebsiteData&);
    218217    void didDeleteWebsiteData(uint64_t callbackID);
  • trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.messages.in

    r247822 r248713  
    2424    DidCreateNetworkConnectionToWebProcess(IPC::Attachment connectionIdentifier)
    2525
    26     DidReceiveAuthenticationChallenge(WebCore::PageIdentifier pageID, uint64_t frameID, WebCore::AuthenticationChallenge challenge, uint64_t challengeID)
     26    DidReceiveAuthenticationChallenge(WebCore::PageIdentifier pageID, WebCore::FrameIdentifier frameID, WebCore::AuthenticationChallenge challenge, uint64_t challengeID)
    2727
    2828    DidFetchWebsiteData(uint64_t callbackID, struct WebKit::WebsiteData websiteData)
     
    4949    NotifyWebsiteDataScanForRegistrableDomainsFinished()
    5050    NotifyResourceLoadStatisticsTelemetryFinished(unsigned totalPrevalentResources, unsigned totalPrevalentResourcesWithUserInteraction, unsigned top3SubframeUnderTopFrameOrigins)
    51     RequestStorageAccessConfirm(WebCore::PageIdentifier pageID, uint64_t frameID, WebCore::RegistrableDomain subFrameDomain, WebCore::RegistrableDomain topFrameDomain) -> (bool userDidGrantAccess) Async
     51    RequestStorageAccessConfirm(WebCore::PageIdentifier pageID, WebCore::FrameIdentifier frameID, WebCore::RegistrableDomain subFrameDomain, WebCore::RegistrableDomain topFrameDomain) -> (bool userDidGrantAccess) Async
    5252    DeleteWebsiteDataInUIProcessForRegistrableDomains(PAL::SessionID sessionID, OptionSet<WebKit::WebsiteDataType> dataTypes, OptionSet<WebKit::WebsiteDataFetchOption> fetchOptions, Vector<WebCore::RegistrableDomain> domains) -> (HashSet<WebCore::RegistrableDomain> domainsWithMatchingDataRecords) Async
    5353    DidCommitCrossSiteLoadWithDataTransferFromPrevalentResource(WebCore::PageIdentifier pageID)
  • trunk/Source/WebKit/UIProcess/ProvisionalPageProxy.cpp

    r248598 r248713  
    177177}
    178178
    179 inline bool ProvisionalPageProxy::validateInput(uint64_t frameID, const Optional<uint64_t>& navigationID)
     179inline bool ProvisionalPageProxy::validateInput(FrameIdentifier frameID, const Optional<uint64_t>& navigationID)
    180180{
    181181    // If the previous provisional load used an existing process, we may receive leftover IPC for a previous navigation, which we need to ignore.
     
    186186}
    187187
    188 void ProvisionalPageProxy::didCreateMainFrame(uint64_t frameID)
    189 {
    190     RELEASE_LOG_IF_ALLOWED(ProcessSwapping, "didCreateMainFrame: pageID = %" PRIu64 ", frameID = %" PRIu64, m_page.pageID().toUInt64(), frameID);
     188void ProvisionalPageProxy::didCreateMainFrame(FrameIdentifier frameID)
     189{
     190    RELEASE_LOG_IF_ALLOWED(ProcessSwapping, "didCreateMainFrame: pageID = %" PRIu64 ", frameID = %" PRIu64, m_page.pageID().toUInt64(), frameID.toUInt64());
    191191    ASSERT(!m_mainFrame);
    192192
     
    213213}
    214214
    215 void ProvisionalPageProxy::didPerformClientRedirect(const String& sourceURLString, const String& destinationURLString, uint64_t frameID)
     215void ProvisionalPageProxy::didPerformClientRedirect(const String& sourceURLString, const String& destinationURLString, FrameIdentifier frameID)
    216216{
    217217    if (!validateInput(frameID))
     
    221221}
    222222
    223 void ProvisionalPageProxy::didStartProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, URL&& url, URL&& unreachableURL, const UserData& userData)
    224 {
    225     if (!validateInput(frameID, navigationID))
    226         return;
    227 
    228     RELEASE_LOG_IF_ALLOWED(ProcessSwapping, "didStartProvisionalLoadForFrame: pageID = %" PRIu64 ", frameID = %" PRIu64 ", navigationID = %" PRIu64, m_page.pageID().toUInt64(), frameID, navigationID);
     223void ProvisionalPageProxy::didStartProvisionalLoadForFrame(FrameIdentifier frameID, uint64_t navigationID, URL&& url, URL&& unreachableURL, const UserData& userData)
     224{
     225    if (!validateInput(frameID, navigationID))
     226        return;
     227
     228    RELEASE_LOG_IF_ALLOWED(ProcessSwapping, "didStartProvisionalLoadForFrame: pageID = %" PRIu64 ", frameID = %" PRIu64 ", navigationID = %" PRIu64, m_page.pageID().toUInt64(), frameID.toUInt64(), navigationID);
    229229    ASSERT(m_provisionalLoadURL.isNull());
    230230    m_provisionalLoadURL = url;
     
    241241}
    242242
    243 void ProvisionalPageProxy::didFailProvisionalLoadForFrame(uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const WebCore::ResourceError& error, WebCore::WillContinueLoading willContinueLoading, const UserData& userData)
    244 {
    245     if (!validateInput(frameID, navigationID))
    246         return;
    247 
    248     RELEASE_LOG_ERROR_IF_ALLOWED(ProcessSwapping, "didFailProvisionalLoadForFrame: pageID = %" PRIu64 ", frameID = %" PRIu64 ", navigationID = %" PRIu64, m_page.pageID().toUInt64(), frameID, navigationID);
     243void ProvisionalPageProxy::didFailProvisionalLoadForFrame(FrameIdentifier frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const WebCore::ResourceError& error, WebCore::WillContinueLoading willContinueLoading, const UserData& userData)
     244{
     245    if (!validateInput(frameID, navigationID))
     246        return;
     247
     248    RELEASE_LOG_ERROR_IF_ALLOWED(ProcessSwapping, "didFailProvisionalLoadForFrame: pageID = %" PRIu64 ", frameID = %" PRIu64 ", navigationID = %" PRIu64, m_page.pageID().toUInt64(), frameID.toUInt64(), navigationID);
    249249    ASSERT(!m_provisionalLoadURL.isNull());
    250250    m_provisionalLoadURL = { };
     
    257257}
    258258
    259 void ProvisionalPageProxy::didCommitLoadForFrame(uint64_t frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo& certificateInfo, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, const UserData& userData)
    260 {
    261     if (!validateInput(frameID, navigationID))
    262         return;
    263 
    264     RELEASE_LOG_IF_ALLOWED(ProcessSwapping, "didCommitLoadForFrame: pageID = %" PRIu64 ", frameID = %" PRIu64 ", navigationID = %" PRIu64, m_page.pageID().toUInt64(), frameID, navigationID);
     259void ProvisionalPageProxy::didCommitLoadForFrame(FrameIdentifier frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo& certificateInfo, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, const UserData& userData)
     260{
     261    if (!validateInput(frameID, navigationID))
     262        return;
     263
     264    RELEASE_LOG_IF_ALLOWED(ProcessSwapping, "didCommitLoadForFrame: pageID = %" PRIu64 ", frameID = %" PRIu64 ", navigationID = %" PRIu64, m_page.pageID().toUInt64(), frameID.toUInt64(), navigationID);
    265265    m_provisionalLoadURL = { };
    266266    m_process->removeMessageReceiver(Messages::WebPageProxy::messageReceiverName(), m_page.pageID());
     
    270270}
    271271
    272 void ProvisionalPageProxy::didNavigateWithNavigationData(const WebNavigationDataStore& store, uint64_t frameID)
     272void ProvisionalPageProxy::didNavigateWithNavigationData(const WebNavigationDataStore& store, FrameIdentifier frameID)
    273273{
    274274    if (!validateInput(frameID))
     
    278278}
    279279
    280 void ProvisionalPageProxy::didChangeProvisionalURLForFrame(uint64_t frameID, uint64_t navigationID, URL&& url)
     280void ProvisionalPageProxy::didChangeProvisionalURLForFrame(FrameIdentifier frameID, uint64_t navigationID, URL&& url)
    281281{
    282282    if (!validateInput(frameID, navigationID))
     
    286286}
    287287
    288 void ProvisionalPageProxy::decidePolicyForNavigationActionAsync(uint64_t frameID, WebCore::SecurityOriginData&& frameSecurityOrigin, WebCore::PolicyCheckIdentifier identifier,
     288void ProvisionalPageProxy::decidePolicyForNavigationActionAsync(FrameIdentifier frameID, WebCore::SecurityOriginData&& frameSecurityOrigin, WebCore::PolicyCheckIdentifier identifier,
    289289    uint64_t navigationID, NavigationActionData&& navigationActionData, FrameInfoData&& frameInfoData, Optional<PageIdentifier> originatingPageID, const WebCore::ResourceRequest& originalRequest,
    290290    WebCore::ResourceRequest&& request, IPC::FormDataReference&& requestBody, WebCore::ResourceResponse&& redirectResponse, const UserData& userData, uint64_t listenerID)
     
    297297}
    298298
    299 void ProvisionalPageProxy::decidePolicyForResponse(uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, WebCore::PolicyCheckIdentifier identifier,
     299void ProvisionalPageProxy::decidePolicyForResponse(FrameIdentifier frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, WebCore::PolicyCheckIdentifier identifier,
    300300    uint64_t navigationID, const WebCore::ResourceResponse& response, const WebCore::ResourceRequest& request, bool canShowMIMEType, const String& downloadAttribute, uint64_t listenerID, const UserData& userData)
    301301{
     
    306306}
    307307
    308 void ProvisionalPageProxy::didPerformServerRedirect(const String& sourceURLString, const String& destinationURLString, uint64_t frameID)
     308void ProvisionalPageProxy::didPerformServerRedirect(const String& sourceURLString, const String& destinationURLString, FrameIdentifier frameID)
    309309{
    310310    if (!validateInput(frameID))
     
    314314}
    315315
    316 void ProvisionalPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, WebCore::ResourceRequest&& request, const UserData& userData)
     316void ProvisionalPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame(FrameIdentifier frameID, uint64_t navigationID, WebCore::ResourceRequest&& request, const UserData& userData)
    317317{
    318318    if (!validateInput(frameID, navigationID))
     
    332332}
    333333
    334 void ProvisionalPageProxy::decidePolicyForNavigationActionSync(uint64_t frameID, bool isMainFrame, WebCore::SecurityOriginData&& frameSecurityOrigin, WebCore::PolicyCheckIdentifier identifier,
     334void ProvisionalPageProxy::decidePolicyForNavigationActionSync(FrameIdentifier frameID, bool isMainFrame, WebCore::SecurityOriginData&& frameSecurityOrigin, WebCore::PolicyCheckIdentifier identifier,
    335335    uint64_t navigationID, NavigationActionData&& navigationActionData, FrameInfoData&& frameInfoData, Optional<PageIdentifier> originatingPageID,
    336336    const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&& request, IPC::FormDataReference&& requestBody, WebCore::ResourceResponse&& redirectResponse,
     
    367367
    368368#if ENABLE(CONTENT_FILTERING)
    369 void ProvisionalPageProxy::contentFilterDidBlockLoadForFrame(const WebCore::ContentFilterUnblockHandler& unblockHandler, uint64_t frameID)
     369void ProvisionalPageProxy::contentFilterDidBlockLoadForFrame(const WebCore::ContentFilterUnblockHandler& unblockHandler, FrameIdentifier frameID)
    370370{
    371371    m_page.contentFilterDidBlockLoadForFrameShared(m_process.copyRef(), unblockHandler, frameID);
  • trunk/Source/WebKit/UIProcess/ProvisionalPageProxy.h

    r247146 r248713  
    9393    void didReceiveSyncMessage(IPC::Connection&, IPC::Decoder&, std::unique_ptr<IPC::Encoder>&) final;
    9494
    95     void decidePolicyForNavigationActionAsync(uint64_t frameID, WebCore::SecurityOriginData&&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, NavigationActionData&&, FrameInfoData&&,
     95    void decidePolicyForNavigationActionAsync(WebCore::FrameIdentifier, WebCore::SecurityOriginData&&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, NavigationActionData&&, FrameInfoData&&,
    9696        Optional<WebCore::PageIdentifier> originatingPageID, const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&&, IPC::FormDataReference&& requestBody,
    9797        WebCore::ResourceResponse&& redirectResponse, const UserData&, uint64_t listenerID);
    98     void decidePolicyForResponse(uint64_t frameID, const WebCore::SecurityOriginData&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, const WebCore::ResourceResponse&,
     98    void decidePolicyForResponse(WebCore::FrameIdentifier, const WebCore::SecurityOriginData&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, const WebCore::ResourceResponse&,
    9999        const WebCore::ResourceRequest&, bool canShowMIMEType, const String& downloadAttribute, uint64_t listenerID, const UserData&);
    100     void didChangeProvisionalURLForFrame(uint64_t frameID, uint64_t navigationID, URL&&);
    101     void didPerformServerRedirect(const String& sourceURLString, const String& destinationURLString, uint64_t frameID);
    102     void didReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, WebCore::ResourceRequest&&, const UserData&);
    103     void didNavigateWithNavigationData(const WebNavigationDataStore&, uint64_t frameID);
    104     void didPerformClientRedirect(const String& sourceURLString, const String& destinationURLString, uint64_t frameID);
    105     void didCreateMainFrame(uint64_t frameID);
    106     void didStartProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, URL&&, URL&& unreachableURL, const UserData&);
    107     void didCommitLoadForFrame(uint64_t frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo&, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, const UserData&);
    108     void didFailProvisionalLoadForFrame(uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const WebCore::ResourceError&, WebCore::WillContinueLoading, const UserData&);
     100    void didChangeProvisionalURLForFrame(WebCore::FrameIdentifier, uint64_t navigationID, URL&&);
     101    void didPerformServerRedirect(const String& sourceURLString, const String& destinationURLString, WebCore::FrameIdentifier);
     102    void didReceiveServerRedirectForProvisionalLoadForFrame(WebCore::FrameIdentifier, uint64_t navigationID, WebCore::ResourceRequest&&, const UserData&);
     103    void didNavigateWithNavigationData(const WebNavigationDataStore&, WebCore::FrameIdentifier);
     104    void didPerformClientRedirect(const String& sourceURLString, const String& destinationURLString, WebCore::FrameIdentifier);
     105    void didCreateMainFrame(WebCore::FrameIdentifier);
     106    void didStartProvisionalLoadForFrame(WebCore::FrameIdentifier, uint64_t navigationID, URL&&, URL&& unreachableURL, const UserData&);
     107    void didCommitLoadForFrame(WebCore::FrameIdentifier, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo&, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, const UserData&);
     108    void didFailProvisionalLoadForFrame(WebCore::FrameIdentifier, const WebCore::SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const WebCore::ResourceError&, WebCore::WillContinueLoading, const UserData&);
    109109    void startURLSchemeTask(URLSchemeTaskParameters&&);
    110110    void backForwardGoToItem(const WebCore::BackForwardItemIdentifier&, CompletionHandler<void(SandboxExtension::Handle&&)>&&);
    111     void decidePolicyForNavigationActionSync(uint64_t frameID, bool isMainFrame, WebCore::SecurityOriginData&&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, NavigationActionData&&,
     111    void decidePolicyForNavigationActionSync(WebCore::FrameIdentifier, bool isMainFrame, WebCore::SecurityOriginData&&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, NavigationActionData&&,
    112112        FrameInfoData&&, Optional<WebCore::PageIdentifier> originatingPageID, const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&&, IPC::FormDataReference&& requestBody,
    113113        WebCore::ResourceResponse&& redirectResponse, const UserData&, Messages::WebPageProxy::DecidePolicyForNavigationActionSync::DelayedReply&&);
     
    119119#endif
    120120#if ENABLE(CONTENT_FILTERING)
    121     void contentFilterDidBlockLoadForFrame(const WebCore::ContentFilterUnblockHandler&, uint64_t frameID);
     121    void contentFilterDidBlockLoadForFrame(const WebCore::ContentFilterUnblockHandler&, WebCore::FrameIdentifier);
    122122#endif
    123123
    124124    void initializeWebPage();
    125     bool validateInput(uint64_t frameID, const Optional<uint64_t>& navigationID = WTF::nullopt);
     125    bool validateInput(WebCore::FrameIdentifier, const Optional<uint64_t>& navigationID = WTF::nullopt);
    126126
    127127    WebPageProxy& m_page;
  • trunk/Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp

    r245796 r248713  
    9191}
    9292
    93 void ServiceWorkerProcessProxy::didReceiveAuthenticationChallenge(PageIdentifier pageID, uint64_t frameID, Ref<AuthenticationChallengeProxy>&& challenge)
     93void ServiceWorkerProcessProxy::didReceiveAuthenticationChallenge(PageIdentifier pageID, FrameIdentifier frameID, Ref<AuthenticationChallengeProxy>&& challenge)
    9494{
    9595    UNUSED_PARAM(pageID);
  • trunk/Source/WebKit/UIProcess/ServiceWorkerProcessProxy.h

    r245796 r248713  
    4242    static bool hasRegisteredServiceWorkers(const String& serviceWorkerDirectory);
    4343
    44     void didReceiveAuthenticationChallenge(WebCore::PageIdentifier, uint64_t frameID, Ref<AuthenticationChallengeProxy>&&);
     44    void didReceiveAuthenticationChallenge(WebCore::PageIdentifier, WebCore::FrameIdentifier, Ref<AuthenticationChallengeProxy>&&);
    4545
    4646    void start(const WebPreferencesStore&, Optional<PAL::SessionID> initialSessionID);
  • trunk/Source/WebKit/UIProcess/SuspendedPageProxy.cpp

    r245796 r248713  
    7979#endif
    8080
    81 SuspendedPageProxy::SuspendedPageProxy(WebPageProxy& page, Ref<WebProcessProxy>&& process, uint64_t mainFrameID, ShouldDelayClosingUntilEnteringAcceleratedCompositingMode shouldDelayClosingUntilEnteringAcceleratedCompositingMode)
     81SuspendedPageProxy::SuspendedPageProxy(WebPageProxy& page, Ref<WebProcessProxy>&& process, FrameIdentifier mainFrameID, ShouldDelayClosingUntilEnteringAcceleratedCompositingMode shouldDelayClosingUntilEnteringAcceleratedCompositingMode)
    8282    : m_page(page)
    8383    , m_process(WTFMove(process))
  • trunk/Source/WebKit/UIProcess/SuspendedPageProxy.h

    r245601 r248713  
    3030#include "WebBackForwardListItem.h"
    3131#include "WebPageProxyMessages.h"
     32#include <WebCore/FrameIdentifier.h>
    3233#include <wtf/RefCounted.h>
    3334#include <wtf/WeakPtr.h>
     
    4344    WTF_MAKE_FAST_ALLOCATED;
    4445public:
    45     SuspendedPageProxy(WebPageProxy&, Ref<WebProcessProxy>&&, uint64_t mainFrameID, ShouldDelayClosingUntilEnteringAcceleratedCompositingMode);
     46    SuspendedPageProxy(WebPageProxy&, Ref<WebProcessProxy>&&, WebCore::FrameIdentifier mainFrameID, ShouldDelayClosingUntilEnteringAcceleratedCompositingMode);
    4647    ~SuspendedPageProxy();
    4748
    4849    WebPageProxy& page() const { return m_page; }
    4950    WebProcessProxy& process() { return m_process.get(); }
    50     uint64_t mainFrameID() const { return m_mainFrameID; }
     51    WebCore::FrameIdentifier mainFrameID() const { return m_mainFrameID; }
    5152
    5253    bool pageIsClosedOrClosing() const;
     
    7576    WebPageProxy& m_page;
    7677    Ref<WebProcessProxy> m_process;
    77     uint64_t m_mainFrameID;
     78    WebCore::FrameIdentifier m_mainFrameID;
    7879    bool m_isClosed { false };
    7980    ShouldDelayClosingUntilEnteringAcceleratedCompositingMode m_shouldDelayClosingUntilEnteringAcceleratedCompositingMode { ShouldDelayClosingUntilEnteringAcceleratedCompositingMode::No };
  • trunk/Source/WebKit/UIProcess/UserMediaPermissionCheckProxy.cpp

    r246185 r248713  
    3434using namespace WebCore;
    3535
    36 UserMediaPermissionCheckProxy::UserMediaPermissionCheckProxy(uint64_t frameID, CompletionHandler&& handler, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin)
     36UserMediaPermissionCheckProxy::UserMediaPermissionCheckProxy(FrameIdentifier frameID, CompletionHandler&& handler, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin)
    3737    : m_frameID(frameID)
    3838    , m_completionHandler(WTFMove(handler))
  • trunk/Source/WebKit/UIProcess/UserMediaPermissionCheckProxy.h

    r246185 r248713  
    2727
    2828#include "APIObject.h"
     29#include <WebCore/FrameIdentifier.h>
    2930#include <WebCore/MediaConstraints.h>
    3031#include <wtf/CompletionHandler.h>
     
    4243    using CompletionHandler = WTF::CompletionHandler<void(PermissionInfo)>;
    4344
    44     static Ref<UserMediaPermissionCheckProxy> create(uint64_t frameID, CompletionHandler&& handler, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin)
     45    static Ref<UserMediaPermissionCheckProxy> create(WebCore::FrameIdentifier frameID, CompletionHandler&& handler, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin)
    4546    {
    4647        return adoptRef(*new UserMediaPermissionCheckProxy(frameID, WTFMove(handler), WTFMove(userMediaDocumentOrigin), WTFMove(topLevelDocumentOrigin)));
     
    5152    void invalidate() { complete(PermissionInfo::Error); }
    5253
    53     uint64_t frameID() const { return m_frameID; }
     54    WebCore::FrameIdentifier frameID() const { return m_frameID; }
    5455    WebCore::SecurityOrigin& userMediaDocumentSecurityOrigin() { return m_userMediaDocumentSecurityOrigin.get(); }
    5556    WebCore::SecurityOrigin& topLevelDocumentSecurityOrigin() { return m_topLevelDocumentSecurityOrigin.get(); }
    5657   
    5758private:
    58     UserMediaPermissionCheckProxy(uint64_t frameID, CompletionHandler&&, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin);
     59    UserMediaPermissionCheckProxy(WebCore::FrameIdentifier, CompletionHandler&&, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin);
    5960    ~UserMediaPermissionCheckProxy();
    6061
    6162    void complete(PermissionInfo);
    6263   
    63     uint64_t m_frameID;
     64    WebCore::FrameIdentifier m_frameID;
    6465    CompletionHandler m_completionHandler;
    6566    Ref<WebCore::SecurityOrigin> m_userMediaDocumentSecurityOrigin;
  • trunk/Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp

    r248104 r248713  
    241241}
    242242
    243 void UserMediaPermissionRequestManagerProxy::resetAccess(uint64_t frameID)
    244 {
    245     ALWAYS_LOG(LOGIDENTIFIER, frameID);
     243void UserMediaPermissionRequestManagerProxy::resetAccess(FrameIdentifier frameID)
     244{
     245    ALWAYS_LOG(LOGIDENTIFIER, frameID.loggingString());
    246246    m_grantedRequests.removeAllMatching([frameID](const auto& grantedRequest) {
    247247        return grantedRequest->mainFrameID() == frameID;
     
    252252}
    253253
    254 const UserMediaPermissionRequestProxy* UserMediaPermissionRequestManagerProxy::searchForGrantedRequest(uint64_t frameID, const SecurityOrigin& userMediaDocumentOrigin, const SecurityOrigin& topLevelDocumentOrigin, bool needsAudio, bool needsVideo) const
     254const UserMediaPermissionRequestProxy* UserMediaPermissionRequestManagerProxy::searchForGrantedRequest(FrameIdentifier frameID, const SecurityOrigin& userMediaDocumentOrigin, const SecurityOrigin& topLevelDocumentOrigin, bool needsAudio, bool needsVideo) const
    255255{
    256256    if (m_page.isMediaStreamCaptureMuted())
     
    283283}
    284284
    285 bool UserMediaPermissionRequestManagerProxy::wasRequestDenied(uint64_t mainFrameID, const SecurityOrigin& userMediaDocumentOrigin, const SecurityOrigin& topLevelDocumentOrigin, bool needsAudio, bool needsVideo, bool needsScreenCapture)
     285bool UserMediaPermissionRequestManagerProxy::wasRequestDenied(FrameIdentifier mainFrameID, const SecurityOrigin& userMediaDocumentOrigin, const SecurityOrigin& topLevelDocumentOrigin, bool needsAudio, bool needsVideo, bool needsScreenCapture)
    286286{
    287287    for (const auto& deniedRequest : m_deniedRequests) {
     
    347347#endif
    348348
    349 void UserMediaPermissionRequestManagerProxy::requestUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, Ref<SecurityOrigin>&& userMediaDocumentOrigin, Ref<SecurityOrigin>&& topLevelDocumentOrigin, MediaStreamRequest&& userRequest)
     349void UserMediaPermissionRequestManagerProxy::requestUserMediaPermissionForFrame(uint64_t userMediaID, FrameIdentifier frameID, Ref<SecurityOrigin>&& userMediaDocumentOrigin, Ref<SecurityOrigin>&& topLevelDocumentOrigin, MediaStreamRequest&& userRequest)
    350350{
    351351#if ENABLE(MEDIA_STREAM)
     
    522522}
    523523
    524 void UserMediaPermissionRequestManagerProxy::getUserMediaPermissionInfo(uint64_t frameID, Ref<SecurityOrigin>&& userMediaDocumentOrigin, Ref<SecurityOrigin>&& topLevelDocumentOrigin, CompletionHandler<void(PermissionInfo)>&& handler)
     524void UserMediaPermissionRequestManagerProxy::getUserMediaPermissionInfo(FrameIdentifier frameID, Ref<SecurityOrigin>&& userMediaDocumentOrigin, Ref<SecurityOrigin>&& topLevelDocumentOrigin, CompletionHandler<void(PermissionInfo)>&& handler)
    525525{
    526526    auto* webFrame = m_page.process().webFrame(frameID);
     
    546546}
    547547
    548 bool UserMediaPermissionRequestManagerProxy::wasGrantedVideoOrAudioAccess(uint64_t frameID, const SecurityOrigin& userMediaDocumentOrigin, const SecurityOrigin& topLevelDocumentOrigin)
     548bool UserMediaPermissionRequestManagerProxy::wasGrantedVideoOrAudioAccess(FrameIdentifier frameID, const SecurityOrigin& userMediaDocumentOrigin, const SecurityOrigin& topLevelDocumentOrigin)
    549549{
    550550    for (const auto& grantedRequest : m_grantedRequests) {
     
    605605#endif
    606606
    607 void UserMediaPermissionRequestManagerProxy::enumerateMediaDevicesForFrame(uint64_t userMediaID, uint64_t frameID, Ref<SecurityOrigin>&& userMediaDocumentOrigin, Ref<SecurityOrigin>&& topLevelDocumentOrigin)
     607void UserMediaPermissionRequestManagerProxy::enumerateMediaDevicesForFrame(uint64_t userMediaID, FrameIdentifier frameID, Ref<SecurityOrigin>&& userMediaDocumentOrigin, Ref<SecurityOrigin>&& topLevelDocumentOrigin)
    608608{
    609609#if ENABLE(MEDIA_STREAM)
  • trunk/Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.h

    r247662 r248713  
    6161    void invalidatePendingRequests();
    6262
    63     void requestUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, Ref<WebCore::SecurityOrigin>&&  userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, WebCore::MediaStreamRequest&&);
     63    void requestUserMediaPermissionForFrame(uint64_t userMediaID, WebCore::FrameIdentifier, Ref<WebCore::SecurityOrigin>&&  userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, WebCore::MediaStreamRequest&&);
    6464
    65     void resetAccess(uint64_t mainFrameID);
     65    void resetAccess(WebCore::FrameIdentifier mainFrameID);
    6666    void viewIsBecomingVisible();
    6767
     
    6969    void denyRequest(UserMediaPermissionRequestProxy&, UserMediaPermissionRequestProxy::UserMediaAccessDenialReason, const String& invalidConstraint = { });
    7070
    71     void enumerateMediaDevicesForFrame(uint64_t userMediaID, uint64_t frameID, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin);
     71    void enumerateMediaDevicesForFrame(uint64_t userMediaID, WebCore::FrameIdentifier, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin);
    7272
    7373    void stopCapture();
     
    9696#endif
    9797
    98     Ref<UserMediaPermissionRequestProxy> createPermissionRequest(uint64_t userMediaID, uint64_t mainFrameID, uint64_t frameID, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, Vector<WebCore::CaptureDevice>&& audioDevices, Vector<WebCore::CaptureDevice>&& videoDevices, WebCore::MediaStreamRequest&&);
     98    Ref<UserMediaPermissionRequestProxy> createPermissionRequest(uint64_t userMediaID, WebCore::FrameIdentifier mainFrameID, WebCore::FrameIdentifier, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, Vector<WebCore::CaptureDevice>&& audioDevices, Vector<WebCore::CaptureDevice>&& videoDevices, WebCore::MediaStreamRequest&&);
    9999#if ENABLE(MEDIA_STREAM)
    100100    void finishGrantingRequest(UserMediaPermissionRequestProxy&);
    101101
    102     const UserMediaPermissionRequestProxy* searchForGrantedRequest(uint64_t frameID, const WebCore::SecurityOrigin& userMediaDocumentOrigin, const WebCore::SecurityOrigin& topLevelDocumentOrigin, bool needsAudio, bool needsVideo) const;
    103     bool wasRequestDenied(uint64_t mainFrameID, const WebCore::SecurityOrigin& userMediaDocumentOrigin, const WebCore::SecurityOrigin& topLevelDocumentOrigin, bool needsAudio, bool needsVideo, bool needsScreenCapture);
     102    const UserMediaPermissionRequestProxy* searchForGrantedRequest(WebCore::FrameIdentifier, const WebCore::SecurityOrigin& userMediaDocumentOrigin, const WebCore::SecurityOrigin& topLevelDocumentOrigin, bool needsAudio, bool needsVideo) const;
     103    bool wasRequestDenied(WebCore::FrameIdentifier mainFrameID, const WebCore::SecurityOrigin& userMediaDocumentOrigin, const WebCore::SecurityOrigin& topLevelDocumentOrigin, bool needsAudio, bool needsVideo, bool needsScreenCapture);
    104104
    105105    using PermissionInfo = UserMediaPermissionCheckProxy::PermissionInfo;
    106     void getUserMediaPermissionInfo(uint64_t frameID, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, CompletionHandler<void(PermissionInfo)>&&);
     106    void getUserMediaPermissionInfo(WebCore::FrameIdentifier, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, CompletionHandler<void(PermissionInfo)>&&);
    107107
    108108    RequestAction getRequestAction(const UserMediaPermissionRequestProxy&);
    109109
    110     bool wasGrantedVideoOrAudioAccess(uint64_t, const WebCore::SecurityOrigin& userMediaDocumentOrigin, const WebCore::SecurityOrigin& topLevelDocumentOrigin);
     110    bool wasGrantedVideoOrAudioAccess(WebCore::FrameIdentifier, const WebCore::SecurityOrigin& userMediaDocumentOrigin, const WebCore::SecurityOrigin& topLevelDocumentOrigin);
    111111
    112112    Vector<WebCore::CaptureDevice> computeFilteredDeviceList(bool revealIdsAndLabels, const String& deviceIDHashSalt);
     
    135135
    136136    struct DeniedRequest {
    137         uint64_t mainFrameID;
     137        WebCore::FrameIdentifier mainFrameID;
    138138        Ref<WebCore::SecurityOrigin> userMediaDocumentOrigin;
    139139        Ref<WebCore::SecurityOrigin> topLevelDocumentOrigin;
  • trunk/Source/WebKit/UIProcess/UserMediaPermissionRequestProxy.cpp

    r246093 r248713  
    3131using namespace WebCore;
    3232
    33 UserMediaPermissionRequestProxy::UserMediaPermissionRequestProxy(UserMediaPermissionRequestManagerProxy& manager, uint64_t userMediaID, uint64_t mainFrameID, uint64_t frameID, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, Vector<WebCore::CaptureDevice>&& audioDevices, Vector<WebCore::CaptureDevice>&& videoDevices, WebCore::MediaStreamRequest&& request)
     33UserMediaPermissionRequestProxy::UserMediaPermissionRequestProxy(UserMediaPermissionRequestManagerProxy& manager, uint64_t userMediaID, FrameIdentifier mainFrameID, FrameIdentifier frameID, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, Vector<WebCore::CaptureDevice>&& audioDevices, Vector<WebCore::CaptureDevice>&& videoDevices, WebCore::MediaStreamRequest&& request)
    3434    : m_manager(&manager)
    3535    , m_userMediaID(userMediaID)
  • trunk/Source/WebKit/UIProcess/UserMediaPermissionRequestProxy.h

    r246093 r248713  
    2222#include "APIObject.h"
    2323#include <WebCore/CaptureDevice.h>
     24#include <WebCore/FrameIdentifier.h>
    2425#include <WebCore/MediaStreamRequest.h>
    2526#include <wtf/Vector.h>
     
    3637class UserMediaPermissionRequestProxy : public API::ObjectImpl<API::Object::Type::UserMediaPermissionRequest> {
    3738public:
    38     static Ref<UserMediaPermissionRequestProxy> create(UserMediaPermissionRequestManagerProxy& manager, uint64_t userMediaID, uint64_t mainFrameID, uint64_t frameID, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, Vector<WebCore::CaptureDevice>&& audioDevices, Vector<WebCore::CaptureDevice>&& videoDevices, WebCore::MediaStreamRequest&& request)
     39    static Ref<UserMediaPermissionRequestProxy> create(UserMediaPermissionRequestManagerProxy& manager, uint64_t userMediaID, WebCore::FrameIdentifier mainFrameID, WebCore::FrameIdentifier frameID, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, Vector<WebCore::CaptureDevice>&& audioDevices, Vector<WebCore::CaptureDevice>&& videoDevices, WebCore::MediaStreamRequest&& request)
    3940    {
    4041        return adoptRef(*new UserMediaPermissionRequestProxy(manager, userMediaID, mainFrameID, frameID, WTFMove(userMediaDocumentOrigin), WTFMove(topLevelDocumentOrigin), WTFMove(audioDevices), WTFMove(videoDevices), WTFMove(request)));
     
    6667
    6768    uint64_t userMediaID() const { return m_userMediaID; }
    68     uint64_t mainFrameID() const { return m_mainFrameID; }
    69     uint64_t frameID() const { return m_frameID; }
     69    WebCore::FrameIdentifier mainFrameID() const { return m_mainFrameID; }
     70    WebCore::FrameIdentifier frameID() const { return m_frameID; }
    7071
    7172    WebCore::SecurityOrigin& topLevelDocumentSecurityOrigin() { return m_topLevelDocumentSecurityOrigin.get(); }
     
    8586
    8687private:
    87     UserMediaPermissionRequestProxy(UserMediaPermissionRequestManagerProxy&, uint64_t userMediaID, uint64_t mainFrameID, uint64_t frameID, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, Vector<WebCore::CaptureDevice>&& audioDevices, Vector<WebCore::CaptureDevice>&& videoDevices, WebCore::MediaStreamRequest&&);
     88    UserMediaPermissionRequestProxy(UserMediaPermissionRequestManagerProxy&, uint64_t userMediaID, WebCore::FrameIdentifier mainFrameID, WebCore::FrameIdentifier, Ref<WebCore::SecurityOrigin>&& userMediaDocumentOrigin, Ref<WebCore::SecurityOrigin>&& topLevelDocumentOrigin, Vector<WebCore::CaptureDevice>&& audioDevices, Vector<WebCore::CaptureDevice>&& videoDevices, WebCore::MediaStreamRequest&&);
    8889
    8990    UserMediaPermissionRequestManagerProxy* m_manager;
    9091    uint64_t m_userMediaID;
    91     uint64_t m_mainFrameID;
    92     uint64_t m_frameID;
     92    WebCore::FrameIdentifier m_mainFrameID;
     93    WebCore::FrameIdentifier m_frameID;
    9394    Ref<WebCore::SecurityOrigin> m_userMediaDocumentSecurityOrigin;
    9495    Ref<WebCore::SecurityOrigin> m_topLevelDocumentSecurityOrigin;
  • trunk/Source/WebKit/UIProcess/WebFrameProxy.cpp

    r246872 r248713  
    4646class WebPageProxy;
    4747
    48 WebFrameProxy::WebFrameProxy(WebPageProxy& page, uint64_t frameID)
     48WebFrameProxy::WebFrameProxy(WebPageProxy& page, FrameIdentifier frameID)
    4949    : m_page(makeWeakPtr(page))
    50     , m_isFrameSet(false)
    5150    , m_frameID(frameID)
    5251{
  • trunk/Source/WebKit/UIProcess/WebFrameProxy.h

    r246872 r248713  
    6060class WebFrameProxy : public API::ObjectImpl<API::Object::Type::Frame> {
    6161public:
    62     static Ref<WebFrameProxy> create(WebPageProxy& page, uint64_t frameID)
     62    static Ref<WebFrameProxy> create(WebPageProxy& page, WebCore::FrameIdentifier frameID)
    6363    {
    6464        return adoptRef(*new WebFrameProxy(page, frameID));
     
    6767    virtual ~WebFrameProxy();
    6868
    69     uint64_t frameID() const { return m_frameID; }
     69    WebCore::FrameIdentifier frameID() const { return m_frameID; }
    7070    WebPageProxy* page() const { return m_page.get(); }
    7171
     
    131131
    132132private:
    133     WebFrameProxy(WebPageProxy&, uint64_t frameID);
     133    WebFrameProxy(WebPageProxy&, WebCore::FrameIdentifier);
    134134
    135135    WeakPtr<WebPageProxy> m_page;
     
    139139    String m_MIMEType;
    140140    String m_title;
    141     bool m_isFrameSet;
     141    bool m_isFrameSet { false };
    142142    bool m_containsPluginDocument { false };
    143143    RefPtr<WebCertificateInfo> m_certificateInfo;
    144144    RefPtr<WebFramePolicyListenerProxy> m_activeListener;
    145     uint64_t m_frameID;
     145    WebCore::FrameIdentifier m_frameID;
    146146#if ENABLE(CONTENT_FILTERING)
    147147    WebCore::ContentFilterUnblockHandler m_contentFilterUnblockHandler;
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r248675 r248713  
    744744}
    745745
    746 bool WebPageProxy::suspendCurrentPageIfPossible(API::Navigation& navigation, Optional<uint64_t> mainFrameID, ProcessSwapRequestedByClient processSwapRequestedByClient, ShouldDelayClosingUntilEnteringAcceleratedCompositingMode shouldDelayClosingUntilEnteringAcceleratedCompositingMode)
     746bool WebPageProxy::suspendCurrentPageIfPossible(API::Navigation& navigation, Optional<FrameIdentifier> mainFrameID, ProcessSwapRequestedByClient processSwapRequestedByClient, ShouldDelayClosingUntilEnteringAcceleratedCompositingMode shouldDelayClosingUntilEnteringAcceleratedCompositingMode)
    747747{
    748748    m_lastSuspendedPage = nullptr;
     
    29322932}
    29332933
    2934 void WebPageProxy::commitProvisionalPage(uint64_t frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo& certificateInfo, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, const UserData& userData)
     2934void WebPageProxy::commitProvisionalPage(FrameIdentifier frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo& certificateInfo, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, const UserData& userData)
    29352935{
    29362936    ASSERT(m_provisionalPage);
    29372937    RELEASE_LOG_IF_ALLOWED(Loading, "commitProvisionalPage: previousPID = %i, newPID = %i, pageID = %" PRIu64, m_process->processIdentifier(), m_provisionalPage->process().processIdentifier(), m_pageID.toUInt64());
    29382938
    2939     Optional<uint64_t> mainFrameIDInPreviousProcess = m_mainFrame ? makeOptional(m_mainFrame->frameID()) : WTF::nullopt;
     2939    Optional<FrameIdentifier> mainFrameIDInPreviousProcess = m_mainFrame ? makeOptional(m_mainFrame->frameID()) : WTF::nullopt;
    29402940
    29412941    ASSERT(m_process.ptr() != &m_provisionalPage->process());
     
    36733673}
    36743674
    3675 void WebPageProxy::runJavaScriptInFrame(uint64_t frameID, const String& script, bool forceUserGesture, WTF::Function<void(API::SerializedScriptValue*, bool hadException, const ExceptionDetails&, CallbackBase::Error)>&& callbackFunction)
     3675void WebPageProxy::runJavaScriptInFrame(FrameIdentifier frameID, const String& script, bool forceUserGesture, WTF::Function<void(API::SerializedScriptValue*, bool hadException, const ExceptionDetails&, CallbackBase::Error)>&& callbackFunction)
    36763676{
    36773677    ASSERT(mainFrame()->frameID() != frameID);
     
    38793879}
    38803880
    3881 void WebPageProxy::didCreateMainFrame(uint64_t frameID)
     3881void WebPageProxy::didCreateMainFrame(FrameIdentifier frameID)
    38823882{
    38833883    // The DecidePolicyForNavigationActionSync IPC is synchronous and may therefore get processed before the DidCreateMainFrame one.
     
    38983898}
    38993899
    3900 void WebPageProxy::didCreateSubframe(uint64_t frameID)
     3900void WebPageProxy::didCreateSubframe(FrameIdentifier frameID)
    39013901{
    39023902    PageClientProtector protector(pageClient());
     
    39183918}
    39193919
    3920 void WebPageProxy::didCreateWindow(uint64_t frameID, GlobalWindowIdentifier&& windowIdentifier)
     3920void WebPageProxy::didCreateWindow(FrameIdentifier frameID, GlobalWindowIdentifier&& windowIdentifier)
    39213921{
    39223922}
     
    39823982}
    39833983
    3984 void WebPageProxy::didStartProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, URL&& url, URL&& unreachableURL, const UserData& userData)
     3984void WebPageProxy::didStartProvisionalLoadForFrame(FrameIdentifier frameID, uint64_t navigationID, URL&& url, URL&& unreachableURL, const UserData& userData)
    39853985{
    39863986    didStartProvisionalLoadForFrameShared(m_process.copyRef(), frameID, navigationID, WTFMove(url), WTFMove(unreachableURL), userData);
    39873987}
    39883988
    3989 void WebPageProxy::didStartProvisionalLoadForFrameShared(Ref<WebProcessProxy>&& process, uint64_t frameID, uint64_t navigationID, URL&& url, URL&& unreachableURL, const UserData& userData)
     3989void WebPageProxy::didStartProvisionalLoadForFrameShared(Ref<WebProcessProxy>&& process, FrameIdentifier frameID, uint64_t navigationID, URL&& url, URL&& unreachableURL, const UserData& userData)
    39903990{
    39913991    PageClientProtector protector(pageClient());
     
    40064006        navigation = navigationState().navigation(navigationID);
    40074007
    4008     LOG(Loading, "WebPageProxy %" PRIu64 " in process pid %i didStartProvisionalLoadForFrame to frameID %" PRIu64 ", navigationID %" PRIu64 ", url %s", m_pageID.toUInt64(), process->processIdentifier(), frameID, navigationID, url.string().utf8().data());
    4009     RELEASE_LOG_IF_ALLOWED(Loading, "didStartProvisionalLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, process->processIdentifier(), m_pageID.toUInt64(), frameID);
     4008    LOG(Loading, "WebPageProxy %" PRIu64 " in process pid %i didStartProvisionalLoadForFrame to frameID %" PRIu64 ", navigationID %" PRIu64 ", url %s", m_pageID.toUInt64(), process->processIdentifier(), frameID.toUInt64(), navigationID, url.string().utf8().data());
     4009    RELEASE_LOG_IF_ALLOWED(Loading, "didStartProvisionalLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64());
    40104010
    40114011    auto transaction = m_pageLoadState.transaction();
     
    40324032}
    40334033
    4034 void WebPageProxy::didExplicitOpenForFrame(uint64_t frameID, URL&& url)
     4034void WebPageProxy::didExplicitOpenForFrame(FrameIdentifier frameID, URL&& url)
    40354035{
    40364036    auto* frame = m_process->webFrame(frameID);
     
    40514051}
    40524052
    4053 void WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, ResourceRequest&& request, const UserData& userData)
     4053void WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame(FrameIdentifier frameID, uint64_t navigationID, ResourceRequest&& request, const UserData& userData)
    40544054{
    40554055    didReceiveServerRedirectForProvisionalLoadForFrameShared(m_process.copyRef(), frameID, navigationID, WTFMove(request), userData);
    40564056}
    40574057
    4058 void WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrameShared(Ref<WebProcessProxy>&& process, uint64_t frameID, uint64_t navigationID, ResourceRequest&& request, const UserData& userData)
    4059 {
    4060     LOG(Loading, "WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame to frameID %" PRIu64 ", navigationID %" PRIu64 ", url %s", frameID, navigationID, request.url().string().utf8().data());
    4061     RELEASE_LOG_IF_ALLOWED(Loading, "didReceiveServerRedirectForProvisionalLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, process->processIdentifier(), m_pageID.toUInt64(), frameID);
     4058void WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrameShared(Ref<WebProcessProxy>&& process, FrameIdentifier frameID, uint64_t navigationID, ResourceRequest&& request, const UserData& userData)
     4059{
     4060    LOG(Loading, "WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame to frameID %" PRIu64 ", navigationID %" PRIu64 ", url %s", frameID.toUInt64(), navigationID, request.url().string().utf8().data());
     4061    RELEASE_LOG_IF_ALLOWED(Loading, "didReceiveServerRedirectForProvisionalLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64());
    40624062
    40634063    PageClientProtector protector(pageClient());
     
    40864086}
    40874087
    4088 void WebPageProxy::willPerformClientRedirectForFrame(uint64_t frameID, const String& url, double delay, WebCore::LockBackForwardList)
    4089 {
    4090     RELEASE_LOG_IF_ALLOWED(Loading, "willPerformClientRedirectForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID);
     4088void WebPageProxy::willPerformClientRedirectForFrame(FrameIdentifier frameID, const String& url, double delay, WebCore::LockBackForwardList)
     4089{
     4090    RELEASE_LOG_IF_ALLOWED(Loading, "willPerformClientRedirectForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64());
    40914091
    40924092    PageClientProtector protector(pageClient());
     
    40994099}
    41004100
    4101 void WebPageProxy::didCancelClientRedirectForFrame(uint64_t frameID)
    4102 {
    4103     RELEASE_LOG_IF_ALLOWED(Loading, "didCancelClientRedirectForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID);
     4101void WebPageProxy::didCancelClientRedirectForFrame(FrameIdentifier frameID)
     4102{
     4103    RELEASE_LOG_IF_ALLOWED(Loading, "didCancelClientRedirectForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64());
    41044104
    41054105    PageClientProtector protector(pageClient());
     
    41124112}
    41134113
    4114 void WebPageProxy::didChangeProvisionalURLForFrame(uint64_t frameID, uint64_t navigationID, URL&& url)
     4114void WebPageProxy::didChangeProvisionalURLForFrame(FrameIdentifier frameID, uint64_t navigationID, URL&& url)
    41154115{
    41164116    didChangeProvisionalURLForFrameShared(m_process.copyRef(), frameID, navigationID, WTFMove(url));
    41174117}
    41184118
    4119 void WebPageProxy::didChangeProvisionalURLForFrameShared(Ref<WebProcessProxy>&& process, uint64_t frameID, uint64_t, URL&& url)
     4119void WebPageProxy::didChangeProvisionalURLForFrameShared(Ref<WebProcessProxy>&& process, FrameIdentifier frameID, uint64_t, URL&& url)
    41204120{
    41214121    PageClientProtector protector(pageClient());
     
    41364136}
    41374137
    4138 void WebPageProxy::didFailProvisionalLoadForFrame(uint64_t frameID, const SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const ResourceError& error, WillContinueLoading willContinueLoading, const UserData& userData)
     4138void WebPageProxy::didFailProvisionalLoadForFrame(FrameIdentifier frameID, const SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const ResourceError& error, WillContinueLoading willContinueLoading, const UserData& userData)
    41394139{
    41404140    if (m_provisionalPage && m_provisionalPage->navigationID() == navigationID) {
     
    41464146}
    41474147
    4148 void WebPageProxy::didFailProvisionalLoadForFrameShared(Ref<WebProcessProxy>&& process, uint64_t frameID, const SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const ResourceError& error, WillContinueLoading willContinueLoading, const UserData& userData)
     4148void WebPageProxy::didFailProvisionalLoadForFrameShared(Ref<WebProcessProxy>&& process, FrameIdentifier frameID, const SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const ResourceError& error, WillContinueLoading willContinueLoading, const UserData& userData)
    41494149{
    41504150    LOG(Loading, "(Loading) WebPageProxy %" PRIu64 " in web process pid %i didFailProvisionalLoadForFrame to provisionalURL %s", m_pageID.toUInt64(), process->processIdentifier(), provisionalURL.utf8().data());
    4151     RELEASE_LOG_IF_ALLOWED(Process, "didFailProvisionalLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64 ", domain = %s, code = %d", process->processIdentifier(), m_pageID.toUInt64(), frameID, error.domain().utf8().data(), error.errorCode());
     4151    RELEASE_LOG_IF_ALLOWED(Process, "didFailProvisionalLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64 ", domain = %s, code = %d", process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64(), error.domain().utf8().data(), error.errorCode());
    41524152
    41534153    PageClientProtector protector(pageClient());
     
    42254225#endif
    42264226
    4227 void WebPageProxy::didCommitLoadForFrame(uint64_t frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t opaqueFrameLoadType, const WebCore::CertificateInfo& certificateInfo, bool containsPluginDocument, Optional<HasInsecureContent> hasInsecureContent, const UserData& userData)
     4227void WebPageProxy::didCommitLoadForFrame(FrameIdentifier frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t opaqueFrameLoadType, const WebCore::CertificateInfo& certificateInfo, bool containsPluginDocument, Optional<HasInsecureContent> hasInsecureContent, const UserData& userData)
    42284228{
    42294229    LOG(Loading, "(Loading) WebPageProxy %" PRIu64 " didCommitLoadForFrame in navigation %" PRIu64, m_pageID.toUInt64(), navigationID);
    42304230    LOG(BackForward, "(Back/Forward) After load commit, back/forward list is now:%s", m_backForwardList->loggingString());
    4231     RELEASE_LOG_IF_ALLOWED(Loading, "didCommitLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID);
     4231    RELEASE_LOG_IF_ALLOWED(Loading, "didCommitLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64());
    42324232
    42334233    PageClientProtector protector(pageClient());
     
    43394339}
    43404340
    4341 void WebPageProxy::didFinishDocumentLoadForFrame(uint64_t frameID, uint64_t navigationID, const UserData& userData)
    4342 {
    4343     RELEASE_LOG_IF_ALLOWED(Loading, "didFinishDocumentLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID);
     4341void WebPageProxy::didFinishDocumentLoadForFrame(FrameIdentifier frameID, uint64_t navigationID, const UserData& userData)
     4342{
     4343    RELEASE_LOG_IF_ALLOWED(Loading, "didFinishDocumentLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64());
    43444344
    43454345    PageClientProtector protector(pageClient());
     
    43624362}
    43634363
    4364 void WebPageProxy::didFinishLoadForFrame(uint64_t frameID, uint64_t navigationID, const UserData& userData)
     4364void WebPageProxy::didFinishLoadForFrame(FrameIdentifier frameID, uint64_t navigationID, const UserData& userData)
    43654365{
    43664366    LOG(Loading, "WebPageProxy::didFinishLoadForFrame - WebPageProxy %p with navigationID %" PRIu64 " didFinishLoad", this, navigationID);
    4367     RELEASE_LOG_IF_ALLOWED(Loading, "didFinishLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID);
     4367    RELEASE_LOG_IF_ALLOWED(Loading, "didFinishLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64());
    43684368
    43694369    PageClientProtector protector(pageClient());
     
    44084408}
    44094409
    4410 void WebPageProxy::didFailLoadForFrame(uint64_t frameID, uint64_t navigationID, const ResourceError& error, const UserData& userData)
    4411 {
    4412     RELEASE_LOG_IF_ALLOWED(Loading, "didFailLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64 ", domain = %s, code = %d", m_process->processIdentifier(), m_pageID.toUInt64(), frameID, error.domain().utf8().data(), error.errorCode());
     4410void WebPageProxy::didFailLoadForFrame(FrameIdentifier frameID, uint64_t navigationID, const ResourceError& error, const UserData& userData)
     4411{
     4412    RELEASE_LOG_IF_ALLOWED(Loading, "didFailLoadForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64 ", domain = %s, code = %d", m_process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64(), error.domain().utf8().data(), error.errorCode());
    44134413
    44144414    PageClientProtector protector(pageClient());
     
    44504450}
    44514451
    4452 void WebPageProxy::didSameDocumentNavigationForFrame(uint64_t frameID, uint64_t navigationID, uint32_t opaqueSameDocumentNavigationType, URL&& url, const UserData& userData)
    4453 {
    4454     RELEASE_LOG_IF_ALLOWED(Loading, "didSameDocumentNavigationForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID);
     4452void WebPageProxy::didSameDocumentNavigationForFrame(FrameIdentifier frameID, uint64_t navigationID, uint32_t opaqueSameDocumentNavigationType, URL&& url, const UserData& userData)
     4453{
     4454    RELEASE_LOG_IF_ALLOWED(Loading, "didSameDocumentNavigationForFrame: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, m_process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64());
    44554455
    44564456    PageClientProtector protector(pageClient());
     
    44894489}
    44904490
    4491 void WebPageProxy::didChangeMainDocument(uint64_t frameID)
     4491void WebPageProxy::didChangeMainDocument(FrameIdentifier frameID)
    44924492{
    44934493#if ENABLE(MEDIA_STREAM)
     
    45084508}
    45094509
    4510 void WebPageProxy::didReceiveTitleForFrame(uint64_t frameID, const String& title, const UserData& userData)
     4510void WebPageProxy::didReceiveTitleForFrame(FrameIdentifier frameID, const String& title, const UserData& userData)
    45114511{
    45124512    PageClientProtector protector(pageClient());
     
    45304530}
    45314531
    4532 void WebPageProxy::didFirstLayoutForFrame(uint64_t, const UserData& userData)
    4533 {
    4534 }
    4535 
    4536 void WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, const UserData& userData)
     4532void WebPageProxy::didFirstLayoutForFrame(FrameIdentifier, const UserData& userData)
     4533{
     4534}
     4535
     4536void WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame(FrameIdentifier frameID, const UserData& userData)
    45374537{
    45384538    PageClientProtector protector(pageClient());
     
    45654565}
    45664566
    4567 void WebPageProxy::didDisplayInsecureContentForFrame(uint64_t frameID, const UserData& userData)
     4567void WebPageProxy::didDisplayInsecureContentForFrame(FrameIdentifier frameID, const UserData& userData)
    45684568{
    45694569    PageClientProtector protector(pageClient());
     
    45794579}
    45804580
    4581 void WebPageProxy::didRunInsecureContentForFrame(uint64_t frameID, const UserData& userData)
     4581void WebPageProxy::didRunInsecureContentForFrame(FrameIdentifier frameID, const UserData& userData)
    45824582{
    45834583    PageClientProtector protector(pageClient());
     
    45934593}
    45944594
    4595 void WebPageProxy::didDetectXSSForFrame(uint64_t, const UserData&)
     4595void WebPageProxy::didDetectXSSForFrame(FrameIdentifier, const UserData&)
    45964596{
    45974597}
     
    46024602}
    46034603
    4604 void WebPageProxy::frameDidBecomeFrameSet(uint64_t frameID, bool value)
     4604void WebPageProxy::frameDidBecomeFrameSet(FrameIdentifier frameID, bool value)
    46054605{
    46064606    PageClientProtector protector(pageClient());
     
    46214621#endif
    46224622
    4623 void WebPageProxy::decidePolicyForNavigationActionAsync(uint64_t frameID, WebCore::SecurityOriginData&& frameSecurityOrigin, PolicyCheckIdentifier identifier, uint64_t navigationID,
     4623void WebPageProxy::decidePolicyForNavigationActionAsync(FrameIdentifier frameID, WebCore::SecurityOriginData&& frameSecurityOrigin, PolicyCheckIdentifier identifier, uint64_t navigationID,
    46244624    NavigationActionData&& navigationActionData, FrameInfoData&& frameInfoData, Optional<WebCore::PageIdentifier> originatingPageID, const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&& request,
    46254625    IPC::FormDataReference&& requestBody, WebCore::ResourceResponse&& redirectResponse, const UserData& userData, uint64_t listenerID)
     
    46294629}
    46304630
    4631 void WebPageProxy::decidePolicyForNavigationActionAsyncShared(Ref<WebProcessProxy>&& process, uint64_t frameID, WebCore::SecurityOriginData&& frameSecurityOrigin,
     4631void WebPageProxy::decidePolicyForNavigationActionAsyncShared(Ref<WebProcessProxy>&& process, FrameIdentifier frameID, WebCore::SecurityOriginData&& frameSecurityOrigin,
    46324632    WebCore::PolicyCheckIdentifier identifier, uint64_t navigationID, NavigationActionData&& navigationActionData, FrameInfoData&& frameInfoData, Optional<WebCore::PageIdentifier> originatingPageID,
    46334633    const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&& request, IPC::FormDataReference&& requestBody, WebCore::ResourceResponse&& redirectResponse,
     
    47704770
    47714771    API::Navigation* mainFrameNavigation = frame.isMainFrame() ? navigation.get() : nullptr;
    4772     WebFrameProxy* originatingFrame = process->webFrame(originatingFrameInfoData.frameID);
     4772    WebFrameProxy* originatingFrame = originatingFrameInfoData.frameID ? process->webFrame(*originatingFrameInfoData.frameID) : nullptr;
    47734773
    47744774#if ENABLE(RESOURCE_LOAD_STATISTICS)
     
    48594859#endif
    48604860
    4861 void WebPageProxy::decidePolicyForNavigationActionSync(uint64_t frameID, bool isMainFrame, WebCore::SecurityOriginData&& frameSecurityOrigin, PolicyCheckIdentifier identifier,
     4861void WebPageProxy::decidePolicyForNavigationActionSync(FrameIdentifier frameID, bool isMainFrame, WebCore::SecurityOriginData&& frameSecurityOrigin, PolicyCheckIdentifier identifier,
    48624862    uint64_t navigationID, NavigationActionData&& navigationActionData, FrameInfoData&& frameInfoData, Optional<PageIdentifier> originatingPageID,
    48634863    const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&& request, IPC::FormDataReference&& requestBody, WebCore::ResourceResponse&& redirectResponse,
     
    48774877}
    48784878
    4879 void WebPageProxy::decidePolicyForNavigationActionSyncShared(Ref<WebProcessProxy>&& process, uint64_t frameID, bool isMainFrame, WebCore::SecurityOriginData&& frameSecurityOrigin, PolicyCheckIdentifier identifier,
     4879void WebPageProxy::decidePolicyForNavigationActionSyncShared(Ref<WebProcessProxy>&& process, FrameIdentifier frameID, bool isMainFrame, WebCore::SecurityOriginData&& frameSecurityOrigin, PolicyCheckIdentifier identifier,
    48804880    uint64_t navigationID, NavigationActionData&& navigationActionData, FrameInfoData&& frameInfoData, Optional<PageIdentifier> originatingPageID,
    48814881    const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&& request, IPC::FormDataReference&& requestBody, WebCore::ResourceResponse&& redirectResponse,
     
    48944894}
    48954895
    4896 void WebPageProxy::decidePolicyForNewWindowAction(uint64_t frameID, const SecurityOriginData& frameSecurityOrigin, PolicyCheckIdentifier identifier,
     4896void WebPageProxy::decidePolicyForNewWindowAction(FrameIdentifier frameID, const SecurityOriginData& frameSecurityOrigin, PolicyCheckIdentifier identifier,
    48974897    NavigationActionData&& navigationActionData, ResourceRequest&& request, const String& frameName, uint64_t listenerID, const UserData& userData)
    48984898{
     
    49324932}
    49334933
    4934 void WebPageProxy::decidePolicyForResponse(uint64_t frameID, const SecurityOriginData& frameSecurityOrigin, PolicyCheckIdentifier identifier,
     4934void WebPageProxy::decidePolicyForResponse(FrameIdentifier frameID, const SecurityOriginData& frameSecurityOrigin, PolicyCheckIdentifier identifier,
    49354935    uint64_t navigationID, const ResourceResponse& response, const ResourceRequest& request, bool canShowMIMEType, const String& downloadAttribute, uint64_t listenerID, const UserData& userData)
    49364936{
     
    49384938}
    49394939
    4940 void WebPageProxy::decidePolicyForResponseShared(Ref<WebProcessProxy>&& process, uint64_t frameID, const SecurityOriginData& frameSecurityOrigin, PolicyCheckIdentifier identifier,
     4940void WebPageProxy::decidePolicyForResponseShared(Ref<WebProcessProxy>&& process, FrameIdentifier frameID, const SecurityOriginData& frameSecurityOrigin, PolicyCheckIdentifier identifier,
    49414941    uint64_t navigationID, const ResourceResponse& response, const ResourceRequest& request, bool canShowMIMEType, const String& downloadAttribute, uint64_t listenerID, const UserData& userData)
    49424942{
     
    49724972}
    49734973
    4974 void WebPageProxy::unableToImplementPolicy(uint64_t frameID, const ResourceError& error, const UserData& userData)
     4974void WebPageProxy::unableToImplementPolicy(FrameIdentifier frameID, const ResourceError& error, const UserData& userData)
    49754975{
    49764976    PageClientProtector protector(pageClient());
     
    49864986// FormClient
    49874987
    4988 void WebPageProxy::willSubmitForm(uint64_t frameID, uint64_t sourceFrameID, const Vector<std::pair<String, String>>& textFieldValues, uint64_t listenerID, const UserData& userData)
     4988void WebPageProxy::willSubmitForm(FrameIdentifier frameID, FrameIdentifier sourceFrameID, const Vector<std::pair<String, String>>& textFieldValues, uint64_t listenerID, const UserData& userData)
    49894989{
    49904990    WebFrameProxy* frame = m_process->webFrame(frameID);
     
    50045004}
    50055005   
    5006 void WebPageProxy::didNavigateWithNavigationData(const WebNavigationDataStore& store, uint64_t frameID)
     5006void WebPageProxy::didNavigateWithNavigationData(const WebNavigationDataStore& store, FrameIdentifier frameID)
    50075007{
    50085008    didNavigateWithNavigationDataShared(m_process.copyRef(), store, frameID);
    50095009}
    50105010
    5011 void WebPageProxy::didNavigateWithNavigationDataShared(Ref<WebProcessProxy>&& process, const WebNavigationDataStore& store, uint64_t frameID)
     5011void WebPageProxy::didNavigateWithNavigationDataShared(Ref<WebProcessProxy>&& process, const WebNavigationDataStore& store, FrameIdentifier frameID)
    50125012{
    50135013    RELEASE_LOG_IF_ALLOWED(Loading, "didNavigateWithNavigationDataShared: webPID = %i, pageID = %" PRIu64, process->processIdentifier(), m_pageID.toUInt64());
     
    50245024}
    50255025
    5026 void WebPageProxy::didPerformClientRedirect(const String& sourceURLString, const String& destinationURLString, uint64_t frameID)
     5026void WebPageProxy::didPerformClientRedirect(const String& sourceURLString, const String& destinationURLString, FrameIdentifier frameID)
    50275027{
    50285028    didPerformClientRedirectShared(m_process.copyRef(), sourceURLString, destinationURLString, frameID);
    50295029}
    50305030
    5031 void WebPageProxy::didPerformClientRedirectShared(Ref<WebProcessProxy>&& process, const String& sourceURLString, const String& destinationURLString, uint64_t frameID)
    5032 {
    5033     RELEASE_LOG_IF_ALLOWED(Loading, "didPerformClientRedirectShared: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, process->processIdentifier(), m_pageID.toUInt64(), frameID);
     5031void WebPageProxy::didPerformClientRedirectShared(Ref<WebProcessProxy>&& process, const String& sourceURLString, const String& destinationURLString, FrameIdentifier frameID)
     5032{
     5033    RELEASE_LOG_IF_ALLOWED(Loading, "didPerformClientRedirectShared: webPID = %i, pageID = %" PRIu64 ", frameID = %" PRIu64, process->processIdentifier(), m_pageID.toUInt64(), frameID.toUInt64());
    50345034
    50355035    PageClientProtector protector(pageClient());
     
    50515051}
    50525052
    5053 void WebPageProxy::didPerformServerRedirect(const String& sourceURLString, const String& destinationURLString, uint64_t frameID)
     5053void WebPageProxy::didPerformServerRedirect(const String& sourceURLString, const String& destinationURLString, FrameIdentifier frameID)
    50545054{
    50555055    didPerformServerRedirectShared(m_process.copyRef(), sourceURLString, destinationURLString, frameID);
    50565056}
    50575057
    5058 void WebPageProxy::didPerformServerRedirectShared(Ref<WebProcessProxy>&& process, const String& sourceURLString, const String& destinationURLString, uint64_t frameID)
     5058void WebPageProxy::didPerformServerRedirectShared(Ref<WebProcessProxy>&& process, const String& sourceURLString, const String& destinationURLString, FrameIdentifier frameID)
    50595059{
    50605060    RELEASE_LOG_IF_ALLOWED(Loading, "didPerformServerRedirect: webPID = %i, pageID = %" PRIu64, process->processIdentifier(), m_pageID.toUInt64());
     
    50775077}
    50785078
    5079 void WebPageProxy::didUpdateHistoryTitle(const String& title, const String& url, uint64_t frameID)
     5079void WebPageProxy::didUpdateHistoryTitle(const String& title, const String& url, FrameIdentifier frameID)
    50805080{
    50815081    PageClientProtector protector(pageClient());
     
    51085108void WebPageProxy::createNewPage(const FrameInfoData& originatingFrameInfoData, Optional<PageIdentifier> originatingPageID, ResourceRequest&& request, WindowFeatures&& windowFeatures, NavigationActionData&& navigationActionData, Messages::WebPageProxy::CreateNewPage::DelayedReply&& reply)
    51095109{
    5110     MESSAGE_CHECK(m_process, m_process->webFrame(originatingFrameInfoData.frameID));
    5111     auto originatingFrameInfo = API::FrameInfo::create(originatingFrameInfoData, originatingPageID ? m_process->webPage(*originatingPageID) : nullptr);
     5110    MESSAGE_CHECK(m_process, originatingFrameInfoData.frameID);
     5111    MESSAGE_CHECK(m_process, m_process->webFrame(*originatingFrameInfoData.frameID));
     5112
     5113    auto originatingFrameInfo = API::FrameInfo::create(originatingFrameInfoData, m_process->webPage(*originatingPageID));
    51125114    auto mainFrameURL = m_mainFrame ? m_mainFrame->url() : URL();
    51135115    auto completionHandler = [this, protectedThis = makeRef(*this), mainFrameURL, request, reply = WTFMove(reply)] (RefPtr<WebPageProxy> newPage) mutable {
     
    51795181}
    51805182
    5181 void WebPageProxy::runJavaScriptAlert(uint64_t frameID, const SecurityOriginData& securityOrigin, const String& message, Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply&& reply)
     5183void WebPageProxy::runJavaScriptAlert(FrameIdentifier frameID, const SecurityOriginData& securityOrigin, const String& message, Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply&& reply)
    51825184{
    51835185    WebFrameProxy* frame = m_process->webFrame(frameID);
     
    51985200}
    51995201
    5200 void WebPageProxy::runJavaScriptConfirm(uint64_t frameID, const SecurityOriginData& securityOrigin, const String& message, Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply&& reply)
     5202void WebPageProxy::runJavaScriptConfirm(FrameIdentifier frameID, const SecurityOriginData& securityOrigin, const String& message, Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply&& reply)
    52015203{
    52025204    WebFrameProxy* frame = m_process->webFrame(frameID);
     
    52185220}
    52195221
    5220 void WebPageProxy::runJavaScriptPrompt(uint64_t frameID, const SecurityOriginData& securityOrigin, const String& message, const String& defaultValue, Messages::WebPageProxy::RunJavaScriptPrompt::DelayedReply&& reply)
     5222void WebPageProxy::runJavaScriptPrompt(FrameIdentifier frameID, const SecurityOriginData& securityOrigin, const String& message, const String& defaultValue, Messages::WebPageProxy::RunJavaScriptPrompt::DelayedReply&& reply)
    52215223{
    52225224    WebFrameProxy* frame = m_process->webFrame(frameID);
     
    53775379}
    53785380
    5379 void WebPageProxy::runBeforeUnloadConfirmPanel(uint64_t frameID, const SecurityOriginData& securityOrigin, const String& message, Messages::WebPageProxy::RunBeforeUnloadConfirmPanel::DelayedReply&& reply)
     5381void WebPageProxy::runBeforeUnloadConfirmPanel(FrameIdentifier frameID, const SecurityOriginData& securityOrigin, const String& message, Messages::WebPageProxy::RunBeforeUnloadConfirmPanel::DelayedReply&& reply)
    53805382{
    53815383    WebFrameProxy* frame = m_process->webFrame(frameID);
     
    54175419}
    54185420
    5419 void WebPageProxy::runOpenPanel(uint64_t frameID, const SecurityOriginData& frameSecurityOrigin, const FileChooserSettings& settings)
     5421void WebPageProxy::runOpenPanel(FrameIdentifier frameID, const SecurityOriginData& frameSecurityOrigin, const FileChooserSettings& settings)
    54205422{
    54215423    if (m_openPanelResultListener) {
     
    54565458}
    54575459   
    5458 void WebPageProxy::printFrame(uint64_t frameID, CompletionHandler<void()>&& completionHandler)
     5460void WebPageProxy::printFrame(FrameIdentifier frameID, CompletionHandler<void()>&& completionHandler)
    54595461{
    54605462    ASSERT(!m_isPerformingDOMPrintOperation);
     
    67706772#endif
    67716773
    6772 void WebPageProxy::focusedFrameChanged(uint64_t frameID)
     6774void WebPageProxy::focusedFrameChanged(const Optional<FrameIdentifier>& frameID)
    67736775{
    67746776    if (!frameID) {
     
    67776779    }
    67786780
    6779     WebFrameProxy* frame = m_process->webFrame(frameID);
     6781    WebFrameProxy* frame = m_process->webFrame(*frameID);
    67806782    MESSAGE_CHECK(m_process, frame);
    67816783
     
    67836785}
    67846786
    6785 void WebPageProxy::frameSetLargestFrameChanged(uint64_t frameID)
     6787void WebPageProxy::frameSetLargestFrameChanged(const Optional<FrameIdentifier>& frameID)
    67866788{
    67876789    if (!frameID) {
     
    67906792    }
    67916793
    6792     WebFrameProxy* frame = m_process->webFrame(frameID);
     6794    WebFrameProxy* frame = m_process->webFrame(*frameID);
    67936795    MESSAGE_CHECK(m_process, frame);
    67946796
     
    73467348}
    73477349   
    7348 void WebPageProxy::didReceiveAuthenticationChallengeProxy(uint64_t, Ref<AuthenticationChallengeProxy>&& authenticationChallenge)
     7350void WebPageProxy::didReceiveAuthenticationChallengeProxy(FrameIdentifier, Ref<AuthenticationChallengeProxy>&& authenticationChallenge)
    73497351{
    73507352    m_navigationClient->didReceiveAuthenticationChallenge(*this, authenticationChallenge.get());
    73517353}
    73527354
    7353 void WebPageProxy::exceededDatabaseQuota(uint64_t frameID, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, Messages::WebPageProxy::ExceededDatabaseQuota::DelayedReply&& reply)
     7355void WebPageProxy::exceededDatabaseQuota(FrameIdentifier frameID, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, Messages::WebPageProxy::ExceededDatabaseQuota::DelayedReply&& reply)
    73547356{
    73557357    requestStorageSpace(frameID, originIdentifier, databaseName, displayName, currentQuota, currentOriginUsage, currentDatabaseUsage, expectedUsage, [reply = WTFMove(reply)](auto quota) mutable {
     
    73587360}
    73597361
    7360 void WebPageProxy::requestStorageSpace(uint64_t frameID, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, CompletionHandler<void(uint64_t)>&& completionHandler)
    7361 {
    7362     RELEASE_LOG_IF_ALLOWED(Storage, "requestStorageSpace for frame %" PRIu64 ", current quota %" PRIu64 " current usage %" PRIu64 " expected usage %" PRIu64, frameID, currentQuota, currentDatabaseUsage, expectedUsage);
     7362void WebPageProxy::requestStorageSpace(FrameIdentifier frameID, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, CompletionHandler<void(uint64_t)>&& completionHandler)
     7363{
     7364    RELEASE_LOG_IF_ALLOWED(Storage, "requestStorageSpace for frame %" PRIu64 ", current quota %" PRIu64 " current usage %" PRIu64 " expected usage %" PRIu64, frameID.toUInt64(), currentQuota, currentDatabaseUsage, expectedUsage);
    73637365
    73647366    StorageRequests::singleton().processOrAppend([this, protectedThis = makeRef(*this), pageURL = currentURL(), frameID, originIdentifier, databaseName, displayName, currentQuota, currentOriginUsage, currentDatabaseUsage, expectedUsage, completionHandler = WTFMove(completionHandler)]() mutable {
    73657367        this->makeStorageSpaceRequest(frameID, originIdentifier, databaseName, displayName, currentQuota, currentOriginUsage, currentDatabaseUsage, expectedUsage, [this, protectedThis = WTFMove(protectedThis), frameID, pageURL = WTFMove(pageURL), completionHandler = WTFMove(completionHandler), currentQuota](auto quota) mutable {
    73667368
    7367             RELEASE_LOG_IF_ALLOWED(Storage, "requestStorageSpace response for frame %" PRIu64 ", quota %" PRIu64, frameID, quota);
     7369            RELEASE_LOG_IF_ALLOWED(Storage, "requestStorageSpace response for frame %" PRIu64 ", quota %" PRIu64, frameID.toUInt64(), quota);
    73687370
    73697371            if (quota <= currentQuota && this->currentURL() == pageURL) {
     
    73777379}
    73787380
    7379 void WebPageProxy::makeStorageSpaceRequest(uint64_t frameID, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, CompletionHandler<void(uint64_t)>&& completionHandler)
     7381void WebPageProxy::makeStorageSpaceRequest(FrameIdentifier frameID, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, CompletionHandler<void(uint64_t)>&& completionHandler)
    73807382{
    73817383    if (m_isQuotaIncreaseDenied) {
     
    74037405}
    74047406
    7405 void WebPageProxy::requestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier)
     7407void WebPageProxy::requestGeolocationPermissionForFrame(uint64_t geolocationID, FrameIdentifier frameID, String originIdentifier)
    74067408{
    74077409    WebFrameProxy* frame = m_process->webFrame(frameID);
     
    74477449#endif
    74487450
    7449 void WebPageProxy::requestUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, const WebCore::SecurityOriginData&  userMediaDocumentOriginData, const WebCore::SecurityOriginData& topLevelDocumentOriginData, WebCore::MediaStreamRequest&& request)
     7451void WebPageProxy::requestUserMediaPermissionForFrame(uint64_t userMediaID, FrameIdentifier frameID, const WebCore::SecurityOriginData&  userMediaDocumentOriginData, const WebCore::SecurityOriginData& topLevelDocumentOriginData, WebCore::MediaStreamRequest&& request)
    74507452{
    74517453#if ENABLE(MEDIA_STREAM)
     
    74627464}
    74637465
    7464 void WebPageProxy::enumerateMediaDevicesForFrame(uint64_t userMediaID, uint64_t frameID, const WebCore::SecurityOriginData& userMediaDocumentOriginData, const WebCore::SecurityOriginData& topLevelDocumentOriginData)
     7466void WebPageProxy::enumerateMediaDevicesForFrame(uint64_t userMediaID, FrameIdentifier frameID, const WebCore::SecurityOriginData& userMediaDocumentOriginData, const WebCore::SecurityOriginData& topLevelDocumentOriginData)
    74657467{
    74667468#if ENABLE(MEDIA_STREAM)
     
    74947496
    74957497#if ENABLE(DEVICE_ORIENTATION)
    7496 void WebPageProxy::shouldAllowDeviceOrientationAndMotionAccess(uint64_t frameID, WebCore::SecurityOriginData&& originData, bool mayPrompt, CompletionHandler<void(DeviceOrientationOrMotionPermissionState)>&& completionHandler)
     7498void WebPageProxy::shouldAllowDeviceOrientationAndMotionAccess(FrameIdentifier frameID, WebCore::SecurityOriginData&& originData, bool mayPrompt, CompletionHandler<void(DeviceOrientationOrMotionPermissionState)>&& completionHandler)
    74977499{
    74987500    WebFrameProxy* frame = m_process->webFrame(frameID);
     
    87378739
    87388740#if ENABLE(RESOURCE_LOAD_STATISTICS)
    8739 void WebPageProxy::requestStorageAccessConfirm(const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, uint64_t frameID, CompletionHandler<void(bool)>&& completionHandler)
     8741void WebPageProxy::requestStorageAccessConfirm(const RegistrableDomain& subFrameDomain, const RegistrableDomain& topFrameDomain, FrameIdentifier frameID, CompletionHandler<void(bool)>&& completionHandler)
    87408742{
    87418743    m_uiClient->requestStorageAccessConfirm(*this, m_process->webFrame(frameID), subFrameDomain, topFrameDomain, WTFMove(completionHandler));
  • trunk/Source/WebKit/UIProcess/WebPageProxy.h

    r248522 r248713  
    10191019    void runJavaScriptInMainFrameScriptWorld(const String&, bool, const Optional<String>& worldName, WTF::Function<void(API::SerializedScriptValue*, bool hadException, const WebCore::ExceptionDetails&, CallbackBase::Error)>&& callbackFunction);
    10201020    // For sub frames.
    1021     void runJavaScriptInFrame(uint64_t frameID, const String& script, bool forceUserGesture, WTF::Function<void(API::SerializedScriptValue*, bool hadException, const WebCore::ExceptionDetails&, CallbackBase::Error)>&& callbackFunction);
     1021    void runJavaScriptInFrame(WebCore::FrameIdentifier, const String& script, bool forceUserGesture, WTF::Function<void(API::SerializedScriptValue*, bool hadException, const WebCore::ExceptionDetails&, CallbackBase::Error)>&& callbackFunction);
    10221022    void forceRepaint(RefPtr<VoidCallback>&&);
    10231023
     
    11621162    void drawPagesToPDF(WebFrameProxy*, const PrintInfo&, uint32_t first, uint32_t count, Ref<DataCallback>&&);
    11631163#if PLATFORM(IOS_FAMILY)
    1164     uint32_t computePagesForPrintingAndDrawToPDF(uint64_t frameID, const PrintInfo&, DrawToPDFCallback::CallbackFunction&&);
     1164    uint32_t computePagesForPrintingAndDrawToPDF(WebCore::FrameIdentifier, const PrintInfo&, DrawToPDFCallback::CallbackFunction&&);
    11651165    void drawToPDFCallback(const IPC::DataReference& pdfData, WebKit::CallbackID);
    11661166#endif
     
    12531253    WebCore::IntSize viewportSizeForCSSViewportUnits() const { return m_viewportSizeForCSSViewportUnits.valueOr(WebCore::IntSize()); }
    12541254
    1255     void didReceiveAuthenticationChallengeProxy(uint64_t frameID, Ref<AuthenticationChallengeProxy>&&);
     1255    void didReceiveAuthenticationChallengeProxy(WebCore::FrameIdentifier, Ref<AuthenticationChallengeProxy>&&);
    12561256
    12571257    SpellDocumentTag spellDocumentTag();
     
    14531453
    14541454#if ENABLE(RESOURCE_LOAD_STATISTICS)
    1455     void requestStorageAccessConfirm(const WebCore::RegistrableDomain& subFrameDomain, const WebCore::RegistrableDomain& topFrameDomain, uint64_t frameID, CompletionHandler<void(bool)>&&);
     1455    void requestStorageAccessConfirm(const WebCore::RegistrableDomain& subFrameDomain, const WebCore::RegistrableDomain& topFrameDomain, WebCore::FrameIdentifier, CompletionHandler<void(bool)>&&);
    14561456    void didCommitCrossSiteLoadWithDataTransferFromPrevalentResource();
    14571457#endif
    14581458
    14591459#if ENABLE(DEVICE_ORIENTATION)
    1460     void shouldAllowDeviceOrientationAndMotionAccess(uint64_t frameID, WebCore::SecurityOriginData&&, bool mayPrompt, CompletionHandler<void(WebCore::DeviceOrientationOrMotionPermissionState)>&&);
     1460    void shouldAllowDeviceOrientationAndMotionAccess(WebCore::FrameIdentifier, WebCore::SecurityOriginData&&, bool mayPrompt, CompletionHandler<void(WebCore::DeviceOrientationOrMotionPermissionState)>&&);
    14611461#endif
    14621462
     
    14991499
    15001500    ProvisionalPageProxy* provisionalPageProxy() const { return m_provisionalPage.get(); }
    1501     void commitProvisionalPage(uint64_t frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo&, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, const UserData&);
     1501    void commitProvisionalPage(WebCore::FrameIdentifier, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo&, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, const UserData&);
    15021502
    15031503    // Logic shared between the WebPageProxy and the ProvisionalPageProxy.
    1504     void didStartProvisionalLoadForFrameShared(Ref<WebProcessProxy>&&, uint64_t frameID, uint64_t navigationID, URL&&, URL&& unreachableURL, const UserData&);
    1505     void didFailProvisionalLoadForFrameShared(Ref<WebProcessProxy>&&, uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const WebCore::ResourceError&, WebCore::WillContinueLoading, const UserData&);
    1506     void didReceiveServerRedirectForProvisionalLoadForFrameShared(Ref<WebProcessProxy>&&, uint64_t frameID, uint64_t navigationID, WebCore::ResourceRequest&&, const UserData&);
    1507     void didPerformServerRedirectShared(Ref<WebProcessProxy>&&, const String& sourceURLString, const String& destinationURLString, uint64_t frameID);
    1508     void didPerformClientRedirectShared(Ref<WebProcessProxy>&&, const String& sourceURLString, const String& destinationURLString, uint64_t frameID);
    1509     void didNavigateWithNavigationDataShared(Ref<WebProcessProxy>&&, const WebNavigationDataStore&, uint64_t frameID);
    1510     void didChangeProvisionalURLForFrameShared(Ref<WebProcessProxy>&&, uint64_t frameID, uint64_t navigationID, URL&&);
    1511     void decidePolicyForNavigationActionAsyncShared(Ref<WebProcessProxy>&&, uint64_t frameID, WebCore::SecurityOriginData&& frameSecurityOrigin, WebCore::PolicyCheckIdentifier,
     1504    void didStartProvisionalLoadForFrameShared(Ref<WebProcessProxy>&&, WebCore::FrameIdentifier, uint64_t navigationID, URL&&, URL&& unreachableURL, const UserData&);
     1505    void didFailProvisionalLoadForFrameShared(Ref<WebProcessProxy>&&, WebCore::FrameIdentifier, const WebCore::SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const WebCore::ResourceError&, WebCore::WillContinueLoading, const UserData&);
     1506    void didReceiveServerRedirectForProvisionalLoadForFrameShared(Ref<WebProcessProxy>&&, WebCore::FrameIdentifier, uint64_t navigationID, WebCore::ResourceRequest&&, const UserData&);
     1507    void didPerformServerRedirectShared(Ref<WebProcessProxy>&&, const String& sourceURLString, const String& destinationURLString, WebCore::FrameIdentifier);
     1508    void didPerformClientRedirectShared(Ref<WebProcessProxy>&&, const String& sourceURLString, const String& destinationURLString, WebCore::FrameIdentifier);
     1509    void didNavigateWithNavigationDataShared(Ref<WebProcessProxy>&&, const WebNavigationDataStore&, WebCore::FrameIdentifier);
     1510    void didChangeProvisionalURLForFrameShared(Ref<WebProcessProxy>&&, WebCore::FrameIdentifier, uint64_t navigationID, URL&&);
     1511    void decidePolicyForNavigationActionAsyncShared(Ref<WebProcessProxy>&&, WebCore::FrameIdentifier, WebCore::SecurityOriginData&& frameSecurityOrigin, WebCore::PolicyCheckIdentifier,
    15121512        uint64_t navigationID, NavigationActionData&&, FrameInfoData&&, Optional<WebCore::PageIdentifier> originatingPageID, const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&&,
    15131513        IPC::FormDataReference&& requestBody, WebCore::ResourceResponse&& redirectResponse, const UserData&, uint64_t listenerID);
    1514     void decidePolicyForResponseShared(Ref<WebProcessProxy>&&, uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, WebCore::PolicyCheckIdentifier,
     1514    void decidePolicyForResponseShared(Ref<WebProcessProxy>&&, WebCore::FrameIdentifier, const WebCore::SecurityOriginData& frameSecurityOrigin, WebCore::PolicyCheckIdentifier,
    15151515        uint64_t navigationID, const WebCore::ResourceResponse&, const WebCore::ResourceRequest&, bool canShowMIMEType, const String& downloadAttribute, uint64_t listenerID, const UserData&);
    15161516    void startURLSchemeTaskShared(Ref<WebProcessProxy>&&, URLSchemeTaskParameters&&);
     
    15181518    void loadRequestWithNavigationShared(Ref<WebProcessProxy>&&, API::Navigation&, WebCore::ResourceRequest&&, WebCore::ShouldOpenExternalURLsPolicy, API::Object* userData, WebCore::ShouldTreatAsContinuingLoad, Optional<WebsitePoliciesData>&& = WTF::nullopt);
    15191519    void backForwardGoToItemShared(Ref<WebProcessProxy>&&, const WebCore::BackForwardItemIdentifier&, CompletionHandler<void(SandboxExtension::Handle&&)>&&);
    1520     void decidePolicyForNavigationActionSyncShared(Ref<WebProcessProxy>&&, uint64_t frameID, bool isMainFrame, WebCore::SecurityOriginData&&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, NavigationActionData&&,
     1520    void decidePolicyForNavigationActionSyncShared(Ref<WebProcessProxy>&&, WebCore::FrameIdentifier, bool isMainFrame, WebCore::SecurityOriginData&&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, NavigationActionData&&,
    15211521        FrameInfoData&&, Optional<WebCore::PageIdentifier> originatingPageID, const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&&, IPC::FormDataReference&& requestBody,
    15221522        WebCore::ResourceResponse&& redirectResponse, const UserData&, Messages::WebPageProxy::DecidePolicyForNavigationActionSync::DelayedReply&&);
     
    15251525#endif
    15261526#if ENABLE(CONTENT_FILTERING)
    1527     void contentFilterDidBlockLoadForFrameShared(Ref<WebProcessProxy>&&, const WebCore::ContentFilterUnblockHandler&, uint64_t frameID);
     1527    void contentFilterDidBlockLoadForFrameShared(Ref<WebProcessProxy>&&, const WebCore::ContentFilterUnblockHandler&, WebCore::FrameIdentifier);
    15281528#endif
    15291529
     
    15621562    void didReceiveSyncMessage(IPC::Connection&, IPC::Decoder&, std::unique_ptr<IPC::Encoder>&) override;
    15631563
    1564     void requestStorageSpace(uint64_t frameID, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, WTF::CompletionHandler<void(uint64_t)>&&);
     1564    void requestStorageSpace(WebCore::FrameIdentifier, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, WTF::CompletionHandler<void(uint64_t)>&&);
    15651565
    15661566    URL currentResourceDirectoryURL() const;
     
    15821582    void updateHiddenPageThrottlingAutoIncreases();
    15831583
    1584     bool suspendCurrentPageIfPossible(API::Navigation&, Optional<uint64_t> mainFrameID, ProcessSwapRequestedByClient, ShouldDelayClosingUntilEnteringAcceleratedCompositingMode);
     1584    bool suspendCurrentPageIfPossible(API::Navigation&, Optional<WebCore::FrameIdentifier> mainFrameID, ProcessSwapRequestedByClient, ShouldDelayClosingUntilEnteringAcceleratedCompositingMode);
    15851585
    15861586    enum class ResetStateReason {
     
    16111611#endif
    16121612
    1613     void didCreateMainFrame(uint64_t frameID);
    1614     void didCreateSubframe(uint64_t frameID);
    1615     void didCreateWindow(uint64_t frameID, WebCore::GlobalWindowIdentifier&&);
    1616 
    1617     void didStartProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, URL&&, URL&& unreachableURL, const UserData&);
    1618     void didReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, WebCore::ResourceRequest&&, const UserData&);
    1619     void willPerformClientRedirectForFrame(uint64_t frameID, const String& url, double delay, WebCore::LockBackForwardList);
    1620     void didCancelClientRedirectForFrame(uint64_t frameID);
    1621     void didChangeProvisionalURLForFrame(uint64_t frameID, uint64_t navigationID, URL&&);
    1622     void didFailProvisionalLoadForFrame(uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const WebCore::ResourceError&, WebCore::WillContinueLoading, const UserData&);
    1623     void didCommitLoadForFrame(uint64_t frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo&, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, const UserData&);
    1624     void didFinishDocumentLoadForFrame(uint64_t frameID, uint64_t navigationID, const UserData&);
    1625     void didFinishLoadForFrame(uint64_t frameID, uint64_t navigationID, const UserData&);
    1626     void didFailLoadForFrame(uint64_t frameID, uint64_t navigationID, const WebCore::ResourceError&, const UserData&);
    1627     void didSameDocumentNavigationForFrame(uint64_t frameID, uint64_t navigationID, uint32_t sameDocumentNavigationType, URL&&, const UserData&);
    1628     void didChangeMainDocument(uint64_t frameID);
    1629     void didExplicitOpenForFrame(uint64_t frameID, URL&&);
    1630 
    1631     void didReceiveTitleForFrame(uint64_t frameID, const String&, const UserData&);
    1632     void didFirstLayoutForFrame(uint64_t frameID, const UserData&);
    1633     void didFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, const UserData&);
    1634     void didDisplayInsecureContentForFrame(uint64_t frameID, const UserData&);
    1635     void didRunInsecureContentForFrame(uint64_t frameID, const UserData&);
    1636     void didDetectXSSForFrame(uint64_t frameID, const UserData&);
     1613    void didCreateMainFrame(WebCore::FrameIdentifier);
     1614    void didCreateSubframe(WebCore::FrameIdentifier);
     1615    void didCreateWindow(WebCore::FrameIdentifier, WebCore::GlobalWindowIdentifier&&);
     1616
     1617    void didStartProvisionalLoadForFrame(WebCore::FrameIdentifier, uint64_t navigationID, URL&&, URL&& unreachableURL, const UserData&);
     1618    void didReceiveServerRedirectForProvisionalLoadForFrame(WebCore::FrameIdentifier, uint64_t navigationID, WebCore::ResourceRequest&&, const UserData&);
     1619    void willPerformClientRedirectForFrame(WebCore::FrameIdentifier, const String& url, double delay, WebCore::LockBackForwardList);
     1620    void didCancelClientRedirectForFrame(WebCore::FrameIdentifier);
     1621    void didChangeProvisionalURLForFrame(WebCore::FrameIdentifier, uint64_t navigationID, URL&&);
     1622    void didFailProvisionalLoadForFrame(WebCore::FrameIdentifier, const WebCore::SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const WebCore::ResourceError&, WebCore::WillContinueLoading, const UserData&);
     1623    void didCommitLoadForFrame(WebCore::FrameIdentifier, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo&, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, const UserData&);
     1624    void didFinishDocumentLoadForFrame(WebCore::FrameIdentifier, uint64_t navigationID, const UserData&);
     1625    void didFinishLoadForFrame(WebCore::FrameIdentifier, uint64_t navigationID, const UserData&);
     1626    void didFailLoadForFrame(WebCore::FrameIdentifier, uint64_t navigationID, const WebCore::ResourceError&, const UserData&);
     1627    void didSameDocumentNavigationForFrame(WebCore::FrameIdentifier, uint64_t navigationID, uint32_t sameDocumentNavigationType, URL&&, const UserData&);
     1628    void didChangeMainDocument(WebCore::FrameIdentifier);
     1629    void didExplicitOpenForFrame(WebCore::FrameIdentifier, URL&&);
     1630
     1631    void didReceiveTitleForFrame(WebCore::FrameIdentifier, const String&, const UserData&);
     1632    void didFirstLayoutForFrame(WebCore::FrameIdentifier, const UserData&);
     1633    void didFirstVisuallyNonEmptyLayoutForFrame(WebCore::FrameIdentifier, const UserData&);
     1634    void didDisplayInsecureContentForFrame(WebCore::FrameIdentifier, const UserData&);
     1635    void didRunInsecureContentForFrame(WebCore::FrameIdentifier, const UserData&);
     1636    void didDetectXSSForFrame(WebCore::FrameIdentifier, const UserData&);
    16371637    void mainFramePluginHandlesPageScaleGestureDidChange(bool);
    1638     void frameDidBecomeFrameSet(uint64_t frameID, bool);
     1638    void frameDidBecomeFrameSet(WebCore::FrameIdentifier, bool);
    16391639    void didStartProgress();
    16401640    void didChangeProgress(double);
     
    16491649        FrameInfoData&&, Optional<WebCore::PageIdentifier> originatingPageID, const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&&, IPC::FormDataReference&& requestBody,
    16501650        WebCore::ResourceResponse&& redirectResponse, const UserData&, Ref<PolicyDecisionSender>&&);
    1651     void decidePolicyForNavigationActionAsync(uint64_t frameID, WebCore::SecurityOriginData&&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, NavigationActionData&&,
     1651    void decidePolicyForNavigationActionAsync(WebCore::FrameIdentifier, WebCore::SecurityOriginData&&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, NavigationActionData&&,
    16521652        FrameInfoData&&, Optional<WebCore::PageIdentifier> originatingPageID, const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&&, IPC::FormDataReference&& requestBody,
    16531653        WebCore::ResourceResponse&& redirectResponse, const UserData&, uint64_t listenerID);
    1654     void decidePolicyForNavigationActionSync(uint64_t frameID, bool isMainFrame, WebCore::SecurityOriginData&&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, NavigationActionData&&,
     1654    void decidePolicyForNavigationActionSync(WebCore::FrameIdentifier, bool isMainFrame, WebCore::SecurityOriginData&&, WebCore::PolicyCheckIdentifier, uint64_t navigationID, NavigationActionData&&,
    16551655        FrameInfoData&&, Optional<WebCore::PageIdentifier> originatingPageID, const WebCore::ResourceRequest& originalRequest, WebCore::ResourceRequest&&, IPC::FormDataReference&& requestBody,
    16561656        WebCore::ResourceResponse&& redirectResponse, const UserData&, Messages::WebPageProxy::DecidePolicyForNavigationActionSync::DelayedReply&&);
    1657     void decidePolicyForNewWindowAction(uint64_t frameID, const WebCore::SecurityOriginData&, WebCore::PolicyCheckIdentifier, NavigationActionData&&,
     1657    void decidePolicyForNewWindowAction(WebCore::FrameIdentifier, const WebCore::SecurityOriginData&, WebCore::PolicyCheckIdentifier, NavigationActionData&&,
    16581658        WebCore::ResourceRequest&&, const String& frameName, uint64_t listenerID, const UserData&);
    1659     void decidePolicyForResponse(uint64_t frameID, const WebCore::SecurityOriginData&, WebCore::PolicyCheckIdentifier, uint64_t navigationID,
     1659    void decidePolicyForResponse(WebCore::FrameIdentifier, const WebCore::SecurityOriginData&, WebCore::PolicyCheckIdentifier, uint64_t navigationID,
    16601660        const WebCore::ResourceResponse&, const WebCore::ResourceRequest&, bool canShowMIMEType, const String& downloadAttribute, uint64_t listenerID, const UserData&);
    1661     void unableToImplementPolicy(uint64_t frameID, const WebCore::ResourceError&, const UserData&);
     1661    void unableToImplementPolicy(WebCore::FrameIdentifier, const WebCore::ResourceError&, const UserData&);
    16621662    void beginSafeBrowsingCheck(const URL&, bool, WebFramePolicyListenerProxy&);
    16631663
    16641664    WebContentMode effectiveContentModeAfterAdjustingPolicies(API::WebsitePolicies&, const WebCore::ResourceRequest&);
    16651665
    1666     void willSubmitForm(uint64_t frameID, uint64_t sourceFrameID, const Vector<std::pair<String, String>>& textFieldValues, uint64_t listenerID, const UserData&);
     1666    void willSubmitForm(WebCore::FrameIdentifier, WebCore::FrameIdentifier sourceFrameID, const Vector<std::pair<String, String>>& textFieldValues, uint64_t listenerID, const UserData&);
    16671667
    16681668    void contentRuleListNotification(URL&&, WebCore::ContentRuleListResults&&);
    16691669
    16701670    // History client
    1671     void didNavigateWithNavigationData(const WebNavigationDataStore&, uint64_t frameID);
    1672     void didPerformClientRedirect(const String& sourceURLString, const String& destinationURLString, uint64_t frameID);
    1673     void didPerformServerRedirect(const String& sourceURLString, const String& destinationURLString, uint64_t frameID);
    1674     void didUpdateHistoryTitle(const String& title, const String& url, uint64_t frameID);
     1671    void didNavigateWithNavigationData(const WebNavigationDataStore&, WebCore::FrameIdentifier);
     1672    void didPerformClientRedirect(const String& sourceURLString, const String& destinationURLString, WebCore::FrameIdentifier);
     1673    void didPerformServerRedirect(const String& sourceURLString, const String& destinationURLString, WebCore::FrameIdentifier);
     1674    void didUpdateHistoryTitle(const String& title, const String& url, WebCore::FrameIdentifier);
    16751675
    16761676    // UI client
    16771677    void createNewPage(const FrameInfoData&, Optional<WebCore::PageIdentifier> originatingPageID, WebCore::ResourceRequest&&, WebCore::WindowFeatures&&, NavigationActionData&&, Messages::WebPageProxy::CreateNewPage::DelayedReply&&);
    16781678    void showPage();
    1679     void runJavaScriptAlert(uint64_t frameID, const WebCore::SecurityOriginData&, const String&, Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply&&);
    1680     void runJavaScriptConfirm(uint64_t frameID, const WebCore::SecurityOriginData&, const String&, Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply&&);
    1681     void runJavaScriptPrompt(uint64_t frameID, const WebCore::SecurityOriginData&, const String&, const String&, Messages::WebPageProxy::RunJavaScriptPrompt::DelayedReply&&);
     1679    void runJavaScriptAlert(WebCore::FrameIdentifier, const WebCore::SecurityOriginData&, const String&, Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply&&);
     1680    void runJavaScriptConfirm(WebCore::FrameIdentifier, const WebCore::SecurityOriginData&, const String&, Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply&&);
     1681    void runJavaScriptPrompt(WebCore::FrameIdentifier, const WebCore::SecurityOriginData&, const String&, const String&, Messages::WebPageProxy::RunJavaScriptPrompt::DelayedReply&&);
    16821682    void setStatusText(const String&);
    16831683    void mouseDidMoveOverElement(WebHitTestResultData&&, uint32_t modifiers, UserData&&);
     
    17021702    void accessibilityScreenToRootView(const WebCore::IntPoint& screenPoint, CompletionHandler<void(WebCore::IntPoint)>&&);
    17031703    void rootViewToAccessibilityScreen(const WebCore::IntRect& viewRect, CompletionHandler<void(WebCore::IntRect)>&&);
    1704     void runBeforeUnloadConfirmPanel(uint64_t frameID, const WebCore::SecurityOriginData&, const String& message, Messages::WebPageProxy::RunBeforeUnloadConfirmPanel::DelayedReply&&);
     1704    void runBeforeUnloadConfirmPanel(WebCore::FrameIdentifier, const WebCore::SecurityOriginData&, const String& message, Messages::WebPageProxy::RunBeforeUnloadConfirmPanel::DelayedReply&&);
    17051705    void didChangeViewportProperties(const WebCore::ViewportAttributes&);
    17061706    void pageDidScroll();
    1707     void runOpenPanel(uint64_t frameID, const WebCore::SecurityOriginData&, const WebCore::FileChooserSettings&);
     1707    void runOpenPanel(WebCore::FrameIdentifier, const WebCore::SecurityOriginData&, const WebCore::FileChooserSettings&);
    17081708    void showShareSheet(const WebCore::ShareDataWithParsedURL&, ShareSheetCallbackID);
    1709     void printFrame(uint64_t frameID, CompletionHandler<void()>&&);
    1710     void exceededDatabaseQuota(uint64_t frameID, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, Messages::WebPageProxy::ExceededDatabaseQuota::DelayedReply&&);
     1709    void printFrame(WebCore::FrameIdentifier, CompletionHandler<void()>&&);
     1710    void exceededDatabaseQuota(WebCore::FrameIdentifier, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, Messages::WebPageProxy::ExceededDatabaseQuota::DelayedReply&&);
    17111711    void reachedApplicationCacheOriginQuota(const String& originIdentifier, uint64_t currentQuota, uint64_t totalBytesNeeded, Messages::WebPageProxy::ReachedApplicationCacheOriginQuota::DelayedReply&&);
    1712     void requestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier);
     1712    void requestGeolocationPermissionForFrame(uint64_t geolocationID, WebCore::FrameIdentifier, String originIdentifier);
    17131713
    17141714#if ENABLE(MEDIA_STREAM)
    17151715    UserMediaPermissionRequestManagerProxy& userMediaPermissionRequestManager();
    17161716#endif
    1717     void requestUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, const WebCore::SecurityOriginData& userMediaDocumentOriginIdentifier, const WebCore::SecurityOriginData& topLevelDocumentOriginIdentifier, WebCore::MediaStreamRequest&&);
    1718     void enumerateMediaDevicesForFrame(uint64_t userMediaID, uint64_t frameID, const WebCore::SecurityOriginData& userMediaDocumentOriginData, const WebCore::SecurityOriginData& topLevelDocumentOriginData);
     1717    void requestUserMediaPermissionForFrame(uint64_t userMediaID, WebCore::FrameIdentifier, const WebCore::SecurityOriginData& userMediaDocumentOriginIdentifier, const WebCore::SecurityOriginData& topLevelDocumentOriginIdentifier, WebCore::MediaStreamRequest&&);
     1718    void enumerateMediaDevicesForFrame(uint64_t userMediaID, WebCore::FrameIdentifier, const WebCore::SecurityOriginData& userMediaDocumentOriginData, const WebCore::SecurityOriginData& topLevelDocumentOriginData);
    17191719    void beginMonitoringCaptureDevices();
    17201720
     
    18961896#endif
    18971897
    1898     void focusedFrameChanged(uint64_t frameID);
    1899     void frameSetLargestFrameChanged(uint64_t frameID);
     1898    void focusedFrameChanged(const Optional<WebCore::FrameIdentifier>&);
     1899    void frameSetLargestFrameChanged(const Optional<WebCore::FrameIdentifier>&);
    19001900
    19011901    void didFinishLoadingDataForCustomContentProvider(const String& suggestedFilename, const IPC::DataReference&);
     
    19981998
    19991999#if ENABLE(CONTENT_FILTERING)
    2000     void contentFilterDidBlockLoadForFrame(const WebCore::ContentFilterUnblockHandler&, uint64_t frameID);
     2000    void contentFilterDidBlockLoadForFrame(const WebCore::ContentFilterUnblockHandler&, WebCore::FrameIdentifier);
    20012001#endif
    20022002
     
    21112111#endif
    21122112
    2113     void makeStorageSpaceRequest(uint64_t frameID, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, CompletionHandler<void(uint64_t)>&&);
     2113    void makeStorageSpaceRequest(WebCore::FrameIdentifier, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, CompletionHandler<void(uint64_t)>&&);
    21142114
    21152115    WeakPtr<PageClient> m_pageClient;
  • trunk/Source/WebKit/UIProcess/WebPageProxy.messages.in

    r247755 r248713  
    2626    ShowPage()
    2727    ClosePage(bool stopResponsivenessTimer)
    28     RunJavaScriptAlert(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> () Synchronous
    29     RunJavaScriptConfirm(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> (bool result) Synchronous
    30     RunJavaScriptPrompt(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message, String defaultValue) -> (String result) Synchronous
     28    RunJavaScriptAlert(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> () Synchronous
     29    RunJavaScriptConfirm(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> (bool result) Synchronous
     30    RunJavaScriptPrompt(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message, String defaultValue) -> (String result) Synchronous
    3131    MouseDidMoveOverElement(struct WebKit::WebHitTestResultData hitTestResultData, uint32_t modifiers, WebKit::UserData userData)
    3232
     
    4848    SetFocus(bool focused)
    4949    TakeFocus(uint32_t direction)
    50     FocusedFrameChanged(uint64_t frameID)
    51     FrameSetLargestFrameChanged(uint64_t frameID)
     50    FocusedFrameChanged(Optional<WebCore::FrameIdentifier> frameID)
     51    FrameSetLargestFrameChanged(Optional<WebCore::FrameIdentifier> frameID)
    5252    SetRenderTreeSize(uint64_t treeSize)
    5353    SetToolbarsAreVisible(bool toolbarsAreVisible)
     
    7070#endif
    7171
    72     RunBeforeUnloadConfirmPanel(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> (bool shouldClose) Synchronous
     72    RunBeforeUnloadConfirmPanel(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> (bool shouldClose) Synchronous
    7373    PageDidScroll()
    74     RunOpenPanel(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, struct WebCore::FileChooserSettings parameters)
     74    RunOpenPanel(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, struct WebCore::FileChooserSettings parameters)
    7575    ShowShareSheet(struct WebCore::ShareDataWithParsedURL shareData, uint64_t callbackID)
    76     PrintFrame(uint64_t frameID) -> () Synchronous
     76    PrintFrame(WebCore::FrameIdentifier frameID) -> () Synchronous
    7777    RunModal()
    7878    NotifyScrollerThumbIsVisibleInRect(WebCore::IntRect scrollerThumb)
     
    104104
    105105    # Policy messages
    106     DecidePolicyForResponse(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, uint64_t navigationID, WebCore::ResourceResponse response, WebCore::ResourceRequest request, bool canShowMIMEType, String downloadAttribute, uint64_t listenerID, WebKit::UserData userData)
    107     DecidePolicyForNavigationActionAsync(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, uint64_t navigationID, struct WebKit::NavigationActionData navigationActionData, struct WebKit::FrameInfoData originatingFrameInfoData, Optional<WebCore::PageIdentifier> originatingPageID, WebCore::ResourceRequest originalRequest, WebCore::ResourceRequest request, IPC::FormDataReference requestBody, WebCore::ResourceResponse redirectResponse, WebKit::UserData userData, uint64_t listenerID)
    108     DecidePolicyForNavigationActionSync(uint64_t frameID, bool isMainFrame, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, uint64_t navigationID, struct WebKit::NavigationActionData navigationActionData, struct WebKit::FrameInfoData originatingFrameInfoData, Optional<WebCore::PageIdentifier> originatingPageID, WebCore::ResourceRequest originalRequest, WebCore::ResourceRequest request, IPC::FormDataReference requestBody, WebCore::ResourceResponse redirectResponse, WebKit::UserData userData) -> (WebCore::PolicyCheckIdentifier policyCheckIdentifier, enum:uint8_t WebCore::PolicyAction policyAction, uint64_t newNavigationID, WebKit::DownloadID downloadID, Optional<WebKit::WebsitePoliciesData> websitePolicies) Synchronous
    109     DecidePolicyForNewWindowAction(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, struct WebKit::NavigationActionData navigationActionData, WebCore::ResourceRequest request, String frameName, uint64_t listenerID, WebKit::UserData userData)
    110     UnableToImplementPolicy(uint64_t frameID, WebCore::ResourceError error, WebKit::UserData userData)
     106    DecidePolicyForResponse(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, uint64_t navigationID, WebCore::ResourceResponse response, WebCore::ResourceRequest request, bool canShowMIMEType, String downloadAttribute, uint64_t listenerID, WebKit::UserData userData)
     107    DecidePolicyForNavigationActionAsync(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, uint64_t navigationID, struct WebKit::NavigationActionData navigationActionData, struct WebKit::FrameInfoData originatingFrameInfoData, Optional<WebCore::PageIdentifier> originatingPageID, WebCore::ResourceRequest originalRequest, WebCore::ResourceRequest request, IPC::FormDataReference requestBody, WebCore::ResourceResponse redirectResponse, WebKit::UserData userData, uint64_t listenerID)
     108    DecidePolicyForNavigationActionSync(WebCore::FrameIdentifier frameID, bool isMainFrame, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, uint64_t navigationID, struct WebKit::NavigationActionData navigationActionData, struct WebKit::FrameInfoData originatingFrameInfoData, Optional<WebCore::PageIdentifier> originatingPageID, WebCore::ResourceRequest originalRequest, WebCore::ResourceRequest request, IPC::FormDataReference requestBody, WebCore::ResourceResponse redirectResponse, WebKit::UserData userData) -> (WebCore::PolicyCheckIdentifier policyCheckIdentifier, enum:uint8_t WebCore::PolicyAction policyAction, uint64_t newNavigationID, WebKit::DownloadID downloadID, Optional<WebKit::WebsitePoliciesData> websitePolicies) Synchronous
     109    DecidePolicyForNewWindowAction(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, struct WebKit::NavigationActionData navigationActionData, WebCore::ResourceRequest request, String frameName, uint64_t listenerID, WebKit::UserData userData)
     110    UnableToImplementPolicy(WebCore::FrameIdentifier frameID, WebCore::ResourceError error, WebKit::UserData userData)
    111111
    112112    # Progress messages
     
    118118
    119119    # Frame lifetime messages
    120     DidCreateMainFrame(uint64_t frameID)
    121     DidCreateSubframe(uint64_t frameID)
    122 
    123     DidCreateWindow(uint64_t frameID, struct WebCore::GlobalWindowIdentifier windowIdentifier)
     120    DidCreateMainFrame(WebCore::FrameIdentifier frameID)
     121    DidCreateSubframe(WebCore::FrameIdentifier frameID)
     122
     123    DidCreateWindow(WebCore::FrameIdentifier frameID, struct WebCore::GlobalWindowIdentifier windowIdentifier)
    124124
    125125    # Frame load messages
    126     DidStartProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, URL url, URL unreachableURL, WebKit::UserData userData)
    127     DidReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, WebCore::ResourceRequest request, WebKit::UserData userData)
    128     WillPerformClientRedirectForFrame(uint64_t frameID, String url, double delay, enum:bool WebCore::LockBackForwardList lockBackForwardList)
    129     DidCancelClientRedirectForFrame(uint64_t frameID)
    130     DidChangeProvisionalURLForFrame(uint64_t frameID, uint64_t navigationID, URL url)
    131     DidFailProvisionalLoadForFrame(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, uint64_t navigationID, String provisionalURL, WebCore::ResourceError error, enum:bool WebCore::WillContinueLoading willContinueLoading, WebKit::UserData userData)
    132     DidCommitLoadForFrame(uint64_t frameID, uint64_t navigationID, String mimeType, bool hasCustomContentProvider, uint32_t loadType, WebCore::CertificateInfo certificateInfo, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, WebKit::UserData userData)
    133     DidFailLoadForFrame(uint64_t frameID, uint64_t navigationID, WebCore::ResourceError error, WebKit::UserData userData)
    134     DidFinishDocumentLoadForFrame(uint64_t frameID, uint64_t navigationID, WebKit::UserData userData)
    135     DidFinishLoadForFrame(uint64_t frameID, uint64_t navigationID, WebKit::UserData userData)
    136     DidFirstLayoutForFrame(uint64_t frameID, WebKit::UserData userData)
    137     DidFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, WebKit::UserData userData)
     126    DidStartProvisionalLoadForFrame(WebCore::FrameIdentifier frameID, uint64_t navigationID, URL url, URL unreachableURL, WebKit::UserData userData)
     127    DidReceiveServerRedirectForProvisionalLoadForFrame(WebCore::FrameIdentifier frameID, uint64_t navigationID, WebCore::ResourceRequest request, WebKit::UserData userData)
     128    WillPerformClientRedirectForFrame(WebCore::FrameIdentifier frameID, String url, double delay, enum:bool WebCore::LockBackForwardList lockBackForwardList)
     129    DidCancelClientRedirectForFrame(WebCore::FrameIdentifier frameID)
     130    DidChangeProvisionalURLForFrame(WebCore::FrameIdentifier frameID, uint64_t navigationID, URL url)
     131    DidFailProvisionalLoadForFrame(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, uint64_t navigationID, String provisionalURL, WebCore::ResourceError error, enum:bool WebCore::WillContinueLoading willContinueLoading, WebKit::UserData userData)
     132    DidCommitLoadForFrame(WebCore::FrameIdentifier frameID, uint64_t navigationID, String mimeType, bool hasCustomContentProvider, uint32_t loadType, WebCore::CertificateInfo certificateInfo, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, WebKit::UserData userData)
     133    DidFailLoadForFrame(WebCore::FrameIdentifier frameID, uint64_t navigationID, WebCore::ResourceError error, WebKit::UserData userData)
     134    DidFinishDocumentLoadForFrame(WebCore::FrameIdentifier frameID, uint64_t navigationID, WebKit::UserData userData)
     135    DidFinishLoadForFrame(WebCore::FrameIdentifier frameID, uint64_t navigationID, WebKit::UserData userData)
     136    DidFirstLayoutForFrame(WebCore::FrameIdentifier frameID, WebKit::UserData userData)
     137    DidFirstVisuallyNonEmptyLayoutForFrame(WebCore::FrameIdentifier frameID, WebKit::UserData userData)
    138138    DidReachLayoutMilestone(OptionSet<WebCore::LayoutMilestone> layoutMilestones)
    139     DidReceiveTitleForFrame(uint64_t frameID, String title, WebKit::UserData userData)
    140     DidDisplayInsecureContentForFrame(uint64_t frameID, WebKit::UserData userData)
    141     DidRunInsecureContentForFrame(uint64_t frameID, WebKit::UserData userData)
    142     DidDetectXSSForFrame(uint64_t frameID, WebKit::UserData userData)
    143     DidSameDocumentNavigationForFrame(uint64_t frameID, uint64_t navigationID, uint32_t type, URL url, WebKit::UserData userData)
    144     DidChangeMainDocument(uint64_t frameID)
    145     DidExplicitOpenForFrame(uint64_t frameID, URL url)
     139    DidReceiveTitleForFrame(WebCore::FrameIdentifier frameID, String title, WebKit::UserData userData)
     140    DidDisplayInsecureContentForFrame(WebCore::FrameIdentifier frameID, WebKit::UserData userData)
     141    DidRunInsecureContentForFrame(WebCore::FrameIdentifier frameID, WebKit::UserData userData)
     142    DidDetectXSSForFrame(WebCore::FrameIdentifier frameID, WebKit::UserData userData)
     143    DidSameDocumentNavigationForFrame(WebCore::FrameIdentifier frameID, uint64_t navigationID, uint32_t type, URL url, WebKit::UserData userData)
     144    DidChangeMainDocument(WebCore::FrameIdentifier frameID)
     145    DidExplicitOpenForFrame(WebCore::FrameIdentifier frameID, URL url)
    146146    DidDestroyNavigation(uint64_t navigationID)
    147147
     
    150150    MainFramePluginHandlesPageScaleGestureDidChange(bool mainFramePluginHandlesPageScaleGesture)
    151151
    152     FrameDidBecomeFrameSet(uint64_t frameID, bool value)
     152    FrameDidBecomeFrameSet(WebCore::FrameIdentifier frameID, bool value)
    153153
    154154    # History client messages.
    155     DidNavigateWithNavigationData(struct WebKit::WebNavigationDataStore store, uint64_t frameID)
    156     DidPerformClientRedirect(String sourceURLString, String destinationURLString, uint64_t frameID)
    157     DidPerformServerRedirect(String sourceURLString, String destinationURLString, uint64_t frameID)
    158     DidUpdateHistoryTitle(String title, String url, uint64_t frameID)
     155    DidNavigateWithNavigationData(struct WebKit::WebNavigationDataStore store, WebCore::FrameIdentifier frameID)
     156    DidPerformClientRedirect(String sourceURLString, String destinationURLString, WebCore::FrameIdentifier frameID)
     157    DidPerformServerRedirect(String sourceURLString, String destinationURLString, WebCore::FrameIdentifier frameID)
     158    DidUpdateHistoryTitle(String title, String url, WebCore::FrameIdentifier frameID)
    159159
    160160    # Custom representations
     
    162162
    163163    # Forms messages
    164     WillSubmitForm(uint64_t frameID, uint64_t sourceFrameID, Vector<std::pair<String, String>> textFieldValues, uint64_t listenerID, WebKit::UserData userData)
     164    WillSubmitForm(WebCore::FrameIdentifier frameID, WebCore::FrameIdentifier sourceFrameID, Vector<std::pair<String, String>> textFieldValues, uint64_t listenerID, WebKit::UserData userData)
    165165
    166166    # Callback messages
     
    276276
    277277    # Database messages
    278     ExceededDatabaseQuota(uint64_t frameID, String originIdentifier, String databaseName, String databaseDisplayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage) -> (uint64_t newQuota) Synchronous
     278    ExceededDatabaseQuota(WebCore::FrameIdentifier frameID, String originIdentifier, String databaseName, String databaseDisplayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage) -> (uint64_t newQuota) Synchronous
    279279
    280280    # Application cache messages
     
    282282
    283283    # Geolocation messages
    284     RequestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier)
     284    RequestGeolocationPermissionForFrame(uint64_t geolocationID, WebCore::FrameIdentifier frameID, String originIdentifier)
    285285   
    286286#if ENABLE(MEDIA_STREAM)
    287287    # MediaSteam messages
    288     RequestUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, struct WebCore::SecurityOriginData userMediaDocumentOriginIdentifier, struct WebCore::SecurityOriginData topLevelDocumentOriginIdentifier, struct WebCore::MediaStreamRequest request)
    289     EnumerateMediaDevicesForFrame(uint64_t userMediaID, uint64_t frameID, struct WebCore::SecurityOriginData userMediaDocumentOriginIdentifier, struct WebCore::SecurityOriginData topLevelDocumentOriginIdentifier)
     288    RequestUserMediaPermissionForFrame(uint64_t userMediaID, WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData userMediaDocumentOriginIdentifier, struct WebCore::SecurityOriginData topLevelDocumentOriginIdentifier, struct WebCore::MediaStreamRequest request)
     289    EnumerateMediaDevicesForFrame(uint64_t userMediaID, WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData userMediaDocumentOriginIdentifier, struct WebCore::SecurityOriginData topLevelDocumentOriginIdentifier)
    290290    BeginMonitoringCaptureDevices()
    291291#endif
     
    474474
    475475#if ENABLE(CONTENT_FILTERING)
    476     ContentFilterDidBlockLoadForFrame(WebCore::ContentFilterUnblockHandler unblockHandler, uint64_t frameID)
     476    ContentFilterDidBlockLoadForFrame(WebCore::ContentFilterUnblockHandler unblockHandler, WebCore::FrameIdentifier frameID)
    477477#endif
    478478
     
    540540
    541541#if ENABLE(DEVICE_ORIENTATION)
    542     ShouldAllowDeviceOrientationAndMotionAccess(uint64_t frameID, struct WebCore::SecurityOriginData origin, bool mayPrompt) -> (enum:uint8_t WebCore::DeviceOrientationOrMotionPermissionState permissionState) Async
     542    ShouldAllowDeviceOrientationAndMotionAccess(WebCore::FrameIdentifier frameID, struct WebCore::SecurityOriginData origin, bool mayPrompt) -> (enum:uint8_t WebCore::DeviceOrientationOrMotionPermissionState permissionState) Async
    543543#endif
    544544
  • trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp

    r248598 r248713  
    828828}
    829829
    830 WebFrameProxy* WebProcessProxy::webFrame(uint64_t frameID) const
     830WebFrameProxy* WebProcessProxy::webFrame(FrameIdentifier frameID) const
    831831{
    832832    if (!WebFrameProxyMap::isValidKey(frameID))
    833         return 0;
     833        return nullptr;
    834834
    835835    return m_frameMap.get(frameID);
    836836}
    837837
    838 bool WebProcessProxy::canCreateFrame(uint64_t frameID) const
     838bool WebProcessProxy::canCreateFrame(FrameIdentifier frameID) const
    839839{
    840840    return WebFrameProxyMap::isValidKey(frameID) && !m_frameMap.contains(frameID);
    841841}
    842842
    843 void WebProcessProxy::frameCreated(uint64_t frameID, WebFrameProxy& frameProxy)
     843void WebProcessProxy::frameCreated(FrameIdentifier frameID, WebFrameProxy& frameProxy)
    844844{
    845845    m_frameMap.set(frameID, &frameProxy);
    846846}
    847847
    848 void WebProcessProxy::didDestroyFrame(uint64_t frameID)
     848void WebProcessProxy::didDestroyFrame(FrameIdentifier frameID)
    849849{
    850850    // If the page is closed before it has had the chance to send the DidCreateMainFrame message
  • trunk/Source/WebKit/UIProcess/WebProcessProxy.h

    r248121 r248713  
    3939#include "WebConnectionToWebProcess.h"
    4040#include "WebProcessProxyMessages.h"
     41#include <WebCore/FrameIdentifier.h>
    4142#include <WebCore/MessagePortChannelProvider.h>
    4243#include <WebCore/MessagePortIdentifier.h>
     
    9899class WebProcessProxy : public AuxiliaryProcessProxy, public ResponsivenessTimer::Client, public ThreadSafeRefCounted<WebProcessProxy>, public CanMakeWeakPtr<WebProcessProxy>, private ProcessThrottlerClient {
    99100public:
    100     typedef HashMap<uint64_t, RefPtr<WebFrameProxy>> WebFrameProxyMap;
     101    typedef HashMap<WebCore::FrameIdentifier, RefPtr<WebFrameProxy>> WebFrameProxyMap;
    101102    typedef HashMap<WebCore::PageIdentifier, WebPageProxy*> WebPageProxyMap;
    102103    typedef HashMap<uint64_t, RefPtr<API::UserInitiatedAction>> UserInitiatedActionMap;
     
    165166    bool isResponsive() const;
    166167
    167     WebFrameProxy* webFrame(uint64_t) const;
    168     bool canCreateFrame(uint64_t frameID) const;
    169     void frameCreated(uint64_t, WebFrameProxy&);
     168    WebFrameProxy* webFrame(WebCore::FrameIdentifier) const;
     169    bool canCreateFrame(WebCore::FrameIdentifier) const;
     170    void frameCreated(WebCore::FrameIdentifier, WebFrameProxy&);
    170171    void disconnectFramesFromPage(WebPageProxy*); // Including main frame.
    171172    size_t frameCountInPage(WebPageProxy*) const; // Including main frame.
     
    336337    // IPC message handlers.
    337338    void updateBackForwardItem(const BackForwardListItemState&);
    338     void didDestroyFrame(uint64_t);
     339    void didDestroyFrame(WebCore::FrameIdentifier);
    339340    void didDestroyUserGestureToken(uint64_t);
    340341
  • trunk/Source/WebKit/UIProcess/WebProcessProxy.messages.in

    r246413 r248713  
    2323messages -> WebProcessProxy LegacyReceiver {
    2424    UpdateBackForwardItem(struct WebKit::BackForwardListItemState backForwardListItemState)
    25     DidDestroyFrame(uint64_t frameID)
     25    DidDestroyFrame(WebCore::FrameIdentifier frameID)
    2626
    2727    DidDestroyUserGestureToken(uint64_t userGestureTokenID)
  • trunk/Source/WebKit/UIProcess/ios/WKContentView.mm

    r247687 r248713  
    702702        return 0;
    703703
    704     uint64_t frameID;
     704    WebCore::FrameIdentifier frameID;
    705705    if (_WKFrameHandle *handle = printFormatter.frameToPrint)
    706         frameID = handle._frameID;
     706        frameID = WebCore::frameIdentifierFromID(handle._frameID);
    707707    else if (auto mainFrame = _page->mainFrame())
    708708        frameID = mainFrame->frameID();
  • trunk/Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm

    r248541 r248713  
    10671067}
    10681068
    1069 uint32_t WebPageProxy::computePagesForPrintingAndDrawToPDF(uint64_t frameID, const PrintInfo& printInfo, DrawToPDFCallback::CallbackFunction&& callback)
     1069uint32_t WebPageProxy::computePagesForPrintingAndDrawToPDF(FrameIdentifier frameID, const PrintInfo& printInfo, DrawToPDFCallback::CallbackFunction&& callback)
    10701070{
    10711071    if (!hasRunningProcess()) {
  • trunk/Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.cpp

    r247529 r248713  
    144144        return JSValueMakeUndefined(context);
    145145
    146     uint64_t frameID = JSValueToNumber(context, arguments[0], exception);
     146    WebCore::FrameIdentifier frameID = WebCore::frameIdentifierFromID(JSValueToNumber(context, arguments[0], exception));
    147147    uint64_t callbackID = JSValueToNumber(context, arguments[1], exception);
    148148    auto result = adoptRef(JSValueToStringCopy(context, arguments[2], exception));
     
    221221void WebAutomationSessionProxy::didClearWindowObjectForFrame(WebFrame& frame)
    222222{
    223     uint64_t frameID = frame.frameID();
     223    WebCore::FrameIdentifier frameID = frame.frameID();
    224224    if (JSObjectRef scriptObject = m_webFrameScriptObjectMap.take(frameID))
    225225        JSValueUnprotect(frame.jsContext(), scriptObject);
     
    233233}
    234234
    235 void WebAutomationSessionProxy::evaluateJavaScriptFunction(WebCore::PageIdentifier pageID, uint64_t frameID, const String& function, Vector<String> arguments, bool expectsImplicitCallbackArgument, int callbackTimeout, uint64_t callbackID)
     235void WebAutomationSessionProxy::evaluateJavaScriptFunction(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> optionalFrameID, const String& function, Vector<String> arguments, bool expectsImplicitCallbackArgument, int callbackTimeout, uint64_t callbackID)
    236236{
    237237    WebPage* page = WebProcess::singleton().webPage(pageID);
     
    241241        return;
    242242    }
    243     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     243    WebFrame* frame = optionalFrameID ? WebProcess::singleton().webFrame(*optionalFrameID) : page->mainWebFrame();
    244244    if (!frame) {
    245245        WebProcess::singleton().parentProcessConnection()->send(Messages::WebAutomationSession::DidEvaluateJavaScriptFunction(callbackID, { },
     
    251251    ASSERT(scriptObject);
    252252
    253     frameID = frame->frameID();
     253    auto frameID = frame->frameID();
    254254    JSValueRef exception = nullptr;
    255255    JSGlobalContextRef context = frame->jsContext();
     
    264264        toJSArray(context, arguments, toJSValue, &exception),
    265265        JSValueMakeBoolean(context, expectsImplicitCallbackArgument),
    266         JSValueMakeNumber(context, frameID),
     266        JSValueMakeNumber(context, frameID.toUInt64()),
    267267        JSValueMakeNumber(context, callbackID),
    268268        JSObjectMakeFunctionWithCallback(context, nullptr, evaluateJavaScriptCallback),
     
    301301}
    302302
    303 void WebAutomationSessionProxy::didEvaluateJavaScriptFunction(uint64_t frameID, uint64_t callbackID, const String& result, const String& errorType)
     303void WebAutomationSessionProxy::didEvaluateJavaScriptFunction(WebCore::FrameIdentifier frameID, uint64_t callbackID, const String& result, const String& errorType)
    304304{
    305305    auto findResult = m_webFramePendingEvaluateJavaScriptCallbacksMap.find(frameID);
     
    314314}
    315315
    316 void WebAutomationSessionProxy::resolveChildFrameWithOrdinal(WebCore::PageIdentifier pageID, uint64_t frameID, uint32_t ordinal, CompletionHandler<void(Optional<String>, uint64_t)>&& completionHandler)
     316void WebAutomationSessionProxy::resolveChildFrameWithOrdinal(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, uint32_t ordinal, CompletionHandler<void(Optional<String>, Optional<WebCore::FrameIdentifier>)>&& completionHandler)
    317317{
    318318    WebPage* page = WebProcess::singleton().webPage(pageID);
    319319    if (!page) {
    320320        String windowNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::WindowNotFound);
    321         completionHandler(windowNotFoundErrorType, 0);
     321        completionHandler(windowNotFoundErrorType, WTF::nullopt);
    322322        return;
    323323    }
     
    325325    String frameNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::FrameNotFound);
    326326
    327     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     327    WebFrame* frame = frameID ? WebProcess::singleton().webFrame(*frameID) : page->mainWebFrame();
    328328    if (!frame) {
    329         completionHandler(frameNotFoundErrorType, 0);
     329        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    330330        return;
    331331    }
     
    333333    WebCore::Frame* coreFrame = frame->coreFrame();
    334334    if (!coreFrame) {
    335         completionHandler(frameNotFoundErrorType, 0);
     335        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    336336        return;
    337337    }
     
    339339    WebCore::Frame* coreChildFrame = coreFrame->tree().scopedChild(ordinal);
    340340    if (!coreChildFrame) {
    341         completionHandler(frameNotFoundErrorType, 0);
     341        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    342342        return;
    343343    }
     
    345345    WebFrame* childFrame = WebFrame::fromCoreFrame(*coreChildFrame);
    346346    if (!childFrame) {
    347         completionHandler(frameNotFoundErrorType, 0);
     347        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    348348        return;
    349349    }
     
    352352}
    353353
    354 void WebAutomationSessionProxy::resolveChildFrameWithNodeHandle(WebCore::PageIdentifier pageID, uint64_t frameID, const String& nodeHandle, CompletionHandler<void(Optional<String>, uint64_t)>&& completionHandler)
     354void WebAutomationSessionProxy::resolveChildFrameWithNodeHandle(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, const String& nodeHandle, CompletionHandler<void(Optional<String>, Optional<WebCore::FrameIdentifier>)>&& completionHandler)
    355355{
    356356    WebPage* page = WebProcess::singleton().webPage(pageID);
    357357    if (!page) {
    358358        String windowNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::WindowNotFound);
    359         completionHandler(windowNotFoundErrorType, 0);
     359        completionHandler(windowNotFoundErrorType, WTF::nullopt);
    360360        return;
    361361    }
     
    363363    String frameNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::FrameNotFound);
    364364
    365     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     365    WebFrame* frame = frameID ? WebProcess::singleton().webFrame(*frameID) : page->mainWebFrame();
    366366    if (!frame) {
    367         completionHandler(frameNotFoundErrorType, 0);
     367        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    368368        return;
    369369    }
     
    371371    WebCore::Element* coreElement = elementForNodeHandle(*frame, nodeHandle);
    372372    if (!is<WebCore::HTMLFrameElementBase>(coreElement)) {
    373         completionHandler(frameNotFoundErrorType, 0);
     373        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    374374        return;
    375375    }
     
    377377    WebCore::Frame* coreFrameFromElement = downcast<WebCore::HTMLFrameElementBase>(*coreElement).contentFrame();
    378378    if (!coreFrameFromElement) {
    379         completionHandler(frameNotFoundErrorType, 0);
     379        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    380380        return;
    381381    }
     
    383383    WebFrame* frameFromElement = WebFrame::fromCoreFrame(*coreFrameFromElement);
    384384    if (!frameFromElement) {
    385         completionHandler(frameNotFoundErrorType, 0);
     385        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    386386        return;
    387387    }
     
    390390}
    391391
    392 void WebAutomationSessionProxy::resolveChildFrameWithName(WebCore::PageIdentifier pageID, uint64_t frameID, const String& name, CompletionHandler<void(Optional<String>, uint64_t)>&& completionHandler)
     392void WebAutomationSessionProxy::resolveChildFrameWithName(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, const String& name, CompletionHandler<void(Optional<String>, Optional<WebCore::FrameIdentifier>)>&& completionHandler)
    393393{
    394394    WebPage* page = WebProcess::singleton().webPage(pageID);
    395395    if (!page) {
    396396        String windowNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::WindowNotFound);
    397         completionHandler(windowNotFoundErrorType, 0);
     397        completionHandler(windowNotFoundErrorType, WTF::nullopt);
    398398        return;
    399399    }
     
    401401    String frameNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::FrameNotFound);
    402402
    403     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     403    WebFrame* frame = frameID ? WebProcess::singleton().webFrame(*frameID) : page->mainWebFrame();
    404404    if (!frame) {
    405         completionHandler(frameNotFoundErrorType, 0);
     405        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    406406        return;
    407407    }
     
    409409    WebCore::Frame* coreFrame = frame->coreFrame();
    410410    if (!coreFrame) {
    411         completionHandler(frameNotFoundErrorType, 0);
     411        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    412412        return;
    413413    }
     
    415415    WebCore::Frame* coreChildFrame = coreFrame->tree().scopedChild(name);
    416416    if (!coreChildFrame) {
    417         completionHandler(frameNotFoundErrorType, 0);
     417        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    418418        return;
    419419    }
     
    421421    WebFrame* childFrame = WebFrame::fromCoreFrame(*coreChildFrame);
    422422    if (!childFrame) {
    423         completionHandler(frameNotFoundErrorType, 0);
     423        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    424424        return;
    425425    }
     
    428428}
    429429
    430 void WebAutomationSessionProxy::resolveParentFrame(WebCore::PageIdentifier pageID, uint64_t frameID, CompletionHandler<void(Optional<String>, uint64_t)>&& completionHandler)
     430void WebAutomationSessionProxy::resolveParentFrame(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, CompletionHandler<void(Optional<String>, Optional<WebCore::FrameIdentifier>)>&& completionHandler)
    431431{
    432432    WebPage* page = WebProcess::singleton().webPage(pageID);
    433433    if (!page) {
    434434        String windowNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::WindowNotFound);
    435         completionHandler(windowNotFoundErrorType, 0);
     435        completionHandler(windowNotFoundErrorType, WTF::nullopt);
    436436        return;
    437437    }
     
    439439    String frameNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::FrameNotFound);
    440440
    441     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     441    WebFrame* frame = frameID ? WebProcess::singleton().webFrame(*frameID) : page->mainWebFrame();
    442442    if (!frame) {
    443         completionHandler(frameNotFoundErrorType, 0);
     443        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    444444        return;
    445445    }
     
    447447    WebFrame* parentFrame = frame->parentFrame();
    448448    if (!parentFrame) {
    449         completionHandler(frameNotFoundErrorType, 0);
     449        completionHandler(frameNotFoundErrorType, WTF::nullopt);
    450450        return;
    451451    }
     
    454454}
    455455
    456 void WebAutomationSessionProxy::focusFrame(WebCore::PageIdentifier pageID, uint64_t frameID)
     456void WebAutomationSessionProxy::focusFrame(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID)
    457457{
    458458    WebPage* page = WebProcess::singleton().webPage(pageID);
     
    460460        return;
    461461
    462     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     462    WebFrame* frame = frameID ? WebProcess::singleton().webFrame(*frameID) : page->mainWebFrame();
    463463    if (!frame)
    464464        return;
     
    529529}
    530530
    531 void WebAutomationSessionProxy::computeElementLayout(WebCore::PageIdentifier pageID, uint64_t frameID, String nodeHandle, bool scrollIntoViewIfNeeded, CoordinateSystem coordinateSystem, CompletionHandler<void(Optional<String>, WebCore::IntRect, Optional<WebCore::IntPoint>, bool)>&& completionHandler)
     531void WebAutomationSessionProxy::computeElementLayout(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String nodeHandle, bool scrollIntoViewIfNeeded, CoordinateSystem coordinateSystem, CompletionHandler<void(Optional<String>, WebCore::IntRect, Optional<WebCore::IntPoint>, bool)>&& completionHandler)
    532532{
    533533    WebPage* page = WebProcess::singleton().webPage(pageID);
     
    538538    }
    539539
    540     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     540    WebFrame* frame = frameID ? WebProcess::singleton().webFrame(*frameID) : page->mainWebFrame();
    541541    if (!frame || !frame->coreFrame() || !frame->coreFrame()->view()) {
    542542        String frameNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::FrameNotFound);
     
    637637}
    638638
    639 void WebAutomationSessionProxy::selectOptionElement(WebCore::PageIdentifier pageID, uint64_t frameID, String nodeHandle, CompletionHandler<void(Optional<String>)>&& completionHandler)
     639void WebAutomationSessionProxy::selectOptionElement(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String nodeHandle, CompletionHandler<void(Optional<String>)>&& completionHandler)
    640640{
    641641    WebPage* page = WebProcess::singleton().webPage(pageID);
     
    646646    }
    647647
    648     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     648    WebFrame* frame = frameID ? WebProcess::singleton().webFrame(*frameID) : page->mainWebFrame();
    649649    if (!frame || !frame->coreFrame() || !frame->coreFrame()->view()) {
    650650        String frameNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::FrameNotFound);
     
    705705}
    706706
    707 void WebAutomationSessionProxy::takeScreenshot(WebCore::PageIdentifier pageID, uint64_t frameID, String nodeHandle, bool scrollIntoViewIfNeeded, bool clipToViewport, uint64_t callbackID)
     707void WebAutomationSessionProxy::takeScreenshot(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String nodeHandle, bool scrollIntoViewIfNeeded, bool clipToViewport, uint64_t callbackID)
    708708{
    709709    ShareableBitmap::Handle handle;
     
    716716    }
    717717
    718     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     718    WebFrame* frame = frameID ? WebProcess::singleton().webFrame(*frameID) : page->mainWebFrame();
    719719    if (!frame || !frame->coreFrame()) {
    720720        String frameNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::FrameNotFound);
     
    753753}
    754754
    755 void WebAutomationSessionProxy::getCookiesForFrame(WebCore::PageIdentifier pageID, uint64_t frameID, CompletionHandler<void(Optional<String>, Vector<WebCore::Cookie>)>&& completionHandler)
     755void WebAutomationSessionProxy::getCookiesForFrame(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, CompletionHandler<void(Optional<String>, Vector<WebCore::Cookie>)>&& completionHandler)
    756756{
    757757    WebPage* page = WebProcess::singleton().webPage(pageID);
     
    762762    }
    763763
    764     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     764    WebFrame* frame = frameID ? WebProcess::singleton().webFrame(*frameID) : page->mainWebFrame();
    765765    if (!frame || !frame->coreFrame() || !frame->coreFrame()->document()) {
    766766        String frameNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::FrameNotFound);
     
    778778}
    779779
    780 void WebAutomationSessionProxy::deleteCookie(WebCore::PageIdentifier pageID, uint64_t frameID, String cookieName, CompletionHandler<void(Optional<String>)>&& completionHandler)
     780void WebAutomationSessionProxy::deleteCookie(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String cookieName, CompletionHandler<void(Optional<String>)>&& completionHandler)
    781781{
    782782    WebPage* page = WebProcess::singleton().webPage(pageID);
     
    787787    }
    788788
    789     WebFrame* frame = frameID ? WebProcess::singleton().webFrame(frameID) : page->mainWebFrame();
     789    WebFrame* frame = frameID ? WebProcess::singleton().webFrame(*frameID) : page->mainWebFrame();
    790790    if (!frame || !frame->coreFrame() || !frame->coreFrame()->document()) {
    791791        String frameNotFoundErrorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::FrameNotFound);
  • trunk/Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.h

    r245796 r248713  
    2929#include "CoordinateSystem.h"
    3030#include <JavaScriptCore/JSBase.h>
     31#include <WebCore/FrameIdentifier.h>
    3132#include <WebCore/PageIdentifier.h>
    3233#include <wtf/text/WTFString.h>
     
    5253    void didClearWindowObjectForFrame(WebFrame&);
    5354
    54     void didEvaluateJavaScriptFunction(uint64_t frameID, uint64_t callbackID, const String& result, const String& errorType);
     55    void didEvaluateJavaScriptFunction(WebCore::FrameIdentifier, uint64_t callbackID, const String& result, const String& errorType);
    5556
    5657private:
     
    6263
    6364    // Called by WebAutomationSessionProxy messages
    64     void evaluateJavaScriptFunction(WebCore::PageIdentifier, uint64_t frameID, const String& function, Vector<String> arguments, bool expectsImplicitCallbackArgument, int callbackTimeout, uint64_t callbackID);
    65     void resolveChildFrameWithOrdinal(WebCore::PageIdentifier, uint64_t frameID, uint32_t ordinal, CompletionHandler<void(Optional<String>, uint64_t)>&&);
    66     void resolveChildFrameWithNodeHandle(WebCore::PageIdentifier, uint64_t frameID, const String& nodeHandle, CompletionHandler<void(Optional<String>, uint64_t)>&&);
    67     void resolveChildFrameWithName(WebCore::PageIdentifier, uint64_t frameID, const String& name, CompletionHandler<void(Optional<String>, uint64_t)>&&);
    68     void resolveParentFrame(WebCore::PageIdentifier, uint64_t frameID, CompletionHandler<void(Optional<String>, uint64_t)>&&);
    69     void focusFrame(WebCore::PageIdentifier, uint64_t frameID);
    70     void computeElementLayout(WebCore::PageIdentifier, uint64_t frameID, String nodeHandle, bool scrollIntoViewIfNeeded, CoordinateSystem, CompletionHandler<void(Optional<String>, WebCore::IntRect, Optional<WebCore::IntPoint>, bool)>&&);
    71     void selectOptionElement(WebCore::PageIdentifier, uint64_t frameID, String nodeHandle, CompletionHandler<void(Optional<String>)>&&);
    72     void takeScreenshot(WebCore::PageIdentifier, uint64_t frameID, String nodeHandle, bool scrollIntoViewIfNeeded, bool clipToViewport, uint64_t callbackID);
    73     void getCookiesForFrame(WebCore::PageIdentifier, uint64_t frameID, CompletionHandler<void(Optional<String>, Vector<WebCore::Cookie>)>&&);
    74     void deleteCookie(WebCore::PageIdentifier, uint64_t frameID, String cookieName, CompletionHandler<void(Optional<String>)>&&);
     65    void evaluateJavaScriptFunction(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>, const String& function, Vector<String> arguments, bool expectsImplicitCallbackArgument, int callbackTimeout, uint64_t callbackID);
     66    void resolveChildFrameWithOrdinal(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>, uint32_t ordinal, CompletionHandler<void(Optional<String>, Optional<WebCore::FrameIdentifier>)>&&);
     67    void resolveChildFrameWithNodeHandle(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>, const String& nodeHandle, CompletionHandler<void(Optional<String>, Optional<WebCore::FrameIdentifier>)>&&);
     68    void resolveChildFrameWithName(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>, const String& name, CompletionHandler<void(Optional<String>, Optional<WebCore::FrameIdentifier>)>&&);
     69    void resolveParentFrame(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>, CompletionHandler<void(Optional<String>, Optional<WebCore::FrameIdentifier>)>&&);
     70    void focusFrame(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>);
     71    void computeElementLayout(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>, String nodeHandle, bool scrollIntoViewIfNeeded, CoordinateSystem, CompletionHandler<void(Optional<String>, WebCore::IntRect, Optional<WebCore::IntPoint>, bool)>&&);
     72    void selectOptionElement(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>, String nodeHandle, CompletionHandler<void(Optional<String>)>&&);
     73    void takeScreenshot(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>, String nodeHandle, bool scrollIntoViewIfNeeded, bool clipToViewport, uint64_t callbackID);
     74    void getCookiesForFrame(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>, CompletionHandler<void(Optional<String>, Vector<WebCore::Cookie>)>&&);
     75    void deleteCookie(WebCore::PageIdentifier, Optional<WebCore::FrameIdentifier>, String cookieName, CompletionHandler<void(Optional<String>)>&&);
    7576
    7677    String m_sessionIdentifier;
    7778
    78     HashMap<uint64_t, JSObjectRef> m_webFrameScriptObjectMap;
    79     HashMap<uint64_t, Vector<uint64_t>> m_webFramePendingEvaluateJavaScriptCallbacksMap;
     79    HashMap<WebCore::FrameIdentifier, JSObjectRef> m_webFrameScriptObjectMap;
     80    HashMap<WebCore::FrameIdentifier, Vector<uint64_t>> m_webFramePendingEvaluateJavaScriptCallbacksMap;
    8081};
    8182
  • trunk/Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.messages.in

    r245796 r248713  
    2222
    2323messages -> WebAutomationSessionProxy {
    24     EvaluateJavaScriptFunction(WebCore::PageIdentifier pageID, uint64_t frameID, String function, Vector<String> arguments, bool expectsImplicitCallbackArgument, int callbackTimeout, uint64_t callbackID)
     24    EvaluateJavaScriptFunction(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String function, Vector<String> arguments, bool expectsImplicitCallbackArgument, int callbackTimeout, uint64_t callbackID)
    2525
    26     ResolveChildFrameWithOrdinal(WebCore::PageIdentifier pageID, uint64_t frameID, uint32_t ordinal) -> (Optional<String> errorType, uint64_t frameID) Async
    27     ResolveChildFrameWithNodeHandle(WebCore::PageIdentifier pageID, uint64_t frameID, String nodeHandle) -> (Optional<String> errorType, uint64_t frameID) Async
    28     ResolveChildFrameWithName(WebCore::PageIdentifier pageID, uint64_t frameID, String name) -> (Optional<String> errorType, uint64_t frameID) Async
    29     ResolveParentFrame(WebCore::PageIdentifier pageID, uint64_t frameID) -> (Optional<String> errorType, uint64_t frameID) Async
     26    ResolveChildFrameWithOrdinal(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, uint32_t ordinal) -> (Optional<String> errorType, Optional<WebCore::FrameIdentifier> frameID) Async
     27    ResolveChildFrameWithNodeHandle(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String nodeHandle) -> (Optional<String> errorType, Optional<WebCore::FrameIdentifier> frameID) Async
     28    ResolveChildFrameWithName(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String name) -> (Optional<String> errorType, Optional<WebCore::FrameIdentifier> frameID) Async
     29    ResolveParentFrame(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID) -> (Optional<String> errorType, Optional<WebCore::FrameIdentifier> frameID) Async
    3030
    31     FocusFrame(WebCore::PageIdentifier pageID, uint64_t frameID)
     31    FocusFrame(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID)
    3232
    33     ComputeElementLayout(WebCore::PageIdentifier pageID, uint64_t frameID, String nodeHandle, bool scrollIntoViewIfNeeded, enum:uint8_t WebKit::CoordinateSystem coordinateSystem) -> (Optional<String> errorType, WebCore::IntRect rect, Optional<WebCore::IntPoint> inViewCenterPoint, bool isObscured) Async
     33    ComputeElementLayout(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String nodeHandle, bool scrollIntoViewIfNeeded, enum:uint8_t WebKit::CoordinateSystem coordinateSystem) -> (Optional<String> errorType, WebCore::IntRect rect, Optional<WebCore::IntPoint> inViewCenterPoint, bool isObscured) Async
    3434
    35     SelectOptionElement(WebCore::PageIdentifier pageID, uint64_t frameID, String nodeHandle) -> (Optional<String> errorType) Async
     35    SelectOptionElement(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String nodeHandle) -> (Optional<String> errorType) Async
    3636
    37     TakeScreenshot(WebCore::PageIdentifier pageID, uint64_t frameID, String nodeHandle, bool scrollIntoViewIfNeeded, bool clipToViewport, uint64_t callbackID)
     37    TakeScreenshot(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String nodeHandle, bool scrollIntoViewIfNeeded, bool clipToViewport, uint64_t callbackID)
    3838
    39     GetCookiesForFrame(WebCore::PageIdentifier pageID, uint64_t frameID) -> (Optional<String> errorType, Vector<WebCore::Cookie> cookies) Async
    40     DeleteCookie(WebCore::PageIdentifier pageID, uint64_t frameID, String cookieName) -> (Optional<String> errorType) Async
     39    GetCookiesForFrame(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID) -> (Optional<String> errorType, Vector<WebCore::Cookie> cookies) Async
     40    DeleteCookie(WebCore::PageIdentifier pageID, Optional<WebCore::FrameIdentifier> frameID, String cookieName) -> (Optional<String> errorType) Async
    4141}
  • trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm

    r242339 r248713  
    4949+ (instancetype)lookUpFrameFromHandle:(_WKFrameHandle *)handle
    5050{
    51     return wrapper(WebKit::WebProcess::singleton().webFrame(handle._frameID));
     51    return wrapper(WebKit::WebProcess::singleton().webFrame(WebCore::frameIdentifierFromID(handle._frameID)));
    5252}
    5353
  • trunk/Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitFrame.cpp

    r245176 r248713  
    7575    g_return_val_if_fail(WEBKIT_IS_FRAME(frame), 0);
    7676
    77     return frame->priv->webFrame->frameID();
     77    return frame->priv->webFrame->frameID().toUInt64();
    7878}
    7979
  • trunk/Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp

    r248677 r248713  
    160160    WebResourceLoader::TrackingParameters trackingParameters;
    161161    trackingParameters.pageID = frameLoaderClient.pageID().valueOr(PageIdentifier { });
    162     trackingParameters.frameID = frameLoaderClient.frameID().valueOr(0);
     162    trackingParameters.frameID = frameLoaderClient.frameID().valueOr(FrameIdentifier { });
    163163    trackingParameters.resourceID = identifier;
    164164    auto sessionID = frameLoaderClient.sessionID();
     
    169169    if (resourceLoader.documentLoader()->scheduleArchiveLoad(resourceLoader, resourceLoader.request())) {
    170170        LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be handled as an archive resource.", resourceLoader.url().string().utf8().data());
    171         RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be handled as an archive resource (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID, identifier);
     171        RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be handled as an archive resource (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID.toUInt64(), identifier);
    172172        m_webResourceLoaders.set(identifier, WebResourceLoader::create(resourceLoader, trackingParameters));
    173173        return;
     
    177177    if (resourceLoader.documentLoader()->applicationCacheHost().maybeLoadResource(resourceLoader, resourceLoader.request(), resourceLoader.request().url())) {
    178178        LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be loaded from application cache.", resourceLoader.url().string().utf8().data());
    179         RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be loaded from application cache (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID, identifier);
     179        RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be loaded from application cache (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID.toUInt64(), identifier);
    180180        m_webResourceLoaders.set(identifier, WebResourceLoader::create(resourceLoader, trackingParameters));
    181181        return;
     
    184184    if (resourceLoader.request().url().protocolIsData()) {
    185185        LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be loaded as data.", resourceLoader.url().string().utf8().data());
    186         RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be loaded as data (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID, identifier);
     186        RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be loaded as data (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID.toUInt64(), identifier);
    187187        startLocalLoad(resourceLoader);
    188188        return;
     
    192192    if (isQuickLookPreviewURL(resourceLoader.request().url())) {
    193193        LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be handled as a QuickLook resource.", resourceLoader.url().string().utf8().data());
    194         RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be handled as a QuickLook resource (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID, identifier);
     194        RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be handled as a QuickLook resource (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID.toUInt64(), identifier);
    195195        startLocalLoad(resourceLoader);
    196196        return;
     
    203203    if (resourceLoader.request().url().protocolIs("resource")) {
    204204        LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be handled as a GResource.", resourceLoader.url().string().utf8().data());
    205         RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be handled as a GResource (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID, identifier);
     205        RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be handled as a GResource (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID.toUInt64(), identifier);
    206206        startLocalLoad(resourceLoader);
    207207        return;
     
    213213        if (result != ServiceWorkerClientFetch::Result::Unhandled) {
    214214            LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be scheduled through ServiceWorker handle fetch algorithm", resourceLoader->url().string().latin1().data());
    215             RELEASE_LOG_IF_ALLOWED(resourceLoader.get(), "scheduleLoad: URL will be scheduled through ServiceWorker handle fetch algorithm (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader->frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID, identifier);
     215            RELEASE_LOG_IF_ALLOWED(resourceLoader.get(), "scheduleLoad: URL will be scheduled through ServiceWorker handle fetch algorithm (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader->frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID.toUInt64(), identifier);
    216216            return;
    217217        }
    218218        if (resourceLoader->options().serviceWorkersMode == ServiceWorkersMode::Only) {
    219             RELEASE_LOG_ERROR_IF_ALLOWED(resourceLoader.get(), "scheduleLoad: unable to schedule URL through ServiceWorker handle fetch algorithm (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader->frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID, identifier);
     219            RELEASE_LOG_ERROR_IF_ALLOWED(resourceLoader.get(), "scheduleLoad: unable to schedule URL through ServiceWorker handle fetch algorithm (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader->frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID.toUInt64(), identifier);
    220220            callOnMainThread([resourceLoader = WTFMove(resourceLoader)] {
    221221                auto error = internalError(resourceLoader->request().url());
     
    229229            WebProcess::singleton().webLoaderStrategy().scheduleLoadFromNetworkProcess(resourceLoader.get(), resourceLoader->request(), trackingParameters, sessionID, shouldClearReferrerOnHTTPSToHTTPRedirect, maximumBufferingTime);
    230230        else
    231             RELEASE_LOG_IF_ALLOWED(resourceLoader.get(), "scheduleLoad: URL not handled by any handlers (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader->frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID, identifier);
     231            RELEASE_LOG_IF_ALLOWED(resourceLoader.get(), "scheduleLoad: URL not handled by any handlers (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader->frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID.toUInt64(), identifier);
    232232    });
    233233#else
     
    235235        scheduleLoadFromNetworkProcess(resourceLoader, resourceLoader.request(), trackingParameters, sessionID, shouldClearReferrerOnHTTPSToHTTPRedirect, maximumBufferingTime(resource));
    236236    else
    237         RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL not handled by any handlers (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID, identifier);
     237        RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL not handled by any handlers (frame = %p, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), trackingParameters.pageID.toUInt64(), trackingParameters.frameID.toUInt64(), identifier);
    238238#endif
    239239}
     
    326326        ASSERT(loadParameters.sourceOrigin);
    327327        if (!loadParameters.sourceOrigin) {
    328             RELEASE_LOG_ERROR_IF_ALLOWED(resourceLoader, "scheduleLoad: no sourceOrigin (frame = %p, priority = %d, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID.toUInt64(), loadParameters.webFrameID, loadParameters.identifier);
     328            RELEASE_LOG_ERROR_IF_ALLOWED(resourceLoader, "scheduleLoad: no sourceOrigin (frame = %p, priority = %d, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID.toUInt64(), loadParameters.webFrameID.toUInt64(), loadParameters.identifier);
    329329            scheduleInternallyFailedLoad(resourceLoader);
    330330            return;
     
    349349    ASSERT((loadParameters.webPageID && loadParameters.webFrameID) || loadParameters.clientCredentialPolicy == ClientCredentialPolicy::CannotAskClientForCredentials);
    350350
    351     RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: Resource is being scheduled with the NetworkProcess (frame = %p, priority = %d, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID.toUInt64(), loadParameters.webFrameID, loadParameters.identifier);
     351    RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: Resource is being scheduled with the NetworkProcess (frame = %p, priority = %d, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID.toUInt64(), loadParameters.webFrameID.toUInt64(), loadParameters.identifier);
    352352    if (!WebProcess::singleton().ensureNetworkProcessConnection().connection().send(Messages::NetworkConnectionToWebProcess::ScheduleResourceLoad(loadParameters), 0)) {
    353         RELEASE_LOG_ERROR_IF_ALLOWED(resourceLoader, "scheduleLoad: Unable to schedule resource with the NetworkProcess (frame = %p, priority = %d, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID.toUInt64(), loadParameters.webFrameID, loadParameters.identifier);
     353        RELEASE_LOG_ERROR_IF_ALLOWED(resourceLoader, "scheduleLoad: Unable to schedule resource with the NetworkProcess (frame = %p, priority = %d, pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID.toUInt64(), loadParameters.webFrameID.toUInt64(), loadParameters.identifier);
    354354        // We probably failed to schedule this load with the NetworkProcess because it had crashed.
    355355        // This load will never succeed so we will schedule it to fail asynchronously.
     
    521521
    522522    auto pageID = webPage ? webPage->pageID() : PageIdentifier { };
    523     auto frameID = webFrame ? webFrame->frameID() : 0;
     523    auto frameID = webFrame ? webFrame->frameID() : FrameIdentifier { };
    524524    auto sessionID = webPage ? webPage->sessionID() : PAL::SessionID::defaultSessionID();
    525525
    526526    auto* document = frameLoader.frame().document();
    527527    if (!document) {
    528         RELEASE_LOG_ERROR_IF_ALLOWED(sessionID, "loadResourceSynchronously: no document (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %lu)", pageID.toUInt64(), frameID, resourceLoadIdentifier);
     528        RELEASE_LOG_ERROR_IF_ALLOWED(sessionID, "loadResourceSynchronously: no document (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %lu)", pageID.toUInt64(), frameID.toUInt64(), resourceLoadIdentifier);
    529529        error = internalError(request.url());
    530530        return;
     
    532532
    533533    if (auto syncLoadResult = tryLoadingSynchronouslyUsingURLSchemeHandler(frameLoader, resourceLoadIdentifier, request)) {
    534         RELEASE_LOG_ERROR_IF_ALLOWED(sessionID, "loadResourceSynchronously: failed calling tryLoadingSynchronouslyUsingURLSchemeHandler (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %lu, error = %d)", pageID.toUInt64(), frameID, resourceLoadIdentifier, syncLoadResult->error.errorCode());
     534        RELEASE_LOG_ERROR_IF_ALLOWED(sessionID, "loadResourceSynchronously: failed calling tryLoadingSynchronouslyUsingURLSchemeHandler (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %lu, error = %d)", pageID.toUInt64(), frameID.toUInt64(), resourceLoadIdentifier, syncLoadResult->error.errorCode());
    535535        error = WTFMove(syncLoadResult->error);
    536536        response = WTFMove(syncLoadResult->response);
     
    570570
    571571    if (!WebProcess::singleton().ensureNetworkProcessConnection().connection().sendSync(Messages::NetworkConnectionToWebProcess::PerformSynchronousLoad(loadParameters), Messages::NetworkConnectionToWebProcess::PerformSynchronousLoad::Reply(error, response, data), 0)) {
    572         RELEASE_LOG_ERROR_IF_ALLOWED(sessionID, "loadResourceSynchronously: failed sending synchronous network process message (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %lu)", pageID.toUInt64(), frameID, resourceLoadIdentifier);
     572        RELEASE_LOG_ERROR_IF_ALLOWED(sessionID, "loadResourceSynchronously: failed sending synchronous network process message (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %lu)", pageID.toUInt64(), frameID.toUInt64(), resourceLoadIdentifier);
    573573        if (auto* page = webPage ? webPage->corePage() : nullptr)
    574574            page->diagnosticLoggingClient().logDiagnosticMessage(WebCore::DiagnosticLoggingKeys::internalErrorKey(), WebCore::DiagnosticLoggingKeys::synchronousMessageFailedKey(), WebCore::ShouldSample::No);
  • trunk/Source/WebKit/WebProcess/Network/WebResourceLoader.cpp

    r245796 r248713  
    8989
    9090    LOG(Network, "(WebProcess) WebResourceLoader::willSendRequest to '%s'", proposedRequest.url().string().latin1().data());
    91     RELEASE_LOG_IF_ALLOWED("willSendRequest: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     91    RELEASE_LOG_IF_ALLOWED("willSendRequest: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    9292
    9393    if (m_coreLoader->documentLoader()->applicationCacheHost().maybeLoadFallbackForRedirect(m_coreLoader.get(), proposedRequest, redirectResponse)) {
    94         RELEASE_LOG_IF_ALLOWED("willSendRequest: exiting early because maybeLoadFallbackForRedirect returned false (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     94        RELEASE_LOG_IF_ALLOWED("willSendRequest: exiting early because maybeLoadFallbackForRedirect returned false (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    9595        return;
    9696    }
     
    9898    m_coreLoader->willSendRequest(WTFMove(proposedRequest), redirectResponse, [this, protectedThis = WTFMove(protectedThis)](ResourceRequest&& request) {
    9999        if (!m_coreLoader || !m_coreLoader->identifier()) {
    100             RELEASE_LOG_IF_ALLOWED("willSendRequest: exiting early because no coreloader or identifier (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     100            RELEASE_LOG_IF_ALLOWED("willSendRequest: exiting early because no coreloader or identifier (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    101101            return;
    102102        }
     
    114114{
    115115    LOG(Network, "(WebProcess) WebResourceLoader::didReceiveResponse for '%s'. Status %d.", m_coreLoader->url().string().latin1().data(), response.httpStatusCode());
    116     RELEASE_LOG_IF_ALLOWED("didReceiveResponse: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", status = %d)", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID, response.httpStatusCode());
     116    RELEASE_LOG_IF_ALLOWED("didReceiveResponse: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", status = %d)", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID, response.httpStatusCode());
    117117
    118118    Ref<WebResourceLoader> protectedThis(*this);
    119119
    120120    if (m_coreLoader->documentLoader()->applicationCacheHost().maybeLoadFallbackForResponse(m_coreLoader.get(), response)) {
    121         RELEASE_LOG_IF_ALLOWED("didReceiveResponse: not continuing load because the content is already cached (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     121        RELEASE_LOG_IF_ALLOWED("didReceiveResponse: not continuing load because the content is already cached (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    122122        return;
    123123    }
     
    136136                send(Messages::NetworkResourceLoader::ContinueDidReceiveResponse());
    137137            else
    138                 RELEASE_LOG_IF_ALLOWED("didReceiveResponse: not continuing load because no coreLoader or no ID (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     138                RELEASE_LOG_IF_ALLOWED("didReceiveResponse: not continuing load because no coreLoader or no ID (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    139139        };
    140140    }
     
    149149
    150150    if (!m_numBytesReceived) {
    151         RELEASE_LOG_IF_ALLOWED("didReceiveData: Started receiving data (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     151        RELEASE_LOG_IF_ALLOWED("didReceiveData: Started receiving data (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    152152    }
    153153    m_numBytesReceived += data.size();
     
    159159{
    160160    LOG(Network, "(WebProcess) WebResourceLoader::didFinishResourceLoad for '%s'", m_coreLoader->url().string().latin1().data());
    161     RELEASE_LOG_IF_ALLOWED("didFinishResourceLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", length = %zd)", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID, m_numBytesReceived);
     161    RELEASE_LOG_IF_ALLOWED("didFinishResourceLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", length = %zd)", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID, m_numBytesReceived);
    162162
    163163    ASSERT_WITH_MESSAGE(!m_isProcessingNetworkResponse, "Load should not be able to finish before we've validated the response");
     
    168168{
    169169    LOG(Network, "(WebProcess) WebResourceLoader::didFailResourceLoad for '%s'", m_coreLoader->url().string().latin1().data());
    170     RELEASE_LOG_IF_ALLOWED("didFailResourceLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     170    RELEASE_LOG_IF_ALLOWED("didFailResourceLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    171171
    172172    ASSERT_WITH_MESSAGE(!m_isProcessingNetworkResponse, "Load should not be able to finish before we've validated the response");
     
    180180{
    181181    LOG(Network, "(WebProcess) WebResourceLoader::didBlockAuthenticationChallenge for '%s'", m_coreLoader->url().string().latin1().data());
    182     RELEASE_LOG_IF_ALLOWED("didBlockAuthenticationChallenge: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     182    RELEASE_LOG_IF_ALLOWED("didBlockAuthenticationChallenge: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    183183
    184184    m_coreLoader->didBlockAuthenticationChallenge();
     
    188188{
    189189    LOG(Network, "(WebProcess) WebResourceLoader::stopLoadingAfterXFrameOptionsOrContentSecurityPolicyDenied for '%s'", m_coreLoader->url().string().latin1().data());
    190     RELEASE_LOG_IF_ALLOWED("stopLoadingAfterXFrameOptionsOrContentSecurityPolicyDenied: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     190    RELEASE_LOG_IF_ALLOWED("stopLoadingAfterXFrameOptionsOrContentSecurityPolicyDenied: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    191191
    192192    m_coreLoader->documentLoader()->stopLoadingAfterXFrameOptionsOrContentSecurityPolicyDenied(m_coreLoader->identifier(), response);
     
    197197{
    198198    LOG(Network, "(WebProcess) WebResourceLoader::didReceiveResource for '%s'", m_coreLoader->url().string().latin1().data());
    199     RELEASE_LOG_IF_ALLOWED("didReceiveResource: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     199    RELEASE_LOG_IF_ALLOWED("didReceiveResource: (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    200200
    201201    RefPtr<SharedBuffer> buffer = handle.tryWrapInSharedBuffer();
     
    203203    if (!buffer) {
    204204        LOG_ERROR("Unable to create buffer from ShareableResource sent from the network process.");
    205         RELEASE_LOG_IF_ALLOWED("didReceiveResource: Unable to create SharedBuffer (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID, m_trackingParameters.resourceID);
     205        RELEASE_LOG_IF_ALLOWED("didReceiveResource: Unable to create SharedBuffer (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID.toUInt64(), m_trackingParameters.frameID.toUInt64(), m_trackingParameters.resourceID);
    206206        if (auto* frame = m_coreLoader->frame()) {
    207207            if (auto* page = frame->page())
  • trunk/Source/WebKit/WebProcess/Network/WebResourceLoader.h

    r245796 r248713  
    2929#include "MessageSender.h"
    3030#include "ShareableResource.h"
     31#include <WebCore/FrameIdentifier.h>
    3132#include <WebCore/PageIdentifier.h>
    3233#include <wtf/RefCounted.h>
     
    5354    struct TrackingParameters {
    5455        WebCore::PageIdentifier pageID;
    55         uint64_t frameID { 0 };
     56        WebCore::FrameIdentifier frameID;
    5657        ResourceLoadIdentifier resourceID { 0 };
    5758    };
  • trunk/Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.cpp

    r247923 r248713  
    7474class ServiceWorkerFrameLoaderClient final : public EmptyFrameLoaderClient {
    7575public:
    76     ServiceWorkerFrameLoaderClient(WebSWContextManagerConnection& connection, PAL::SessionID sessionID, WebCore::PageIdentifier pageID, uint64_t frameID, const String& userAgent)
     76    ServiceWorkerFrameLoaderClient(WebSWContextManagerConnection& connection, PAL::SessionID sessionID, WebCore::PageIdentifier pageID, FrameIdentifier frameID, const String& userAgent)
    7777        : m_connection(connection)
    7878        , m_sessionID(sessionID)
     
    9797    PAL::SessionID sessionID() const final { return m_sessionID; }
    9898    Optional<WebCore::PageIdentifier> pageID() const final { return m_pageID; }
    99     Optional<uint64_t> frameID() const final { return m_frameID; }
     99    Optional<WebCore::FrameIdentifier> frameID() const final { return m_frameID; }
    100100    String userAgent(const URL&) final { return m_userAgent; }
    101101
    102102    WebSWContextManagerConnection& m_connection;
    103103    PAL::SessionID m_sessionID;
    104     WebCore::PageIdentifier m_pageID;
    105     uint64_t m_frameID { 0 };
     104    PageIdentifier m_pageID;
     105    FrameIdentifier m_frameID;
    106106    String m_userAgent;
    107107};
     
    154154    // FIXME: This method should be moved directly to WebCore::SWContextManager::Connection
    155155    // If it weren't for ServiceWorkerFrameLoaderClient's dependence on WebDocumentLoader, this could already happen.
    156     auto frameLoaderClient = std::make_unique<ServiceWorkerFrameLoaderClient>(*this, sessionID, m_pageID, ++m_previousServiceWorkerID, effectiveUserAgent);
     156    // FIXME: Weird to pass m_previousServiceWorkerID as a FrameIdentifier.
     157    auto frameLoaderClient = std::make_unique<ServiceWorkerFrameLoaderClient>(*this, sessionID, m_pageID, frameIdentifierFromID(++m_previousServiceWorkerID), effectiveUserAgent);
    157158    pageConfiguration.loaderClientForMainFrame = frameLoaderClient.get();
    158159    m_loaders.add(WTFMove(frameLoaderClient));
  • trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp

    r248139 r248713  
    266266    WebFrame* webFrame = frame ? WebFrame::fromCoreFrame(*frame) : nullptr;
    267267
    268     WebProcess::singleton().parentProcessConnection()->send(Messages::WebPageProxy::FocusedFrameChanged(webFrame ? webFrame->frameID() : 0), m_page.pageID());
     268    WebProcess::singleton().parentProcessConnection()->send(Messages::WebPageProxy::FocusedFrameChanged(webFrame ? makeOptional(webFrame->frameID()) : WTF::nullopt), m_page.pageID());
    269269}
    270270
     
    626626        if (largestFrame != m_cachedFrameSetLargestFrame.get()) {
    627627            m_cachedFrameSetLargestFrame = largestFrame;
    628             m_page.send(Messages::WebPageProxy::FrameSetLargestFrameChanged(largestFrame ? largestFrame->frameID() : 0));
     628            m_page.send(Messages::WebPageProxy::FrameSetLargestFrameChanged(largestFrame ? makeOptional(largestFrame->frameID()) : WTF::nullopt));
    629629        }
    630630    }
     
    13171317
    13181318#if ENABLE(RESOURCE_LOAD_STATISTICS)
    1319 void WebChromeClient::hasStorageAccess(RegistrableDomain&& subFrameDomain, RegistrableDomain&& topFrameDomain, uint64_t frameID, PageIdentifier, CompletionHandler<void(bool)>&& completionHandler)
     1319void WebChromeClient::hasStorageAccess(RegistrableDomain&& subFrameDomain, RegistrableDomain&& topFrameDomain, FrameIdentifier frameID, PageIdentifier, CompletionHandler<void(bool)>&& completionHandler)
    13201320{
    13211321    m_page.hasStorageAccess(WTFMove(subFrameDomain), WTFMove(topFrameDomain), frameID, WTFMove(completionHandler));
    13221322}
    13231323
    1324 void WebChromeClient::requestStorageAccess(RegistrableDomain&& subFrameDomain, RegistrableDomain&& topFrameDomain, uint64_t frameID, PageIdentifier, CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&& completionHandler)
     1324void WebChromeClient::requestStorageAccess(RegistrableDomain&& subFrameDomain, RegistrableDomain&& topFrameDomain, FrameIdentifier frameID, PageIdentifier, CompletionHandler<void(StorageAccessWasGranted, StorageAccessPromptWasShown)>&& completionHandler)
    13251325{
    13261326    m_page.requestStorageAccess(WTFMove(subFrameDomain), WTFMove(topFrameDomain), frameID, WTFMove(completionHandler));
  • trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h

    r248139 r248713  
    368368
    369369#if ENABLE(RESOURCE_LOAD_STATISTICS)
    370     void hasStorageAccess(WebCore::RegistrableDomain&& subFrameDomain, WebCore::RegistrableDomain&& topFrameDomain, uint64_t frameID, WebCore::PageIdentifier, WTF::CompletionHandler<void(bool)>&&) final;
    371     void requestStorageAccess(WebCore::RegistrableDomain&& subFrameDomain, WebCore::RegistrableDomain&& topFrameDomain, uint64_t frameID, WebCore::PageIdentifier, WTF::CompletionHandler<void(WebCore::StorageAccessWasGranted, WebCore::StorageAccessPromptWasShown)>&&) final;
     370    void hasStorageAccess(WebCore::RegistrableDomain&& subFrameDomain, WebCore::RegistrableDomain&& topFrameDomain, WebCore::FrameIdentifier, WebCore::PageIdentifier, WTF::CompletionHandler<void(bool)>&&) final;
     371    void requestStorageAccess(WebCore::RegistrableDomain&& subFrameDomain, WebCore::RegistrableDomain&& topFrameDomain, WebCore::FrameIdentifier, WebCore::PageIdentifier, WTF::CompletionHandler<void(WebCore::StorageAccessWasGranted, WebCore::StorageAccessPromptWasShown)>&&) final;
    372372#endif
    373373
  • trunk/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

    r248522 r248713  
    121121}
    122122
    123 Optional<uint64_t> WebFrameLoaderClient::frameID() const
     123Optional<FrameIdentifier> WebFrameLoaderClient::frameID() const
    124124{
    125125    if (m_frame)
     
    547547        return;
    548548
    549     RELEASE_LOG(Network, "%p - WebFrameLoaderClient::dispatchDidFailProvisionalLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ")", this, webPage->pageID().toUInt64(), m_frame->frameID());
     549    RELEASE_LOG(Network, "%p - WebFrameLoaderClient::dispatchDidFailProvisionalLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ")", this, webPage->pageID().toUInt64(), m_frame->frameID().toUInt64());
    550550
    551551    RefPtr<API::Object> userData;
     
    583583        return;
    584584
    585     RELEASE_LOG(Network, "%p - WebFrameLoaderClient::dispatchDidFailLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ")", this, webPage->pageID().toUInt64(), m_frame->frameID());
     585    RELEASE_LOG(Network, "%p - WebFrameLoaderClient::dispatchDidFailLoad: (pageID = %" PRIu64 ", frameID = %" PRIu64 ")", this, webPage->pageID().toUInt64(), m_frame->frameID().toUInt64());
    586586
    587587    RefPtr<API::Object> userData;
  • trunk/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.h

    r245796 r248713  
    5353
    5454    Optional<WebCore::PageIdentifier> pageID() const final;
    55     Optional<uint64_t> frameID() const final;
     55    Optional<WebCore::FrameIdentifier> frameID() const final;
    5656    PAL::SessionID sessionID() const final;
    5757
  • trunk/Source/WebKit/WebProcess/WebPage/WebCookieJar.cpp

    r245796 r248713  
    5151String WebCookieJar::cookies(WebCore::Document& document, const URL& url) const
    5252{
    53     Optional<uint64_t> frameID;
     53    Optional<FrameIdentifier> frameID;
    5454    Optional<PageIdentifier> pageID;
    5555    if (auto* frame = document.frame()) {
     
    6868void WebCookieJar::setCookies(WebCore::Document& document, const URL& url, const String& cookieString)
    6969{
    70     Optional<uint64_t> frameID;
     70    Optional<FrameIdentifier> frameID;
    7171    Optional<PageIdentifier> pageID;
    7272    if (auto* frame = document.frame()) {
     
    8686}
    8787
    88 std::pair<String, WebCore::SecureCookiesAccessed> WebCookieJar::cookieRequestHeaderFieldValue(const PAL::SessionID& sessionID, const URL& firstParty, const WebCore::SameSiteInfo& sameSiteInfo, const URL& url, Optional<uint64_t> frameID, Optional<PageIdentifier> pageID, WebCore::IncludeSecureCookies includeSecureCookies) const
     88std::pair<String, WebCore::SecureCookiesAccessed> WebCookieJar::cookieRequestHeaderFieldValue(const PAL::SessionID& sessionID, const URL& firstParty, const WebCore::SameSiteInfo& sameSiteInfo, const URL& url, Optional<FrameIdentifier> frameID, Optional<PageIdentifier> pageID, WebCore::IncludeSecureCookies includeSecureCookies) const
    8989{
    9090    String cookieString;
     
    9797bool WebCookieJar::getRawCookies(const WebCore::Document& document, const URL& url, Vector<WebCore::Cookie>& rawCookies) const
    9898{
    99     Optional<uint64_t> frameID;
     99    Optional<FrameIdentifier> frameID;
    100100    Optional<PageIdentifier> pageID;
    101101    if (auto* frame = document.frame()) {
  • trunk/Source/WebKit/WebProcess/WebPage/WebCookieJar.h

    r245796 r248713  
    3737    void setCookies(WebCore::Document&, const URL&, const String& cookieString) final;
    3838    bool cookiesEnabled(const WebCore::Document&) const final;
    39     std::pair<String, WebCore::SecureCookiesAccessed> cookieRequestHeaderFieldValue(const PAL::SessionID&, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, Optional<uint64_t> frameID, Optional<WebCore::PageIdentifier>, WebCore::IncludeSecureCookies) const final;
     39    std::pair<String, WebCore::SecureCookiesAccessed> cookieRequestHeaderFieldValue(const PAL::SessionID&, const URL& firstParty, const WebCore::SameSiteInfo&, const URL&, Optional<WebCore::FrameIdentifier>, Optional<WebCore::PageIdentifier>, WebCore::IncludeSecureCookies) const final;
    4040    bool getRawCookies(const WebCore::Document&, const URL&, Vector<WebCore::Cookie>&) const final;
    4141    void deleteCookie(const WebCore::Document&, const URL&, const String& cookieName) final;
  • trunk/Source/WebKit/WebProcess/WebPage/WebFrame.cpp

    r247921 r248713  
    9696DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, webFrameCounter, ("WebFrame"));
    9797
    98 static uint64_t generateFrameID()
    99 {
    100     static uint64_t uniqueFrameID = 1;
    101     return uniqueFrameID++;
    102 }
    103 
    10498static uint64_t generateListenerID()
    10599{
     
    149143WebFrame::WebFrame(std::unique_ptr<WebFrameLoaderClient> frameLoaderClient)
    150144    : m_frameLoaderClient(WTFMove(frameLoaderClient))
    151     , m_frameID(generateFrameID())
     145    , m_frameID(FrameIdentifier::generate())
    152146{
    153147    m_frameLoaderClient->setWebFrame(this);
  • trunk/Source/WebKit/WebProcess/WebPage/WebFrame.h

    r244493 r248713  
    8181
    8282    FrameInfoData info() const;
    83     uint64_t frameID() const { return m_frameID; }
     83    WebCore::FrameIdentifier frameID() const { return m_frameID; }
    8484
    8585    enum class ForNavigationAction { No, Yes };
     
    188188    LoadListener* m_loadListener { nullptr };
    189189   
    190     uint64_t m_frameID { 0 };
     190    WebCore::FrameIdentifier m_frameID;
    191191
    192192#if PLATFORM(IOS_FAMILY)
  • trunk/Source/WebKit/WebProcess/WebPage/WebInspector.cpp

    r248177 r248713  
    210210}
    211211
    212 void WebInspector::showMainResourceForFrame(uint64_t frameIdentifier)
     212void WebInspector::showMainResourceForFrame(WebCore::FrameIdentifier frameIdentifier)
    213213{
    214214    WebFrame* frame = WebProcess::singleton().webFrame(frameIdentifier);
  • trunk/Source/WebKit/WebProcess/WebPage/WebInspector.h

    r248177 r248713  
    2929#include "Connection.h"
    3030#include "MessageReceiver.h"
     31#include <WebCore/FrameIdentifier.h>
    3132#include <wtf/Noncopyable.h>
    3233#include <wtf/text/WTFString.h>
     
    6162    void showResources();
    6263
    63     void showMainResourceForFrame(uint64_t frameIdentifier);
     64    void showMainResourceForFrame(WebCore::FrameIdentifier);
    6465
    6566    void setAttached(bool attached) { m_attached = attached; }
  • trunk/Source/WebKit/WebProcess/WebPage/WebInspector.messages.in

    r248177 r248713  
    3030    ShowResources()
    3131
    32     ShowMainResourceForFrame(uint64_t frameIdentifier)
     32    ShowMainResourceForFrame(WebCore::FrameIdentifier frameIdentifier)
    3333
    3434    OpenInNewTab(String url)
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp

    r248522 r248713  
    14981498}
    14991499
    1500 void WebPage::loadURLInFrame(URL&& url, const String& referrer, uint64_t frameID)
     1500void WebPage::loadURLInFrame(URL&& url, const String& referrer, FrameIdentifier frameID)
    15011501{
    15021502    WebFrame* frame = WebProcess::singleton().webFrame(frameID);
     
    15071507}
    15081508
    1509 void WebPage::loadDataInFrame(IPC::DataReference&& data, String&& MIMEType, String&& encodingName, URL&& baseURL, uint64_t frameID)
     1509void WebPage::loadDataInFrame(IPC::DataReference&& data, String&& MIMEType, String&& encodingName, URL&& baseURL, FrameIdentifier frameID)
    15101510{
    15111511    WebFrame* frame = WebProcess::singleton().webFrame(frameID);
     
    16151615}
    16161616
    1617 void WebPage::stopLoadingFrame(uint64_t frameID)
     1617void WebPage::stopLoadingFrame(FrameIdentifier frameID)
    16181618{
    16191619    WebFrame* frame = WebProcess::singleton().webFrame(frameID);
     
    32353235}
    32363236
    3237 void WebPage::didReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, PolicyCheckIdentifier identifier, PolicyAction policyAction, uint64_t navigationID, const DownloadID& downloadID, Optional<WebsitePoliciesData>&& websitePolicies)
     3237void WebPage::didReceivePolicyDecision(FrameIdentifier frameID, uint64_t listenerID, PolicyCheckIdentifier identifier, PolicyAction policyAction, uint64_t navigationID, const DownloadID& downloadID, Optional<WebsitePoliciesData>&& websitePolicies)
    32383238{
    32393239    WebFrame* frame = WebProcess::singleton().webFrame(frameID);
     
    32433243}
    32443244
    3245 void WebPage::continueWillSubmitForm(uint64_t frameID, uint64_t listenerID)
     3245void WebPage::continueWillSubmitForm(FrameIdentifier frameID, uint64_t listenerID)
    32463246{
    32473247    WebFrame* frame = WebProcess::singleton().webFrame(frameID);
     
    33853385}
    33863386
    3387 void WebPage::runJavaScriptInFrame(uint64_t frameID, const String& script, bool forceUserGesture, CallbackID callbackID)
     3387void WebPage::runJavaScriptInFrame(FrameIdentifier frameID, const String& script, bool forceUserGesture, CallbackID callbackID)
    33883388{
    33893389    WebFrame* frame = WebProcess::singleton().webFrame(frameID);
     
    34463446}
    34473447
    3448 void WebPage::getSourceForFrame(uint64_t frameID, CallbackID callbackID)
     3448void WebPage::getSourceForFrame(FrameIdentifier frameID, CallbackID callbackID)
    34493449{
    34503450    String resultString;
     
    34553455}
    34563456
    3457 void WebPage::getMainResourceDataOfFrame(uint64_t frameID, CallbackID callbackID)
     3457void WebPage::getMainResourceDataOfFrame(FrameIdentifier frameID, CallbackID callbackID)
    34583458{
    34593459    RefPtr<SharedBuffer> buffer;
     
    34863486}
    34873487
    3488 void WebPage::getResourceDataFromFrame(uint64_t frameID, const String& resourceURLString, CallbackID callbackID)
     3488void WebPage::getResourceDataFromFrame(FrameIdentifier frameID, const String& resourceURLString, CallbackID callbackID)
    34893489{
    34903490    RefPtr<SharedBuffer> buffer;
     
    35003500}
    35013501
    3502 void WebPage::getWebArchiveOfFrame(uint64_t frameID, CallbackID callbackID)
     3502void WebPage::getWebArchiveOfFrame(FrameIdentifier frameID, CallbackID callbackID)
    35033503{
    35043504#if PLATFORM(COCOA)
     
    38033803#endif
    38043804
    3805 void WebPage::addConsoleMessage(uint64_t frameID, MessageSource messageSource, MessageLevel messageLevel, const String& message, uint64_t requestID)
     3805void WebPage::addConsoleMessage(FrameIdentifier frameID, MessageSource messageSource, MessageLevel messageLevel, const String& message, uint64_t requestID)
    38063806{
    38073807    if (auto* frame = WebProcess::singleton().webFrame(frameID))
     
    38093809}
    38103810
    3811 void WebPage::sendCSPViolationReport(uint64_t frameID, const URL& reportURL, IPC::FormDataReference&& reportData)
     3811void WebPage::sendCSPViolationReport(FrameIdentifier frameID, const URL& reportURL, IPC::FormDataReference&& reportData)
    38123812{
    38133813    auto report = reportData.takeData();
     
    38183818}
    38193819
    3820 void WebPage::enqueueSecurityPolicyViolationEvent(uint64_t frameID, SecurityPolicyViolationEvent::Init&& eventInit)
     3820void WebPage::enqueueSecurityPolicyViolationEvent(FrameIdentifier frameID, SecurityPolicyViolationEvent::Init&& eventInit)
    38213821{
    38223822    auto* frame = WebProcess::singleton().webFrame(frameID);
     
    46814681#endif
    46824682
    4683 void WebPage::beginPrinting(uint64_t frameID, const PrintInfo& printInfo)
     4683void WebPage::beginPrinting(FrameIdentifier frameID, const PrintInfo& printInfo)
    46844684{
    46854685    WebFrame* frame = WebProcess::singleton().webFrame(frameID);
     
    47254725}
    47264726
    4727 void WebPage::computePagesForPrinting(uint64_t frameID, const PrintInfo& printInfo, CallbackID callbackID)
     4727void WebPage::computePagesForPrinting(FrameIdentifier frameID, const PrintInfo& printInfo, CallbackID callbackID)
    47284728{
    47294729    Vector<IntRect> resultPageRects;
     
    47344734}
    47354735
    4736 void WebPage::computePagesForPrintingImpl(uint64_t frameID, const PrintInfo& printInfo, Vector<WebCore::IntRect>& resultPageRects, double& resultTotalScaleFactorForPrinting, FloatBoxExtent& computedPageMargin)
     4736void WebPage::computePagesForPrintingImpl(FrameIdentifier frameID, const PrintInfo& printInfo, Vector<WebCore::IntRect>& resultPageRects, double& resultTotalScaleFactorForPrinting, FloatBoxExtent& computedPageMargin)
    47374737{
    47384738    ASSERT(resultPageRects.isEmpty());
     
    47574757
    47584758#if PLATFORM(COCOA)
    4759 void WebPage::drawRectToImage(uint64_t frameID, const PrintInfo& printInfo, const IntRect& rect, const WebCore::IntSize& imageSize, CallbackID callbackID)
     4759void WebPage::drawRectToImage(FrameIdentifier frameID, const PrintInfo& printInfo, const IntRect& rect, const WebCore::IntSize& imageSize, CallbackID callbackID)
    47604760{
    47614761    WebFrame* frame = WebProcess::singleton().webFrame(frameID);
     
    48074807}
    48084808
    4809 void WebPage::drawPagesToPDF(uint64_t frameID, const PrintInfo& printInfo, uint32_t first, uint32_t count, CallbackID callbackID)
     4809void WebPage::drawPagesToPDF(FrameIdentifier frameID, const PrintInfo& printInfo, uint32_t first, uint32_t count, CallbackID callbackID)
    48104810{
    48114811    RetainPtr<CFMutableDataRef> pdfPageData;
     
    48144814}
    48154815
    4816 void WebPage::drawPagesToPDFImpl(uint64_t frameID, const PrintInfo& printInfo, uint32_t first, uint32_t count, RetainPtr<CFMutableDataRef>& pdfPageData)
     4816void WebPage::drawPagesToPDFImpl(FrameIdentifier frameID, const PrintInfo& printInfo, uint32_t first, uint32_t count, RetainPtr<CFMutableDataRef>& pdfPageData)
    48174817{
    48184818    WebFrame* frame = WebProcess::singleton().webFrame(frameID);
     
    48654865
    48664866#elif PLATFORM(GTK)
    4867 void WebPage::drawPagesForPrinting(uint64_t frameID, const PrintInfo& printInfo, CallbackID callbackID)
     4867void WebPage::drawPagesForPrinting(FrameIdentifier frameID, const PrintInfo& printInfo, CallbackID callbackID)
    48684868{
    48694869    beginPrinting(frameID, printInfo);
     
    65036503}
    65046504
    6505 void WebPage::frameBecameRemote(uint64_t frameID, GlobalFrameIdentifier&& remoteFrameIdentifier, GlobalWindowIdentifier&& remoteWindowIdentifier)
     6505void WebPage::frameBecameRemote(FrameIdentifier frameID, GlobalFrameIdentifier&& remoteFrameIdentifier, GlobalWindowIdentifier&& remoteWindowIdentifier)
    65066506{
    65076507    RefPtr<WebFrame> frame = WebProcess::singleton().webFrame(frameID);
     
    65356535
    65366536#if ENABLE(RESOURCE_LOAD_STATISTICS)
    6537 void WebPage::hasStorageAccess(RegistrableDomain&& subFrameDomain, RegistrableDomain&& topFrameDomain, uint64_t frameID, CompletionHandler<void(bool)>&& completionHandler)
     6537void WebPage::hasStorageAccess(RegistrableDomain&& subFrameDomain, RegistrableDomain&& topFrameDomain, FrameIdentifier frameID, CompletionHandler<void(bool)>&& completionHandler)
    65386538{
    65396539    WebProcess::singleton().ensureNetworkProcessConnection().connection().sendWithAsyncReply(Messages::NetworkConnectionToWebProcess::HasStorageAccess(sessionID(), WTFMove(subFrameDomain), WTFMove(topFrameDomain), frameID, m_pageID), WTFMove(completionHandler));
    65406540}
    65416541
    6542 void WebPage::requestStorageAccess(RegistrableDomain&& subFrameDomain, RegistrableDomain&& topFrameDomain, uint64_t frameID, CompletionHandler<void(WebCore::StorageAccessWasGranted, WebCore::StorageAccessPromptWasShown)>&& completionHandler)
     6542void WebPage::requestStorageAccess(RegistrableDomain&& subFrameDomain, RegistrableDomain&& topFrameDomain, FrameIdentifier frameID, CompletionHandler<void(WebCore::StorageAccessWasGranted, WebCore::StorageAccessPromptWasShown)>&& completionHandler)
    65436543{
    65446544    WebProcess::singleton().ensureNetworkProcessConnection().connection().sendWithAsyncReply(Messages::NetworkConnectionToWebProcess::RequestStorageAccess(sessionID(), WTFMove(subFrameDomain), WTFMove(topFrameDomain), frameID, m_pageID), WTFMove(completionHandler));
     
    65566556
    65576557#if ENABLE(DEVICE_ORIENTATION)
    6558 void WebPage::shouldAllowDeviceOrientationAndMotionAccess(uint64_t frameID, WebCore::SecurityOriginData&& origin, bool mayPrompt, CompletionHandler<void(DeviceOrientationOrMotionPermissionState)>&& completionHandler)
     6558void WebPage::shouldAllowDeviceOrientationAndMotionAccess(FrameIdentifier frameID, WebCore::SecurityOriginData&& origin, bool mayPrompt, CompletionHandler<void(DeviceOrientationOrMotionPermissionState)>&& completionHandler)
    65596559{
    65606560    sendWithAsyncReply(Messages::WebPageProxy::ShouldAllowDeviceOrientationAndMotionAccess(frameID, WTFMove(origin), mayPrompt), WTFMove(completionHandler));
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.h

    r248700 r248713  
    347347#endif
    348348
    349     void addConsoleMessage(uint64_t frameID, MessageSource, MessageLevel, const String&, uint64_t requestID = 0);
    350     void sendCSPViolationReport(uint64_t frameID, const URL& reportURL, IPC::FormDataReference&&);
    351     void enqueueSecurityPolicyViolationEvent(uint64_t frameID, WebCore::SecurityPolicyViolationEvent::Init&&);
     349    void addConsoleMessage(WebCore::FrameIdentifier, MessageSource, MessageLevel, const String&, uint64_t requestID = 0);
     350    void sendCSPViolationReport(WebCore::FrameIdentifier, const URL& reportURL, IPC::FormDataReference&&);
     351    void enqueueSecurityPolicyViolationEvent(WebCore::FrameIdentifier, WebCore::SecurityPolicyViolationEvent::Init&&);
    352352
    353353    // -- Called by the DrawingArea.
     
    523523
    524524    void stopLoading();
    525     void stopLoadingFrame(uint64_t frameID);
     525    void stopLoadingFrame(WebCore::FrameIdentifier);
    526526    bool defersLoading() const;
    527527    void setDefersLoading(bool deferLoading);
     
    770770    void cancelComposition();
    771771
    772     void collapseSelectionInFrame(uint64_t frameID);
     772    void collapseSelectionInFrame(WebCore::FrameIdentifier);
    773773    void showEmojiPicker(WebCore::Frame&);
    774774
     
    863863#endif
    864864
    865     void beginPrinting(uint64_t frameID, const PrintInfo&);
     865    void beginPrinting(WebCore::FrameIdentifier, const PrintInfo&);
    866866    void endPrinting();
    867     void computePagesForPrinting(uint64_t frameID, const PrintInfo&, CallbackID);
    868     void computePagesForPrintingImpl(uint64_t frameID, const PrintInfo&, Vector<WebCore::IntRect>& pageRects, double& totalScaleFactor, WebCore::FloatBoxExtent& computedMargin);
     867    void computePagesForPrinting(WebCore::FrameIdentifier, const PrintInfo&, CallbackID);
     868    void computePagesForPrintingImpl(WebCore::FrameIdentifier, const PrintInfo&, Vector<WebCore::IntRect>& pageRects, double& totalScaleFactor, WebCore::FloatBoxExtent& computedMargin);
    869869
    870870#if PLATFORM(COCOA)
    871     void drawRectToImage(uint64_t frameID, const PrintInfo&, const WebCore::IntRect&, const WebCore::IntSize&, CallbackID);
    872     void drawPagesToPDF(uint64_t frameID, const PrintInfo&, uint32_t first, uint32_t count, CallbackID);
    873     void drawPagesToPDFImpl(uint64_t frameID, const PrintInfo&, uint32_t first, uint32_t count, RetainPtr<CFMutableDataRef>& pdfPageData);
     871    void drawRectToImage(WebCore::FrameIdentifier, const PrintInfo&, const WebCore::IntRect&, const WebCore::IntSize&, CallbackID);
     872    void drawPagesToPDF(WebCore::FrameIdentifier, const PrintInfo&, uint32_t first, uint32_t count, CallbackID);
     873    void drawPagesToPDFImpl(WebCore::FrameIdentifier, const PrintInfo&, uint32_t first, uint32_t count, RetainPtr<CFMutableDataRef>& pdfPageData);
    874874#endif
    875875
    876876#if PLATFORM(IOS_FAMILY)
    877     void computePagesForPrintingAndDrawToPDF(uint64_t frameID, const PrintInfo&, CallbackID, Messages::WebPage::ComputePagesForPrintingAndDrawToPDF::DelayedReply&&);
     877    void computePagesForPrintingAndDrawToPDF(WebCore::FrameIdentifier, const PrintInfo&, CallbackID, Messages::WebPage::ComputePagesForPrintingAndDrawToPDF::DelayedReply&&);
    878878#endif
    879879
    880880#if PLATFORM(GTK)
    881     void drawPagesForPrinting(uint64_t frameID, const PrintInfo&, CallbackID);
     881    void drawPagesForPrinting(WebCore::FrameIdentifier, const PrintInfo&, CallbackID);
    882882    void didFinishPrintOperation(const WebCore::ResourceError&, CallbackID);
    883883#endif
     
    11321132
    11331133#if ENABLE(RESOURCE_LOAD_STATISTICS)
    1134     void hasStorageAccess(WebCore::RegistrableDomain&& subFrameDomain, WebCore::RegistrableDomain&& topFrameDomain, uint64_t frameID, CompletionHandler<void(bool)>&&);
    1135     void requestStorageAccess(WebCore::RegistrableDomain&& subFrameDomain, WebCore::RegistrableDomain&& topFrameDomain, uint64_t frameID, CompletionHandler<void(WebCore::StorageAccessWasGranted, WebCore::StorageAccessPromptWasShown)>&&);
     1134    void hasStorageAccess(WebCore::RegistrableDomain&& subFrameDomain, WebCore::RegistrableDomain&& topFrameDomain, WebCore::FrameIdentifier, CompletionHandler<void(bool)>&&);
     1135    void requestStorageAccess(WebCore::RegistrableDomain&& subFrameDomain, WebCore::RegistrableDomain&& topFrameDomain, WebCore::FrameIdentifier, CompletionHandler<void(WebCore::StorageAccessWasGranted, WebCore::StorageAccessPromptWasShown)>&&);
    11361136    void wasLoadedWithDataTransferFromPrevalentResource();
    11371137#endif
    11381138
    11391139#if ENABLE(DEVICE_ORIENTATION)
    1140     void shouldAllowDeviceOrientationAndMotionAccess(uint64_t frameID, WebCore::SecurityOriginData&&, bool mayPrompt, CompletionHandler<void(WebCore::DeviceOrientationOrMotionPermissionState)>&&);
     1140    void shouldAllowDeviceOrientationAndMotionAccess(WebCore::FrameIdentifier, WebCore::SecurityOriginData&&, bool mayPrompt, CompletionHandler<void(WebCore::DeviceOrientationOrMotionPermissionState)>&&);
    11411141#endif
    11421142
     
    13571357    static bool logicalScroll(WebCore::Page*, WebCore::ScrollLogicalDirection, WebCore::ScrollGranularity);
    13581358
    1359     void loadURLInFrame(URL&&, const String& referrer, uint64_t frameID);
    1360     void loadDataInFrame(IPC::DataReference&&, String&& MIMEType, String&& encodingName, URL&& baseURL, uint64_t frameID);
     1359    void loadURLInFrame(URL&&, const String& referrer, WebCore::FrameIdentifier);
     1360    void loadDataInFrame(IPC::DataReference&&, String&& MIMEType, String&& encodingName, URL&& baseURL, WebCore::FrameIdentifier);
    13611361
    13621362    enum class WasRestoredByAPIRequest { No, Yes };
     
    13901390    void getContentsAsMHTMLData(CallbackID);
    13911391#endif
    1392     void getMainResourceDataOfFrame(uint64_t frameID, CallbackID);
    1393     void getResourceDataFromFrame(uint64_t frameID, const String& resourceURL, CallbackID);
     1392    void getMainResourceDataOfFrame(WebCore::FrameIdentifier, CallbackID);
     1393    void getResourceDataFromFrame(WebCore::FrameIdentifier, const String& resourceURL, CallbackID);
    13941394    void getRenderTreeExternalRepresentation(CallbackID);
    13951395    void getSelectionOrContentsAsString(CallbackID);
    13961396    void getSelectionAsWebArchiveData(CallbackID);
    1397     void getSourceForFrame(uint64_t frameID, CallbackID);
    1398     void getWebArchiveOfFrame(uint64_t frameID, CallbackID);
     1397    void getSourceForFrame(WebCore::FrameIdentifier, CallbackID);
     1398    void getWebArchiveOfFrame(WebCore::FrameIdentifier, CallbackID);
    13991399    void runJavaScript(WebFrame*, const String&, bool forceUserGesture, const Optional<String>& worldName, CallbackID);
    14001400    void runJavaScriptInMainFrameScriptWorld(const String&, bool forceUserGesture, const Optional<String>& worldName, CallbackID);
    1401     void runJavaScriptInFrame(uint64_t frameID, const String&, bool forceUserGesture, CallbackID);
     1401    void runJavaScriptInFrame(WebCore::FrameIdentifier, const String&, bool forceUserGesture, CallbackID);
    14021402    void forceRepaint(CallbackID);
    14031403    void takeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, CallbackID);
     
    14131413#endif
    14141414
    1415     void didReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, WebCore::PolicyCheckIdentifier, WebCore::PolicyAction, uint64_t navigationID, const DownloadID&, Optional<WebsitePoliciesData>&&);
    1416     void continueWillSubmitForm(uint64_t frameID, uint64_t listenerID);
     1415    void didReceivePolicyDecision(WebCore::FrameIdentifier, uint64_t listenerID, WebCore::PolicyCheckIdentifier, WebCore::PolicyAction, uint64_t navigationID, const DownloadID&, Optional<WebsitePoliciesData>&&);
     1416    void continueWillSubmitForm(WebCore::FrameIdentifier, uint64_t listenerID);
    14171417    void setUserAgent(const String&);
    14181418    void setCustomTextEncodingName(const String&);
     
    14321432
    14331433    RetainPtr<PDFDocument> pdfDocumentForPrintingFrame(WebCore::Frame*);
    1434     void computePagesForPrintingPDFDocument(uint64_t frameID, const PrintInfo&, Vector<WebCore::IntRect>& resultPageRects);
     1434    void computePagesForPrintingPDFDocument(WebCore::FrameIdentifier, const PrintInfo&, Vector<WebCore::IntRect>& resultPageRects);
    14351435    void drawPDFDocument(CGContextRef, PDFDocument *, const PrintInfo&, const WebCore::IntRect&);
    14361436    void drawPagesToPDFFromPDFDocument(CGContextRef, PDFDocument *, const PrintInfo&, uint32_t first, uint32_t count);
     
    15851585#endif
    15861586
    1587     void frameBecameRemote(uint64_t frameID, WebCore::GlobalFrameIdentifier&& remoteFrameIdentifier, WebCore::GlobalWindowIdentifier&& remoteWindowIdentifier);
     1587    void frameBecameRemote(WebCore::FrameIdentifier, WebCore::GlobalFrameIdentifier&& remoteFrameIdentifier, WebCore::GlobalWindowIdentifier&& remoteWindowIdentifier);
    15881588
    15891589    void registerURLSchemeHandler(uint64_t identifier, const String& scheme);
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.messages.in

    r248522 r248713  
    2828    SetBackgroundColor(Optional<WebCore::Color> color)
    2929
    30     AddConsoleMessage(uint64_t frameID, enum:uint8_t JSC::MessageSource messageSource, enum:uint8_t JSC::MessageLevel messageLevel, String message, uint64_t requestID)
    31     SendCSPViolationReport(uint64_t frameID, URL reportURL, IPC::FormDataReference reportData)
    32     EnqueueSecurityPolicyViolationEvent(uint64_t frameID, WebCore::SecurityPolicyViolationEvent::Init eventInit)
     30    AddConsoleMessage(WebCore::FrameIdentifier frameID, enum:uint8_t JSC::MessageSource messageSource, enum:uint8_t JSC::MessageLevel messageLevel, String message, uint64_t requestID)
     31    SendCSPViolationReport(WebCore::FrameIdentifier frameID, URL reportURL, IPC::FormDataReference reportData)
     32    EnqueueSecurityPolicyViolationEvent(WebCore::FrameIdentifier frameID, WebCore::SecurityPolicyViolationEvent::Init eventInit)
    3333
    3434    TestProcessIncomingSyncMessagesWhenWaitingForSyncReply() -> (bool handled) Synchronous
     
    163163    TryRestoreScrollPosition()
    164164
    165     LoadURLInFrame(URL url, String referrer, uint64_t frameID)
    166     LoadDataInFrame(IPC::DataReference data, String MIMEType, String encodingName, URL baseURL, uint64_t frameID)
     165    LoadURLInFrame(URL url, String referrer, WebCore::FrameIdentifier frameID)
     166    LoadDataInFrame(IPC::DataReference data, String MIMEType, String encodingName, URL baseURL, WebCore::FrameIdentifier frameID)
    167167    LoadRequest(struct WebKit::LoadParameters loadParameters)
    168168    LoadData(struct WebKit::LoadParameters loadParameters)
     
    174174    StopLoading()
    175175
    176     StopLoadingFrame(uint64_t frameID)
     176    StopLoadingFrame(WebCore::FrameIdentifier frameID)
    177177   
    178178    RestoreSession(Vector<WebKit::BackForwardListItemState> itemStates)
     
    183183
    184184    UpdateWebsitePolicies(struct WebKit::WebsitePoliciesData websitePolicies)
    185     DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, WebCore::PolicyCheckIdentifier policyCheckIdentifier, enum:uint8_t WebCore::PolicyAction policyAction, uint64_t navigationID, WebKit::DownloadID downloadID, Optional<WebKit::WebsitePoliciesData> websitePolicies)
    186     ContinueWillSubmitForm(uint64_t frameID, uint64_t listenerID)
     185    DidReceivePolicyDecision(WebCore::FrameIdentifier frameID, uint64_t listenerID, WebCore::PolicyCheckIdentifier policyCheckIdentifier, enum:uint8_t WebCore::PolicyAction policyAction, uint64_t navigationID, WebKit::DownloadID downloadID, Optional<WebKit::WebsitePoliciesData> websitePolicies)
     186    ContinueWillSubmitForm(WebCore::FrameIdentifier frameID, uint64_t listenerID)
    187187
    188188    ClearSelection()
     
    197197    GetContentsAsMHTMLData(WebKit::CallbackID callbackID)
    198198#endif
    199     GetMainResourceDataOfFrame(uint64_t frameID, WebKit::CallbackID callbackID)
    200     GetResourceDataFromFrame(uint64_t frameID, String resourceURL, WebKit::CallbackID callbackID)
     199    GetMainResourceDataOfFrame(WebCore::FrameIdentifier frameID, WebKit::CallbackID callbackID)
     200    GetResourceDataFromFrame(WebCore::FrameIdentifier frameID, String resourceURL, WebKit::CallbackID callbackID)
    201201    GetRenderTreeExternalRepresentation(WebKit::CallbackID callbackID)
    202202    GetSelectionOrContentsAsString(WebKit::CallbackID callbackID)
    203203    GetSelectionAsWebArchiveData(WebKit::CallbackID callbackID)
    204     GetSourceForFrame(uint64_t frameID, WebKit::CallbackID callbackID)
    205     GetWebArchiveOfFrame(uint64_t frameID, WebKit::CallbackID callbackID)
     204    GetSourceForFrame(WebCore::FrameIdentifier frameID, WebKit::CallbackID callbackID)
     205    GetWebArchiveOfFrame(WebCore::FrameIdentifier frameID, WebKit::CallbackID callbackID)
    206206    RunJavaScriptInMainFrameScriptWorld(String script, bool forceUserGesture, Optional<String> worldName, WebKit::CallbackID callbackID)
    207     RunJavaScriptInFrame(uint64_t frameID, String script, bool forceUserGesture, WebKit::CallbackID callbackID)
     207    RunJavaScriptInFrame(WebCore::FrameIdentifier frameID, String script, bool forceUserGesture, WebKit::CallbackID callbackID)
    208208    ForceRepaint(WebKit::CallbackID callbackID)
    209209
     
    381381
    382382    # Printing.
    383     BeginPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo)
     383    BeginPrinting(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo)
    384384    EndPrinting()
    385     ComputePagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
    386 #if PLATFORM(COCOA)
    387     DrawRectToImage(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, WebKit::CallbackID callbackID)
    388     DrawPagesToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, WebKit::CallbackID callbackID)
     385    ComputePagesForPrinting(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
     386#if PLATFORM(COCOA)
     387    DrawRectToImage(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, WebKit::CallbackID callbackID)
     388    DrawPagesToPDF(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, WebKit::CallbackID callbackID)
    389389#if PLATFORM(IOS_FAMILY)
    390     ComputePagesForPrintingAndDrawToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID) -> (uint32_t pageCount) Synchronous
     390    ComputePagesForPrintingAndDrawToPDF(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID) -> (uint32_t pageCount) Synchronous
    391391#endif
    392392#endif
    393393#if PLATFORM(GTK)
    394     DrawPagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
     394    DrawPagesForPrinting(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
    395395#endif
    396396
     
    414414    CancelComposition()
    415415
    416     CollapseSelectionInFrame(uint64_t frameID)
     416    CollapseSelectionInFrame(WebCore::FrameIdentifier frameID)
    417417
    418418    GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center) Synchronous
     
    537537#endif
    538538
    539     FrameBecameRemote(uint64_t frameID, struct WebCore::GlobalFrameIdentifier remoteFrameIdentifier, struct WebCore::GlobalWindowIdentifier remoteWindowIdentifier)
     539    FrameBecameRemote(WebCore::FrameIdentifier frameID, struct WebCore::GlobalFrameIdentifier remoteFrameIdentifier, struct WebCore::GlobalWindowIdentifier remoteWindowIdentifier)
    540540
    541541    RegisterURLSchemeHandler(uint64_t identifier, String scheme)
  • trunk/Source/WebKit/WebProcess/WebPage/gtk/WebPageGtk.cpp

    r247719 r248713  
    184184}
    185185
    186 void WebPage::collapseSelectionInFrame(uint64_t frameID)
     186void WebPage::collapseSelectionInFrame(FrameIdentifier frameID)
    187187{
    188188    WebFrame* frame = WebProcess::singleton().webFrame(frameID);
  • trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm

    r248700 r248713  
    552552}
    553553
    554 void WebPage::computePagesForPrintingPDFDocument(uint64_t, const PrintInfo&, Vector<IntRect>&)
     554void WebPage::computePagesForPrintingPDFDocument(WebCore::FrameIdentifier, const PrintInfo&, Vector<IntRect>&)
    555555{
    556556    notImplemented();
     
    37063706#endif
    37073707
    3708 void WebPage::computePagesForPrintingAndDrawToPDF(uint64_t frameID, const PrintInfo& printInfo, CallbackID callbackID, Messages::WebPage::ComputePagesForPrintingAndDrawToPDF::DelayedReply&& reply)
     3708void WebPage::computePagesForPrintingAndDrawToPDF(WebCore::FrameIdentifier frameID, const PrintInfo& printInfo, CallbackID callbackID, Messages::WebPage::ComputePagesForPrintingAndDrawToPDF::DelayedReply&& reply)
    37093709{
    37103710    if (printInfo.snapshotFirstPage) {
  • trunk/Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm

    r247460 r248713  
    671671}
    672672
    673 void WebPage::computePagesForPrintingPDFDocument(uint64_t frameID, const PrintInfo& printInfo, Vector<IntRect>& resultPageRects)
     673void WebPage::computePagesForPrintingPDFDocument(WebCore::FrameIdentifier frameID, const PrintInfo& printInfo, Vector<IntRect>& resultPageRects)
    674674{
    675675    ASSERT(resultPageRects.isEmpty());
  • trunk/Source/WebKit/WebProcess/WebProcess.cpp

    r248697 r248713  
    769769}
    770770
    771 WebFrame* WebProcess::webFrame(uint64_t frameID) const
     771WebFrame* WebProcess::webFrame(FrameIdentifier frameID) const
    772772{
    773773    return m_frameMap.get(frameID);
    774774}
    775775
    776 void WebProcess::addWebFrame(uint64_t frameID, WebFrame* frame)
     776void WebProcess::addWebFrame(FrameIdentifier frameID, WebFrame* frame)
    777777{
    778778    m_frameMap.set(frameID, frame);
    779779}
    780780
    781 void WebProcess::removeWebFrame(uint64_t frameID)
     781void WebProcess::removeWebFrame(FrameIdentifier frameID)
    782782{
    783783    m_frameMap.remove(frameID);
  • trunk/Source/WebKit/WebProcess/WebProcess.h

    r246490 r248713  
    4141#include "WebSocketChannelManager.h"
    4242#include <WebCore/ActivityState.h>
     43#include <WebCore/FrameIdentifier.h>
    4344#include <WebCore/PageIdentifier.h>
    4445#include <WebCore/RegistrableDomain.h>
     
    173174    bool fullKeyboardAccessEnabled() const { return m_fullKeyboardAccessEnabled; }
    174175
    175     WebFrame* webFrame(uint64_t) const;
    176     void addWebFrame(uint64_t, WebFrame*);
    177     void removeWebFrame(uint64_t);
     176    WebFrame* webFrame(WebCore::FrameIdentifier) const;
     177    void addWebFrame(WebCore::FrameIdentifier, WebFrame*);
     178    void removeWebFrame(WebCore::FrameIdentifier);
    178179
    179180    WebPageGroupProxy* webPageGroup(WebCore::PageGroup*);
     
    490491    bool m_fullKeyboardAccessEnabled { false };
    491492
    492     HashMap<uint64_t, WebFrame*> m_frameMap;
     493    HashMap<WebCore::FrameIdentifier, WebFrame*> m_frameMap;
    493494
    494495    typedef HashMap<const char*, std::unique_ptr<WebProcessSupplement>, PtrHash<const char*>> WebProcessSupplementMap;
  • trunk/Source/WebKitLegacy/mac/ChangeLog

    r248699 r248713  
     12019-08-15  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Use ObjectIdentifier<FrameIdentifierType> for frameIDs
     4        https://bugs.webkit.org/show_bug.cgi?id=199986
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Use the strongly-typed FrameIdentifier instead of uint64_t as frame identifiers everywhere.
     9
     10        * WebCoreSupport/WebFrameLoaderClient.h:
     11        * WebCoreSupport/WebFrameLoaderClient.mm:
     12        (WebFrameLoaderClient::frameID const):
     13
    1142019-08-14  Ryan Haddad  <ryanhaddad@apple.com>
    215
  • trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.h

    r245796 r248713  
    6565
    6666    Optional<WebCore::PageIdentifier> pageID() const final;
    67     Optional<uint64_t> frameID() const final;
     67    Optional<WebCore::FrameIdentifier> frameID() const final;
    6868    PAL::SessionID sessionID() const final;
    6969
  • trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm

    r247416 r248713  
    215215}
    216216
    217 Optional<uint64_t> WebFrameLoaderClient::frameID() const
     217Optional<FrameIdentifier> WebFrameLoaderClient::frameID() const
    218218{
    219219    return WTF::nullopt;
  • trunk/Source/WebKitLegacy/win/WebCoreSupport/WebFrameLoaderClient.cpp

    r248444 r248713  
    128128}
    129129
    130 Optional<uint64_t> WebFrameLoaderClient::frameID() const
     130Optional<WebCore::FrameIdentifier> WebFrameLoaderClient::frameID() const
    131131{
    132132    return WTF::nullopt;
  • trunk/Source/WebKitLegacy/win/WebCoreSupport/WebFrameLoaderClient.h

    r245796 r248713  
    5353
    5454    Optional<WebCore::PageIdentifier> pageID() const final;
    55     Optional<uint64_t> frameID() const final;
     55    Optional<WebCore::FrameIdentifier> frameID() const final;
    5656    PAL::SessionID sessionID() const final;
    5757
Note: See TracChangeset for help on using the changeset viewer.