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

Unified Diff: third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp

Issue 1723753002: Make Document::isSecureContext() work for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout test tweaks, remove unnecessarily #include Created 4 years, 10 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: third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp b/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
index 559b177490193f43e87f92681d85ff6521a65f49..7f633057de5fcd98c5fb1c2146dcfb8c27b3da5e 100644
--- a/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
@@ -67,6 +67,11 @@ WebSecurityOrigin WebSecurityOrigin::createUnique()
return WebSecurityOrigin(SecurityOrigin::createUnique());
}
+WebSecurityOrigin WebSecurityOrigin::createUnique(bool isPotentiallyTrustworthy, bool shouldBypassSecureContextCheck)
+{
+ return WebSecurityOrigin(SecurityOrigin::createUnique(isPotentiallyTrustworthy, shouldBypassSecureContextCheck));
+}
+
void WebSecurityOrigin::reset()
{
assign(0);
@@ -184,4 +189,16 @@ void WebSecurityOrigin::grantLoadLocalResources() const
get()->grantLoadLocalResources();
}
+bool WebSecurityOrigin::isUniqueOriginPotentiallyTrustworthy() const
+{
+ ASSERT(m_private);
+ return isUnique() && m_private->isPotentiallyTrustworthy();
+}
+
+bool WebSecurityOrigin::shouldUniqueOriginBypassSecureContextCheck() const
+{
+ ASSERT(m_private);
+ return isUnique() && m_private->bypassSecureContextCheck();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698