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

Issue 132233059: Synchronize is-valid flag upon programmatic clearing of file.value (Closed)

Created:
6 years, 10 months ago by sof
Modified:
6 years, 10 months ago
Reviewers:
tkent, keishi
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Synchronize is-valid flag upon programmatic clearing of file.value If a type=file input element is cleared of its current contents by setting the "value" property to the empty string, make sure the 'is valid' flag kept on the input element is synchronized. Failure to do so could incorrectly make the element pass follow-on validation -- if it additionally has 'required' set. R=tkent@chromium.org BUG=336818 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166115

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove redundant waitUntilDone() calls #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -5 lines) Patch
A LayoutTests/fast/forms/file/file-input-empty-validation.html View 1 1 chunk +43 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/file/file-input-empty-validation-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/file/file-input-reset-validation.html View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/forms/file/file-setrangetext-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/file/input-file-value-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/forms/FileInputType.cpp View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
sof
Please take a look when you next have a spare moment.
6 years, 10 months ago (2014-01-29 15:28:01 UTC) #1
tkent
lgtm https://codereview.chromium.org/132233059/diff/1/LayoutTests/fast/forms/file/file-input-empty-validation.html File LayoutTests/fast/forms/file/file-input-empty-validation.html (right): https://codereview.chromium.org/132233059/diff/1/LayoutTests/fast/forms/file/file-input-empty-validation.html#newcode40 LayoutTests/fast/forms/file/file-input-empty-validation.html:40: testRunner.dumpAsText(); nit: You don't need dumpAsText(). js-test.js calls ...
6 years, 10 months ago (2014-01-29 23:36:26 UTC) #2
tkent
On 2014/01/29 23:36:26, tkent wrote: > testRunner.waitUntilDone(); > nit: You don't need dumpAsText(). js-test.js calls ...
6 years, 10 months ago (2014-01-29 23:37:35 UTC) #3
sof
On 2014/01/29 23:37:35, tkent wrote: > On 2014/01/29 23:36:26, tkent wrote: > > testRunner.waitUntilDone(); > ...
6 years, 10 months ago (2014-01-30 06:24:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/132233059/20001
6 years, 10 months ago (2014-01-30 07:34:26 UTC) #5
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 10 months ago (2014-01-30 09:38:56 UTC) #6
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 09:39:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/132233059/20001
6 years, 10 months ago (2014-01-30 09:51:34 UTC) #8
commit-bot: I haz the power
Change committed as 166115
6 years, 10 months ago (2014-01-30 09:51:55 UTC) #9
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 09:52:15 UTC) #10
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698