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

Issue 446093002: Don't pushState when setting the search page to itself. (Closed)

Created:
6 years, 4 months ago by davidben
Modified:
6 years, 4 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, arv+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Don't pushState when setting the search page to itself. Calling pushState when the search page is shown causes history entries after the current one to be lost. This mimics the pre-r271538 behavior where it set location.hash. Setting location.hash is a no-op (rather than pushing a duplicate history entry) if the hash has not changed. BUG=401004 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287892

Patch Set 1 #

Total comments: 2

Patch Set 2 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M chrome/browser/resources/options/search_page.js View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
davidben
The search page is screwy in lots of ways (loses the search when you press ...
6 years, 4 months ago (2014-08-06 18:19:29 UTC) #1
Dan Beam
lgtm https://codereview.chromium.org/446093002/diff/1/chrome/browser/resources/options/search_page.js File chrome/browser/resources/options/search_page.js (right): https://codereview.chromium.org/446093002/diff/1/chrome/browser/resources/options/search_page.js#newcode270 chrome/browser/resources/options/search_page.js:270: // Set the hash on the current page, ...
6 years, 4 months ago (2014-08-06 18:34:03 UTC) #2
davidben
https://codereview.chromium.org/446093002/diff/1/chrome/browser/resources/options/search_page.js File chrome/browser/resources/options/search_page.js (right): https://codereview.chromium.org/446093002/diff/1/chrome/browser/resources/options/search_page.js#newcode270 chrome/browser/resources/options/search_page.js:270: // Set the hash on the current page, and ...
6 years, 4 months ago (2014-08-06 18:38:14 UTC) #3
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 4 months ago (2014-08-06 19:37:07 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/446093002/20001
6 years, 4 months ago (2014-08-06 19:37:52 UTC) #5
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 23:15:02 UTC) #6
Message was sent while issue was closed.
Change committed as 287892

Powered by Google App Engine
This is Rietveld 408576698