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

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: Created 5 years, 7 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: Source/core/page/CreateWindow.cpp
diff --git a/Source/core/page/CreateWindow.cpp b/Source/core/page/CreateWindow.cpp
index 6eed43947714ea6c10c8327c63fdd8a65c2cfa5c..f388df34f5c9b987a6d08bd4f565eba86e96ba33 100644
--- a/Source/core/page/CreateWindow.cpp
+++ b/Source/core/page/CreateWindow.cpp
@@ -118,7 +118,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(SandboxUnsandboxedAuxiliary))
philipj_slow 2015/05/13 10:36:19 The name is quite cryptic in this context. If you
Mike West 2015/05/13 11:22:01 That's a fair point. Maybe something like "Sandbox
philipj_slow 2015/05/13 12:29:04 That name is much more clear for now, thanks!
+ frame.loader().forceSandboxFlags(openerFrame.document()->sandboxFlags());
created = true;
return &frame;

Powered by Google App Engine
This is Rietveld 408576698