Jessica Jong
d310f04aae
Bug 1310080 - Implement the step attribute for <input type=datetime-local>. r=smaug
...
--HG--
extra : rebase_source : 5805842bb84b54a08015e52395b05eea47bd47cf
2017-02-07 22:03:00 +08:00
Andrea Marchesini
298618870f
Bug 1331849 - Replace NS_NewNativeLocalFile with NS_NewLocalFile in dom, r=smaug
2017-01-18 14:58:37 +01:00
Andrea Marchesini
fac176e37c
Bug 1274596 - Implement the fakepath requirement in HTMLInputElement, r=smaug
2017-01-17 09:56:56 +01:00
Jessica Jong
a7ffe02cc8
Bug 1310079 - Implement the min and max attribute for <input type=datetime-local>. r=smaug
2017-01-15 22:10:00 -05:00
Cameron McCormack
babad063ff
Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
...
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Jessica Jong
4f5f57be29
Bug 1310078 - Implement valueAsNumber and valueAsDate for <input type=datetime-local>. r=smaug,Waldo
2017-01-03 22:33:00 +01:00
Timothy Guan-tin Chien
c325756c29
Bug 570893 - Only re-enable the form controls when reload, not re-disable it, r=bz
...
With this patch, the disabled state is still kept in the nsPresState,
but we will only honor that if the state saved asks as to re-enable the
control.
The behavior is changed so that controls disabled by JavaScript will be
kept enabled as the JavaScript world gets reloaded.
MozReview-Commit-ID: 6PchHfx6KYX
--HG--
extra : rebase_source : 19399db854cc7cb80f45940bfc378c3e09c2979c
2016-12-30 14:26:35 +08:00
Jessica Jong
58af40a516
Bug 1325009 - Find separator index dynamically when sanitizing input type=datetime-local. r=smaug
2016-12-21 19:32:00 +08:00
Jessica Jong
556aae19f0
Bug 1286182 - Implement the layout for <input type=date>. r=mconley,smaug
...
--HG--
rename : dom/html/test/forms/test_input_time_focus_blur_events.html => dom/html/test/forms/test_input_datetime_focus_blur_events.html
2016-12-19 00:50:00 +08:00
Henri Sivonen
32a79394c1
Bug 1322455 - When cloning an <input>, avoid re-initializing checkedness in DoneCreatingElement. r=smaug.
...
MozReview-Commit-ID: wlbZ7grT2M
--HG--
extra : rebase_source : e8e8335b7a478c83a629c6692deae932a4edcc67
2016-12-15 18:25:02 +02:00
Andrea Marchesini
6896d43695
Bug 1319088 - FormData should not add extra '/' in the Blob path, r=smaug
2016-12-01 08:59:36 +01:00
Andrea Marchesini
5586ec8d26
Bug 1319370 - HTMLInputElement should select the directory for the FilePicker using the input type (file or directory), r=jwatt
2016-11-23 13:02:10 +01:00
Stone Shih
ca4ffa27c2
Bug 1305458 Part11: Let HTMLInputElement delegate event handling to it's parent class. r=smaug
...
MozReview-Commit-ID: 3Ms8Rt7Fqny
--HG--
extra : rebase_source : 8a91423451edb3b840b4e4f1906ff702257a896f
2016-11-01 15:36:04 +08:00
Stone Shih
0d63e2a966
Bug 1305458 Part9: Move fire events and set value from HTMLInputElement::GetEventTargetParent to PreHandleEvent. r=smaug
...
MozReview-Commit-ID: AbbIMmmwZMZ
--HG--
extra : rebase_source : fe88fbdd905ef5f2761aaad43085a0deba588367
2016-10-21 19:04:29 +08:00
Stone Shih
1ed10ff082
Bug 1305458 Part1: Rename nsIDOMEventTarget::PreHandleEvent to nsIDOMEventTarget::GetEventTargetParent. r=smaug
...
MozReview-Commit-ID: FM3vDUyLOCb
--HG--
extra : rebase_source : 5a513af84718a6d591f77437a0704984c8fc2b67
2016-10-21 10:11:07 +08:00
Boris Zbarsky
62e08b6904
Bug 1317367 part 4. Pass an explicit CallerType to HTMLInputElement::GetValueInternal. r=smaug
...
I'm not 100% sure that I'm being very consistent in my handling of
mFocusedValue, but since that's not used for file inputs, I don't think it
matters much...
A bigger problem is if people start using this caller type for things other than
file inputs.
2016-11-15 12:46:32 -05:00
Boris Zbarsky
a59a621bb6
Bug 1317367 part 3. Pass an explicit CallerType to HTMLInputElement::SetValue at all callsites. r=smaug
2016-11-15 12:46:31 -05:00
Boris Zbarsky
def4685edd
Bug 1317367 part 2. Make HTMLInputElement::GetValue infallible again; just return empty string on OOM. To a first approximation no one checks the return value anyway. r=smaug
2016-11-15 12:46:31 -05:00
Boris Zbarsky
452b292356
Bug 1317367 part 1. Get rid of the XPCOM MozGet/SetFileNameArray methods on HTMLInputElement. r=smaug
2016-11-15 12:46:31 -05:00
Boris Zbarsky
6f654ebcfb
Bug 1316951. The "select" events fired by HTMLInputElement code should always be trusted, since they always correspond to an actual attempt by the browser to select the text in the control. r=smaug
2016-11-15 00:18:32 -05:00
Jessica Jong
cb16fa3cdb
Bug 1310077 - Implement the value sanitizing algorithm for <input type=datetime-local>. r=smaug
...
--HG--
extra : rebase_source : 833758c635d1af0c3298956262c392b10b1866d9
2016-11-09 23:48:00 -05:00
Jessica Jong
726903109f
Bug 1301306 - Stop focus events from anon. content when moving inside input=time element. r=smaug
2016-11-04 00:47:00 -04:00
Aryeh Gregor
87a5bde3a6
Bug 1310865 - Don't process cloned <input> until all attributes are copied; r=hsivonen
...
Otherwise, when a value="" attribute with a newline in it is copied, we
will strip any newlines even if type="hidden" is set, because type=""
hasn't yet been copied. Other bugs are likely too. This problem was
already solved for the parser, so we can just use that solution for
cloning too.
MozReview-Commit-ID: KqxCnxmxFXp
--HG--
extra : rebase_source : 9a666adad3dbbbaa5e3706747dcf70801b9ef4e8
2016-10-27 17:17:04 +03:00
Jessica Jong
e732e68921
Bug 1310076 - Add 'datetime-local' to the list of valid types attributes for <input>. r=smaug
2016-10-24 03:35:00 +02:00
Edgar Chen
64cc70e197
Bug 1308069 - Clear pending error event fired by src="" case if src changed before it fired. r=bz
...
MozReview-Commit-ID: B8f975mZNN9
--HG--
extra : rebase_source : b44b969c733160a9e96139b6b55ac60fb140e478
2016-10-06 12:30:35 +08:00
Jessica Jong
19414ca429
Bug 1295403 - Implement the step attribute for <input type=week>. r=smaug
2016-10-07 15:04:54 +08:00
Boris Zbarsky
3f10f5ed57
Bug 1308287 part 1. Change [NeedsSubjectPrincipal] to only do the Maybe thing for interfaces that can be exposed to workers. r=baku
...
The idea is to not make consumers think about whether the principal exists or
not when the caller knows for sure that it does.
The substantive changes are in dom/bindings, nsHTMLDocument::SetDesignMode, and
around the CanUseStorage bits. Everything else is pretty mechanical.
2016-10-10 21:07:48 -04:00
Jessica Jong
b3014cc00b
Bug 1288591 - Implement the layout for <input type=time>. r=mconley, r=dholbert, r=smaug
2016-10-06 00:17:00 -04:00
Jessica Jong
b0f67cfa5f
Bug 1295402 - Implement the min and max attribute for <input type=week>. r=smaug
...
--HG--
extra : rebase_source : d32e2eb25e54343491278a60ed1561581b5d2b56
2016-09-25 19:33:00 -04:00
Jessica Jong
c35a0bf546
Bug 1278186 - Implement valueAsNumber and valueAsDate for <input type=week>. r=smaug,Waldo
2016-09-29 01:08:00 +02:00
Jan Beich
cb9811b6b4
Bug 1295883 - Chase Linux scroll wheel behavior on Tier3 desktop Unix. r=smaug
...
MozReview-Commit-ID: 7osYJCwDQev
--HG--
extra : transplant_source : %F8%0CL%3D%C2d%92%B8%8AYd%C5%137h%ED%81Nt%3E
2016-08-17 04:55:36 +00:00
Andrea Marchesini
fd5175f4d1
Bug 1303638 - file.webkitRelativePath must contain the leafName of the parent directory, r=smaug
2016-09-22 13:48:46 +02:00
Stone Shih
eddb068dd7
Bug 1297635 - Add a helper function for input to check whether input events with modifier should change the value. r=smaug, f=bevistseng
...
--HG--
extra : rebase_source : a5df32c01f4ee02ca2ab2a668836e87d16e8bb10
2016-09-06 14:30:00 +08:00
Jessica Jong
c51974390f
Bug 1278192 - Implement the value sanitizing algorithm for <input type=week>. r=smaug
...
--HG--
extra : source : 6ee805904d2d54728be175ddb60466acbb78c242
2016-09-08 15:39:01 -07:00
Wes Kocher
5cbc382303
Merge inbound to m-c a=merge
2016-09-07 17:54:24 -07:00
Carsten "Tomcat" Book
7c6c7db247
Merge mozilla-central to autoland
2016-09-07 17:26:11 +02:00
Michael Layzell
c47fca1cd7
Bug 1018486 - Part 1: Changes in dom/, r=baku
...
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Jeremy Chen
e42a48e81d
Bug 1297306 - part5:create enum constructors for EnumTable. r=baku
...
Enable nsAttrValue::EnumTable to be initialized with enum. So, we could get rid
of the castings in EnumTable. Fix EnumTable initialization comment.
For those untyped enumerations, declare them with uint8_t, as to other typed
enumerations with type size larger than int16_t, force casting to int16_t.
Use {nullptr,0} instead of {0} to represent the last entry.
MozReview-Commit-ID: 7Dma3Apkmxj
--HG--
extra : rebase_source : b2289866c4c33d80c8e170727bf109d018d92f67
2016-09-07 10:20:17 +08:00
Stone Shih
16a8810124
Bug 1295719 - input[type=range,number] does not fire 'change' event for some key combinations. r=smaug
...
--HG--
extra : rebase_source : 89f46401a53dcab3dd3845477acfc7aaf9fdd3cc
2016-08-19 09:19:35 +08:00
Nicholas Nethercote
34dcc7b852
Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
...
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.
In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.
> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.
> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");
This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
be true" sense used in assertions.
A common variation on the side-effect-free case is the following.
> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");
--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Thomas Wisniewski
e18ef07821
Bug 1069015 - Restore code for :placeholder-shown pseudo-class. r=dbaron
2016-08-31 14:21:44 -04:00
Jessica Jong
1b328436b6
Bug 885359 - Support :indeterminate pseudo-class for radio groups. r=smaug
2016-08-24 18:39:00 -04:00
Olli Pettay
f684a31ad3
Bug 1295914, improve the label of the button of folder picker, r=baku,mstange,karlt,jimm
...
--HG--
extra : rebase_source : 17d97b01d1e7d27b37369f46a6ea8854f9384f54
2016-08-24 02:07:21 +03:00
Olli Pettay
dacd5c3661
Bug 1295914, improve the title of the folder picker a bit, r=baku
...
--HG--
extra : rebase_source : 2866f08c670897dad99f54f0c66ae81e2699630e
2016-08-24 02:06:08 +03:00
Andrea Marchesini
94d10aeb4c
Bug 1295570 - Entries API - part 2 - Rename Entry to FileSystemEntry, r=smaug
...
--HG--
rename : dom/filesystem/compat/Entry.cpp => dom/filesystem/compat/FileSystemEntry.cpp
rename : dom/filesystem/compat/Entry.h => dom/filesystem/compat/FileSystemEntry.h
2016-08-18 09:17:25 +02:00
Andrea Marchesini
f0c18d080e
Bug 1295570 - Entries API - part 1 - Rename DOMFileSystem to FileSystem, r=smaug
...
--HG--
rename : dom/filesystem/compat/DOMFileSystem.cpp => dom/filesystem/compat/FileSystem.cpp
rename : dom/filesystem/compat/DOMFileSystem.h => dom/filesystem/compat/FileSystem.h
rename : dom/webidl/DOMFileSystem.webidl => dom/webidl/FileSystem.webidl
2016-08-18 09:17:02 +02:00
Olli Pettay
89332bbcd3
Bug 1295922 - <input type=file webkitdirectory>.click() doesn't work. r=baku
...
--HG--
extra : rebase_source : cc42f9aa791ec7a694870b9dc933f034e40430d6
2016-08-17 17:59:53 +03:00
Thomas Wisniewski
fe6139c017
Bug 932755 - Add support for input/textarea minLength and tooShort. r=mrbkap
...
--HG--
extra : rebase_source : 064985cbb241ef8705dcec28f60db9f4caf65ae4
2016-08-17 00:11:24 -04:00
Decky Coss
08a416fd4e
Bug 1283915 - Preserve input selection properties after type change. r=smaug
...
MozReview-Commit-ID: 7xJKc3vIpTY
--HG--
extra : rebase_source : 6fa36a607efb1e8eec1cc8efbb174d622aa0281f
2016-07-27 11:04:53 -04:00
Jessica Jong
5a9b39d967
Bug 1278738 - Add 'week' to the list of valid types attributes for <input>. r=smaug
2016-08-15 23:15:00 -04:00