Revert "webview: make extra header handling more sensible."
This reverts commit 6e46cca3. Reason for revert: Breaking auth flow b/156844354 Original change's description: > webview: make extra header handling more sensible. > > Change how extra headers provided through loadUrl(url, extra_headers) > are handled in WebView: > > 1) Remove any extra headers from the request if the request is > redirected to a different origin, since they might be sensitive. > > 2) Don't attempt to add any extra headers for the redirect target URL > when we encounter a redirect; this is likely to be surprising and > unwanted. > > 3) Record metrics on when we add headers and what was done with them on > redirect. > > 4) Add an additional test verifying that the extra headers are cleared > if the app loads the same URL again via loadUrl(url). > > Bug: 1038002 > Change-Id: Ib39e2938f7b76d212cd20773aab56da138088b63 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1999229 > Reviewed-by: Ilya Sherman <isherman@chromium.org> > Reviewed-by: Tobias Sargeant <tobiasjs@chromium.org> > Commit-Queue: Richard Coles <torne@chromium.org> > Cr-Commit-Position: refs/heads/master@{#747517} TBR=isherman@chromium.org,torne@chromium.org,tobiasjs@chromium.org Bug: 1038002 Change-Id: I18791d4ef448d1ed9bcd4f0b02d4b8884018e8c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2213114 Commit-Queue: Ben Mason <benmason@chromium.org> Reviewed-by:Tobias Sargeant <tobiasjs@chromium.org> Reviewed-by:
Ben Mason <benmason@chromium.org> Cr-Commit-Position: refs/heads/master@{#771390}
Showing
Please register or sign in to comment