Commit Graph

2073 Commits

Author SHA1 Message Date
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
Adam Vandolder
d4c62c3dcb 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
Iulian Moraru
80baabd575 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
773870d396 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
John Schanck
63ea1bb18e Bug 1824215 - support non-autofill credential type for autocomplete attribute. r=sgalich,smaug
Differential Revision: https://phabricator.services.mozilla.com/D194933
2023-12-01 23:56:47 +00:00
Cristian Tuns
11d2f82772 Backed out 4 changesets (bug 1838932, bug 1864544, bug 1853951, bug 1824215) for causing build bustages in WinWebAuthnService.cpp CLOSED TREE
Backed out changeset 8199d5ce1bfa (bug 1864544)
Backed out changeset 1084e05b2914 (bug 1853951)
Backed out changeset 55320a72238f (bug 1824215)
Backed out changeset 876476ccd759 (bug 1838932)
2023-12-01 17:59:13 -05:00
John Schanck
feffa1ac0c Bug 1824215 - support non-autofill credential type for autocomplete attribute. r=sgalich,smaug
Differential Revision: https://phabricator.services.mozilla.com/D194933
2023-12-01 22:01:09 +00:00
Emilio Cobos Álvarez
883099288d Bug 1867686 - Handle OOM better in IOUtils.writeJSON. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D195225
2023-12-01 12:57:17 +00:00
Stanca Serban
3fa8347485 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
f03d7c3ce0 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
Peter Van der Beken
c91995aee6 Bug 1866008 - Remove nsContentUtils::CreateArrayBuffer. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D194460
2023-11-24 08:46:22 +00:00
Jonathan Watt
592186529c Bug 1865995 p2. Rename ContentViewerType to match nsIDocumentViewer's new name. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194336
2023-11-23 21:35:19 +00:00
Jonathan Watt
fa05092be7 Bug 1865995 p1. Rename FindInternalContentViewer to match nsIDocumentViewer's new name. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194335
2023-11-23 21:35:19 +00:00
Emilio Cobos Álvarez
ad569ed3fe Bug 1866239 - Do the UTF16->UTF8 conversion in IOUtils in the background thread. r=smaug
See the profile in the blocked bug, this is about half of the time spent
there. It doesn't help with the json serialization being slow (maybe
huge object graph?), but should be an easy win.

Differential Revision: https://phabricator.services.mozilla.com/D194476
2023-11-23 13:03:57 +00:00
Chris H-C
8248d04c01 Bug 1852098 - Increment Glean use counter metrics and submit the use-counters ping during shutdown r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D193250
2023-11-21 17:09:54 +00:00
Jonathan Watt
efb5a74fbc Bug 1865480. Rename nsIContentViewer to nsIDocumentViewer. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D193987
2023-11-21 12:45:59 +00:00
Andrew McCreight
cbba63f35e Bug 1859535, part 4 - Remove nsContentUtils::PluginTagForType. r=dom-core,sefeng
This method is never called. It is the last use of
nsPluginHost::GetInst() and various other non-static methods, so
remove them all.

Differential Revision: https://phabricator.services.mozilla.com/D191192
2023-11-20 17:44:20 +00:00
Masayuki Nakano
a9321b697e Bug 1864334 - Make nsIFrame::MovingCaretToEventPointAllowedIfSecondaryButtonEvent check whether the right click point is in a selection range first r=emilio
This is a simple mistake of the previous patch. The code path is originally for
a left click handling.  Therefore, there is no check whether the click point is
in a selection range because in that case, left click should collapse selection.
However, the selection should not be collapse when it's a right click in a
selection range because the context menu target is the selection range.

The `ui.mouse.right_click.collapse_selection.stop_if_non_collapsed_selection`
pref is set to `true` by default.  Therefore, the existence of a non-collapsed
selection has hidden this bug.  However, if it's set to `false`, this always
happens.  Additionally, editor does not set ancestor limiter of selection if the
root element is editable [1].  I think that we can now remove this special path,
but it's risky.  Therefore, this patch just adds the new check into the method.

1. https://searchfox.org/mozilla-central/rev/ce4599d3d4e20e34cb6db68f255c3dff1aec246b/editor/libeditor/EditorBase.cpp#5448,5450-5451

Differential Revision: https://phabricator.services.mozilla.com/D193529
2023-11-16 01:26:24 +00:00
Narcis Beleuzu
aeac4d77e1 Backed out 7 changesets (bug 1852098) for bustages on UseCounterMetrics.h . CLOSED TREE
Backed out changeset 3b87419a9eea (bug 1852098)
Backed out changeset d9c7c84c82df (bug 1852098)
Backed out changeset e594c7eebb91 (bug 1852098)
Backed out changeset 15e0b0bd3bfb (bug 1852098)
Backed out changeset 220e9ee63ec3 (bug 1852098)
Backed out changeset 9edef145d1c5 (bug 1852098)
Backed out changeset 920a798dbb8a (bug 1852098)
2023-11-16 01:00:42 +02:00
Chris H-C
be4023d4f6 Bug 1852098 - Increment Glean use counter metrics and submit the use-counters ping during shutdown r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D193250
2023-11-15 21:34:12 +00:00
Stanca Serban
7f8a3ccc5e Backed out 7 changesets (bug 1852098) for causing build bustages in UseCounterMetrics.cpp. CLOSED TREE
Backed out changeset 2caabd4bfe86 (bug 1852098)
Backed out changeset 5c174b0ee1ab (bug 1852098)
Backed out changeset 05ba23510b93 (bug 1852098)
Backed out changeset 256984effaa2 (bug 1852098)
Backed out changeset 8bed08cf2a68 (bug 1852098)
Backed out changeset 16b0698a239d (bug 1852098)
Backed out changeset 6e8d54a51fb7 (bug 1852098)
2023-11-15 23:02:32 +02:00
Chris H-C
1a8a70316b Bug 1852098 - Increment Glean use counter metrics and submit the use-counters ping during shutdown r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D193250
2023-11-15 17:01:30 +00:00
Noemi Erli
3ebc359ec4 Backed out 2 changesets (bug 1851816) for causing private browsing related failures CLOSED TREE
Backed out changeset d2f63b3f6342 (bug 1851816)
Backed out changeset 7d0d2fe95e67 (bug 1851816)
2023-11-07 00:18:54 +02:00
Tom Ritter
d8e7355533 Bug 1851816: Pass PBM Status into RFPIsEnabledFor r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D192501
2023-11-06 21:02:40 +00:00
Adam Brouwers-Harries
4a2ba69cbc Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau
This patch removes the old docshell timeline and timeline markers codebase and replaces them with equivalent Gecko profiler marker. This patch also fixes Bug 1834143, which is a subset of 1421651.

Differential Revision: https://phabricator.services.mozilla.com/D184217
2023-10-24 15:18:12 +00:00
Narcis Beleuzu
67b61b8b2c Backed out changeset 714aaf6484fb (bug 1421651) for causing Bug 1860719. CLOSED TREE 2023-10-24 17:31:02 +03:00
Adam Brouwers-Harries
720e582a3a Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau
This patch removes the old docshell timeline and timeline markers codebase and replaces them with equivalent Gecko profiler marker. This patch also fixes Bug 1834143, which is a subset of 1421651.

Differential Revision: https://phabricator.services.mozilla.com/D184217
2023-10-23 13:55:50 +00:00
Tim Huang
7f0348add6 Bug 1824222 - Make nsRFPService::IsRFPEnabledFor() to use the given OverriddenFingerprintingSettings for checking RFPTargets. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D185016
2023-10-17 22:02:30 +00:00
Sandor Molnar
489ab0b744 Backed out changeset e5c1b9223818 (bug 1852243) causing problems in event handling for a lot of tests. 2023-10-11 10:08:38 +03:00
Emilio Cobos Álvarez
d02e297b2d Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu
Sorry this is not a particularly easy patch to review. But it should be
mostly straight-forward.

I kept Document::Dispatch mostly for convenience, but could be
cleaned-up too / changed by SchedulerGroup::Dispatch. Similarly maybe
that can just be NS_DispatchToMainThread if we add an NS_IsMainThread
check there or something (to preserve shutdown semantics).

Differential Revision: https://phabricator.services.mozilla.com/D190450
2023-10-10 08:51:12 +00:00
Henrik Skupin
f066f34bc9 Bug 1852243 - [dom] Add specific preferences for all available async event types. r=hiro
The preference "test.events.async.enabled" controls the usage of
widget events in general, but Marionette doesn't support all of
them yet. To get widget events enabled for web-platform tests
those unsupported event types need to still synthesize the event.

Differential Revision: https://phabricator.services.mozilla.com/D188296
2023-10-06 06:13:18 +00:00
Cristina Horotan
d7356eea7d Backed out 2 changesets (bug 1852243) for causing multiple wpt failures
Backed out changeset b10876321a92 (bug 1852243)
Backed out changeset c818afe5e31e (bug 1852243)
2023-10-05 21:48:37 +03:00
Henrik Skupin
ec1d5e8c22 Bug 1852243 - [dom] Add specific preferences for all available async event types. r=hiro
The preference "test.events.async.enabled" controls the usage of
widget events in general, but Marionette doesn't support all of
them yet. To get widget events enabled for web-platform tests
those unsupported event types need to still synthesize the event.

Differential Revision: https://phabricator.services.mozilla.com/D188296
2023-10-05 15:11:59 +00:00
Tim Huang
a1849d963f Bug 1834274 - Part 1: Implement nsIRFPService.idl for nsRFPService. r=emilio
To allow remote settings client to set fingerprinting overrides from
Javascript, we need to implement nsIRFPService for nsRFPService.

This patch changes the return format of nsRFPService::GetOrCreate() to
match the singleton implementation of nsIRFPService. As a result of it,
we need to change the first init call in nsContentUtils because we
cannot forward a already_AddRefed<> to mozilla::Unused. It will cause a
memory leak.

Differential Revision: https://phabricator.services.mozilla.com/D182809
2023-09-27 14:58:25 +00:00
Valentin Gosu
ca61d34ef7 Bug 1553105 - Make URL.origin return "null" if protocol doesn't have the URI_HAS_WEB_EXPOSED_ORIGIN flag r=nika,necko-reviewers,kershaw
CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D188720
2023-09-27 10:29:17 +00:00
Cosmin Sabou
5f58674abb Backed out changeset c4a317778310 (bug 1553105) for causing build bustages on nsContentUtils.cpp. CLOSED TREE 2023-09-27 13:25:14 +03:00
Valentin Gosu
8f5a01e16f Bug 1553105 - Make URL.origin return "null" if protocol doesn't have the URI_HAS_WEB_EXPOSED_ORIGIN flag r=nika,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D188720
2023-09-27 09:55:57 +00:00
Sandor Molnar
4b73c45ef4 Backed out 4 changesets (bug 1834274) Mn failures on browser/components/tests/marionette/test_no_errors_clean_profile.py CLOSED TREE
Backed out changeset c28b3520f3d7 (bug 1834274)
Backed out changeset e57a1b1b05c8 (bug 1834274)
Backed out changeset aae42550c449 (bug 1834274)
Backed out changeset 79b200c1060e (bug 1834274)
2023-09-26 19:10:23 +03:00
Tim Huang
62b66fcff1 Bug 1834274 - Part 1: Implement nsIRFPService.idl for nsRFPService. r=emilio
To allow remote settings client to set fingerprinting overrides from
Javascript, we need to implement nsIRFPService for nsRFPService.

This patch changes the return format of nsRFPService::GetOrCreate() to
match the singleton implementation of nsIRFPService. As a result of it,
we need to change the first init call in nsContentUtils because we
cannot forward a already_AddRefed<> to mozilla::Unused. It will cause a
memory leak.

Differential Revision: https://phabricator.services.mozilla.com/D182809
2023-09-26 14:07:47 +00:00
Valentin Gosu
cdd5195292 Bug 1848694 - Remove/avoid global references to nsIIOService r=mccr8,necko-reviewers,kershaw
This patch removes the static pointer to nsIIOService in nsContentUtils,
replacing it to calls to mozilla::components::IO::Service.

It also makes nsScriptSecurityManager::sIOService a StaticRefPtr.

Differential Revision: https://phabricator.services.mozilla.com/D188714
2023-09-22 12:49:44 +00:00
Sandor Molnar
a8db14100e Backed out changeset b858a0740582 (bug 1848694) for causing build bustages on dom/base/Element.cpp CLOSED TREE 2023-09-21 16:45:57 +03:00
Valentin Gosu
e058782d44 Bug 1848694 - Remove/avoid global references to nsIIOService r=mccr8,necko-reviewers,kershaw
This patch removes the static pointer to nsIIOService in nsContentUtils,
replacing it to calls to mozilla::components::IO::Service.

It also makes nsScriptSecurityManager::sIOService a StaticRefPtr.

Differential Revision: https://phabricator.services.mozilla.com/D188714
2023-09-21 12:39:20 +00:00
Olli Pettay
8349e16ebd Bug 1851526 - Don't create the event in nsContentUtils::DispatchChromeEvent if it will not be dispatched, r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D187407
2023-09-05 08:37:33 +00:00
Markus Stange
755a0de1c3 Bug 1851263 - Rename nsIGlobalObject::AsInnerWindow to GetAsInnerWindow because it can return null. r=smaug
This is also the name that was originally suggested in https://bugzilla.mozilla.org/show_bug.cgi?id=218415#c53 .

Differential Revision: https://phabricator.services.mozilla.com/D187340
2023-09-04 04:06:30 +00:00
Markus Stange
325df32372 Bug 1850458 - Pass along aErrorResult to CreateEvent. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D187017
2023-08-29 15:30:15 +00:00
Markus Stange
538be2c237 Bug 1843484 - Don't hold an extra strong reference to the event target. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D186979
2023-08-28 23:38:43 +00:00
Markus Stange
70bd936589 Bug 1843484 - Use EventTarget* instead of nsISupports* for the event target parameter of the nsContentUtils::Dispatch methods. r=smaug
This saves a few queryInterface calls on the hot path.

Differential Revision: https://phabricator.services.mozilla.com/D186976
2023-08-28 23:38:42 +00:00