Henri Sivonen
0124daca51
Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D302278
2026-06-02 09:12:41 +00:00
Henri Sivonen
d13776d321
Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D302276
2026-06-02 09:12:39 +00:00
Henri Sivonen
ea04eba8aa
Bug 2041856. r=smaug,edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D303280
2026-06-02 08:51:28 +00:00
Alexandru Marc
16e384440d
Revert "Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug" for causing build bustages @ Element.cpp
...
This reverts commit 82b2e13b45 .
Revert "Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug"
This reverts commit 2d1ee1cd69 .
2026-06-02 07:41:40 +00:00
Henri Sivonen
82b2e13b45
Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D302278
2026-06-02 07:07:28 +00:00
Henri Sivonen
2d1ee1cd69
Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D302276
2026-06-02 07:07:26 +00:00
Atila Butkovits
d68e85e91d
Revert "Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug" for causing bustages at Element.cpp.
...
This reverts commit 9dd3f6b595 .
Revert "Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug"
This reverts commit b1774ce65e .
2026-06-01 21:47:14 +00:00
Henri Sivonen
9dd3f6b595
Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D302278
2026-06-01 20:50:19 +00:00
Henri Sivonen
b1774ce65e
Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D302276
2026-06-01 20:50:16 +00:00
Henri Sivonen
9ec57df41d
Bug 2038800 - Check that the parser does not insert a node into its own descendant. r=dom-core,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D302716
2026-05-27 15:42:59 +00:00
Daniel Holbert
10725540f6
Bug 2037754: Use 'MakeAndAddRef' instead of 'new' when allocating runnable for nsContentUtils::AddScriptRunner. r=dom-core,smaug
...
MakeAndAddRef ensures that the freshly-allocated object immediately gets a
refcount of 1 (before it's even passed to AddScriptRunner). This avoids
several potential footguns that otherwise exist with a zero-refcount
freshly-allocated object.
It also makes the ownership-transfer semantics more clear
(via the already_AddRefed type that it produces) - AddScriptRunner is taking
ownership of the object, rather than using it temporarily while the caller
maintains ownership.
Differential Revision: https://phabricator.services.mozilla.com/D299039
2026-05-07 06:35:57 +00:00
Keith Cirkel
edf2167941
Bug 2023824 - Implement shadowrootslotassignment r=webidl,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D288343
2026-04-11 09:14:11 +00:00
Edgar Chen
e896afd4b8
Bug 2029071 - Handle foster parenting properly; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D293070
2026-04-10 17:47:13 +00:00
Henri Sivonen
5e2f9d0c14
Bug 2028289. r=avandolder
...
Differential Revision: https://phabricator.services.mozilla.com/D291479
2026-04-08 02:33:56 +00:00
Emilio Cobos Álvarez
5016086e1a
Bug 2025089 - Remove some includes from nsINode.h and Element.h. r=dom-core,dom-storage-reviewers,firefox-svg-reviewers,janv,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D289049
2026-03-22 23:45:55 +00:00
Sylvestre Ledru
49209e1b2f
Bug 2023419 - Remove Emacs/Vim modelines from parser/ r=emilio
...
replaced by .editorconfig
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D287864
2026-03-18 14:35:02 +00:00
Alexandru Marc
a0233d91a7
Revert "Bug 2023419 - Remove Emacs/Vim modelines from python/ r=emilio" for causing py failures @ test_configure
...
This reverts commit 4d755fe4de .
Revert "Bug 2023419 - Remove Emacs/Vim modelines from parser/ r=emilio"
This reverts commit e2035c4a10 .
Revert "Bug 2023419 - Remove Emacs/Vim modelines from other-licenses/ r=emilio"
This reverts commit 1f7da58772 .
2026-03-17 12:43:27 +00:00
Sylvestre Ledru
e2035c4a10
Bug 2023419 - Remove Emacs/Vim modelines from parser/ r=emilio
...
replaced by .editorconfig
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D287864
2026-03-17 12:08:44 +00:00
Keith Cirkel
32f444692e
Bug 2018902 - Part 1: Add shadowrootcustomelementregistry in HTML parser r=hsivonen,dom-core
...
Differential Revision: https://phabricator.services.mozilla.com/D286874
2026-03-16 15:30:33 +00:00
Emilio Cobos Álvarez
11fe7131f6
Bug 2017011 - Less pointer chasing to get to a NodeInfoManager. r=dom-core,smaug
...
Noticed from the previous patch.
Differential Revision: https://phabricator.services.mozilla.com/D283481
2026-02-16 11:05:58 +00:00
Henri Sivonen
96e2a418f5
Bug 2015199. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D282575
2026-02-11 11:30:35 +00:00
Henri Sivonen
8cfad39176
Bug 2002189 - Remove nsIDTD. r=dom-core,edgar,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D273975
2025-11-25 15:49:23 +00:00
Denis Palmeiro
430017d12e
Bug 1995614: Atomize ATTR_TYPE strings and any single digit strings during tokenization. r=hsivonen
...
Add static atoms for "2" -> "9", and do a fast path check for any single digit strings during tokenization and return the static atom directly. Also atomize type attributes during tokenization. This patch also cleans up some code in Element::SetAttr and nsHtml5TreeOperation so that it's easier to pass through an atom.
Differential Revision: https://phabricator.services.mozilla.com/D269859
2025-11-13 04:18:49 +00:00
Alexandru Marc
7d6cfb3a6f
Revert "Bug 1995614: Atomize ATTR_TYPE strings and any single digit strings during tokenization. r=hsivonen" for causing Bug 1997489 This reverts commit eee6488f78.
2025-10-31 15:12:30 +00:00
Denis Palmeiro
eee6488f78
Bug 1995614: Atomize ATTR_TYPE strings and any single digit strings during tokenization. r=hsivonen
...
Add static atoms for "2" -> "9", and do a fast path check for any single digit strings during tokenization and return the static atom directly. Also atomize type attributes during tokenization. This patch also cleans up some code in Element::SetAttr and nsHtml5TreeOperation so that it's easier to pass through an atom.
Differential Revision: https://phabricator.services.mozilla.com/D269859
2025-10-30 13:55:46 +00:00
Henri Sivonen
cc9bf90bb2
Bug 1987341 - static_assert on tree op size to avoid accidentally making all of them larger. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D264034
2025-09-09 10:07:00 +00:00
Alice Boxhall
e5cf85c1e4
Bug 1981341 - Add referenceTarget and shadowRootReferenceTarget attributes. r=webidl,emilio,hsivonen
...
Allows setting referenceTarget when creating shadow roots declaratively or programatically, and also getting the referenceTarget value for a shadow root.
Differential Revision: https://phabricator.services.mozilla.com/D260140
2025-09-08 13:39:34 +00:00
Frédéric Wang
1f81a41d25
Bug 1928932 - Part 3 - Transmit proper MutationEffectOnScript to mutation observers. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D253633
2025-09-02 20:04:43 +00:00
Edgar Chen
d9023d2f74
Bug 1973704 - Run microtask checkpoint before prepare-the-script-element steps in parser; r=smaug,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D259225
2025-08-14 04:43:16 +00:00
Frédéric Wang
4cca1cbaa3
Bug 1928932 - Part 1 - Add an mIsTrusted flag on script elements. r=smaug,credential-management-reviewers,dimi
...
This flag can be modified when notifying for character data change,
content appending, content insertion and content removal by specifying
a MutationEffectOnScript flag. By default callers other than the HTML5
parsers always specify "drop trustworthiness" but mIsTrusted flag is not
used anyway, so there is no behavior change.
Spec: https://w3c.github.io/trusted-types/dist/spec/#enforcement-in-scripts
PR: https://github.com/w3c/trusted-types/pull/579/
Differential Revision: https://phabricator.services.mozilla.com/D252020
2025-06-27 15:23:24 +00:00
Cosmin Sabou
a15f457eb6
Revert "Bug 1928932 - Part 1 - Add an mIsTrusted flag on script elements. r=smaug,credential-management-reviewers,dimi" for causing macOS build bustages on nsMenuGroupOwnerX.mm
...
This reverts commit ce2493cdd4 .
2025-06-27 12:30:03 +00:00
Frédéric Wang
ce2493cdd4
Bug 1928932 - Part 1 - Add an mIsTrusted flag on script elements. r=smaug,credential-management-reviewers,dimi
...
This flag can be modified when notifying for character data change,
content appending, content insertion and content removal by specifying
a MutationEffectOnScript flag. By default callers other than the HTML5
parsers always specify "drop trustworthiness" but mIsTrusted flag is not
used anyway, so there is no behavior change.
Spec: https://w3c.github.io/trusted-types/dist/spec/#enforcement-in-scripts
PR: https://github.com/w3c/trusted-types/pull/579/
Differential Revision: https://phabricator.services.mozilla.com/D252020
2025-06-27 11:18:48 +00:00
Sylvestre Ledru
8ae54ea4f9
Bug 1519636 - Reformat recent changes to the Google coding style r=geckoview-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,nalexander,gstoll,tcampbell,janv,julienw
...
Updated with clang-format version 19.1.7 (taskcluster-DYvBxDZJRVqTi8E7pTSJAQ)
Differential Revision: https://phabricator.services.mozilla.com/D249880
2025-05-17 19:11:13 +00:00
Emilio Cobos Álvarez
caec20377f
Bug 1926824 - Generate one block per line in the view source highlighter. r=hsivonen
...
This makes viewing source of the HTML spec usable.
Differential Revision: https://phabricator.services.mozilla.com/D226794
2024-10-25 09:27:20 +00:00
Vincent Hilla
9e51ae885b
Bug 1837769 - Associate element with form only if intended parent in same tree. r=dom-core,avandolder
...
nsHTML5TreeOperation::SetFormElement should only associate an element
with the form, if "the intended parent is in the same tree as the
element pointed to by the form element pointer".
See https://html.spec.whatwg.org/#creating-and-inserting-nodes:parser-inserted-flag
Differential Revision: https://phabricator.services.mozilla.com/D216052
2024-07-23 13:27:05 +00:00
Masayuki Nakano
9dfe52606b
Bug 1906015 - part 2: Make the most do_QueryInterface users for nsIFormControl use new getter methods r=smaug,credential-management-reviewers,sessionstore-reviewers,sclements
...
Unfortunately, the following QIs are still required.
https://searchfox.org/mozilla-central/rev/cbdfa503a87597b20719aae5f6a1efccd6cb3b7b/dom/html/nsIConstraintValidation.cpp#101,121
Depends on D215576
Differential Revision: https://phabricator.services.mozilla.com/D215577
2024-07-10 00:46:59 +00:00
Adam Vandolder
a47cef74ff
Bug 1890428 - Add serialization support for Declarative Shadow DOM. r=webidl,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D206955
2024-05-15 16:40:21 +00:00
Tamas Szentpeteri
2b8d8ca135
Backed out 2 changesets (bug 1890428) for causing wpt failures on idlharness.https.html. CLOSED TREE
...
Backed out changeset 1954ce9669b8 (bug 1890428)
Backed out changeset 3e45e3d15eed (bug 1890428)
2024-05-15 11:19:46 +03:00
Adam Vandolder
a54c0a7578
Bug 1890428 - Add serialization support for Declarative Shadow DOM. r=webidl,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D206955
2024-05-15 03:01:19 +00:00
Cristian Tuns
badab1c1b7
Backed out 2 changesets (bug 1890428) for causing failures in idlharness.window.html?exclude=Node CLOSED TREE
...
Backed out changeset f9cf0740eef2 (bug 1890428)
Backed out changeset 37e2a10a9022 (bug 1890428)
2024-05-14 19:42:37 -04:00
Adam Vandolder
35af9c2203
Bug 1890428 - Add serialization support for Declarative Shadow DOM. r=webidl,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D206955
2024-05-14 16:43:28 +00:00
Olli Pettay
47a7be66d9
Bug 1883138 - Ensure HasParserNotified returns true only when parser has actually notified, r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D203324
2024-03-07 12:52:30 +00:00
Adam Vandolder
f6565c9ebc
Bug 1880188 - Add shadowrootclonable attribute support. r=webidl,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D202357
2024-02-28 19:00:34 +00:00
Tom Schuster
d2df85c5b4
Bug 1871112 - Specialize AddAttributes for <html>/<body>. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D201562
2024-02-14 12:55:42 +00:00
Tom Schuster
940baabb7a
Bug 1397308 - Implement CSP 'Is element nonceable?' check. r=emilio,hsivonen,freddyb
...
Differential Revision: https://phabricator.services.mozilla.com/D198150
2024-01-26 14:56:32 +00:00
Adam Vandolder
1cb08ad07f
Bug 1870055 - Log error in attaching declarative shadow DOM to console. r=dom-core,jjaschke
...
Differential Revision: https://phabricator.services.mozilla.com/D198598
2024-01-23 23:21:10 +00:00
Adam Vandolder
b9bbd3c2cc
Bug 1712140 - Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193675
2023-12-07 21:27:10 +00:00
Iulian Moraru
8d186a8450
Backed out 6 changesets (bug 1712140) for causing sanitizer failures on nsHtml5TreeBuilder.cpp. CLOSED TREE
...
Backed out changeset b374469160e9 (bug 1712140)
Backed out changeset dfc44cccff32 (bug 1712140)
Backed out changeset 3a35e1401130 (bug 1712140)
Backed out changeset a93481858c38 (bug 1712140)
Backed out changeset a861fd445f56 (bug 1712140)
Backed out changeset dc1dc389f2dc (bug 1712140)
2023-12-07 08:16:23 +02:00
Adam Vandolder
0956658e5f
Bug 1712140 - Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193675
2023-12-06 22:50:49 +00:00
Stanca Serban
34d35a19ee
Backed out 6 changesets (bug 1712140) for causing Linux related wpt failures in nsHtml5TreeBuilder.cpp. CLOSED TREE
...
Backed out changeset 3d799b386f3e (bug 1712140)
Backed out changeset 2ed53d545d6d (bug 1712140)
Backed out changeset 6f50077df42a (bug 1712140)
Backed out changeset e7c5449482f9 (bug 1712140)
Backed out changeset 5490dad148ef (bug 1712140)
Backed out changeset 50828058065e (bug 1712140)
2023-12-06 00:18:38 +02:00