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; |