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

Unified Diff: third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h

Issue 2447293002: Don't call lower() on KURL protocol/host (Closed)
Patch Set: add canonicalization layout test 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/platform/weborigin/SecurityOrigin.h
diff --git a/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h b/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h
index 56b48a778270c107ca0f836f7f4e17d2c047430a..77ca58644701664826dd46e7ffd6731f148e56ed 100644
--- a/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h
+++ b/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h
@@ -269,6 +269,10 @@ class PLATFORM_EXPORT SecurityOrigin : public RefCounted<SecurityOrigin> {
void setUniqueOriginIsPotentiallyTrustworthy(
bool isUniqueOriginPotentiallyTrustworthy);
+ // Only used for document.domain setting. The method should probably be moved
+ // if we need it for something more general.
+ static String canonicalizeHost(const String& host, bool* success);
+
private:
friend class SecurityOriginTest;
FRIEND_TEST_ALL_PREFIXES(SecurityOriginTest, Suborigins);

Powered by Google App Engine
This is Rietveld 408576698