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

Issue 2745653007: Fix NavigationItem use-after-free crash in |-goToItemAtIndex:| (Closed)

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

Description

Fix NavigationItem use-after-free crash in |-goToItemAtIndex:| If a history navigation item occurs and the current NavigationItem is transient item, it will get discarded in CRWSessionController's |-discardTransientItem|. This CL updates history navigation logic to store copies of the current NavigationItem's information before calling any CRWSessionController code that might deallocate it. BUG=700319 Review-Url: https://codereview.chromium.org/2745653007 Cr-Commit-Position: refs/heads/master@{#456190} Committed: https://chromium.googlesource.com/chromium/src/+/c0f6017abb9aeb5ae1c8e137b6a3671305298b40

Patch Set 1 #

Patch Set 2 : test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -57 lines) Patch
M ios/web/web_state/ui/crw_web_controller.mm View 10 chunks +54 lines, -40 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 1 3 chunks +19 lines, -17 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
kkhorimoto
3 years, 9 months ago (2017-03-10 21:11:56 UTC) #2
Eugene But (OOO till 7-30)
lgtm
3 years, 9 months ago (2017-03-10 21:29:52 UTC) #3
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/2745653007/1
3 years, 9 months ago (2017-03-10 21:33:02 UTC) #5
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/2745653007/20001
3 years, 9 months ago (2017-03-10 22:11:09 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 22:30:54 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/c0f6017abb9aeb5ae1c8e137b6a3...

Powered by Google App Engine
This is Rietveld 408576698