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

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

Issue 799923006: Make canNavigate() OOPI-friendly (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 240a99d3fe3675b87db24d68d3a251f68b9a4435..cf7612c343a7b40541fa63bd409c6c3ad331faab 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)
@@ -262,17 +261,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