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

Issue 2780403003: Removed -[CRWWebDelegate webWillInitiateLoadWithParams:]. (Closed)

Created:
3 years, 8 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), ios-reviews+web_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Removed -[CRWWebDelegate webWillInitiateLoadWithParams:]. Method implementation was moved into |webDidUpdateSessionForLoadWithParams:wasInitialNavigation:| which is also called from -[CRWWebController loadWithParams:]. This is done, because WebStateObserver will have only one DidStartNavigation callback to avoid extra API complexity. This slightly changes the logic of marking the next crash as non-startup crash. After this change if app crashes during adding the pending entry, the crash will be marked as a startup crash, which should not make any practical different for the user. BUG=674991 Review-Url: https://codereview.chromium.org/2780403003 Cr-Commit-Position: refs/heads/master@{#461807} Committed: https://chromium.googlesource.com/chromium/src/+/72543a7b6abcd436594bbe771ba1e4b39e29df67

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : Cleaned up #

Patch Set 4 : Actually fixed compilation #

Patch Set 5 : Rebased #

Patch Set 6 : Fixed compilation (once and for all) #

Patch Set 7 : Fixed tests #

Total comments: 7

Patch Set 8 : Addressed review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -37 lines) Patch
M ios/chrome/browser/tabs/tab.mm View 1 2 3 4 5 6 7 1 chunk +8 lines, -14 lines 0 comments Download
M ios/web/public/web_state/ui/crw_web_delegate.h View 1 2 3 4 5 6 1 chunk +1 line, -6 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 4 5 6 2 chunks +5 lines, -17 lines 0 comments Download

Messages

Total messages: 48 (31 generated)
Eugene But (OOO till 7-30)
PTAL current EG tests failures are unrelated
3 years, 8 months ago (2017-03-31 23:44:38 UTC) #22
sdefresne
https://codereview.chromium.org/2780403003/diff/120001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (left): https://codereview.chromium.org/2780403003/diff/120001/ios/web/web_state/ui/crw_web_controller.mm#oldcode1801 ios/web/web_state/ui/crw_web_controller.mm:1801: [_delegate webWillInitiateLoadWithParams:params]; It looks like this is introducing a ...
3 years, 8 months ago (2017-04-03 13:46:01 UTC) #24
Eugene But (OOO till 7-30)
On 2017/04/03 13:46:01, sdefresne wrote: > https://codereview.chromium.org/2780403003/diff/120001/ios/web/web_state/ui/crw_web_controller.mm > File ios/web/web_state/ui/crw_web_controller.mm (left): > > https://codereview.chromium.org/2780403003/diff/120001/ios/web/web_state/ui/crw_web_controller.mm#oldcode1801 > ...
3 years, 8 months ago (2017-04-04 01:40:30 UTC) #25
rohitrao (ping after 24h)
https://codereview.chromium.org/2780403003/diff/120001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (left): https://codereview.chromium.org/2780403003/diff/120001/ios/web/web_state/ui/crw_web_controller.mm#oldcode1801 ios/web/web_state/ui/crw_web_controller.mm:1801: [_delegate webWillInitiateLoadWithParams:params]; Is there any way to avoid making ...
3 years, 8 months ago (2017-04-04 01:49:34 UTC) #26
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2780403003/diff/120001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (left): https://codereview.chromium.org/2780403003/diff/120001/ios/web/web_state/ui/crw_web_controller.mm#oldcode1801 ios/web/web_state/ui/crw_web_controller.mm:1801: [_delegate webWillInitiateLoadWithParams:params]; On 2017/04/04 01:49:34, rohitrao wrote: > Is ...
3 years, 8 months ago (2017-04-04 02:08:47 UTC) #28
rohitrao (ping after 24h)
+Peter and Justin to sign off on this, since they're the best OWNERS for stability ...
3 years, 8 months ago (2017-04-04 02:11:57 UTC) #30
justincohen
The comment starting with 'As soon as an URL is loaded,...' explains the reasoning behind ...
3 years, 8 months ago (2017-04-04 16:45:24 UTC) #31
Eugene But (OOO till 7-30)
> The comment starting with 'As soon as an URL is loaded,...' explains the > ...
3 years, 8 months ago (2017-04-04 16:58:16 UTC) #32
justincohen
Putting reset in didFinishNavigation would create even more false positives -- the goal of safe ...
3 years, 8 months ago (2017-04-04 17:08:13 UTC) #35
Eugene But (OOO till 7-30)
On 2017/04/04 17:08:13, justincohen wrote: > Putting reset in didFinishNavigation would create even more false ...
3 years, 8 months ago (2017-04-04 18:17:13 UTC) #38
justincohen
NavigationManager::LoadURLWithParams might work, except there are various places (see bvc) where load is done with ...
3 years, 8 months ago (2017-04-04 18:36:17 UTC) #39
Eugene But (OOO till 7-30)
On 2017/04/04 18:36:17, justincohen wrote: > NavigationManager::LoadURLWithParams might work, except there are various places > ...
3 years, 8 months ago (2017-04-04 18:54:12 UTC) #40
justincohen
lgtm
3 years, 8 months ago (2017-04-04 19:00:00 UTC) #41
rohitrao (ping after 24h)
Ok, thanks for discussing. LGTM
3 years, 8 months ago (2017-04-04 19:08:44 UTC) #42
Eugene But (OOO till 7-30)
Thank you for bearing with me!
3 years, 8 months ago (2017-04-04 19:45:16 UTC) #43
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/2780403003/140001
3 years, 8 months ago (2017-04-04 19:46:28 UTC) #45
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 20:15:09 UTC) #48
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/72543a7b6abcd436594bbe771ba1...

Powered by Google App Engine
This is Rietveld 408576698