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

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

Issue 2447293002: Don't call lower() on KURL protocol/host (Closed)
Patch Set: fix up OriginAccessEntry Created 4 years, 2 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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 324caf8eb8f7de97b3dda5d1b10fbd2ae0668579..15df76447f28e7854d1064552f99feab38a960f0 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -4403,7 +4403,10 @@ void Document::setDomain(const String& newDomain,
return;
}
- OriginAccessEntry accessEntry(getSecurityOrigin()->protocol(), newDomain,
+ // TODO(csharrison): Should probably ensure newDomain is canonical rather than
brettw 2016/10/26 17:51:46 definitely!
Charlie Harrison 2016/10/26 18:10:59 Yes, it looks like we are missing step 4 here (par
+ // just lowercasing it.
+ OriginAccessEntry accessEntry(getSecurityOrigin()->protocol(),
+ newDomain.lower(),
OriginAccessEntry::AllowSubdomains);
OriginAccessEntry::MatchResult result =
accessEntry.matchesOrigin(*getSecurityOrigin());
« no previous file with comments | « content/child/blink_platform_impl_unittest.cc ('k') | third_party/WebKit/Source/platform/weborigin/KURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698