diff options
Diffstat (limited to 'o3d/plugin/win/main_win.cc')
-rw-r--r-- | o3d/plugin/win/main_win.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/o3d/plugin/win/main_win.cc b/o3d/plugin/win/main_win.cc index 708e84d..3f8a465 100644 --- a/o3d/plugin/win/main_win.cc +++ b/o3d/plugin/win/main_win.cc @@ -47,6 +47,7 @@ #include "core/cross/event.h" #include "plugin/cross/plugin_logging.h" #include "plugin/cross/out_of_memory.h" +#include "plugin/cross/whitelist.h" #include "statsreport/metrics.h" #include "v8/include/v8.h" #include "breakpad/win/bluescreen_detector.h" @@ -825,6 +826,10 @@ NPError NPP_New(NPMIMEType pluginType, } #endif + if (!IsDomainAuthorized(instance)) { + return NPERR_INVALID_URL; + } + PluginObject* pluginObject = glue::_o3d::PluginObject::Create( instance); instance->pdata = pluginObject; |