Title: [250281] trunk/Source
Revision
250281
Author
[email protected]
Date
2019-09-23 21:37:45 -0700 (Mon, 23 Sep 2019)

Log Message

PlugInClient::didStartFromOrigin() does not need a sessionID
https://bugs.webkit.org/show_bug.cgi?id=202127

Reviewed by Geoffrey Garen.

Source/WebCore:

* html/HTMLPlugInImageElement.cpp:
(WebCore::HTMLPlugInImageElement::userDidClickSnapshot):
* page/PlugInClient.h:

Source/WebKit:

* WebProcess/WebCoreSupport/WebPlugInClient.cpp:
(WebKit::WebPlugInClient::didStartFromOrigin):
* WebProcess/WebCoreSupport/WebPlugInClient.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (250280 => 250281)


--- trunk/Source/WebCore/ChangeLog	2019-09-24 04:26:29 UTC (rev 250280)
+++ trunk/Source/WebCore/ChangeLog	2019-09-24 04:37:45 UTC (rev 250281)
@@ -1,3 +1,14 @@
+2019-09-23  Chris Dumez  <[email protected]>
+
+        PlugInClient::didStartFromOrigin() does not need a sessionID
+        https://bugs.webkit.org/show_bug.cgi?id=202127
+
+        Reviewed by Geoffrey Garen.
+
+        * html/HTMLPlugInImageElement.cpp:
+        (WebCore::HTMLPlugInImageElement::userDidClickSnapshot):
+        * page/PlugInClient.h:
+
 2019-09-23  Devin Rousso  <[email protected]>
 
         Web Inspector: Canvas: show WebGPU shader pipelines

Modified: trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp (250280 => 250281)


--- trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp	2019-09-24 04:26:29 UTC (rev 250280)
+++ trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp	2019-09-24 04:37:45 UTC (rev 250281)
@@ -485,7 +485,7 @@
 
     auto plugInOrigin = m_loadedUrl.host();
     if (document().page() && !SchemeRegistry::shouldTreatURLSchemeAsLocal(document().page()->mainFrame().document()->baseURL().protocol().toStringWithoutCopying()) && document().page()->settings().autostartOriginPlugInSnapshottingEnabled())
-        document().page()->plugInClient()->didStartFromOrigin(document().page()->mainFrame().document()->baseURL().host().toString(), plugInOrigin.toString(), serviceType(), document().page()->sessionID());
+        document().page()->plugInClient()->didStartFromOrigin(document().page()->mainFrame().document()->baseURL().host().toString(), plugInOrigin.toString(), serviceType());
 
     LOG(Plugins, "%p User clicked on snapshotted plug-in. Restart.", this);
     restartSnapshottedPlugIn();

Modified: trunk/Source/WebCore/page/PlugInClient.h (250280 => 250281)


--- trunk/Source/WebCore/page/PlugInClient.h	2019-09-24 04:26:29 UTC (rev 250280)
+++ trunk/Source/WebCore/page/PlugInClient.h	2019-09-24 04:37:45 UTC (rev 250281)
@@ -25,7 +25,6 @@
 
 #pragma once
 
-#include <pal/SessionID.h>
 #include <wtf/Forward.h>
 
 namespace WebCore {
@@ -34,7 +33,7 @@
 public:
     virtual void pageDestroyed() = 0;
     virtual bool shouldAutoStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType) = 0;
-    virtual void didStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType, PAL::SessionID) = 0;
+    virtual void didStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType) = 0;
 
 protected:
     virtual ~PlugInClient() = default;

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


--- trunk/Source/WebKit/ChangeLog	2019-09-24 04:26:29 UTC (rev 250280)
+++ trunk/Source/WebKit/ChangeLog	2019-09-24 04:37:45 UTC (rev 250281)
@@ -1,5 +1,16 @@
 2019-09-23  Chris Dumez  <[email protected]>
 
+        PlugInClient::didStartFromOrigin() does not need a sessionID
+        https://bugs.webkit.org/show_bug.cgi?id=202127
+
+        Reviewed by Geoffrey Garen.
+
+        * WebProcess/WebCoreSupport/WebPlugInClient.cpp:
+        (WebKit::WebPlugInClient::didStartFromOrigin):
+        * WebProcess/WebCoreSupport/WebPlugInClient.h:
+
+2019-09-23  Chris Dumez  <[email protected]>
+
         FrameSpecificStorageAccessIdentifier does not need a sessionID
         https://bugs.webkit.org/show_bug.cgi?id=202093
 

Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebPlugInClient.cpp (250280 => 250281)


--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebPlugInClient.cpp	2019-09-24 04:26:29 UTC (rev 250280)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebPlugInClient.cpp	2019-09-24 04:37:45 UTC (rev 250281)
@@ -53,9 +53,8 @@
     return WebProcess::singleton().shouldPlugInAutoStartFromOrigin(m_webPage, pageOrigin, pluginOrigin, mimeType);
 }
 
-void WebPlugInClient::didStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType, PAL::SessionID sessionID)
+void WebPlugInClient::didStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType)
 {
-    ASSERT_UNUSED(sessionID, sessionID == WebProcess::singleton().sessionID());
     WebProcess::singleton().plugInDidStartFromOrigin(pageOrigin, pluginOrigin, mimeType);
 }
 

Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebPlugInClient.h (250280 => 250281)


--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebPlugInClient.h	2019-09-24 04:26:29 UTC (rev 250280)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebPlugInClient.h	2019-09-24 04:37:45 UTC (rev 250281)
@@ -27,7 +27,6 @@
 #define WebPlugInClient_h
 
 #include <WebCore/PlugInClient.h>
-#include <pal/SessionID.h>
 
 namespace WebKit {
 
@@ -42,7 +41,7 @@
 private:
     void pageDestroyed() override;
     bool shouldAutoStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType) override;
-    void didStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType, PAL::SessionID) override;
+    void didStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType) override;
 
     WebPage& m_webPage;
 };
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to