Chromium Code Reviews

Unified Diff: Source/core/page/CreateWindow.cpp

Issue 1139933002: Prototype an 'allow-unsandboxed-auxiliary' sandbox flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/core/dom/SandboxFlags.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/CreateWindow.cpp
diff --git a/Source/core/page/CreateWindow.cpp b/Source/core/page/CreateWindow.cpp
index 9a6cea028198a6d81f8e532e5eea17e248954e97..1fd7a9e288819e68c6cf07817d277fb491fb7eec 100644
--- a/Source/core/page/CreateWindow.cpp
+++ b/Source/core/page/CreateWindow.cpp
@@ -119,7 +119,8 @@ static LocalFrame* createWindow(LocalFrame& openerFrame, LocalFrame& lookupFrame
host->chrome().setWindowRect(windowRect);
host->chrome().show(policy);
- frame.loader().forceSandboxFlags(openerFrame.document()->sandboxFlags());
+ if (openerFrame.document()->isSandboxed(SandboxPropagatesToAuxiliaryBrowsingContexts))
+ frame.loader().forceSandboxFlags(openerFrame.document()->sandboxFlags());
created = true;
return &frame;
« no previous file with comments | « Source/core/dom/SandboxFlags.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine