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

Issue 340143002: Disabled form control elements should not be active (Closed)

Created:
6 years, 6 months ago by spartha
Modified:
6 years, 6 months ago
Reviewers:
tkent, esprehn, Inactive
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Disabled form control elements should not be active Clicking on a disabled form control element like a button should not make it active. This patch adds a check for the disabled element before setting the activation. This is as per the spec http://www.whatwg.org/specs/web-apps/current-work/multipage/selectors.html#selector-active This matches the behavior on IE. Firefox behavior is same as Chrome. BUG=385601 TEST=fast/css/disabled-form-control-elements-should-not-be-active.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176501

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Review Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -1 line) Patch
A LayoutTests/fast/css/disabled-form-control-elements-should-not-be-active.html View 1 1 chunk +36 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/disabled-form-control-elements-should-not-be-active-expected.txt View 1 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
spartha
PTAL
6 years, 6 months ago (2014-06-18 15:15:30 UTC) #1
tkent
lgtm https://codereview.chromium.org/340143002/diff/20001/LayoutTests/fast/css/disabled-form-control-elements-should-not-be-active.html File LayoutTests/fast/css/disabled-form-control-elements-should-not-be-active.html (right): https://codereview.chromium.org/340143002/diff/20001/LayoutTests/fast/css/disabled-form-control-elements-should-not-be-active.html#newcode16 LayoutTests/fast/css/disabled-form-control-elements-should-not-be-active.html:16: <pre id="description"></pre> This element is unnecessary. js-test.js generates ...
6 years, 6 months ago (2014-06-18 23:53:37 UTC) #2
spartha
The CQ bit was checked by sudarshan.p@samsung.com
6 years, 6 months ago (2014-06-19 07:56:34 UTC) #3
spartha
Thanks! https://codereview.chromium.org/340143002/diff/20001/LayoutTests/fast/css/disabled-form-control-elements-should-not-be-active.html File LayoutTests/fast/css/disabled-form-control-elements-should-not-be-active.html (right): https://codereview.chromium.org/340143002/diff/20001/LayoutTests/fast/css/disabled-form-control-elements-should-not-be-active.html#newcode16 LayoutTests/fast/css/disabled-form-control-elements-should-not-be-active.html:16: <pre id="description"></pre> On 2014/06/18 23:53:36, tkent wrote: > ...
6 years, 6 months ago (2014-06-19 07:57:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/340143002/60001
6 years, 6 months ago (2014-06-19 07:57:24 UTC) #5
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 09:51:05 UTC) #6
Message was sent while issue was closed.
Change committed as 176501

Powered by Google App Engine
This is Rietveld 408576698