Referrer: Return null string when outgoing_referrer is an empty string
This CL changes the constructor of blink::WebFetchClientSettingsObject to set blink::WebFetchClientSettingsObject::outgoing_referrer to a null string when given outgoing_referrer argument is a non-null empty string. outgoing_referrer is not allowed to take a non-null empty string (i.e. String("")). However, null string are converted into non-null empty string when outgoing_referrer is passed via mojo which takes url.mojom.Url. To keep prohibiting blink::WebFetchClientSettingsObject::outgoing_referrer to be non-null empty string, this CL converts empty strings back to null string at constructors. Bug: 1047612 Change-Id: Iac8ea9ca4e752454f524e6ee28a9dce932ca572c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033004 Commit-Queue: Eriko Kurimoto <elkurin@google.com> Reviewed-by:Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Dominic Farolino <dom@chromium.org> Reviewed-by:
Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:
Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:
Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#738070}
Showing
Please register or sign in to comment