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

Issue 2445713004: MD Settings: Don't auto-close navigable dialogs on popstate. (Closed)

Created:
4 years, 1 month ago by tommycli
Modified:
4 years, 1 month ago
Reviewers:
Dan Beam
CC:
chromium-reviews, dbeam+watch-elements_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, dbeam+watch-settings_chromium.org, michaelpg+watch-elements_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Don't auto-close navigable dialogs on popstate. Previously, we made all cr-dialogs close on popstate. This is good, except for navigable dialogs. For navigable dialogs: It should open if the new route is the dialog's route, and close otherwise. All the navigable dialogs already have code that implements this behavior, but it conflicts with the popstate event handler on cr-dialog. This CL adds a parameter that disables this behavior for navigable dialogs. BUG=656918 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/d263cf266480fb3472db7b56d54291466226c592 Cr-Commit-Position: refs/heads/master@{#427249}

Patch Set 1 #

Patch Set 2 : update name of attribute #

Total comments: 2

Patch Set 3 : rename attribute #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -5 lines) Patch
M chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/people_page/people_page.html View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_profile_dialog.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js View 1 2 1 chunk +13 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
tommycli
dbeam: PTAL, thanks!
4 years, 1 month ago (2016-10-24 22:50:49 UTC) #11
Dan Beam
lgtm the computer always wins https://codereview.chromium.org/2445713004/diff/20001/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js File ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js (right): https://codereview.chromium.org/2445713004/diff/20001/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js#newcode23 ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js:23: disableAutocloseOnPopstate: { nit: ignorePopstate
4 years, 1 month ago (2016-10-25 01:24:08 UTC) #14
tommycli
dbeam: thanks! https://codereview.chromium.org/2445713004/diff/20001/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js File ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js (right): https://codereview.chromium.org/2445713004/diff/20001/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js#newcode23 ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js:23: disableAutocloseOnPopstate: { On 2016/10/25 01:24:08, Dan Beam ...
4 years, 1 month ago (2016-10-25 01:29:33 UTC) #15
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/2445713004/40001
4 years, 1 month ago (2016-10-25 01:30:18 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-25 02:41:47 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 02:44:52 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d263cf266480fb3472db7b56d54291466226c592
Cr-Commit-Position: refs/heads/master@{#427249}

Powered by Google App Engine
This is Rietveld 408576698