Chromium Code Reviews
Description[Android WebView] Only send extra headers for the main page
Unlike Chromium, WebViewClassic has a very narrow set of conditions
when extra headers set for a navigation are actually added to requests.
To fix that, instead of passing the extra headers from AwContents.loadUrl
down to NavigationController, we stash them into our ResourceContext
and inject from AwResourceDispatcherHostDelegate when needed.
The resulting behavior seems to be compatible with WebViewClassic,
except that we also inject headers for back / forward navigations, as this
seems to be more consistent with the legacy behavior of injecting them
on page reload.
BUG=306873
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239807
Patch Set 1 #
Total comments: 13
Patch Set 2 : Moved reloadSync into AwTestBase #
Total comments: 8
Patch Set 3 : Ben's comments addressed, rebased #
Total comments: 10
Patch Set 4 : Removed unneeded forward ref #Patch Set 5 : bulach's comments addressed #Messages
Total messages: 19 (0 generated)
|