Index: third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
diff --git a/third_party/WebKit/Source/core/dom/DOMImplementation.cpp b/third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
index 5c7975e2c94c5fb777ecb1d96de93c7e7abc6cf0..92accd6ce8a5a3d7fad819a4870762eba8c30b0c 100644 |
--- a/third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
+++ b/third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
@@ -225,9 +225,9 @@ Document* DOMImplementation::createDocument(const String& type, const DocumentIn |
if (type == "application/xhtml+xml") |
return XMLDocument::createXHTML(init); |
- PluginData* pluginData = 0; |
+ RefPtr<PluginData> pluginData; |
if (init.frame() && init.frame()->page() && init.frame()->loader().allowPlugins(NotAboutToInstantiatePlugin)) |
- pluginData = init.frame()->pluginData(); |
+ pluginData = PluginData::create(init.owner() ? init.owner()->getSecurityOrigin() : SecurityOrigin::create(init.url())); |
alexmos
2016/08/05 23:49:06
Hmm, it looks like now, any time we go through thi
trizzofo
2016/08/06 01:30:46
Before this approach, I tried overloading LocalFra
alexmos
2016/08/09 01:40:15
Agreed that overloading pluginData() isn't the bes
tommycli
2016/08/09 15:54:24
Those were my thoughts exactly. Since it was an ex
trizzofo
2016/08/09 21:24:24
That's a good idea. I'm going to give it a try.
alexmos
2016/08/10 00:10:29
Acknowledged and agreed. Either approach is fine
|
// PDF is one image type for which a plugin can override built-in support. |
// We do not want QuickTime to take over all image types, obviously. |