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

Issue 2685803002: 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

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} Committed: https://chromium.googlesource.com/chromium/src/+/487e4cfd53bac5944dad49cbce3b939a0c7bf035

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed review comments #

Patch Set 3 : Stubbed title call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -31 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 1 chunk +2 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 4 chunks +34 lines, -6 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 1 2 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: 23 (15 generated)
Eugene But (OOO till 7-30)
Kurt, PTAL CCing Rohit for Tab changes
3 years, 10 months ago (2017-02-07 23:27:51 UTC) #5
kkhorimoto
In addition to my other comments, can you also add a reference to crbug.com/677356 in ...
3 years, 10 months ago (2017-02-07 23:59:44 UTC) #8
Eugene But (OOO till 7-30)
Thanks! Updated CL description and disabled EG test back (so I can cherry pick this ...
3 years, 10 months ago (2017-02-08 01:50:28 UTC) #10
kkhorimoto
lgtm
3 years, 10 months ago (2017-02-08 01:55:09 UTC) #13
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/2685803002/40001
3 years, 10 months ago (2017-02-10 02:17:14 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/487e4cfd53bac5944dad49cbce3b939a0c7bf035
3 years, 10 months ago (2017-02-10 02:35:02 UTC) #21
stkhapugin
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2684343003/ by stkhapugin@chromium.org. ...
3 years, 10 months ago (2017-02-10 12:09:00 UTC) #22
rohitrao (ping after 24h)
3 years, 10 months ago (2017-02-10 12:56:40 UTC) #23
Message was sent while issue was closed.
On 2017/02/10 12:09:00, stkhapugin wrote:
> A revert of this CL (patchset #3 id:40001) has been created in
> https://codereview.chromium.org/2684343003/ by mailto:stkhapugin@chromium.org.
> 
> The reason for reverting is: Breaks -[TabHistoryPopupControllerTestCase
> testTabHistoryMenu] tab_history_popup_controller_egtest.mm downstream, because
> New Tab in history popup (when long pressed on back) displays
"chrome://newtab"
> instead of "New Tab".
> 
> I actually don't know why this test is not ran upstream, but I have to revert,
> sorry!.

EG tests are run on chromium.fyi upstream, but we haven't gotten them onto the
main waterfall yet.  We're working on getting upstream trybots, but they will
need to be manually triggered (won't be part of the default set).

Powered by Google App Engine
This is Rietveld 408576698