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

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

Issue 845303003: Tag SecurityContext objects as being hosted in reserved IP ranges. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Skip 'about:blank', 'swappedout://', etc. 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 | « no previous file | Source/core/dom/DocumentInit.h » ('j') | Source/core/dom/DocumentInit.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 507d627f874bfd3470db64f9c514df53beb3012b..ef6ee432113e3cde5abba776a6b3a5475f83941a 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -4676,6 +4676,9 @@ void Document::initSecurityContext(const DocumentInit& initializer)
return;
}
+ if (initializer.isHostedInReservedIPRange())
+ setHostedInReservedIPRange();
+
if (!initializer.hasSecurityContext()) {
// No source for a security context.
// This can occur via document.implementation.createDocument().
« no previous file with comments | « no previous file | Source/core/dom/DocumentInit.h » ('j') | Source/core/dom/DocumentInit.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698