Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2156803002: [HBD] Remove PluginCache and reload plugin list when origin changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reload plugin list and send message with an url whenever origin changes Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index 4e2a89a2e20ff22690e5f00de814170cd6d4b0ce..0b01da883e315224f40caf60b343310366f0e350 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -54,6 +54,7 @@
#include "platform/plugins/PluginData.h"
#include "platform/text/CompressibleString.h"
#include "public/platform/Platform.h"
+#include "public/platform/WebSecurityOrigin.h"
namespace blink {
@@ -245,8 +246,11 @@ void Page::refreshPlugins()
PluginData* Page::pluginData() const
{
+ WebSecurityOrigin origin(mainFrame()->securityContext()->getSecurityOrigin());
if (!m_pluginData)
- m_pluginData = PluginData::create(this);
+ m_pluginData = PluginData::create(origin);
+ else
+ m_pluginData->checkOriginChange(origin);
return m_pluginData.get();
}

Powered by Google App Engine
This is Rietveld 408576698