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
feb1c728d8
Bug 1429903 part 3. Remove C++ uses of nsIDOMEventTarget. r=mccr8
...
MozReview-Commit-ID: 4NdssvnWn0H
2018-04-20 00:49:30 -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
Emilio Cobos Álvarez
3d1dcd443d
Bug 1405087: Make nsGenericHTMLElement::IsDisabled not virtual. r=bz
...
The state bit is never added to object / output anyway (see the CanBeDisabled
check).
MozReview-Commit-ID: DBPpaHA2tME
2018-02-15 21:49:00 +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
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
Kyle Machulis
78714e9e97
Bug 1402102 - Remove nsIDOMHTMLObjectElement; r=bz
...
Removes the nsIDOMHTMLObjectElement XPCOM interface, replacing it with
HTMLObjectElement and FromContent conversion usage.
MozReview-Commit-ID: dmsjSO97uh
2017-09-22 17:05:12 -07:00
Boris Zbarsky
7883a597ca
Bug 1380415 part 2. Remove XPCOM constraint validation APIs. r=mccr8
2017-07-13 23:46:28 -04:00
Kirk Steuber
6684b17554
Bug 1365092 - Move side effects of SetAttr, UnsetAttr, and ParseAttribute functions to BeforeSetAttr and AfterSetAttr r=bz
...
This is necessary to facilitate the transition to cloning attributes instead of reparsing them.
MozReview-Commit-ID: Gyd1tD6ldly
2017-06-07 10:28:20 -07:00
Kirk Steuber
9386a2f3e1
Bug 1359556 - Optimize cloneNode by preinitializing attribute and child arrays r=bz
...
Currently, attribute and child arrays (implemented in dom/base/nsAttrAndChildArray.h) start out empty. When cloning, the array ends up being resized multiple times in order to add the attributes and children that are being cloned from the original node. This would be quicker if the array was initialized to the correct size in the first place so that resizes are not necessary.
However, preallocating space for children is only necessary when performing a deep clone. Therefore, an additional parameter is being added to the Clone, CopyInnerTo, and CloneDocHelper methods to indicate whether preallocation of children should happen. Attributes are copied either way, so that part of the array is preallocated in both cases.
MozReview-Commit-ID: 3iVezeAKXnI
2017-04-20 12:57:48 -07:00
Olli Pettay
45822311b7
Bug 1351860 - Move mType from HTMLInputElement to nsIFormControl and make GetType non-virtual inlined, r=jessica
2017-03-31 22:49:00 -04:00
Olli Pettay
694b05ce02
Backout Bug 1351860, r=backout
2017-03-31 16:55:32 -04:00
Olli Pettay
fa83f6684e
Bug 1351860 - Move mType from HTMLInputElement to nsIFormControl and make GetType non-virtual inlined, r=jessica
2017-03-31 13:13:36 -04:00
Boris Zbarsky
26af9e4884
Bug 1347639. Add nsImageLoadingContent::AsContent to make getting the relevant nsIContent* faster. r=qdot
...
MozReview-Commit-ID: 9sE3pbHwYbV
2017-03-16 17:43:34 -04:00
Boris Zbarsky
e5460d8ba1
Bug 1332956 part 3. Implement the same behavior for <object>-inside-<object> and <object>-inside-mediaelement as we do for <embed> already. r=qdot
2017-02-08 18:19:01 -05:00
Manish Goregaokar
7e8e84c24b
Bug 1334330 - Part 1: stylo: Abstractify nsMappedAttributes to work on arbitrary containers of specified value data; r=bz,emilio
...
MozReview-Commit-ID: BSM4TC9RKot
2017-01-26 13:39:13 -08: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
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
Andrea Marchesini
47cb021e43
Bug 1306241 - Use NeedsSubjectPrincipal in dom/html/* - part 2, r=ehsan
2016-10-03 10:34:29 +02:00
Andrea Marchesini
790712f749
Bug 1279860 - part 1 - Renaming nsFormSubmission to mozilla::dom::HTMLFormSubmission, r=smaug
2016-06-16 08:24:16 +01:00
Boris Zbarsky
da1b7b9d44
Bug 909633. Remove the HTML Microdata API, since no one else ended up implementing it and now it's been removed from the spec. r=bkelly,jgraham
2016-05-20 23:13:17 -04:00
John Dai
f27c6c5b07
Bug 1088761 - Support reportValidity() for form controls. r=smaug
...
From 2c2f7223e9d88f431f3e3fee7384dffbca07d8a9 Mon Sep 17 00:00:00 2001
2016-04-15 16:13:00 +08:00
Sebastian Hengst
5f84204d8d
Backed out changeset 403d9c085544 (bug 1088761)
2016-05-12 13:19:15 +02:00
John Dai
b8222b62fb
Bug 1088761 - Support reportValidity() for form controls. r=smaug
2016-05-11 04:24:00 +02:00
Aryeh Gregor
46067b8a0c
Bug 1270499 - Setting reflected unsigned long to out-of-range value should set to default; r=bz
...
This changes to match the spec, which also aligns the behavior of get
and set (get already maps out-of-range values to the default value).
There is currently no interoperable behavior here, but this aligns us
with IE -- tested in 11, hopefully true for Edge too.
On the way, I also fixed the fact that video's height and width were
being treated as signed.
2016-05-05 21:29:54 +03:00
Aryeh Gregor
5874ef6ef3
Bug 1270518 - Make object.code reflect as string, not URL; r=bz
2016-05-05 21:29:54 +03:00
Kyle Machulis
4158e8cce4
Bug 1262184 - Block embed content loading when child of media element; r=bz
2016-04-13 15:27:20 -07:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Ehsan Akhgari
f47f3f6938
Bug 1148030 - Correctly reflect object and embed RequestContext values; r=smaug
...
Note that these elements cannot be intercepted for now. See bug
1168676 for the background.
2015-07-18 16:44:28 -04:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Andrea Marchesini
ad97ae68b8
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Steven Michaud
9d285b2863
Bug 1147521 - Cannot type into comment area of plugin crash UI. r=smaug
2015-03-26 19:38:13 -05:00
Steven Michaud
44220ce027
Bug 1137229 - Keyboard input can stop working in a window. r=smaug
2015-03-24 17:02:52 -05:00
Ryan VanderMeulen
be74dd7ef8
Backed out changeset cb2fce9d19c7 (bug 1137229) for OSX Werror bustage.
...
CLOSED TREE
2015-03-24 13:07:26 -04:00
Steven Michaud
b6c334d428
Bug 1137229 - Keyboard input can stop working in a window. r=smaug
2015-03-24 11:41:32 -05:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
3a822d99b4
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Tooru Fujisawa
1df47134f9
Bug 1141455 - Do not treat an element with tabindex as an interactive content in label. r=smaug
2015-03-18 05:42:14 +09:00
Steven Michaud
39604719c4
Bug 1110888 - Always do plugin IME in main process, even with e10s. r=masayuki,smaug
2015-02-20 10:37:02 -06:00
Dhi Aurrahman
4eea7d7fd0
Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky
2015-02-13 08:27:39 +07:00
Tooru Fujisawa
b10a0c8ee5
Bug 229925 - Do not dispatch event to label target if interactive content is found between the event target and the label. r=smaug
2015-01-21 05:39:28 +09:00
Birunthan Mohanathas
86c0c5b215
Bug 946065 - Part 11: Move content/html/ to dom/ and flatten subdirectories. r=peterv
2014-10-25 20:24:55 +03:00