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

Issue 308143004: Immediately SetTitle on a new NavigationEntry created via history.pushState (Closed)

Created:
6 years, 6 months ago by Nate Chapin
Modified:
6 years, 6 months ago
Reviewers:
Avi (use Gerrit), nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Visibility:
Public.

Description

Immediately SetTitle on a new NavigationEntry created via history.pushState We already have the title available (because we're not throwing away the old document in the renderer process), and if we don't immediately set the title, there is a race condition where the title may be updated in the ui before the renderer process sends a FrameHostMsg_UpdateTitle IPC. In this case, the title will flicker to the page url and immeidately back to the proper title. BUG=375455 TEST=NavigationControllerTest.PushStateUpdatesTitle Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274006

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address nasko's comments #

Patch Set 3 : Fix test problem in debug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Nate Chapin
6 years, 6 months ago (2014-05-30 18:41:29 UTC) #1
Avi (use Gerrit)
LGTM
6 years, 6 months ago (2014-05-30 18:58:24 UTC) #2
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-05-30 19:02:22 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/308143004/1
6 years, 6 months ago (2014-05-30 19:04:00 UTC) #4
nasko
https://codereview.chromium.org/308143004/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/308143004/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode1061 content/browser/frame_host/navigation_controller_impl.cc:1061: // sets was_within_same_page to true. In this case, we ...
6 years, 6 months ago (2014-05-30 19:04:55 UTC) #5
Nate Chapin
The CQ bit was unchecked by japhet@chromium.org
6 years, 6 months ago (2014-05-30 19:07:14 UTC) #6
Nate Chapin
https://codereview.chromium.org/308143004/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/308143004/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode1061 content/browser/frame_host/navigation_controller_impl.cc:1061: // sets was_within_same_page to true. In this case, we ...
6 years, 6 months ago (2014-05-30 19:10:04 UTC) #7
nasko
lgtm
6 years, 6 months ago (2014-05-30 20:06:52 UTC) #8
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-05-30 20:07:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/308143004/10001
6 years, 6 months ago (2014-05-30 20:10:32 UTC) #10
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-05-30 22:26:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/308143004/20001
6 years, 6 months ago (2014-05-30 22:27:22 UTC) #12
commit-bot: I haz the power
6 years, 6 months ago (2014-05-31 04:07:36 UTC) #13
Message was sent while issue was closed.
Change committed as 274006

Powered by Google App Engine
This is Rietveld 408576698