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

Issue 7709013: chromeos: Make WebUI auth dialog handle Enter and Escape. (Closed)

Created:
9 years, 4 months ago by Daniel Erat
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Oleg Eterevsky, kuan
Visibility:
Public.

Description

chromeos: Make WebUI auth dialog handle Enter and Escape. This adds a form to the HTTP auth dialog to make Enter work and adds a handler to listen for Escape. It also improves many small aspects of the dialog's appearance (more padding around the edges and between items; narrower, centered input fields; disabled text selection; <label> tags). BUG=chromium:89833 TEST=manual: went to a page requiring auth; confirmed that enter submits and escape cancels, and that clicking the buttons still works too Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97959

Patch Set 1 #

Total comments: 19

Patch Set 2 : more changes #

Total comments: 16

Patch Set 3 : apply review feedback #

Patch Set 4 : revert changes from r97651 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -45 lines) Patch
M chrome/browser/resources/http_auth.html View 1 2 3 2 chunks +69 lines, -44 lines 0 comments Download
M chrome/browser/ui/login/login_prompt_ui.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Daniel Erat
http://codereview.chromium.org/7709013/diff/1/chrome/browser/resources/http_auth.html File chrome/browser/resources/http_auth.html (right): http://codereview.chromium.org/7709013/diff/1/chrome/browser/resources/http_auth.html#newcode68 chrome/browser/resources/http_auth.html:68: document.onkeydown = handleKeyDown; Should I be setting the body ...
9 years, 4 months ago (2011-08-22 22:14:17 UTC) #1
xiyuan
LGTM with nits http://codereview.chromium.org/7709013/diff/1/chrome/browser/resources/http_auth.html File chrome/browser/resources/http_auth.html (right): http://codereview.chromium.org/7709013/diff/1/chrome/browser/resources/http_auth.html#newcode55 chrome/browser/resources/http_auth.html:55: if (event.keyCode == 27) { nit: ...
9 years, 4 months ago (2011-08-22 22:29:05 UTC) #2
arv (Not doing code reviews)
LGTM with nits http://codereview.chromium.org/7709013/diff/1/chrome/browser/resources/http_auth.html File chrome/browser/resources/http_auth.html (right): http://codereview.chromium.org/7709013/diff/1/chrome/browser/resources/http_auth.html#newcode46 chrome/browser/resources/http_auth.html:46: chrome.send('DialogClose', ['']); chrome.send('DialogClose') http://codereview.chromium.org/7709013/diff/1/chrome/browser/resources/http_auth.html#newcode51 chrome/browser/resources/http_auth.html:51: return ...
9 years, 4 months ago (2011-08-23 00:14:59 UTC) #3
Daniel Erat
Thanks, another look? I made a bunch of changes to the dialog's appearance. You can ...
9 years, 4 months ago (2011-08-23 00:48:03 UTC) #4
arv (Not doing code reviews)
Some more nits http://codereview.chromium.org/7709013/diff/4/chrome/browser/resources/http_auth.html File chrome/browser/resources/http_auth.html (right): http://codereview.chromium.org/7709013/diff/4/chrome/browser/resources/http_auth.html#newcode6 chrome/browser/resources/http_auth.html:6: margin: 10px 10px 0px 10px; s/0px/0/ ...
9 years, 4 months ago (2011-08-23 01:25:33 UTC) #5
Daniel Erat
Thanks! http://codereview.chromium.org/7709013/diff/4/chrome/browser/resources/http_auth.html File chrome/browser/resources/http_auth.html (right): http://codereview.chromium.org/7709013/diff/4/chrome/browser/resources/http_auth.html#newcode6 chrome/browser/resources/http_auth.html:6: margin: 10px 10px 0px 10px; On 2011/08/23 01:25:33, ...
9 years, 4 months ago (2011-08-23 21:45:09 UTC) #6
Daniel Erat
9 years, 4 months ago (2011-08-23 22:15:44 UTC) #7
FYI Kuan: I'm rolling back your changes from r97651; Arv says that onclick()
calls should be avoided.  (I started this change locally yesterday before your
change went in and wasn't aware that they conflicted until I synced today.)

Powered by Google App Engine
This is Rietveld 408576698