Title: [250280] trunk/Source/WebKit
Revision
250280
Author
[email protected]
Date
2019-09-23 21:26:29 -0700 (Mon, 23 Sep 2019)

Log Message

FrameSpecificStorageAccessIdentifier does not need a sessionID
https://bugs.webkit.org/show_bug.cgi?id=202093

Reviewed by Geoffrey Garen.

* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::requestStorageAccess):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (250279 => 250280)


--- trunk/Source/WebKit/ChangeLog	2019-09-24 03:54:13 UTC (rev 250279)
+++ trunk/Source/WebKit/ChangeLog	2019-09-24 04:26:29 UTC (rev 250280)
@@ -1,3 +1,14 @@
+2019-09-23  Chris Dumez  <[email protected]>
+
+        FrameSpecificStorageAccessIdentifier does not need a sessionID
+        https://bugs.webkit.org/show_bug.cgi?id=202093
+
+        Reviewed by Geoffrey Garen.
+
+        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::requestStorageAccess):
+
 2019-09-23  Tim Horton  <[email protected]>
 
         macOS: <datalist> dropdown shadow is cropped, looks nothing like NSComboBox

Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.h (250279 => 250280)


--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.h	2019-09-24 03:54:13 UTC (rev 250279)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.h	2019-09-24 04:26:29 UTC (rev 250280)
@@ -61,7 +61,6 @@
     bool hasFrameSpecificStorageAccess() final { return !!m_frameSpecificStorageAccessIdentifier; }
     
     struct FrameSpecificStorageAccessIdentifier {
-        PAL::SessionID sessionID;
         WebCore::FrameIdentifier frameID;
         WebCore::PageIdentifier pageID;
     };

Modified: trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp (250279 => 250280)


--- trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp	2019-09-24 03:54:13 UTC (rev 250279)
+++ trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp	2019-09-24 04:26:29 UTC (rev 250280)
@@ -6529,9 +6529,9 @@
 
 void WebPage::requestStorageAccess(RegistrableDomain&& subFrameDomain, RegistrableDomain&& topFrameDomain, WebFrame& frame, CompletionHandler<void(WebCore::StorageAccessWasGranted, WebCore::StorageAccessPromptWasShown)>&& completionHandler)
 {
-    WebProcess::singleton().ensureNetworkProcessConnection().connection().sendWithAsyncReply(Messages::NetworkConnectionToWebProcess::RequestStorageAccess(WTFMove(subFrameDomain), WTFMove(topFrameDomain), frame.frameID(), m_identifier, m_webPageProxyIdentifier), [completionHandler = WTFMove(completionHandler), frame = makeRef(frame), sessionID = sessionID(), pageID = m_identifier, frameID = frame.frameID()](StorageAccessWasGranted wasGranted, WebCore::StorageAccessPromptWasShown promptWasShown) mutable {
+    WebProcess::singleton().ensureNetworkProcessConnection().connection().sendWithAsyncReply(Messages::NetworkConnectionToWebProcess::RequestStorageAccess(WTFMove(subFrameDomain), WTFMove(topFrameDomain), frame.frameID(), m_identifier, m_webPageProxyIdentifier), [completionHandler = WTFMove(completionHandler), frame = makeRef(frame), pageID = m_identifier, frameID = frame.frameID()](StorageAccessWasGranted wasGranted, WebCore::StorageAccessPromptWasShown promptWasShown) mutable {
         if (wasGranted == StorageAccessWasGranted::Yes)
-            frame->frameLoaderClient()->setHasFrameSpecificStorageAccess({ sessionID, frameID, pageID });
+            frame->frameLoaderClient()->setHasFrameSpecificStorageAccess({ frameID, pageID });
         completionHandler(wasGranted, promptWasShown);
     });
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to