diff options
Diffstat (limited to 'chromium/url/url_util.cc')
-rw-r--r-- | chromium/url/url_util.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/url/url_util.cc b/chromium/url/url_util.cc index 216fb7e7601..49cc6e689f3 100644 --- a/chromium/url/url_util.cc +++ b/chromium/url/url_util.cc @@ -49,6 +49,12 @@ struct SchemeRegistry { }; // Schemes that are allowed for referrers. + // + // WARNING: Adding (1) a non-"standard" scheme or (2) a scheme whose URLs have + // opaque origins could lead to surprising behavior in some of the referrer + // generation logic. In order to avoid surprises, be sure to have adequate + // test coverage in each of the multiple code locations that compute + // referrers. std::vector<SchemeWithType> referrer_schemes = { {kHttpsScheme, SCHEME_WITH_HOST_PORT_AND_USER_INFORMATION}, {kHttpScheme, SCHEME_WITH_HOST_PORT_AND_USER_INFORMATION}, |