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

Issue 2780703002: Reload with empty navigation manager should not crash (Closed)

Created:
3 years, 9 months ago by liaoyuke
Modified:
3 years, 8 months ago
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

Reload with empty navigation manager should not crash Previously, the app crashes when user tries to reload when navigation manager is empty. This CL fixes the issue by adding an earl return to |Reload| in NavigationManagerImpl so that it does nothing when its empty. This CL also adds corresponding unit tests to prevent regressions. BUG=705707 Review-Url: https://codereview.chromium.org/2780703002 Cr-Commit-Position: refs/heads/master@{#460464} Committed: https://chromium.googlesource.com/chromium/src/+/e70e89bec8b805f1056ba85e1e14c9486341d138

Patch Set 1 #

Patch Set 2 : Change include navigation_manager.h to import #

Total comments: 8

Patch Set 3 : Addressed comments #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M ios/web/web_state/web_state_unittest.mm View 1 2 2 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
liaoyuke
Hey Eugene, PTAL. Thank you very much!
3 years, 9 months ago (2017-03-27 23:24:43 UTC) #3
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2780703002/diff/20001/ios/web/web_state/web_state_unittest.mm File ios/web/web_state/web_state_unittest.mm (right): https://codereview.chromium.org/2780703002/diff/20001/ios/web/web_state/web_state_unittest.mm#newcode78 ios/web/web_state/web_state_unittest.mm:78: // Tests that reload with web::ReloadType::NORMAL will not crash ...
3 years, 9 months ago (2017-03-28 01:46:39 UTC) #4
liaoyuke
PTAL. Thank you very much! https://codereview.chromium.org/2780703002/diff/20001/ios/web/web_state/web_state_unittest.mm File ios/web/web_state/web_state_unittest.mm (right): https://codereview.chromium.org/2780703002/diff/20001/ios/web/web_state/web_state_unittest.mm#newcode78 ios/web/web_state/web_state_unittest.mm:78: // Tests that reload ...
3 years, 8 months ago (2017-03-28 16:06:32 UTC) #5
liaoyuke
PTAL. Just wanted to make sure this CL is still in your radar, take your ...
3 years, 8 months ago (2017-03-29 16:28:40 UTC) #10
Eugene But (OOO till 7-30)
Sorry, I thought I lgtmed this already. Thank you for pinging, lgtm
3 years, 8 months ago (2017-03-29 17:15:24 UTC) #11
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/2780703002/60001
3 years, 8 months ago (2017-03-29 18:17:20 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 18:29:43 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e70e89bec8b805f1056ba85e1e14...

Powered by Google App Engine
This is Rietveld 408576698