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

Unified Diff: third_party/WebKit/Source/core/dom/SecurityContext.cpp

Issue 1760523004: CORS-RFC1918: Teach Workers about address spaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Oops. 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/core/dom/SecurityContext.cpp
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.cpp b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
index 8dda10f4c0d337a37ce59dd64a4b61aa4de9647f..0607c44a97be82cc1bcf1b87cc0fccce05366e43 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.cpp
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
@@ -33,7 +33,7 @@ namespace blink {
SecurityContext::SecurityContext()
: m_sandboxFlags(SandboxNone)
- , m_hostedInReservedIPRange(false)
+ , m_addressSpace(WebURLRequest::AddressSpacePublic)
, m_insecureRequestsPolicy(InsecureRequestsDoNotUpgrade)
, m_enforceStrictMixedContentChecking(false)
{
@@ -68,12 +68,4 @@ void SecurityContext::enforceSandboxFlags(SandboxFlags mask)
}
}
-WebURLRequest::AddressSpace SecurityContext::addressSpace() const
-{
- if (m_hostedInReservedIPRange)
- return securityOrigin()->isLocalhost() ? WebURLRequest::AddressSpaceLocal : WebURLRequest::AddressSpacePrivate;
-
- return WebURLRequest::AddressSpacePublic;
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698