Jeff Gilbert
70a22b2878
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Emilio Cobos Álvarez
d16c4825a1
Bug 1459844: Share more code and fix some inconsistencies between html / svg style elements. r=heycam
...
MozReview-Commit-ID: IkTrIfJI1iK
2018-05-10 00:21:27 +02:00
Emilio Cobos Álvarez
40e2e5554f
Bug 1459498: Rename nsIStyleSheetLinkingElement::StyleSheetInfo to SheetInfo. r=heycam
...
MozReview-Commit-ID: FeOmISAxWBk
2018-05-08 10:07:46 +02:00
Emilio Cobos Álvarez
c6fb2755a5
Bug 1459498: Use a different enum to differentiate IsAlternate from HasAlternateRel. r=heycam
...
MozReview-Commit-ID: 6pwR8t6fzSD
2018-05-08 10:07:42 +02:00
Emilio Cobos Álvarez
e7b8d2db8c
Bug 1459498: Refactor nsStyleLinkElement so that all the stylesheet information comes from one place. r=heycam
...
I've kept the nsAutoStrings in the StyleSheetInfo class on the hopes that the
compiler does RVO, but if it doesn't I can remove I guess.
MozReview-Commit-ID: 2vN6BSEhYcw
2018-05-08 10:07:41 +02:00
Emilio Cobos Álvarez
78f32b94e5
Bug 1456435: Make UpdateStyleSheet less bool-happy. r=heycam
...
MozReview-Commit-ID: FlTD390lMhg
2018-04-26 16:43:52 +02:00
Kris Maglione
9d59747c13
Bug 1451940: Don't reparse stylesheets when assigning empty string to empty element. r=bz
...
Per spec, assinging an empty string to textContent or innerHTML should not
trigger any mutation observers, and therefore should not trigger a stylesheet
reparse, when the element is already empty.
Since we need to apply some special handling to innerHTML and textContent
assignments to <style> nodes, and therefore re-parse directly in the setter
rather than in response to mutation observers, we need to special-case this
scenario.
MozReview-Commit-ID: KdOYFs8ayT7
2018-04-10 11:06:26 -07:00
Boris Zbarsky
868eaca19e
Bug 1449019. Actually propagate out exceptions from the innerHTML getter. r=smaug
...
I moved the IgnoreErrors decl so it would come after the OOMReporter decl and I
could add the new conversion operator.
MozReview-Commit-ID: B1S6DXmZfvE
2018-03-26 16:41:43 -04:00
Boris Zbarsky
df75c1fa27
Backed out changeset 1023e033bfa6 (bug 1132934) because it hasn't been reviewed yet.
...
MozReview-Commit-ID: LXefIp2OG6Q
2018-03-26 16:47:31 -04:00
Boris Zbarsky
29302e62f2
Bug 1132934 part 1. Actually propagate out exceptions from the innerHTML getter. r=smaug
...
MozReview-Commit-ID: KEqsx836qQn
2018-03-26 16:41:43 -04:00
Emilio Cobos Álvarez
923d990216
Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug
...
Summary: It uses two node bits that can be better suited for something else.
Reviewers: xidorn, smaug
Bug #: 1444905
Differential Revision: https://phabricator.services.mozilla.com/D709
MozReview-Commit-ID: HIPDtHm6xpM
2018-03-13 10:26:13 +01:00
Emilio Cobos Álvarez
0ff849122a
Bug 1442207: Remove unneeded arguments to nsIMutationObserver. r=smaug
...
aDocument is always content->OwnerDoc().
aContainer is always content->GetParent().
Differential Revision: https://phabricator.services.mozilla.com/D664
MozReview-Commit-ID: 4xwPCOnhyIL
2018-03-01 22:45:17 +01:00
Emilio Cobos Álvarez
7a79ccba52
Bug 1441547: Make character data change notifications use a const reference for the info parameter. r=smaug
...
It's not intended to be mutated.
MozReview-Commit-ID: 5nkD1YkidlV
2018-02-27 15:30:27 +01:00
Cameron McCormack
18480c6598
Bug 1427512 - Part 22: Remove nsIDOMStyleSheet. r=xidorn,bz
...
MozReview-Commit-ID: KO2mWX4P8lI
2018-01-11 16:17:57 +08: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
Kris Maglione
a78047fcc6
Bug 1415352: Part 4c - Use subject principal as the triggering principal for inline <style> nodes. r=bz
...
This change captures the subject principal when a scripted caller sets the
textContent or innerHTML property of a <style> node, and uses it as the
triggering principal for the resulting stylesheet.
If the node contents are modified in any way other than through textContent or
innerHTML, the triggering principal is forgotten (which is an intentional
design feature).
MozReview-Commit-ID: GacZFIB5BzS
2017-11-07 14:25:45 -08:00
Kris Maglione
4be3ae647c
Bug 1415352: Part 4a - Capture subject principal in innerHTML setters. r=bz
...
This is necessary in order to capture the correct triggering principal for
inline <style> nodes.
MozReview-Commit-ID: 9EaD40vRNkH
2017-11-07 13:48:58 -08:00
Kris Maglione
84cb9d4cfe
Bug 1406278: Part 8b - Use subject principal as triggering principal in style <link> "href" attribute. r=bz
...
MozReview-Commit-ID: LWMkBcB4WIg
2017-10-05 19:40:48 -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
Catalin Badea
fc6ab5f0ea
Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv
2017-10-03 11:09:08 +01:00
Andrew McCreight
4805814a1a
Bug 1395636 - Convert code to use NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED. r=peterv
...
MozReview-Commit-ID: DivJPerL5SF
2017-08-31 16:29:22 -07:00
Sebastian Hengst
623e977a9e
Backed out changeset 9306866e8df0 (bug 1395636) for build bustage. r=backout on a CLOSED TREE
2017-09-06 19:18:06 +02:00
Andrew McCreight
b8a46fdbcd
Bug 1395636 - Convert code to use NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED. r=peterv
...
MozReview-Commit-ID: DivJPerL5SF
2017-08-31 16:29:22 -07:00
Masatoshi Kimura
b87d3e615b
Bug 1390209 - Remove unused nsIDOMHTML*Element interfaces. r=qdot
...
MozReview-Commit-ID: DagD3IHhRZy
2017-08-15 01:31:47 +09:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Bill McCloskey
ce42826bdf
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Cameron McCormack
542bcca28c
Bug 1291515 - Part 1: Introduce a pref for <style scoped>. r=bholley,dbaron
...
MozReview-Commit-ID: 1J9IvPrC0xh
2017-06-21 09:25:43 +08:00
Wes Kocher
8ddaccacfb
Backed out 2 changesets (bug 1291515) for reftest assertions in textarea-fieldset-legend-ref-2.html a=backout CLOSED TREE
...
Backed out changeset 4fac24cc0437 (bug 1291515)
Backed out changeset 4e8b918dc410 (bug 1291515)
MozReview-Commit-ID: F4yQK5ujqLP
2017-06-25 05:18:22 -07:00
Cameron McCormack
b16d764b3a
Bug 1291515 - Part 1: Introduce a pref for <style scoped>. r=bholley,dbaron
...
MozReview-Commit-ID: 1J9IvPrC0xh
2017-06-21 09:25:43 +08:00
Kirk Steuber
e2ea33731f
Bug 1363481 - Add the old attribute value as a parameter to Element::AfterSetAttr r=bz
...
In order to facilitate the movement of code with side-effects called by Element::SetAttr to Element::BeforeSetAttr and Element::AfterSetAttr, Element::AfterSetAttr should have access to the old value of the attribute. This includes information about whether there was previously a value set or not.
Accomplishing this involved passing an additional argument through functions that find and change the old attribute value in order to ensure that we can differentiate between an empty old value and an absent old value (attribute was not set).
Note that while I tried to ensure that accurate values (and their absence) are reported to Element::AfterSetAttr, I largely ignored SVG. While the old value reported for SVG values should be however accurate the value already being reported to SetAttrAndNotify was, SVG elements do not currently report unset values properly because they will never pass a null pointer to SetAttrAndNotify.
MozReview-Commit-ID: K1mha8CNFZP
2017-05-18 14:09:01 -07:00
Xidorn Quan
0ec6cd8f38
Bug 1292432 part 10 - Make style/link elements return StyleSheet. r=heycam
...
MozReview-Commit-ID: EIcfdYGZ8UH
2016-10-14 22:25:38 +11:00
Kyle Huey
b972c94d0f
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book
aadd508ffe
Backed out changeset 85ce8cb0639a (bug 1268313)
2016-04-29 14:21:16 +02:00
Kyle Huey
e62a0823c9
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Cameron McCormack
654179bc68
Bug 990250 - Fold nsIStyleSheet into CSSStyleSheet. r=dbaron
2015-11-17 17:04:09 +11:00
Boris Zbarsky
27c98bc9a3
Bug 1203973 - Move <style> and <link> attribute change handling to AfterSetAttr so that it doesn't trigger for no-op attribute changes. r=smaug
2015-09-22 21:19:49 -04:00
Dragana Damjanovic
f5e3e71a6d
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
David Major
c96edf50f2
Bug 1167189: Add an infallible version of nsContentUtils::GetNodeTextContent. r=jst
2015-05-22 14:16:20 -04:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -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
William Chen
7a73140dbd
Bug 1087460 - Part 1: Make GetComposedDoc() work in UnbindFromTree. r=smaug
2015-02-09 10:01:23 -08: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