Chromium Code Reviews
DescriptionRemove RequestTracker from WebStateImpl.
The RequestTracker only works with UIWebView but every code using
WebState uses WKWebView, so remove the RequestTracker from the
WebState.
The reason the RequestTracker does not work with WKWebView is that
it used to intercept the network request via NSURLProtocol (which
is not supported by WKWebView) and to put an identifier in the
User-Agent used to find the RequestTracker associated with the
request (and any sub-resources).
With WKWebView, the only events sent to the RequestTracker that was
associated with the WebState came from CRWWebController (i.e. page
load started and finished, history changed) via the WebState itself.
No request for sub-resources is ever caught (as User-Agent is not
overridden) thus they are not associated with the RequestTracker and
do not cause change to the state machine.
BUG=575800
Review-Url: https://codereview.chromium.org/2644103004
Cr-Commit-Position: refs/heads/master@{#445045}
Committed: https://chromium.googlesource.com/chromium/src/+/79fd9eab61da2ac2bb5261b460ed9f5afb6d4228
Patch Set 1 #
Total comments: 6
Patch Set 2 : Remove obsolete #include add missing ones. #Patch Set 3 : Rebase. #
Dependent Patchsets: Messages
Total messages: 20 (13 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||