Emilio Cobos Álvarez
e13a620d19
Bug 1449806: Merge {Servo,Generic}SpecifiedValues into MappedDeclarations. r=xidorn
...
The idea would be that this header is only included in cpp files, thus it's ok
to include ServoBindings, etc.
MozReview-Commit-ID: EgQEsR0cZd4
2018-06-25 11:14:39 +02:00
Boris Zbarsky
a0e4948ccd
Bug 1465875 part 5. Eliminate nsIDOMNSEditableElement. r=qdot
2018-06-01 22:35:23 -04:00
Adrian Wielgosik
104ccff3c8
Bug 1418078 - Remove nsIDOMHTMLInputElement. r=bz
...
MozReview-Commit-ID: Gun4oxg1NJZ
2018-04-18 22:35:32 +02:00
Boris Zbarsky
821cd16e9f
Bug 1456169 part 3. Remove the now-unnecessary nsITextControlElement::GetPreviewNode. r=emilio
...
MozReview-Commit-ID: 3goF5VXvQap
2018-04-24 02:17:18 -04:00
Boris Zbarsky
ae88fa2749
Bug 1456169 part 2. Remove the now-unnecessary nsITextControlElement::GetPlaceholderNode. r=emilio
...
MozReview-Commit-ID: FcVbeHEwkMz
2018-04-24 02:17:17 -04:00
Boris Zbarsky
d0e4853121
Bug 1456169 part 1. Remove the now-unnecessary nsITextControlElement::GetRootEditorNode. r=emilio
...
MozReview-Commit-ID: 6DYEtQMTCRF
2018-04-24 02:17:17 -04:00
Ciure Andrei
40a9e70f9f
Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE
2018-04-11 12:00:35 +03:00
Cameron McCormack
9a6c8a3e60
Bug 1317539 - Remove dom.forms.number pref. r=bz
...
MozReview-Commit-ID: EgeUfWMcE8D
2018-04-10 11:02:28 +10:00
Nika Layzell
cccd4523db
Bug 1438026 - Part 3: Replace nsPresState with the new PresState type, r=baku
2018-04-10 17:49:44 -04:00
Boris Zbarsky
5b75c1416d
Bug 1449631 part 8. Remove nsIDOMEventTarget::GetEventTargetParent. r=smaug
...
MozReview-Commit-ID: 5wQ2LYrjUxf
2018-04-05 13:42:41 -04:00
Boris Zbarsky
cfeb9c06b9
Bug 1449404 part 4. Get rid of a few virtual nsIContent methods. r=mccr8
...
The HasTextForTranslation implementation was just moved, with the nodetype
check up front dropped because that's enforced statically now.
2018-03-28 18:01:47 -04:00
Boris Zbarsky
6ea42abd76
Bug 1447098 part 2. Rename the NS_IMPL_FROMCONTENT macros to NS_IMPL_FROMNODE. r=mystor
2018-03-21 17:39:04 -04:00
Adrian Wielgosik
03284e63fb
Bug 1446515 - Remove nsIDOMFileList. r=bz
...
MozReview-Commit-ID: 4ab1e6NTcOB
2018-03-16 20:55:32 +01:00
Emilio Cobos Álvarez
24dd511927
Bug 1439155: Be consistent about what does readonly apply to. r=smaug
...
MozReview-Commit-ID: 4NiDe7pUzGa
2018-02-22 08:07:55 +01:00
Adrian Wielgosik
ddc8320336
Bug 1439751 - Cleanup HTMLInputElement some more. r=qdot
...
MozReview-Commit-ID: APunYKaGM8I
2018-02-20 23:11:27 +01:00
Adrian Wielgosik
9ed001b20f
Bug 1439751 - Remove all members from nsIDOMHTMLInputElement. r=qdot
...
MozReview-Commit-ID: JVagEzvSONN
2018-02-20 23:10:44 +01:00
Emilio Cobos Álvarez
f68231c053
Bug 1431041: Fix placeholder-shown when the value of the input is invalid. r=smaug
...
Wow, the setup for <input type="number"> is really weird :(.
Looking at the callers, this should be sane.
MozReview-Commit-ID: C0ZNNSdg0Hb
2018-01-18 17:20:39 +01:00
Csoregi Natalia
288cbd4f18
Backed out 2 changesets (bug 1431041) for failing dom/html/test/forms/test_input_number_placeholder_shown.html. on a CLOSED TREE
...
Backed out changeset 57641ee7058f (bug 1431041)
Backed out changeset 7a4c3ab0ade8 (bug 1431041)
2018-01-18 07:29:14 +02:00
Emilio Cobos Álvarez
fe79e47619
Bug 1431041: Fix placeholder-shown when the value of the input is invalid. r=smaug
...
Wow, the setup for <input type="number"> is really weird :(.
Looking at the callers, this should be sane.
MozReview-Commit-ID: C0ZNNSdg0Hb
2018-01-17 18:30:59 +01:00
Andrea Marchesini
03bde7c37a
Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 16 - Webkit/Blink directory picker enabled, r=asuth
2018-01-08 14:05:05 +01:00
Boris Zbarsky
ca91e3b7b4
Bug 1424474 part 3. Make sure that we only pass non-system subject principals to setters/methods that later use that principal for loading security checks. r=kmag
...
MozReview-Commit-ID: IjUEG5xwn5
2017-12-20 17:43:18 -05:00
Narcis Beleuzu
d9519f9913
Backed out 2 changesets (bug 1424474) for mochitest failures on test_bug494328.html r=backout on a CLOSED TREE
...
Backed out changeset 39d5991f02ba (bug 1424474)
Backed out changeset da3dec2fce06 (bug 1424474)
2017-12-21 02:55:27 +02:00
Boris Zbarsky
8ed3a61303
Bug 1424474 part 2. Make sure that we only pass non-system subject principals to setters/methods that later use that principal for loading security checks. r=kmag
2017-12-20 17:43:18 -05:00
Boris Zbarsky
0e5baea61e
Bug 1419270 part 2. Use getter or setter specific NeedsSubjectPrincipal annotations more. r=qdot
...
MozReview-Commit-ID: KBwjFh3TMUg
2017-12-05 16:03:18 -05:00
Boris Zbarsky
2911dfd061
Bug 1418558 part 4. Add MOZ_CAN_RUN_SCRIPT annotations to nsGenericHTMLElement methods that can call GetPrimaryFrame. r=mystor
...
MozReview-Commit-ID: HxFFC85qgOD
2017-12-05 11:18:16 -05:00
Cosmin Sabou
369f0175e7
Backed out 23 changesets (bug 1419771) for frequently failing service workers related devtools tests, e.g. devtools/client/aboutdebugging/test/browser_service_workers_push.js. r=backout on a CLOSED TREE
...
Backed out changeset 2242edc902a5 (bug 1419771)
Backed out changeset 9cc3c29a9e36 (bug 1419771)
Backed out changeset c39ee002c825 (bug 1419771)
Backed out changeset caf7428013f2 (bug 1419771)
Backed out changeset c03970363433 (bug 1419771)
Backed out changeset 7f9de012861e (bug 1419771)
Backed out changeset ed146ac42a7f (bug 1419771)
Backed out changeset a8154698f782 (bug 1419771)
Backed out changeset 8a54c1c8d45d (bug 1419771)
Backed out changeset e32cd55b4c96 (bug 1419771)
Backed out changeset b7f342f436ef (bug 1419771)
Backed out changeset 60464b3e468f (bug 1419771)
Backed out changeset 108806f14ad8 (bug 1419771)
Backed out changeset 65998b0740f3 (bug 1419771)
Backed out changeset 0d23880842d8 (bug 1419771)
Backed out changeset 862aeaa2fefd (bug 1419771)
Backed out changeset cbc192478bf5 (bug 1419771)
Backed out changeset c58ef2a91bad (bug 1419771)
Backed out changeset 2b0a4bfd654f (bug 1419771)
Backed out changeset f182eba574f9 (bug 1419771)
Backed out changeset d9999a624097 (bug 1419771)
Backed out changeset 4050a1b8db2b (bug 1419771)
Backed out changeset a1a68e6500d9 (bug 1419771)
2017-11-30 22:35:32 +02:00
Andrea Marchesini
1a2d1761e7
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 17 - Webkit/Blink directory picker enabled, r=asuth
2017-11-30 18:16:46 +01:00
Kris Maglione
48e53b3df5
Bug 1415352: Part 1a - Pass subject principal through to ParseAttribute. r=bz
...
This is necessary in order to parse style attributes using the subject
principal of the caller, rather than defaulting to the page principal.
MozReview-Commit-ID: GIshajQ28la
2017-11-01 20:35:52 -07:00
Timothy Guan-tin Chien
f0261c6ad0
Bug 1327097 - Part III, Trap mouse/touch/pointer events in audio/video element, r=smaug
...
This patch implements HTMLMediaElement::GetEventTargetParent and set
aVisitor.mCanHandle to false to mouse/touch/pointer events, when
the media control is present. This tells the event dispatcher that
these events are supposed to be handled exclusively by the
videocontrol binding within the media element, and should not
dispatch nor consumed by the content.
MozReview-Commit-ID: BXWZX9SYsuC
2017-11-17 11:07:12 +08:00
Timothy Guan-tin Chien
1688c7fb5c
Bug 1327097, Part I, Revert bug 1338961, r=smaug
...
This reverts commit 2b7c469d42bbb4a61471207eede26a8d27f084a3.
MozReview-Commit-ID: H07u9I5w80N
2017-11-07 11:30:06 +08:00
Gurzau Raul
3fea16876e
Backed out 3 changesets (bug 1327097) for eslint failures toolkit/content/tests/widgets/test_videocontrols.html:228 r=backout on a CLOSED TREE
...
Backed out changeset 09c0a4c56c78 (bug 1327097)
Backed out changeset c0c5ee67b3ef (bug 1327097)
Backed out changeset 82a6e4dc5da7 (bug 1327097)
2017-11-16 14:23:20 +02:00
Timothy Guan-tin Chien
bdc4d0a876
Bug 1327097 - Part III, Trap mouse/touch/pointer events in audio/video element, r=smaug
...
This patch implements HTMLMediaElement::GetEventTargetParent and set
aVisitor.mCanHandle to false to mouse/touch/pointer events, when
the media control is present. This tells the event dispatcher that
these events are supposed to be handled exclusively by the
videocontrol binding within the media element, and should not
dispatch nor consumed by the content.
MozReview-Commit-ID: BXWZX9SYsuC
2017-11-16 17:06:36 +08:00
Timothy Guan-tin Chien
845b853738
Bug 1327097, Part I, Revert bug 1338961, r=smaug
...
This reverts commit 2b7c469d42bbb4a61471207eede26a8d27f084a3.
MozReview-Commit-ID: H07u9I5w80N
2017-11-07 11:30:06 +08:00
Boris Zbarsky
ffa1162f33
Bug 1415234. Annotate HTMLInputElement::Width() as MOZ_CAN_RUN_SCRIPT and plumb through the binding bits needed to make this pass static analysis. r=mystor
...
This basically marks most of the bindings bits as MOZ_CAN_RUN_SCRIPT.
MozReview-Commit-ID: HcQcYhTR9cb
2017-11-13 10:36:53 -05:00
Kris Maglione
cd1637aa78
Bug 1406278: Part 7 - Use subject principal as triggering principal in <input> "src" attribute. r=bz
...
MozReview-Commit-ID: 8DZOwqBrA2i
2017-10-05 16:19:19 -07:00
Kris Maglione
5f00cf0c65
Bug 1406278: Part 1 - Pass subject principal to SetAttribute and friends. r=bz
...
In order to tailor certain security checks to the caller that is attempting to
load a particular piece of content, we need to be able to attach an
appropriate triggering principal to the corresponding requests. Since most
HTML content is loaded based on attribute values, that means capturing the
subject principal of the caller who sets those attributes, which means making
it available to AfterSetAttr hooks.
MozReview-Commit-ID: BMDL2Uepg0X
2017-10-09 14:33:38 -07:00
Nicholas Nethercote
7dbfdaf890
Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
...
(Path is actually r=froydnj.)
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
MozReview-Commit-ID: 91U22X2NydP
2017-10-03 09:05:19 +11:00
Sebastian Hengst
8899976f2f
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: It9WfByQfV3
2017-09-23 11:38:06 +02:00
Emilio Cobos Álvarez
6390dc1e8a
Bug 1401706: Move ownership of editor anon content to nsTextControlFrame. r=Ehsan
...
MozReview-Commit-ID: 4QpbarX5dvf
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io >
2017-09-22 02:18:30 +02:00
Olli Pettay
9e1d8496e9
Bug 1397904 - nsTextControlFrame::SetValueChanged is too QI heavy, r=baku
2017-09-08 14:07:22 +01:00
Boris Zbarsky
d345bbc4bc
Bug 1386530. Fix handling of type changes that affect validity state to properly notify state changes. r=jessica
...
MozReview-Commit-ID: Khhzi1HyCpt
2017-09-22 15:47:16 -04:00
Masayuki Nakano
49283b88fb
Bug 1395146 - part1: Get rid of nsITextControlElement::IsPlainTextControl() and nsTextEditorState::IsPlainTextEditor() r=smaug
...
nsTextEditorState::GetValue() refers nsITextControlElement::IsPlainTextControl()
via nsTextEditorState::IsPlainTextEditor(). However, it always returns true and
virtual call with QI. So, we should get rid of these unnecessary methods.
MozReview-Commit-ID: 3gHdGrzlys4
2017-08-30 18:57:55 +09:00
Jessica Jong
c991e197b3
Bug 1390342 - Skip pattern matching in HasPatternMismatch() if @pattern is not set. r=ehsan
...
We use a bitfield in HTMLInputElement to cache whether the input element has the
@pattern set, and skip pattern mathching in HasPatternMismatch() if the
attribute is not set.
2017-08-17 23:57:00 -04:00
btian
3fbff1e54a
Bug 1384030 - Enable setting <input type=file>.files. r=smaug
2017-08-08 17:49:48 +08:00
Jessica Jong
f6c04bf2c6
Bug 1385478 - Part 2: Change Required/IsRequired() to look at NS_EVENT_STATE_REQUIRED instead. r=bz
...
In order to speed up Required/IsRequired(), instead of querying for the
@required attribute, we're now using the NS_EVENT_STATE_REQUIRED flag to know
whether an element's value is required.
For this to work correctly, we need to set NS_EVENT_STATE_REQUIRED earlier,
that is, in AfterSetAttr(), before any consumer of IsRequired(). We also need
to update or clear our required states when input type changes, since we may
have changed from a required input type to a non-required input type or
vice versa.
Note that NS_EVENT_STATE_REQUIRED/OPTIONAL is now part of the
EXTERNALLY_MANAGED_STATES.
MozReview-Commit-ID: Bjiby9GqJSB
2017-08-03 01:27:00 -04:00
Jessica Jong
2cc9e3beb6
Bug 1385478 - Part 1: Use IsRequired/Required() to get the current required state. r=bz
...
IsRequired() helper function returns the current 'required' state of the
element, that is, whether its required attribute is set or not. This will be
used only for input elements that @required applies.
2017-08-03 01:23:00 -04:00
Scott Wu
db91e30545
Bug 1364026 - (Part 1) Expose HTMLInputElement.getMinimum/getMaximum methods via webidl. r=smaug
...
MozReview-Commit-ID: 2eU0MX7glng
2017-07-14 14:16:36 +08:00
Jessica Jong
19243ff95e
Bug 1366361 - Part 1: .action/formAction should return the document's URL if @action/formaction is missing or empty. r=smaug
...
MozReview-Commit-ID: H4CK0SVpaCv
2017-07-17 14:17:19 +08:00
Boris Zbarsky
7883a597ca
Bug 1380415 part 2. Remove XPCOM constraint validation APIs. r=mccr8
2017-07-13 23:46:28 -04:00
Boris Zbarsky
c81a5d320c
Bug 1380415 part 1. Remove unused bits of nsIDOMHTMLInputElement. r=mccr8
2017-07-13 23:46:13 -04:00