Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Issue 2644103004: Remove RequestTracker from WebStateImpl. (Closed)

Created:
3 years, 11 months ago by sdefresne
Modified:
3 years, 11 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -82 lines) Patch
M ios/web/web_state/ui/crw_web_controller.mm View 1 7 chunks +0 lines, -12 lines 0 comments Download
M ios/web/web_state/web_state_impl.h View 1 2 3 chunks +0 lines, -30 lines 0 comments Download
M ios/web/web_state/web_state_impl.mm View 1 2 5 chunks +2 lines, -28 lines 0 comments Download
M ios/web/webui/crw_web_ui_manager.mm View 1 2 chunks +6 lines, -12 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (13 generated)
sdefresne
Please take a look. I'm not so sure about this one as some callbacks may ...
3 years, 11 months ago (2017-01-19 18:55:24 UTC) #4
Eugene But (OOO till 7-30)
Everything looks safe to me. Thank you for cleanup! lgtm https://codereview.chromium.org/2644103004/diff/1/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2644103004/diff/1/ios/web/web_state/ui/crw_web_controller.mm#newcode52 ...
3 years, 11 months ago (2017-01-19 19:05:55 UTC) #7
sdefresne
Thank you for the review. I double checked and counts_ of RequestTracker is only filled ...
3 years, 11 months ago (2017-01-20 11:31:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2644103004/20001
3 years, 11 months ago (2017-01-20 12:05:56 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/139401) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-20 12:07:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2644103004/40001
3 years, 11 months ago (2017-01-20 12:24:37 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 12:37:56 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/79fd9eab61da2ac2bb5261b460ed...

Powered by Google App Engine
This is Rietveld 408576698