Commit Graph

4912 Commits

Author SHA1 Message Date
Tom Schuster
4b2ca116dd 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
e56053abff 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
ce7651d03a 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
Tooru Fujisawa
2e7027b7a9 Bug 1874595 - Use LF in toml file consistently. r=jmaher,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D198505
2024-01-15 15:21:53 +00:00
Adam Vandolder
73d810dd2e 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
Adam Vandolder
23775aed9b Bug 1712140 - Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-12-07 21:27:09 +00:00
Iulian Moraru
ec88b58413 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
b1b5653ef5 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
Adam Vandolder
df73a82637 Bug 1712140 - Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-12-06 22:50:48 +00:00
Joel Maher
c993099c60 Bug 1865385 - remove win7/win-aarch64 annotations from reftest manifests. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D193995
2023-12-05 21:49:04 +00:00
Stanca Serban
88e5c5662f 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
Adam Vandolder
65c76f62c7 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-05 18:18:16 +00:00
Adam Vandolder
4d8797b909 Bug 1712140 - Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-12-05 18:18:15 +00:00
Iulian Moraru
9dc5faecc0 Backed out 6 changesets (bug 1712140) for causing wpt failures on declarative-shadow-dom-opt-in.html.
Backed out changeset 78e3a33470ae (bug 1712140)
Backed out changeset 8601fce480ef (bug 1712140)
Backed out changeset 4d2749962c5f (bug 1712140)
Backed out changeset b65511d17150 (bug 1712140)
Backed out changeset 8ae1f766f1f9 (bug 1712140)
Backed out changeset 4ffe7a6ad366 (bug 1712140)
2023-12-04 22:30:04 +02:00
Adam Vandolder
63033795ab 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-04 17:35:49 +00:00
Adam Vandolder
a393b958d0 Bug 1712140 - Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-12-04 17:35:48 +00:00
Stanca Serban
c69cbb70a3 Backed out 6 changesets (bug 1712140) for causing wpt failures in declarative-shadow-dom-opt-in.html.
Backed out changeset 554a46ed8046 (bug 1712140)
Backed out changeset 14ebbfca2e84 (bug 1712140)
Backed out changeset 98dd5766dd46 (bug 1712140)
Backed out changeset 4241a7241a9b (bug 1712140)
Backed out changeset 59ee434d503e (bug 1712140)
Backed out changeset ff3bb42f91d1 (bug 1712140)
2023-12-01 03:26:27 +02:00
Adam Vandolder
8c1befaa95 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-11-30 23:17:15 +00:00
Adam Vandolder
657698433a Bug 1712140 - Part 1: Add Declarative ShadowDOM attributes to parser. r=dom-core,emilio,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-11-30 23:17:14 +00:00
Mirko Brodesser
fadc450e48 Bug 1865610: part 10) Add fetchpriority attribute support for rel=preload as=fetch and rel=preload as=font. r=emilio,valentin
Previously, for `rel=preload as=fetch`, the internal priority,
`nsISupportsPriority`, was not adjusted. Now, the adjustment happens in
`FetchPreloader::CreateChannel`.

For `rel=preload as=font`, previously, the internal priority was always
set to high in `FontLoaderUtils::BuildChannelSetup`. Now, the internal
priority is a parameter, whose value potentially depends on the
`fetchpriority` attribute.
Note the minor correction of calling `SetPriority` instead of
`AdjustPriority` in `FontLoaderUtils::BuildChannelSetup`.

Differential Revision: https://phabricator.services.mozilla.com/D194205
2023-11-30 15:00:10 +00:00
CanadaHonk
b7cb7a41f5 Bug 1830909 - Implement <hr> in <select> r=hsivonen,emilio,geckoview-reviewers,desktop-theme-reviewers,Jamie,owlish
Updated HTML parser to allow <hr> in <select>.

Updated internal toolkit UI for <select> dropdown to create
menuseperators for hrs.

Updated WPT expectations:
 - HTML5Lib WebKit parsing for it now passes 100%

Also includes Android support, but Fenix does not support separators
in the menus used (single/multiple) yet so they are not rendered.

Differential Revision: https://phabricator.services.mozilla.com/D189065
2023-11-29 14:15:36 +00:00
Norisz Fay
be3e190621 Backed out changeset f56003f45cc6 (bug 1830909) for causing bc failures on browser_selectpopup_colors.js CLOSED TREE 2023-11-28 22:00:22 +02:00
CanadaHonk
a1eb267c1e Bug 1830909 - Implement <hr> in <select> r=hsivonen,emilio,geckoview-reviewers,desktop-theme-reviewers,Jamie,owlish
Updated HTML parser to allow <hr> in <select>.

Updated internal toolkit UI for <select> dropdown to create
menuseperators for hrs.

Updated WPT expectations:
 - HTML5Lib WebKit parsing for it now passes 100%

Also includes Android support, but Fenix does not support separators
in the menus used (single/multiple) yet so they are not rendered.

Differential Revision: https://phabricator.services.mozilla.com/D189065
2023-11-28 16:01:36 +00:00
Joel Maher
9d203b1d46 Bug 1859893 - batch 15 - migrate xpcshell.ini -> .toml. r=aryx,geckoview-reviewers,extension-reviewers,valentin,cookie-reviewers,pbz,owlish,robwu
Differential Revision: https://phabricator.services.mozilla.com/D194384
2023-11-24 14:41:35 +00:00
Mirko Brodesser
135eba69cf Bug 1865610: part 4) Add fetchpriority attribute support for rel=modulepreload and rel=preload as=script. r=smaug,valentin
Differential Revision: https://phabricator.services.mozilla.com/D192331
2023-11-23 14:45:21 +00:00
Mirko Brodesser
c7f6b261d8 Bug 1865610: part 3) Add fetchpriority attribute support for preloaded stylesheets. r=smaug,emilio,necko-reviewers,jesup
Includes corresponding Link header fields.

Differential Revision: https://phabricator.services.mozilla.com/D191866
2023-11-23 14:36:12 +00:00
Tooru Fujisawa
e550bdfb92 Bug 1864168 - Part 6: Use 1-origin column number in ScriptLoader and nsIScriptElement. r=smaug,devtools-reviewers,hsivonen,ochameau
Also fix opSetScriptLineAndColumnNumberAndFreeze::mColumnNumber to point the
first character of the script source, instead of '>' of the start tag.

Differential Revision: https://phabricator.services.mozilla.com/D193374
2023-11-22 12:31:32 +00:00
Natalia Csoregi
705aa81869 Backed out 14 changesets (bug 1865005, bug 1864168, bug 1864155, bug 1862814, bug 1862693) for causing bustage on nsRFPService.cpp. CLOSED TREE
Backed out changeset a4f3e7625abf (bug 1865005)
Backed out changeset ab38141e470b (bug 1862814)
Backed out changeset a679b50dc4a9 (bug 1862814)
Backed out changeset e340886ce62a (bug 1862814)
Backed out changeset 1378502e64b0 (bug 1862814)
Backed out changeset 8ee94e5e79c2 (bug 1862814)
Backed out changeset 6d4ef1cdfabb (bug 1864168)
Backed out changeset 2c30c4d757fc (bug 1864168)
Backed out changeset d4db9576559b (bug 1864168)
Backed out changeset 8ffec0d83028 (bug 1864168)
Backed out changeset fa77d852b494 (bug 1864168)
Backed out changeset f6646771a26a (bug 1864168)
Backed out changeset 7bd0ff6986df (bug 1864155)
Backed out changeset 39867b503289 (bug 1862693)
2023-11-22 14:01:55 +02:00
Tooru Fujisawa
78e7224834 Bug 1864168 - Part 6: Use 1-origin column number in ScriptLoader and nsIScriptElement. r=smaug,devtools-reviewers,hsivonen,ochameau
Also fix opSetScriptLineAndColumnNumberAndFreeze::mColumnNumber to point the
first character of the script source, instead of '>' of the start tag.

Differential Revision: https://phabricator.services.mozilla.com/D193374
2023-11-22 11:13:56 +00:00
Randell Jesup
e7da107c4d Bug 1864045: Fix merge error for OnDataFinished in HTML5Parser r=edgul
Differential Revision: https://phabricator.services.mozilla.com/D193236
2023-11-09 21:26:40 +00:00
Olli Pettay
b737ae32be Bug 1862311 - Clean up the comments in nsHtml5AtomTable.h and increase the cache size a tiny bit, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192392
2023-10-31 23:05:59 +00:00
Randell Jesup
da20da46fa Bug 1857615: Add Telemetry for OnStopRequest/OnDataFinished/etc r=necko-reviewers,kershaw
Also add OnStartRequest telemetry back

Differential Revision: https://phabricator.services.mozilla.com/D190470
2023-10-30 03:03:42 +00:00
Iulian Moraru
0bb848f472 Backed out 2 changesets (bug 1857615, bug 1857926) for causing build bustages on HttpChannelChild.cpp. CLOSED TREE
Backed out changeset b29044126de6 (bug 1857615)
Backed out changeset 8dcb0b3fc1f3 (bug 1857926)
2023-10-28 09:39:18 +03:00
Randell Jesup
3c97fb9428 Bug 1857615: Add Telemetry for OnStopRequest/OnDataFinished/etc r=necko-reviewers,kershaw
Also add OnStartRequest telemetry back

Differential Revision: https://phabricator.services.mozilla.com/D190470
2023-10-28 06:03:48 +00:00
sunil mayya
9a6ec90e93 Bug 1851992 - send onDataFinished notifications from nsInputStreamPump. r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D188757
2023-10-27 13:30:12 +00:00
edgul
827cd75825 Bug 1851992 - moving html5 stream parser's OnStopRequest off main thread. r=necko-reviewers,edgul,jesup,valentin,hsivonen
Depends on D187668

Differential Revision: https://phabricator.services.mozilla.com/D187689
2023-10-27 13:30:11 +00:00
Daniel Holbert
aec74c3a0c Bug 1861332: Add a body element to crashtest 1747514.html so that its document.body.appendChild invocation can succeed instead of throwing a JS TypeError. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D191929
2023-10-26 16:55:41 +00:00
Markus Stange
f304926168 Bug 1861232 - Remove unused interner argument from elementNameByBuffer. r=dom-core,jjaschke,CanadaHonk
Differential Revision: https://phabricator.services.mozilla.com/D191970
2023-10-26 12:17:44 +00:00
Emilio Cobos Álvarez
d3377338b3 Bug 1861068 - Make nsHTML5AttributeName constructors allocate less. r=hsivonen
This removes a bunch of allocations on startup.

Java changes: https://github.com/validator/htmlparser/pull/90

Differential Revision: https://phabricator.services.mozilla.com/D191870
2023-10-25 18:26:49 +00:00
Emilio Cobos Álvarez
555a298c84 Bug 1861010 - Avoid leaking on the nsHtml5AttributeName constructor. rpending=hsivonen CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D191865
2023-10-25 14:04:40 +00:00
Emilio Cobos Álvarez
aec37b313e Bug 1861010 - Improve nsHtml5AttributeName. r=hsivonen
In particular:

 * Store local names, namespaces, etc inline.
 * Avoid taking unnecessary atom references for non-interned atoms.

As a follow-up, we can look into making the input data truly static,
which would be nice.

Depends on D191853

Differential Revision: https://phabricator.services.mozilla.com/D191854
2023-10-25 12:37:26 +00:00
Emilio Cobos Álvarez
d03c3ae7d8 Bug 1861010 - Avoid some duplicated string hashing in the html parser. r=smaug
I need to check whether we can remove the recently used atom stuff, but this
should be uncontroversial.

Differential Revision: https://phabricator.services.mozilla.com/D191853
2023-10-25 11:50:59 +00:00
Narcis Beleuzu
722f6a1679 Backed out 6 changesets (bug 1851992) for DT failure on browser_net_image_cache.js . CLOSED TREE
Backed out changeset 3ceaf46f8f55 (bug 1851992)
Backed out changeset c9d322362e22 (bug 1851992)
Backed out changeset 673df3f83249 (bug 1851992)
Backed out changeset 46e18c56dd39 (bug 1851992)
Backed out changeset f9f9143ac713 (bug 1851992)
Backed out changeset 38c40d735ab7 (bug 1851992)
2023-10-24 13:16:40 +03:00
Mark Banner
31a45737c0 Bug 1858673 - Remove now unnecessary disabling of ESLint no-unsanitized/* rules from test files. r=freddyb,media-playback-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,places-reviewers,aosmond,sgalich,dao,padenot
Differential Revision: https://phabricator.services.mozilla.com/D190985
2023-10-24 08:48:41 +00:00
sunil mayya
d2b6e6de8b Bug 1851992 - send onDataFinished notifications from nsInputStreamPump. r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D188757
2023-10-24 01:48:10 +00:00
edgul
e14d121155 Bug 1851992 - moving html5 stream parser's OnStopRequest off main thread. r=necko-reviewers,edgul,jesup,valentin,hsivonen
Depends on D187668

Differential Revision: https://phabricator.services.mozilla.com/D187689
2023-10-24 01:48:09 +00:00
Henri Sivonen
fef29849ec Bug 1857221 - Avoid tracking the line and column number when parsing innerHTML. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D191270
2023-10-23 09:07:22 +00:00
Henri Sivonen
d1d1ba1d91 Bug 1859527 - Update the generated includes in the HTML parser. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D191186
2023-10-18 08:40:49 +00:00
Edgar Chen
8e9d770444 Bug 1686012 - Make Headless clipboard support the HTML type; r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D191195
2023-10-18 08:15:27 +00:00
Cristina Horotan
ea9336a2ca Backed out 5 changesets (bug 1851992) for causing multiple failures
Backed out changeset d28399b3d947 (bug 1851992)
Backed out changeset 95e4df69007a (bug 1851992)
Backed out changeset fa61d4e76827 (bug 1851992)
Backed out changeset 79969d9eb5cd (bug 1851992)
Backed out changeset 03c17255f1af (bug 1851992)
2023-10-17 14:48:23 +03:00