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

Unified Diff: Source/core/dom/ExecutionContext.cpp

Issue 793493003: Prepare to replicate sandbox flags for OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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/dom/ExecutionContext.cpp
diff --git a/Source/core/dom/ExecutionContext.cpp b/Source/core/dom/ExecutionContext.cpp
index a34b6d1cc484fe70cb1790f107189f75ed775e09..46d596330538f5ac9fc9e967de5a1e1ea77c2676 100644
--- a/Source/core/dom/ExecutionContext.cpp
+++ b/Source/core/dom/ExecutionContext.cpp
@@ -68,8 +68,7 @@ public:
};
ExecutionContext::ExecutionContext()
- : m_sandboxFlags(SandboxNone)
- , m_circularSequentialID(0)
+ : m_circularSequentialID(0)
, m_timerNestingLevel(0)
, m_inDispatchErrorEvent(false)
, m_activeDOMObjectsAreSuspended(false)
@@ -263,17 +262,6 @@ bool ExecutionContext::isIteratingOverObservers() const
return m_lifecycleNotifier && m_lifecycleNotifier->isIteratingOverObservers();
}
-void ExecutionContext::enforceSandboxFlags(SandboxFlags mask)
-{
- m_sandboxFlags |= mask;
-
- // The SandboxOrigin is stored redundantly in the security origin.
- if (isSandboxed(SandboxOrigin) && securityContext().securityOrigin() && !securityContext().securityOrigin()->isUnique()) {
- securityContext().setSecurityOrigin(SecurityOrigin::createUnique());
- didUpdateSecurityOrigin();
- }
-}
-
void ExecutionContext::allowWindowFocus()
{
++m_windowFocusTokens;

Powered by Google App Engine
This is Rietveld 408576698