Commit graph

113 commits

Author SHA1 Message Date
roytam1
c32aeee874 partly import changes from tenfourfox:
- update ESR base to 115; update EV roots, pins, TLDs, TZs; security pullup (55284dd80)
2023-09-01 10:07:24 +08:00
roytam1
725b27a0f5 Merge remote-tracking branch 'origin/tracking' into custom 2023-05-05 23:02:05 +08:00
Moonchild
a39fd9e75f Issue #1656 - Remove more vim control lines.
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from modules, netwerk, security, storage, testing, toolkit, and
a few scattered misc files. More to come.
2023-05-05 22:59:16 +08:00
roytam1
ba3e46b173 partly import changes from tenfourfox: #651: M1761233 M1687303 M1633019 M1797336 M1799748 M1801102 (fb91afbb4) 2023-04-24 11:39:08 +08:00
roytam1
4ef2722f89 Merge remote-tracking branch 'origin/tracking' into custom 2023-02-27 11:09:21 +08:00
FranklinDM
55100bb28e Issue #1344 - (Parser: C++) Don't reset containsHyphen value after finding one 2023-02-27 11:04:46 +08:00
FranklinDM
d9b7057ffd Issue #1344 - (Parser: Java) Don't reset containsHyphen value after finding one 2023-02-27 11:04:25 +08:00
roytam1
de51d3878e Merge remote-tracking branch 'origin/tracking' into custom 2022-09-29 15:19:08 +08:00
Moonchild
b06fd11d6f Issue #2010 - Ensure raw tagnames are safe exiting internalEntityParser
This resolves #2010
2022-09-29 15:18:46 +08:00
roytam1
968135355d Merge remote-tracking branch 'origin/tracking' into custom 2022-09-22 10:19:31 +08:00
Moonchild
95120acbb2 [DOM security] Be more explicit about CSP checks and reports. 2022-09-22 10:18:33 +08:00
roytam1
6de07653b9 Merge remote-tracking branch 'origin/tracking' into custom 2022-04-28 10:45:19 +08:00
Moonchild
eaf9e756a0 Issue #21 - Remove remaining telemetry structs, callers and flags. 2022-04-28 10:33:44 +08:00
roytam1
c277d761f3 Merge remote-tracking branch 'origin/tracking' into custom 2022-03-22 23:32:48 +08:00
Moonchild
b74a23aee3 [htmlfive] Improve parser sanity checks. 2022-03-22 23:17:35 +08:00
roytam1
eef4fb0146 imported changes from mozilla:
- Bug 1754724 - Clear up some computations in expat code. r=farre, a=tritter (c084e1e9)
- Bug 1754724 - Clear up some more computations in expat code. r=farre, a=tritter (1ff49f5a)
- Bug 1754724 - Clear up even more computations in expat code. r=farre, a=tritter (4a180bbf)
- Bug 1758062 - Convert parameters upfront. r=smaug, a=tritter (153b3922)
2022-03-08 09:42:57 +08:00
Moonchild
9031ee4017 [parser] run java translation. 2021-03-04 09:21:34 +08:00
Moonchild
5934c74a3f [html parser] Check for integer overflow when computing new buffer sizes. 2021-02-25 09:26:39 +08:00
Henri Sivonen
98deeb1203 [parser] Make the refcount of nsHtml5OwningUTF16Buffer atomic. 2020-11-19 21:11:59 +08:00
athenian200
7373069560 Issue #1673 - Part 4: Unprefix -moz-tab-size.
While we do fail a couple of tests, the other mainstream browsers also fail them and I think our implementation of tab-size is good enough to be unprefixed at this point. Having this patch also makes testing easier.
2020-11-06 09:42:27 +08:00
Moonchild
0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
Moonchild
30df895eb2 Issue #1656 - Part 3: Nuke more vim config lines in the tree.
Another S&R run with some smarter matching.
2020-09-25 22:04:17 +08:00
Moonchild
8c395520d9 Issue #1656 - Part 1: Nuke most vim config lines in the tree.
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00
Moonchild
ba9802a724 [SVG] Only fire the SVG onload when scripting is enabled and allowed 2020-09-25 22:04:03 +08:00
Moonchild
57c79f8295 [no issue] Fix whitespace (no code change) 2020-09-25 22:04:02 +08:00
Gaming4JC
527d5c6252 Issue #618 - Regenerate the HTML Parser code for nomodule changes
Ref: BZ 1446082
2020-08-29 08:10:47 +08:00
Gaming4JC
6c8f24a735 Issue #618 - Don't preload nomodule scripts when modules are enabled
Ref: BZ 1382020
2020-08-29 08:10:45 +08:00
Moonchild
3781c4a6dd Issue #618 - (async) Implement async attribute for inline module scripts.
This commit does several things:
- Moves the pref check from ScriptLoader to ns[I]Document so it can be called on
the document.
- Changes the atrribute freezing function to a better name that takes the
document as a parameter.
- Sets the proper async/defer attributes on HTML script elements based on
keywords and whether they are module scripts or not.
2020-08-29 08:10:42 +08:00
Moonchild
3fa4aabfad Issue #618 - (async, preload) Correctly pass info about async/defer to parser.
This makes sure we don't block body-referred sub-resources by head-referenced
defer and async scripts. This is important for all script loads, not just
modules, but is added here because it was run into while implementing modules.
2020-08-29 08:10:37 +08:00
Moonchild
f85b274e94 Issue #1603 - Part 1: Reorganize ScriptLoader/ScriptElement
- Moves scripting parts of DOM into 'dom/script'
- Renames nsScript{Loader/Element} to Script{Loader/Element}
- Adjusts all callers
2020-07-04 07:01:00 +08:00
Matt A. Tobin
a7ba34c672 Bug 1418002 - Remove HTMLContentElement
Tag #1375
2020-04-18 07:05:35 +08:00
Matt A. Tobin
592c34bc79 Bug 1402941 - Add HTMLSlotElement
Tag #1375
2020-04-18 07:05:10 +08:00
Matt A. Tobin
2a185b517b Bug 1401097 - Simplify gHTMLElements and remove redundant conditions in nsXHTMLContentSerializer::LineBreakAfterClose()
Tag #1375
2020-04-18 07:05:06 +08:00
Matt A. Tobin
5917636e83 Bug 1396584 - Remove support for multiple ShadowRoots
Tag #1375
2020-04-18 07:05:03 +08:00
Matt A. Tobin
a665a8796a Bug 1400777 - Slim down nsElementTable.h
* Remove eHTMLTags
* De-expose HTML group constants[]
* De-expose gHTMLElements[]
* Split nsHTMLElement
* Clean up nsElementTable.{cpp,h}
* Fixup for eHTMLTag removal in Parser

Tag #1375
2020-04-18 07:05:00 +08:00
Matt A. Tobin
9928baf912 Issue #1375 - Stop largely using the parser service
This is based on Bug 1395828

* Add nsHTMLElement::IsBlock()
* Rename nsHTMLTags methods
* Remove AssertParserServiceIsCorrect()
* Remove most uses of nsIParserService/nsParserService
2020-04-18 07:04:57 +08:00
Matt A. Tobin
390ef42e80 Bug 1394300 - Streamline nsElementTable.cpp
Tag #1375
2020-04-18 07:04:50 +08:00
Matt A. Tobin
fe13c5bffc Bug 1375701 - Atomize class attribute value in the parser in the innerHTML case
Tag #1375
2020-04-18 07:04:45 +08:00
Henri Sivonen
140bd4d265 [Parser] Move setting context to null to the correct location. 2020-02-14 22:46:09 +08:00
Gaming4JC
57da7a1935 Bug 1430951 - Avoid element name atomizing to improve performance of LookupCustomElementDefinition
Since we are dealing with the element (nodeInfo->LocalName() and NameAtom() are the same value), we could use nodeInfo->NameAtom() instead.

Tag UXP Issue #1344
2020-01-31 07:40:59 +08:00
Gaming4JC
5db13d0f4b Bug 1415761 - Catch the exception and rethrow it after invoking custom elements reactions;
The spec was unclear on how CEReactions interact with thrown exceptions; see https://github.com/whatwg/html/issues/3217. The spec is now being clarified in https://github.com/whatwg/html/pull/3235.

Tag UXP Issue #1344
2020-01-31 07:40:30 +08:00
Gaming4JC
db3b6b5884 Bug 1406325 - Part 4: Use mType for LookupCustomElementDefinition and also removing parts of v0.
Tag UXP Issue #1344
2020-01-31 07:39:47 +08:00
Gaming4JC
5d26d32825 Bug 1378079 - Part 3: Complete the steps related to custom elements in "create an element for a token".
With fixup for missing header due to unified builds.

Tag UXP Issue #1344
2020-01-31 07:39:34 +08:00
Gaming4JC
ed18cbb741 Regenerate Parser for 483155
Tag UXP Issue #1344
2020-01-31 07:39:31 +08:00
Gaming4JC
9c58ef5e8b Fix Build: We don't have SVG or MathML prefs yet
See Bug 1173199 / 1216893

Tag UXP Issue #1344
2020-01-31 07:39:29 +08:00
Gaming4JC
ec87fc7a9e Fix aAttributes
Fallout from 483155

Tag UXP Issue #1344
2020-01-31 07:39:26 +08:00
Gaming4JC
131dc362f8 Fix ISINDEX
Since we want to keep this element, it has to be adapted to the parser changes in 483155

Tag UXP Issue #1344
2020-01-31 07:39:23 +08:00
Gaming4JC
a252378855 Add missing space to ElementName.java self-regeneration code.
Tag UXP Issue #1344
2020-01-31 07:39:20 +08:00
Gaming4JC
5938eaff0a Add missing elements from Bug 483155
Tag UXP Issue #1344
2020-01-31 07:39:17 +08:00
Gaming4JC
48844fe691 Bug 483155 - Put content creator function pointers onto nsHtml5ElementName.
This is all the manual work for Bug 483155, minus the added functionality to disable SVG and MathML which can be done at any time and are out of scope.

Tag UXP Issue #1344
2020-01-31 07:39:14 +08:00