Boris Zbarsky
f93dcbc65c
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
8520967004
Bug 1310077 - Implement the value sanitizing algorithm for <input type=datetime-local>. r=smaug
2016-11-09 23:48:00 -05:00
Jessica Jong
f0bd2cc848
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
7c4110f072
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
2016-10-27 17:17:04 +03:00
Jessica Jong
7ef7e911f2
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
f1406505a9
Bug 1308069 - Clear pending error event fired by src="" case if src changed before it fired. r=bz
...
MozReview-Commit-ID: B8f975mZNN9
2016-10-06 12:30:35 +08:00
Jessica Jong
67d066b2e9
Bug 1295403 - Implement the step attribute for <input type=week>. r=smaug
2016-10-07 15:04:54 +08:00
Boris Zbarsky
65a99191a7
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
113984eb02
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
6bb901a5d7
Bug 1295402 - Implement the min and max attribute for <input type=week>. r=smaug
2016-09-25 19:33:00 -04:00
Jessica Jong
3658d6c1dc
Bug 1278186 - Implement valueAsNumber and valueAsDate for <input type=week>. r=smaug,Waldo
2016-09-29 01:08:00 +02:00
Jan Beich
33bbfb7476
Bug 1295883 - Chase Linux scroll wheel behavior on Tier3 desktop Unix. r=smaug
...
MozReview-Commit-ID: 7osYJCwDQev
2016-08-17 04:55:36 +00:00
Andrea Marchesini
eb959259c8
Bug 1303638 - file.webkitRelativePath must contain the leafName of the parent directory, r=smaug
2016-09-22 13:48:46 +02:00
Stone Shih
3a6eb5a9f4
Bug 1297635 - Add a helper function for input to check whether input events with modifier should change the value. r=smaug, f=bevistseng
2016-09-06 14:30:00 +08:00
Jessica Jong
c3f69e5909
Bug 1278192 - Implement the value sanitizing algorithm for <input type=week>. r=smaug
2016-09-08 15:39:01 -07:00
Wes Kocher
acd22e8efa
Merge inbound to m-c a=merge
2016-09-07 17:54:24 -07:00
Carsten "Tomcat" Book
b95ddfd9ff
Merge mozilla-central to autoland
2016-09-07 17:26:11 +02:00
Michael Layzell
f2f13378b5
Bug 1018486 - Part 1: Changes in dom/, r=baku
...
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Jeremy Chen
c22b72adf2
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
2016-09-07 10:20:17 +08:00
Stone Shih
94757dd47e
Bug 1295719 - input[type=range,number] does not fire 'change' event for some key combinations. r=smaug
2016-08-19 09:19:35 +08:00
Nicholas Nethercote
b5810a1eb4
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");
2016-09-02 17:12:24 +10:00
Thomas Wisniewski
eb97b29c77
Bug 1069015 - Restore code for :placeholder-shown pseudo-class. r=dbaron
2016-08-31 14:21:44 -04:00
Jessica Jong
4a7a3eb9a6
Bug 885359 - Support :indeterminate pseudo-class for radio groups. r=smaug
2016-08-24 18:39:00 -04:00
Olli Pettay
d06eced574
Bug 1295914, improve the label of the button of folder picker, r=baku,mstange,karlt,jimm
2016-08-24 02:07:21 +03:00
Olli Pettay
ebd3b63b09
Bug 1295914, improve the title of the folder picker a bit, r=baku
2016-08-24 02:06:08 +03:00
Andrea Marchesini
3c452ab664
Bug 1295570 - Entries API - part 2 - Rename Entry to FileSystemEntry, r=smaug
2016-08-18 09:17:25 +02:00
Andrea Marchesini
97c71d5681
Bug 1295570 - Entries API - part 1 - Rename DOMFileSystem to FileSystem, r=smaug
2016-08-18 09:17:02 +02:00
Olli Pettay
9ebd2f1672
Bug 1295922 - <input type=file webkitdirectory>.click() doesn't work. r=baku
2016-08-17 17:59:53 +03:00
Thomas Wisniewski
f8c3308791
Bug 932755 - Add support for input/textarea minLength and tooShort. r=mrbkap
2016-08-17 00:11:24 -04:00
Decky Coss
0eb80cd61e
Bug 1283915 - Preserve input selection properties after type change. r=smaug
...
MozReview-Commit-ID: 7xJKc3vIpTY
2016-07-27 11:04:53 -04:00
Jessica Jong
e854e57b5b
Bug 1278738 - Add 'week' to the list of valid types attributes for <input>. r=smaug
2016-08-15 23:15:00 -04:00
Jessica Jong
e04ff71004
Bug 1281769 - Do not throw when getting selectionDirection/selectionStart/selectionEnd on input/textarea. r=smaug
2016-08-08 23:19:00 +02:00
Ben Tian
b88821b9a2
Bug 1272297 - Do not check pattern validity while parser is creating this input element. r=smaug
2016-08-09 15:21:15 +08:00
Thomas Wisniewski
59fe578703
Bug 613019 - Track whether the last input/textarea change was done interactively, and enable the commented-out maxLength tracking code. r=mrbkap
2016-08-06 11:59:08 -04:00
Stone Shih
6d79c3eb1d
Bug 1286509 - Range input does not fire ‘change’ event when the range is changed using the keyboard. r=smaug
2016-08-01 10:47:34 +08:00
Decky Coss
14fa144b3b
Bug 1287655 - place textarea/input cursor at end of text when initialized; r=smaug
...
MozReview-Commit-ID: 2srGXFmla07
2016-07-21 14:52:49 -04:00
Jessica Jong
a9e4428dd7
Bug 1283023 - Implement the step attribute for <input type=month>. r=smaug
2016-08-03 02:54:00 +02:00
Carsten "Tomcat" Book
50b047ceb4
Merge mozilla-central to autoland
2016-08-03 17:08:48 +02:00
Masayuki Nakano
439ffd5083
Bug 1259672 Rename InternalFormEvent::originator to mOriginator r=smaug
...
MozReview-Commit-ID: 1RoHVeziNr3
2016-08-03 17:06:10 +09:00
Boris Zbarsky
3c930fe67b
Bug 1287989. Don't try to do validation or fire submit events in iframes that are sandboxed without allow-forms. r=smaug
2016-08-02 11:05:36 -07:00
Olli Pettay
c225f78ad6
Bug 1289254 - Support dnd for webkitdirectory, r=baku
2016-07-29 14:41:38 +03:00
Jessica Jong
1ea196c1e3
Bug 1289272 - Simplify the computation of step values for input type=date. r=smaug
2016-07-28 02:44:00 -04:00
Andrea Marchesini
4dff77891b
Bug 1288681 - Rename HTMLInputElement::directory to HTMLInputElement::allowdirs, r=smaug
2016-07-23 10:20:15 +02:00
Andrea Marchesini
3e782b8fc6
Bug 1288736 - Add some missing rv.SuppressException(), r=smaug
2016-07-22 16:50:10 +02:00
Carsten "Tomcat" Book
9265f02f72
merge mozilla-inbound to mozilla-central a=merge
2016-07-21 16:24:36 +02:00
Olli Pettay
9ce8cf846c
Bug 1287321 - Don't fire input event on type=range when value hasn't changed. r=baku
2016-07-20 21:06:57 +03:00
Chris Peterson
6c0f810682
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Jessica Jong
23ad2f4a7c
Bug 1283022 - Implement the min and max attribute for <input type=month>. r=smaug
2016-07-15 00:07:00 +02:00
Stone Shih
ab8fa475d9
Bug 1261674 - Handle wheel event when mouse cursor is hovered on a focused range input as increasing/decreasing it's value. r=smaug
2016-07-05 17:48:19 +08:00
Carsten "Tomcat" Book
7c5a27768f
Merge mozilla-central to mozilla-inbound
2016-07-14 11:56:37 +02:00