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

Issue 2249933002: WebUI cr-dialog: Cancel dialog on any 'popstate' event. (Closed)

Created:
4 years, 4 months ago by tommycli
Modified:
4 years, 4 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, michaelpg+watch-elements_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-elements_chromium.org, oshima+watch_chromium.org, calamity
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebUI cr-dialog: Cancel dialog on any 'popstate' event. BUG=635861 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/0f286c5b64829c1ad41018ed0b772b5496d7bf91 Cr-Commit-Position: refs/heads/master@{#412590}

Patch Set 1 #

Total comments: 1

Patch Set 2 : ensure we popstate before any route changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M chrome/browser/resources/settings/route.js View 1 1 chunk +1 line, -2 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
tommycli
dbeam: PTAL. Before Demetrios left, we came to an agreement on this solution. We decided ...
4 years, 4 months ago (2016-08-16 00:25:06 UTC) #3
tommycli
Added PS2 which ensures we popstate before the route changes.
4 years, 4 months ago (2016-08-16 01:29:23 UTC) #8
Dan Beam
https://codereview.chromium.org/2249933002/diff/1/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/2249933002/diff/1/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js#newcode22 ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js:22: window.addEventListener('popstate', function() { tsergeant@/calamity@/mahmadi@: does this behavior work for ...
4 years, 4 months ago (2016-08-16 01:30:43 UTC) #9
tsergeant
On 2016/08/16 01:30:43, Dan Beam wrote: > https://codereview.chromium.org/2249933002/diff/1/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/2249933002/diff/1/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js#newcode22 ...
4 years, 4 months ago (2016-08-16 03:53:24 UTC) #12
tommycli
BTW, I did some investigation. 'popstate' is only triggered by the Browser Forward and Back ...
4 years, 4 months ago (2016-08-16 18:59:28 UTC) #13
Dan Beam
lgtm but maybe wait for mahmadi@ to answer
4 years, 4 months ago (2016-08-16 20:58:19 UTC) #14
tommycli
On 2016/08/16 20:58:19, Dan Beam wrote: > lgtm but maybe wait for mahmadi@ to answer ...
4 years, 4 months ago (2016-08-16 20:59:31 UTC) #15
Moe
On 2016/08/16 20:59:31, tommycli wrote: > On 2016/08/16 20:58:19, Dan Beam wrote: > > lgtm ...
4 years, 4 months ago (2016-08-17 17:09:50 UTC) #17
tommycli
On 2016/08/17 17:09:50, moe wrote: > On 2016/08/16 20:59:31, tommycli wrote: > > On 2016/08/16 ...
4 years, 4 months ago (2016-08-17 17:19:45 UTC) #18
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/2249933002/20001
4 years, 4 months ago (2016-08-17 17:20:12 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-17 18:20:23 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 18:26:46 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0f286c5b64829c1ad41018ed0b772b5496d7bf91
Cr-Commit-Position: refs/heads/master@{#412590}

Powered by Google App Engine
This is Rietveld 408576698