Commit graph

1761 commits

Author SHA1 Message Date
Bobby Holley
ffb24a7d19 Bug 1757218 - WebMIDI permission should apply to subdomains. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D139982
2022-03-02 18:33:43 +00:00
Norisz Fay
8adcbead72 Backed out changeset 1ea661280632 (bug 1757218) for causing mochitest failures on test_midi_permission_gated.html 2022-03-02 11:25:53 +02:00
Bobby Holley
b17a876d9e Bug 1757218 - WebMIDI permission should apply to subdomains. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D139982
2022-03-02 05:52:45 +00:00
codyd
84835f8228 Bug 1743486: More Cut over for resistinfingerprinting API: UseStandinsForNativeColors and Appwindow r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D132515
2022-03-01 19:11:54 +00:00
Ben Lienhart
ab7ea1a6e2 Bug 1736680 - Add a missing const qualified to ShouldRFP char* argument. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D139504
2022-02-23 19:00:59 +00:00
Emilio Cobos Álvarez
a0a0df247c Bug 1754323 - Ensure safe-area calculations aren't too off. r=m_kato
The fix here is the EnsureAtMost call, but we can simplify a bit of the
related code by replacing the four conditionals with an
EnsureAtLeast call too, and using Deflate() rather than the manual
calculations.

This is sort of a wall paper over bug 1754323, but should be safe and
prevents ridiculously big safe areas.

Differential Revision: https://phabricator.services.mozilla.com/D138453
2022-02-14 16:03:40 +00:00
Peter Van der Beken
15b814ccd7 Bug 1749935 - Create nsParser directly instead of with a CID. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D135896
2022-02-14 13:03:51 +00:00
Florian Quèze
f84ed84ce8 Bug 1747138 - Breakdown CPU and GPU time by process type, r=chutten,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D134441
2022-02-03 20:37:21 +00:00
smolnar
4d305a2b14 Backed out changeset cd96e020a609 (bug 1747138) for causing bc failures in browser_telemetry_video_hardware_decoding_support. CLOSED TREE 2022-02-03 19:51:02 +02:00
Florian Quèze
b8e6ccc49a Bug 1747138 - Breakdown CPU and GPU time by process type, r=chutten,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D134441
2022-02-03 12:20:15 +00:00
Chris Peterson
2ae60bead7 Bug 1744425 - Replace nsContentUtils::GenerateUUID() to nsID::GenerateUUID(). r=nika
Bug 1723674 added a new nsID::GenerateUUID() static factory function to generate UUIDs without the overhead of querying and instantiating an nsIUUIDGenerator object. nsContentUtils::GenerateUUID() is a utility function that amortizes that overhead by holding an nsIUUIDGenerator singleton. That's no longer necessary because code that calls nsContentUtils::GenerateUUID() can now just call nsID::GenerateUUID(). No nsIUUDGenerator is needed.

Differential Revision: https://phabricator.services.mozilla.com/D132866
2022-02-03 04:39:34 +00:00
Luca Greco
24af3febf1 Bug 1746841 - Revert Bug 1747091 temporary workaround to prevent moz-extension css from being cached. r=emilio
Depends on D134508

Differential Revision: https://phabricator.services.mozilla.com/D135739
2022-01-19 19:58:13 +00:00
Shane Caraveo
408030142a Bug 1742471 enforce addon gating of webmidi interfaces r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D131857
2022-01-05 00:36:22 +00:00
Eitan Isaacson
bcc337c8aa Bug 1744315 - P1: Introduce chrome-only MozMouseExploreByTouch event. r=botond
The goal of this event is for doing hit testing in content and emit an
accessibility event with the result for Android's explore by touch.

This event allows us to use APZ's ability to target the correct content
doc.

Differential Revision: https://phabricator.services.mozilla.com/D132840
2021-12-28 20:41:22 +00:00
Peter Van der Beken
9995f7174d Bug 1267614 - Update meta refresh parsing to match the new spec. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D134225
2021-12-26 17:03:30 +00:00
Butkovits Atila
94d38895e3 Backed out changeset 69ac7afb9489 (bug 1267614) for causing failures at navigate.window.html. CLOSED TREE 2021-12-26 13:13:46 +02:00
Peter Van der Beken
9435610906 Bug 1267614 - Update meta refresh parsing to match the new spec. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D134225
2021-12-26 10:09:44 +00:00
Butkovits Atila
364af5ea30 Backed out changeset 5eef44c00ca6 (bug 1742471) for causing failures at test_midi_permission_gated.html. CLOSED TREE 2021-12-23 21:04:33 +02:00
Shane Caraveo
2d93c04159 Bug 1742471 enforce addon gating of webmidi interfaces r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D131857
2021-12-23 16:37:24 +00:00
criss
803fa1325c Backed out changeset aed9e1265d5d (bug 1742471) for causing mochitest failures on test_midi_permission_gated.html. CLOSED TREE 2021-12-23 14:55:14 +02:00
Shane Caraveo
722b7f236c Bug 1742471 enforce addon gating of webmidi interfaces r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D131857
2021-12-22 21:43:31 +00:00
Emilio Cobos Álvarez
ec7f948696 Bug 1747091 - Force CSS with moz-extension schemes to get revalidated temporarily. r=rpl
See bug 1746841 comment 11 for the right fix instead.

Differential Revision: https://phabricator.services.mozilla.com/D134424
2021-12-22 11:46:59 +00:00
Nika Layzell
7b2e6d4996 Bug 1741665 - Align nsCString's public size_type better with other C++ APIs, r=mccr8,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D131422
2021-12-13 21:47:56 +00:00
Masayuki Nakano
25adcd81f5 Bug 1741148 - part 6: Make nsContentUtils::GetInclusiveAncestorsAndOffsets() return array of Maybe<uint32_t> as offsets in DOM nodes r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131339
2021-12-09 13:18:24 +00:00
Masayuki Nakano
6123f0e0d8 Bug 1741148 - part 5: Make nsINode::CompareDocumentPosition() and nsContentUtils::PositionIsBefore() treat offset in DOM node with Maybe<uint32_t> r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131338
2021-12-09 12:26:43 +00:00
Masayuki Nakano
3816ca9546 Bug 1741148 - part 3: Make users of nsINode::ComputeIndexOf_Deprecated() use nsINode::ComputeIndexOf() if the result is not set to int32_t nor return as int32_t r=smaug
This patch fixes only the cases if the result of `ComputeIndexOf_Deprecated()`
is used as unsigned integer with implicit or explicit cast.

Differential Revision: https://phabricator.services.mozilla.com/D131336
2021-12-09 11:55:36 +00:00
Masayuki Nakano
f2baf0d9ab Bug 1741148 - part 1: Rename nsINode::ComputeIndexOf to ComputeIndexOf_Deprecated r=smaug
It's hard to fix some callers.  Therefore, in this bug, we should fix only
simple cases.  Therefore, we should rename existing API first.

Differential Revision: https://phabricator.services.mozilla.com/D131334
2021-12-09 08:32:30 +00:00
Masayuki Nakano
c19aa5aaa5 Bug 1740853 - part 1: Make nsContentUtils::ComparePoints take uint32_t for offset in DOM nodes r=smaug
They are defined as "unsigned long" by the standards.  So we should use
`uint32_t` rather than `int32_t` with the methods.  However, layout code
uses `int32_t` a lot for representing the offset.  Therefore, this patch
adds `*_FixOffset1` etc for the cases which cannot fix easily in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D131110
2021-12-09 07:51:45 +00:00
Mike Hommey
8e411675ac Bug 1744877 - Remove --disable-xul. r=Gijs
Building with --disable-xul has been busted since _at least_ bug
1082579, for more than 7 years (I didn't try to track that down
further). It's time to recognize that the option serves no purpose.

Differential Revision: https://phabricator.services.mozilla.com/D133161
2021-12-08 21:37:11 +00:00
Cosmin Sabou
fdf40d5a31 Backed out changeset 1778ca2ab291 (bug 1744425) for bc failures on browser_xpcom_graph_wait.js. CLOSED TREE 2021-12-08 07:20:54 +02:00
Chris Peterson
aae95e46eb Bug 1744425 - Replace nsContentUtils::GenerateUUID() to nsID::GenerateUUID(). r=nika
Bug 1723674 added a new nsID::GenerateUUID() static factory function to generate UUIDs without the overhead of querying and instantiating an nsIUUIDGenerator object. nsContentUtils::GenerateUUID() is a utility function that amortizes that overhead by holding an nsIUUIDGenerator singleton. That's no longer necessary because code that calls nsContentUtils::GenerateUUID() can now just call nsID::GenerateUUID(). No nsIUUDGenerator is needed.

Differential Revision: https://phabricator.services.mozilla.com/D132866
2021-12-08 03:19:11 +00:00
Csoregi Natalia
ee888bb9dd Backed out changeset 36f5dbe746ec (bug 1743486) for bustage on nsContentUtils.cpp. CLOSED TREE 2021-12-07 19:42:45 +02:00
codyd
b6700e5c63 Bug 1743486: More Cut over for resistinfingerprinting API: UseStandinsForNativeColors and Appwindow r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D132515
2021-12-07 16:32:05 +00:00
Ben Lienhart
8efb70966b Bug 1736680 - Created and implemented legacy ShouldRFP function to ScreenOrientation. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D128923
2021-12-06 19:32:14 +00:00
Emilio Cobos Álvarez
323ecd6f31 Bug 1743377 - Remove imgLoader::PreferLoadFromCache. r=aosmond
Instead treat these protocols as "never-expiring" protocols, and clean
up revalidation code while at it.

Depends on D132347

Differential Revision: https://phabricator.services.mozilla.com/D132348
2021-11-29 15:18:14 +00:00
Andrew Osmond
3c9cebcd6e Bug 1735874 - Fix broken resist fingerprinting with OffscreenCanvas on worker threads. r=dom-worker-reviewers,asuth,smaug
OffscreenCanvas can be run on worker threads and is disabled by default.
The existing code trips asserts because we try to use the document,
which is main thread only, directly on the worker thread. This patch
caches the resist fingerprinting status for the worker when it is
created for future reference.

Differential Revision: https://phabricator.services.mozilla.com/D128510
2021-11-09 20:16:04 +00:00
Masayuki Nakano
c84dfd928f Bug 1455514 - part 2: Add accessors and static helper methods to retrieve nsPIDOMWindowInner, nsPIDOMWindowOuter and nsPIWindowRoot r=smaug
Similar to the previous patch, there are a lot of QI from `EventTarget` to
window interfaces.  This patch adds them, but unfortunately,
`nsPIDOMWindowInner` and `nsPIDOMWindowOuter` do not inherit `EventTarget`
directly, and they are in a public header instead of their concrete classes
(`nsGlobalWindowInner` and `nsGlobalWindowOuter`).  So we cannot cast them
in `nsPIDOMWindow.h`, and it causes it's impossible to use the macros added
by the previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D129782
2021-11-02 13:03:43 +00:00
Masayuki Nakano
4341d6fb0c Bug 1455514 - part 1: Add accessors and static helper methods to retrieve nsINode or its concrete classes from EventTarget r=smaug
Currently, checking whether an `EventTarget` is `nsINode` (or its concrete
classes) or not requires a QI, but it's expensive and used a lot while we
handle each event.  Therefore, it'd be nicer for creating a virtual method,
`EventTarget::IsNode()` and use it for the check.

If trying to convert `EventTarget` to a concrete class, it may require two
virtual method calls.  I'm not sure whether it's cheaper than a QI, but at
least, it won't depend on the UUID check order of `QueryInterface()` when
multiple interfaces are implemented.

Differential Revision: https://phabricator.services.mozilla.com/D129781
2021-11-02 13:03:43 +00:00
Florian Quèze
1c3f80fe51 Bug 1738285 - move AUTO_PROFILE_FOLLOWING_RUNNABLE to its own header, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D129825
2021-10-28 20:35:06 +00:00
Cristian Tuns
bbe839255e Backed out 2 changesets (bug 1737694) for causing web platform tests failures on autocapitalize.html CLOSED TREE
Backed out changeset cbfc81505f1a (bug 1737694)
Backed out changeset c2f44297bd03 (bug 1737694)
2021-10-27 10:50:15 -04:00
Edgar Chen
0ae13406c3 Bug 1737694 - Part 2: Replace nsContentUtils::HasNonEmptyAttr usage with Element::HasNonEmptyAttr; r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D129449
2021-10-27 09:59:06 +00:00
Ting-Yu Lin
f12e90621b Bug 1736938 Part 4 - Remove unused LineBreaker and WordBreaker instances in nsContentUtils. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D129362
2021-10-25 19:00:23 +00:00
Edgar Chen
e3d4695e4f Bug 1556354 - Part 3: Merge LifecycleCallback*Args; r=smaug
To make adding new callback a bit easier.

Differential Revision: https://phabricator.services.mozilla.com/D129190
2021-10-25 14:28:05 +00:00
Andrew McCreight
25b4b27c92 Bug 1736707, part 2 - Remove nsContentUtils::sNameSpaceManager. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D129034
2021-10-22 16:15:58 +00:00
Andrew McCreight
8c5d7e5ee8 Bug 1736707, part 1 - Get rid of nsContentUtils::NameSpaceManager(). r=peterv
Call nsNameSpaceManager::GetInstance() instead.

Differential Revision: https://phabricator.services.mozilla.com/D129033
2021-10-22 16:15:57 +00:00
Masayuki Nakano
fc532efa09 Bug 1734771 - part 3: Make AppendString() and AppendSubString() take const Text& instead of Text* r=m_kato
Depends on D128139

Differential Revision: https://phabricator.services.mozilla.com/D128140
2021-10-12 15:02:38 +00:00
Masayuki Nakano
25a3c48305 Bug 1732845 - Add nsINode::IsInDesignMode() to check whether the node is directly in design mode r=smaug
There are a lot of check of `Document`'s editable state **with** comments. This
means that it's unclear for developers that only `Document` node is editable in
design mode.

Additionally, there are some points which use composed document rather than
uncomposed document even though the raw API uses uncomposed document. Comparing
with the other browsers, checking uncomposed document is compatible behavior,
i.e., nodes in shadow trees are not editable unless `contenteditable`.

Therefore, `nsINode` should have a method to check whether it's in design mode
or not.

Note that it may be called with a node in UA widget.  Therefore, this patch
adds new checks if it's in UA widget subtree or native anonymous subtree,
checking whether it's in design mode with its host.

Differential Revision: https://phabricator.services.mozilla.com/D126764
2021-10-12 03:14:43 +00:00
Emilio Cobos Álvarez
73805fe284 Bug 1734325 - Make the disable_xul_cache pref prevent chrome resources from getting cached. r=smaug
Do some drive-by clean-up, and remove telemetry for this since add-ons
can no longer tweak this pref.

Differential Revision: https://phabricator.services.mozilla.com/D127812
2021-10-07 13:29:00 +00:00
Tom Schuster
8e643f5b0b Bug 1734320 - Expose structuredClone in Sandbox. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127641
2021-10-06 16:10:44 +00:00
Edgar Chen
495e0b741d Bug 1556351 - Part 5: Make nsGenericHTMLFormControlElement implement nsIFormControl; r=smaug
nsGenericHTMLFormElement doesn't implement nsIFormControl now as HTMLElement would
inherit it to be able to be added into HTMLFormElement and HTMLFieldSetElement and
support some common form feature.

So some places that call the nsIFormControl method on nsGenericHTMLFormElement
directly would need to queryInterface it to nsIFormControl first, this should be
fine as those places are not in a hot path.

Differential Revision: https://phabricator.services.mozilla.com/D124788
2021-10-04 20:51:27 +00:00