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

Issue 2605713002: [ios] Made IDC_BACK and IDC_FORWARD safe. (Closed)

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

Description

[ios] Made IDC_BACK and IDC_FORWARD safe. NavigationManager's GoBack() and GoForward() crash if navigation is not possible. This mirrors NavigationController's behavior so NavigationManager should only be changed along with NavigationController. KeyCommandsProvider sends IDC_FORWARD and IDC_BACK commands without checking that navigation is possible and app crashes. There are 2 fully correct options to fix this bug: 1.) Change NavigationManager and NavigationController, so they don't crash (which has both pros and cons). 2.) Change KeyCommandsProvider, so it does not send IDC_FORWARD, IDC_BACK commands if navigation is not possible. Correct fix will be tracked in a separate bug (crbug.com/677160), and this CL simply fixes a crash in the most simplest way w/o touching Tab class (which will be removed). BUG=676727 Committed: https://crrev.com/4ace5d8e5ece05349d1545692c2a2639f2d74d72 Cr-Commit-Position: refs/heads/master@{#440773}

Patch Set 1 #

Patch Set 2 : Added TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M ios/chrome/browser/ui/browser_view_controller.mm View 1 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
Eugene But (OOO till 7-30)
I don't think that this is is very clean change, but there is not much ...
3 years, 12 months ago (2016-12-27 18:08:28 UTC) #2
marq (ping after 24h)
This change LGTM as a bug fix. On a more general note, I don't think ...
3 years, 12 months ago (2016-12-27 18:24:53 UTC) #7
Eugene But (OOO till 7-30)
On 2016/12/27 18:24:53, marq wrote: > This change LGTM as a bug fix. > > ...
3 years, 12 months ago (2016-12-27 18:44:17 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/2605713002/20001
3 years, 12 months ago (2016-12-27 18:44:40 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 12 months ago (2016-12-27 18:48:41 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:46:43 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4ace5d8e5ece05349d1545692c2a2639f2d74d72
Cr-Commit-Position: refs/heads/master@{#440773}

Powered by Google App Engine
This is Rietveld 408576698