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

Issue 2691693002: Relanding "Fixed title updating for back forward navigation." (Closed)

Created:
3 years, 10 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 10 months ago
Reviewers:
kkhorimoto
CC:
chromium-reviews, marq+watch_chromium.org, Eugene But (OOO till 7-30), 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

Relanding "Fixed title updating for back forward navigation." Chrome relies on KVO compliant "title" property to subscribe for title updates. If this KVO change happens during then navigation it is unclear if title was changes for the previous page, or the navigation was committed and title was changed for the new page. So if there is a navigation in progress WebController should ignore KVO change, but it should always attempt to update title when navigation is committed. BUG=688047, 677356 Review-Url: https://codereview.chromium.org/2685803002 Cr-Commit-Position: refs/heads/master@{#449527} (cherry picked from commit 487e4cfd53bac5944dad49cbce3b939a0c7bf035) Review-Url: https://codereview.chromium.org/2691693002 Cr-Commit-Position: refs/heads/master@{#449828} Committed: https://chromium.googlesource.com/chromium/src/+/adb03a4e58c33d0adc812a2ddae2180abe8ac148

Patch Set 1 #

Patch Set 2 : Fixed Titles for Native UI #

Total comments: 4

Patch Set 3 : Addressed review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -36 lines) Patch
M ios/chrome/browser/tabs/tab.mm View 3 chunks +2 lines, -25 lines 0 comments Download
M ios/chrome/browser/tabs/tab_unittest.mm View 1 chunk +2 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 5 chunks +41 lines, -11 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_navigation_states.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_navigation_states.mm View 1 chunk +9 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
Eugene But (OOO till 7-30)
3 years, 10 months ago (2017-02-11 01:20:05 UTC) #6
kkhorimoto
https://codereview.chromium.org/2691693002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2691693002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm#newcode705 ios/web/web_state/ui/crw_web_controller.mm:705: // Sets |title| to the last committed navigation item. ...
3 years, 10 months ago (2017-02-11 01:29:02 UTC) #7
Eugene But (OOO till 7-30)
Thanks for quick review. PTAL. https://codereview.chromium.org/2691693002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2691693002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm#newcode705 ios/web/web_state/ui/crw_web_controller.mm:705: // Sets |title| to ...
3 years, 10 months ago (2017-02-11 01:37:34 UTC) #8
kkhorimoto
lgtm
3 years, 10 months ago (2017-02-11 01:41:29 UTC) #9
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/2691693002/40001
3 years, 10 months ago (2017-02-11 01:48:39 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/adb03a4e58c33d0adc812a2ddae2180abe8ac148
3 years, 10 months ago (2017-02-11 02:04:35 UTC) #14
Eugene But (OOO till 7-30)
3 years, 10 months ago (2017-02-12 02:03:20 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2689083002/ by eugenebut@chromium.org.

The reason for reverting is: Breaks some other tests this time:
https://uberchromegw.corp.google.com/i/internal.bling.main/builders/iphone9-s....

Powered by Google App Engine
This is Rietveld 408576698