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

Issue 2541173003: Allow navigation while a JavaScript dialog is up. (Closed)

Created:
4 years ago by Avi (use Gerrit)
Modified:
4 years ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow navigation while a JavaScript dialog is up. (It will cancel the dialog.) BUG=669996 TEST=as in bug Committed: https://crrev.com/24a1bf068b07d183d456afdb8629e851467829c3 Cr-Commit-Position: refs/heads/master@{#435963}

Patch Set 1 #

Total comments: 10

Patch Set 2 : creis #

Patch Set 3 : with test #

Patch Set 4 : test cleaner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -3 lines) Patch
A chrome/browser/ui/javascript_dialogs/javascript_dialog_browsertest.cc View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc View 1 4 chunks +30 lines, -3 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
Avi (use Gerrit)
Charlie, navigation code Ilya, UMA
4 years ago (2016-12-01 20:55:12 UTC) #4
Charlie Reis
Thanks! There's some subtlety below, so I wonder if this is something we can add ...
4 years ago (2016-12-01 21:36:48 UTC) #7
Avi (use Gerrit)
https://codereview.chromium.org/2541173003/diff/1/chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc File chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc (right): https://codereview.chromium.org/2541173003/diff/1/chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc#newcode272 chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc:272: if (dialog_ && navigation_handle->IsInMainFrame()) { On 2016/12/01 21:36:48, Charlie ...
4 years ago (2016-12-01 23:20:08 UTC) #10
Charlie Reis
Thanks! Fix looks good. Did you see my request for a test? I think it's ...
4 years ago (2016-12-01 23:30:27 UTC) #11
Avi (use Gerrit)
https://codereview.chromium.org/2541173003/diff/1/chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc File chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc (right): https://codereview.chromium.org/2541173003/diff/1/chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc#newcode272 chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc:272: if (dialog_ && navigation_handle->IsInMainFrame()) { On 2016/12/01 23:30:26, Charlie ...
4 years ago (2016-12-02 01:32:26 UTC) #18
Ilya Sherman
histograms.xml lgtm
4 years ago (2016-12-02 01:48:00 UTC) #19
Charlie Reis
Thanks for the test! LGTM.
4 years ago (2016-12-02 05:09:02 UTC) #22
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/2541173003/60001
4 years ago (2016-12-02 15:19:10 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-02 17:22:27 UTC) #26
commit-bot: I haz the power
4 years ago (2016-12-02 17:24:47 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/24a1bf068b07d183d456afdb8629e851467829c3
Cr-Commit-Position: refs/heads/master@{#435963}

Powered by Google App Engine
This is Rietveld 408576698