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

Issue 60573007: Non-activated default buttons prevent implicit form submission. (Closed)

Created:
7 years, 1 month ago by sof
Modified:
7 years, 1 month ago
Reviewers:
tkent, falken, esprehn, eseidel
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Non-activated default buttons prevent implicit form submission. Follow the spec and two other implementations (Gecko + Presto), and do not allow implicit form submission if the default (submit) button is not in an activated state (read: disabled.) Notice that this switches to behavior different from what Trident / IE provides. R=eseidel,tkent BUG=37402 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162095

Patch Set 1 #

Total comments: 5

Patch Set 2 : Retire dated comment on button names #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -24 lines) Patch
M LayoutTests/fast/forms/implicit-submission.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/forms/implicit-submission-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/platform/win/fast/forms/implicit-submission-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLButtonElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLButtonElement.cpp View 1 1 chunk +2 lines, -4 lines 0 comments Download
M Source/core/html/HTMLFormControlElement.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/HTMLFormControlElement.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 chunk +13 lines, -4 lines 0 comments Download
M Source/core/html/HTMLInputElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sof
At your leisure, please take a look.
7 years, 1 month ago (2013-11-14 14:57:34 UTC) #1
sof
http://code.google.com/p/chromium/issues/detail?id=37402#c11 claims that IE10 Standards mode supports suppression of implicit submits via disabled submit buttons. ...
7 years, 1 month ago (2013-11-14 14:58:51 UTC) #2
eseidel
I wonder if the IETC covers this case. It seems like the kind of random ...
7 years, 1 month ago (2013-11-14 16:25:16 UTC) #3
eseidel
Linking to the IETC sent me on a yak-shave. But the answer is "no" that ...
7 years, 1 month ago (2013-11-14 16:40:32 UTC) #4
sof
On 2013/11/14 16:40:32, eseidel wrote: > Linking to the IETC sent me on a yak-shave. ...
7 years, 1 month ago (2013-11-14 17:22:07 UTC) #5
tkent
https://codereview.chromium.org/60573007/diff/1/Source/core/html/HTMLButtonElement.cpp File Source/core/html/HTMLButtonElement.cpp (left): https://codereview.chromium.org/60573007/diff/1/Source/core/html/HTMLButtonElement.cpp#oldcode164 Source/core/html/HTMLButtonElement.cpp:164: // HTML spec says that buttons must have names ...
7 years, 1 month ago (2013-11-15 00:04:30 UTC) #6
tkent
On 2013/11/14 14:58:51, sof wrote: > http://code.google.com/p/chromium/issues/detail?id=37402#c11 claims that IE10 > Standards mode supports suppression ...
7 years, 1 month ago (2013-11-15 00:06:28 UTC) #7
eseidel
lgtm I trust your judgement. Please update the comments to reflect IE and the spec.
7 years, 1 month ago (2013-11-15 00:09:02 UTC) #8
sof
Thanks tkent and eseidel. There are always risks with changing forms related behavior, but this ...
7 years, 1 month ago (2013-11-15 08:52:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/60573007/120001
7 years, 1 month ago (2013-11-15 08:52:48 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-11-15 09:50:49 UTC) #11
Message was sent while issue was closed.
Change committed as 162095

Powered by Google App Engine
This is Rietveld 408576698