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

Issue 23717029: Disable submit button briefly when launching rAc dialog (Closed)

Created:
7 years, 3 months ago by please use gerrit instead
Modified:
7 years, 3 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, benquan, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Disable submit button briefly when launching rAc dialog A malicious site could create content that could pop up the rAc dialog and get the user to accidentally click submit. This CL disables the submit for a brief time (1s), so such clicks wouldn't trigger the submit. BUG=241897 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221598

Patch Set 1 #

Patch Set 2 : Fix grammar in comments #

Patch Set 3 : Merge master #

Total comments: 3

Patch Set 4 : Use timer #

Total comments: 10

Patch Set 5 : Clearly define which code runs only in testing. Use better variable types. #

Patch Set 6 : Merge master #

Total comments: 6

Patch Set 7 : Do not extend the submit button delay in test #

Total comments: 1

Patch Set 8 : Rename number to count #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -1 line) Patch
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.h View 1 2 3 4 5 6 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 5 chunks +31 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc View 1 2 3 4 5 6 7 5 chunks +93 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
please use gerrit instead
Evan: PTAL.
7 years, 3 months ago (2013-09-04 00:03:34 UTC) #1
Evan Stade
https://codereview.chromium.org/23717029/diff/19001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/23717029/diff/19001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode2243 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:2243: is_submit_button_delayed_ = true; I think this will be slightly ...
7 years, 3 months ago (2013-09-04 02:36:28 UTC) #2
please use gerrit instead
https://codereview.chromium.org/23717029/diff/19001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/23717029/diff/19001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode2243 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:2243: is_submit_button_delayed_ = true; On 2013/09/04 02:36:28, Evan Stade wrote: ...
7 years, 3 months ago (2013-09-04 02:51:46 UTC) #3
Evan Stade
https://codereview.chromium.org/23717029/diff/19001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/23717029/diff/19001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode2243 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:2243: is_submit_button_delayed_ = true; On 2013/09/04 02:51:46, Rouslan Solomakhin wrote: ...
7 years, 3 months ago (2013-09-04 18:24:29 UTC) #4
please use gerrit instead
Evan: PTAL.
7 years, 3 months ago (2013-09-04 21:01:13 UTC) #5
Evan Stade
https://codereview.chromium.org/23717029/diff/27001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/23717029/diff/27001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode660 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:660: SubmitButtonDelayBegin(kSubmitButtonDelayMs); I think you should do this before view_->Show() ...
7 years, 3 months ago (2013-09-04 21:42:52 UTC) #6
please use gerrit instead
Evan: PTAL. https://codereview.chromium.org/23717029/diff/27001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/23717029/diff/27001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode660 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:660: SubmitButtonDelayBegin(kSubmitButtonDelayMs); On 2013/09/04 21:42:52, Evan Stade wrote: ...
7 years, 3 months ago (2013-09-05 02:30:58 UTC) #7
Evan Stade
https://codereview.chromium.org/23717029/diff/67001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h File chrome/browser/ui/autofill/autofill_dialog_controller_impl.h (right): https://codereview.chromium.org/23717029/diff/67001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h#newcode291 chrome/browser/ui/autofill/autofill_dialog_controller_impl.h:291: void OnSubmitButtonDelayEnd(); this can be private now right? https://codereview.chromium.org/23717029/diff/67001/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc ...
7 years, 3 months ago (2013-09-05 16:29:43 UTC) #8
please use gerrit instead
Evan: PTAL. https://codereview.chromium.org/23717029/diff/67001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h File chrome/browser/ui/autofill/autofill_dialog_controller_impl.h (right): https://codereview.chromium.org/23717029/diff/67001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h#newcode291 chrome/browser/ui/autofill/autofill_dialog_controller_impl.h:291: void OnSubmitButtonDelayEnd(); On 2013/09/05 16:29:44, Evan Stade ...
7 years, 3 months ago (2013-09-05 18:40:49 UTC) #9
Evan Stade
lgtm https://codereview.chromium.org/23717029/diff/73001/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc (right): https://codereview.chromium.org/23717029/diff/73001/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc#newcode345 chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc:345: int submit_button_delay_number_; nit: submit_button_delay_count_;
7 years, 3 months ago (2013-09-06 01:06:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/23717029/91001
7 years, 3 months ago (2013-09-06 01:19:54 UTC) #11
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 06:11:54 UTC) #12
Message was sent while issue was closed.
Change committed as 221598

Powered by Google App Engine
This is Rietveld 408576698