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

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

Issue 799923006: Make canNavigate() OOPI-friendly (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Null-check in History.cpp 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
« no previous file with comments | « Source/core/dom/ExecutionContext.h ('k') | Source/core/dom/RemoteSecurityContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/dom/ExecutionContext.h ('k') | Source/core/dom/RemoteSecurityContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698