Commit Graph

4986 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
49396b273f Bug 1927404 - Fix reftests. r=hsivonen
The tests don't change rendering but the references need adjusting to match the
new css.

Differential Revision: https://phabricator.services.mozilla.com/D227062
2024-11-05 09:54:42 +00:00
Emilio Cobos Álvarez
5cc1e4a6c2 Bug 1927404 - Make each line in view-source a <span> rather than a <pre>. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D227061
2024-11-05 09:54:42 +00:00
Iulian Moraru
2f58067369 Backed out 4 changesets (bug 1927404) - for causing dt failures on browser_command_line_urls.js.
Backed out changeset 57e3626aa048 (bug 1927404)
Backed out changeset 0ee04fe4a1bc (bug 1927404)
Backed out changeset 1e68482cff47 (bug 1927404)
Backed out changeset 8b5961223d94 (bug 1927404)
2024-11-05 01:44:00 +02:00
Emilio Cobos Álvarez
a171717f24 Bug 1927404 - Fix reftests. r=hsivonen
The tests don't change rendering but the references need adjusting to match the
new css.

Differential Revision: https://phabricator.services.mozilla.com/D227062
2024-11-04 12:18:31 +00:00
Emilio Cobos Álvarez
df1abc622e Bug 1927404 - Make each line in view-source a <span> rather than a <pre>. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D227061
2024-11-04 12:18:31 +00:00
Henri Sivonen
8b45f1512c Bug 1928050 - Sync HTML parser Java source with upstream. r=emilio DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D227332
2024-10-30 13:24:05 +00:00
Makoto Kato
99a7aa295c Bug 1725806 - Part 1. Add autocorrect attribute in html parser. r=dom-core,hsivonen
Implement https://html.spec.whatwg.org/#autocorrection for HTML parser.

Differential Revision: https://phabricator.services.mozilla.com/D221569
2024-10-28 17:06:49 +00:00
serge-sans-paille
e54774d573 Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-28 08:21:19 +00:00
Emilio Cobos Álvarez
626fb2a71b Bug 1926824 - Fix crash with speculated and discarded <pre> hanging around.
Move the <pre> to a speculation now that its siblings can potentially
get discarded.

MANUAL PUSH: Trivial-ish crash fix CLOSED TREE
2024-10-25 19:37:43 +02:00
Alexandru Marc
191ccbe7fe Backed out changeset d92f391b3b0c (bug 1922838) for backing out bug 1915351 2024-10-25 16:42:33 +03:00
Emilio Cobos Álvarez
9c34ceac83 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
Emilio Cobos Álvarez
1e6f85cde5 Bug 1926922 - Remove some unused code in nsHtml5Highlighter. r=smaug,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D226793
2024-10-25 09:19:23 +00:00
Emilio Cobos Álvarez
17a38f242b Bug 1926922 - Use string literals rather than statics in nsHtml5Highlighter.cpp. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D226792
2024-10-25 09:19:22 +00:00
Emilio Cobos Álvarez
9ab07cde83 Bug 1926922 - Simplify view-source wrapping and syntax highlighting preferences. r=Gijs,dshin
Use -moz-bool-pref for them and simplify all the back and forth. Use
light-dark() while at it.

Differential Revision: https://phabricator.services.mozilla.com/D226798
2024-10-24 16:31:13 +00:00
serge-sans-paille
53068cdf31 Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 09:06:01 +00:00
Alexandru Marc
83543f20f2 Backed out changeset 448597bce69d (bug 1922838) for causing build bustages. CLOSED TREE 2024-10-24 11:37:49 +03:00
serge-sans-paille
c7a369b29a Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 07:38:30 +00:00
Chris H-C
b0893778ce Bug 1920562 - Remove JS uses of Services.telemetry.setEventRecordingEnabled r=florian,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,sessionstore-reviewers,omc-reviewers,migration-reviewers,firefox-desktop-core-reviewers ,urlbar-reviewers,sfoster,nchevobbe,valentin,Gijs,dimi,lina,mconley,pdahiya,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D223833
2024-10-08 20:14:42 +00:00
Chris H-C
d5675e4d9d Bug 1920562 - Remove C++ Telemetry::SetEventRecordingEnabled r=florian,necko-reviewers,valentin
We leave the network.trr.confirmation_telemetry_enabled pref intact because
removing it causes failures in test_prefs_tracker.js

Differential Revision: https://phabricator.services.mozilla.com/D223832
2024-10-08 20:14:41 +00:00
Sandor Molnar
fc1cd91320 Backed out 5 changesets (bug 1920562) for causing xpc assertion failures. CLOSED TREE
Backed out changeset 8f085ab589a8 (bug 1920562)
Backed out changeset 4405387ae770 (bug 1920562)
Backed out changeset a68fd13a33ae (bug 1920562)
Backed out changeset cd3672fc08ed (bug 1920562)
Backed out changeset 62ab18879eea (bug 1920562)
2024-10-08 00:16:13 +03:00
Chris H-C
27ba170e6f Bug 1920562 - Remove JS uses of Services.telemetry.setEventRecordingEnabled r=florian,settings-reviewers,pip-reviewers,credential-management-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,sessionstore-reviewers,omc-reviewers,migration-reviewers,firefox-desktop-core-reviewers ,urlbar-reviewers,sfoster,nchevobbe,valentin,Gijs,dimi,lina,mconley,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D223833
2024-10-07 17:29:57 +00:00
Chris H-C
a0d39c1e98 Bug 1920562 - Remove C++ Telemetry::SetEventRecordingEnabled r=florian,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D223832
2024-10-07 17:29:56 +00:00
Gregory Pappas
8540b0f15e Bug 1920268 - Remove unnecessary MochiKit.js includes in tests (parser/htmlparser/) r=dom-core,masayuki
Depends on D223035

Differential Revision: https://phabricator.services.mozilla.com/D223036
2024-09-23 22:35:41 +00:00
Chris H-C
446f16283a Bug 1918226 - Use Glean APIs for ysod.shown#ysod r=gregtatum,eemeli
Differential Revision: https://phabricator.services.mozilla.com/D221498
2024-09-20 18:43:08 +00:00
Frederik Braun
98eae49958 Bug 1913382 - counting SVG unusual child elements r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D221323
2024-09-10 09:53:42 +00:00
Cristian Tuns
cdb47e79cd Backed out changeset 0bec9af94668 (bug 1913382) because of the performance regression introduced Bug 1917623. CLOSED TREE 2024-09-09 13:20:53 -04:00
Frederik Braun
51ac3b326b Bug 1913382 - count the rate of SVG elements with surprising children r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D219290
2024-09-04 11:23:43 +00:00
Olli Pettay
e1fad67026 Bug 1914513 - Add a pref to disable mutation events, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D219934
2024-09-02 13:29:57 +00:00
Florian Quèze
eb15e807b9 Bug 1913624 - Remove expired telemetry histograms ENCODING_DETECTION_OUTCOME_TEXT and ENCODING_DETECTION_OUTCOME_HTML, r=chutten.
Depends on D219448

Differential Revision: https://phabricator.services.mozilla.com/D219449
2024-08-20 10:26:54 +00:00
Henri Sivonen
3e8d6c3c93 Bug 1910951 - Avoid incorrect use of nsParser when meta refresh is added to about:blank. r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D218926
2024-08-13 15:15:03 +00:00
Emilio Cobos Álvarez
e1ad6294bf Bug 1910698 - Remove nsIScriptError.sourceLine. r=smaug,devtools-reviewers,webdriver-reviewers,necko-reviewers,nchevobbe,kershaw,jdescottes,credential-management-reviewers,dimi
Afaict the source lines are not exposed anywhere in the UI.

Differential Revision: https://phabricator.services.mozilla.com/D218115
2024-08-01 17:12:48 +00:00
Emilio Cobos Álvarez
198c331213 Bug 1910698 - Add a struct to represent JS caller location and more general warning source location. r=smaug,necko-reviewers,anti-tracking-reviewers,dom-storage-reviewers,pbz,kershaw,janv
Use it liberally across the tree. This could be cleaned up even more in the future.

Differential Revision: https://phabricator.services.mozilla.com/D218114
2024-08-01 17:12:48 +00:00
Emilio Cobos Álvarez
19632d62f6 Bug 1910600 - Minor clean-ups to test_img_picture_preload.html. r=smaug
This doesn't change behavior, but I wrote them while debugging my patch
for bug 1076583. We no longer have the picture prefs and so on, and this
made it reasoning about it slightly easier.

Differential Revision: https://phabricator.services.mozilla.com/D218062
2024-07-30 21:22:15 +00:00
Vincent Hilla
155c81440b 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
Henri Sivonen
010aa5c448 Bug 1753352 - Inherit principal into about:blank with query string. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D212093
2024-07-17 16:12:53 +00:00
Sylvestre Ledru
45030f6970 Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato
This new version of clang 17 also slightly changed the formatting.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D215914
2024-07-17 11:15:31 +00:00
Sandor Molnar
bfc37d1f4b Backed out 2 changesets (bug 1887161) for causing build bustages @ siphash.h CLOSED TREE
Backed out changeset bd63a7c8f39e (bug 1887161)
Backed out changeset 856d5366ba4b (bug 1887161)
2024-07-17 13:20:34 +03:00
Tim Huang
abff13151c Bug 1887161 - Implement using SipHash to generate canvas randomization key. r=fkilic
The patch implements using SipHash to generate canvas randomization key.
The implementation is behind a pref
"privacy.resistFingerprinting.randomization.canvas.use_siphash".

Differential Revision: https://phabricator.services.mozilla.com/D216278
2024-07-17 09:43:59 +00:00
Masayuki Nakano
518f238fa3 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
Emilio Cobos Álvarez
424b1b8085 Bug 1901414 - Skip 1747514.html in tsan too since it's too slow.
Before my patch we deferred the layout one event loop tick which was
enough for the load event to fire.

MANUAL PUSH: Trivial orange fix CLOSED TREE
2024-06-14 13:53:23 +02:00
Emilio Cobos Álvarez
b41e16e215 Bug 1901414 - Flush layout before firing SVG image doc load. r=dshin
(barely tested, and would need a test written, but it seems easy to do
based on the test case on the bug)

Differential Revision: https://phabricator.services.mozilla.com/D213430
2024-06-14 07:33:45 +00:00
Emilio Cobos Álvarez
af68e1df49 Bug 1898601 - Remove fake webrtc/gkmedias libs. r=glandium,media-playback-reviewers,webrtc-reviewers,cubeb-reviewers,pehrsons,padenot
The tests referenced by gkmedias were ported to gtest. The relevant
build file was removed bug 1357328.

Differential Revision: https://phabricator.services.mozilla.com/D211680
2024-05-28 16:14:47 +00:00
Adam Vandolder
b40c30b136 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
Adam Vandolder
1c79b181e5 Bug 1890428 - Add shadowrootserializable attribute. r=dom-core,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D206954
2024-05-15 16:40:20 +00:00
Tamas Szentpeteri
065fdfb46e 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
bc77f97e3d 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
Adam Vandolder
be70f57b1c Bug 1890428 - Add shadowrootserializable attribute. r=dom-core,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D206954
2024-05-15 03:01:18 +00:00
Cristian Tuns
d52242a24f 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
92289875b1 Bug 1892882 - Carry over AllowDeclarativeShadowRoot state when parser created via document.write. r=dom-core,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D208747
2024-05-14 16:56:20 +00:00
Cristian Tuns
fb2ccec709 Backed out changeset 822a570ebc0a (bug 1892882) for causing wpt failures in idlharness.window.html?exclude=Node CLOSED TREE 2024-05-14 19:10:34 -04:00