🤝 Remove trailing slash from Origin.
GURLUtils.getOrigin returns an origin formatted with a trailing slash because it calls GURL::GetOrigin which returns a GURL, then serializes this URL. This seems to be incorrect behaviour as more generally an origin is serialized without a trailing slash. GURLUtils.getOrigin is used by AwGeolocationPermissions.java where the returned value is saved to the user's Android Preferences. This means that changing its behaviour would be tricky. For now, I'm updating Origin.java to serialize without a trailing slash and documenting the deviance in behaviour between the two. Bug: 827161 Change-Id: Ia70f8a60263742b28477f969cc075dcb97062f48 Reviewed-on: https://chromium-review.googlesource.com/1013483Reviewed-by:Matt Menke <mmenke@chromium.org> Reviewed-by:
Bernhard Bauer <bauerb@chromium.org> Commit-Queue: Peter Conn <peconn@chromium.org> Cr-Commit-Position: refs/heads/master@{#551351}
Showing
Please register or sign in to comment