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

Unified Diff: content/renderer/pepper/host_dispatcher_wrapper.cc

Issue 1373773003: Implement 'window.isSecureContext'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: document. Created 5 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/host_dispatcher_wrapper.cc
diff --git a/content/renderer/pepper/host_dispatcher_wrapper.cc b/content/renderer/pepper/host_dispatcher_wrapper.cc
index 1bee361951118442bd1a6d5db1c355ca57bc8f9c..ba709fe7efc49f7f69a8d3bda761e671b14fef53 100644
--- a/content/renderer/pepper/host_dispatcher_wrapper.cc
+++ b/content/renderer/pepper/host_dispatcher_wrapper.cc
@@ -94,7 +94,7 @@ void HostDispatcherWrapper::AddInstance(PP_Instance instance) {
plugin_instance->GetContainer()
->element()
.document()
- .isPrivilegedContext(unused) &&
+ .isSecureContext(unused) &&
content::IsOriginSecure(plugin_instance->GetPluginURL());
render_frame->Send(new FrameHostMsg_DidCreateOutOfProcessPepperInstance(
plugin_child_id_, instance,
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698