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

Issue 2901293003: Made renderer-initiated requests registration more reliable. (Closed)

Created:
3 years, 7 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 6 months ago
Reviewers:
kkhorimoto
CC:
chromium-reviews, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Made renderer-initiated requests registration more reliable. Old code relied on URLs comparisson which may give false negatives because WKWebView allows multiple pending navigations. This CL uses NavigationContextImpl to check if the load has been registered previously which should always work as long as didStartProvisionalNavigation: is guaranteed to be called. If didStartProvisionalNavigation: is always called, then it should fix crbug.com/725958 crash and if it's not, then didFinishNavigation: will have to register loading request as well (which will be done in a separate CL if needed). BUG=727289 Review-Url: https://codereview.chromium.org/2901293003 Cr-Commit-Position: refs/heads/master@{#475698} Committed: https://chromium.googlesource.com/chromium/src/+/19b7db898be96b32cec6d78966abe4ef613f1708

Patch Set 1 #

Patch Set 2 : Fixed tests #

Patch Set 3 : Cleaned up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -37 lines) Patch
M ios/web/navigation/navigation_manager_util.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M ios/web/navigation/navigation_manager_util.mm View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M ios/web/navigation/navigation_manager_util_unittest.mm View 1 2 2 chunks +12 lines, -2 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 2 chunks +40 lines, -35 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (17 generated)
Eugene But (OOO till 7-30)
3 years, 7 months ago (2017-05-25 16:37:29 UTC) #14
Eugene But (OOO till 7-30)
Kurt?
3 years, 6 months ago (2017-05-30 21:21:09 UTC) #16
kkhorimoto
lgtm, sorry for the delay
3 years, 6 months ago (2017-05-30 21:32:13 UTC) #17
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/2901293003/40001
3 years, 6 months ago (2017-05-30 23:07:46 UTC) #19
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 23:54:38 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/19b7db898be96b32cec6d78966ab...

Powered by Google App Engine
This is Rietveld 408576698