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

Issue 22268005: Prevent overlay enter events from executing two buttons. (Closed)

Created:
7 years, 4 months ago by Rune Fevang
Modified:
7 years, 4 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, oshima+watch_chromium.org, tkent, arv (Not doing code reviews)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Prevent overlay enter events from executing two buttons. If the focus before opening an overlay was on a button, the overlay will restore focus to that button when the overlay closes. If the cause of the overlay closing was executing a default button via the document handler, the newly focused button would then execute immediately via the same event. This CL prevents that from happening by calling preventDefualt() after executing the defualt button. BUG=268336 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215826

Patch Set 1 #

Patch Set 2 : Added test #

Total comments: 2

Patch Set 3 : More comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
M chrome/browser/ui/webui/options/options_browsertest.js View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M ui/webui/resources/js/cr/ui/overlay.js View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Rune Fevang
7 years, 4 months ago (2013-08-05 22:29:09 UTC) #1
Dan Beam
lgtm, but can haz test? it's pretty hard to keep track of all the manual ...
7 years, 4 months ago (2013-08-05 23:34:24 UTC) #2
Rune Fevang
On 2013/08/05 23:34:24, Dan Beam wrote: > lgtm, but can haz test? > > it's ...
7 years, 4 months ago (2013-08-05 23:56:12 UTC) #3
Dan Beam
On 2013/08/05 23:56:12, Rune Fevang wrote: > On 2013/08/05 23:34:24, Dan Beam wrote: > > ...
7 years, 4 months ago (2013-08-06 00:06:31 UTC) #4
Rune Fevang
On 2013/08/06 00:06:31, Dan Beam wrote: > On 2013/08/05 23:56:12, Rune Fevang wrote: > > ...
7 years, 4 months ago (2013-08-06 00:47:41 UTC) #5
Dan Beam
slgtm https://codereview.chromium.org/22268005/diff/7001/chrome/browser/ui/webui/options/options_browsertest.js File chrome/browser/ui/webui/options/options_browsertest.js (right): https://codereview.chromium.org/22268005/diff/7001/chrome/browser/ui/webui/options/options_browsertest.js#newcode236 chrome/browser/ui/webui/options/options_browsertest.js:236: // the default button. nit: explain why you ...
7 years, 4 months ago (2013-08-06 00:53:31 UTC) #6
Rune Fevang
https://codereview.chromium.org/22268005/diff/7001/chrome/browser/ui/webui/options/options_browsertest.js File chrome/browser/ui/webui/options/options_browsertest.js (right): https://codereview.chromium.org/22268005/diff/7001/chrome/browser/ui/webui/options/options_browsertest.js#newcode236 chrome/browser/ui/webui/options/options_browsertest.js:236: // the default button. On 2013/08/06 00:53:32, Dan Beam ...
7 years, 4 months ago (2013-08-06 00:58:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rfevang@chromium.org/22268005/13001
7 years, 4 months ago (2013-08-06 01:01:52 UTC) #8
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 06:31:12 UTC) #9
Message was sent while issue was closed.
Change committed as 215826

Powered by Google App Engine
This is Rietveld 408576698