Граф коммитов

792574 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano 19103784eb Bug 1765018 - part 3: Make `EditorBase::FindBetterInsertionPoint` be a template method r=m_kato
To avoid the unnecessary conversion between `EditorDOMPoint` and
`EditorRawDOMPoint`, it should be a template method which can take/return either
`EditorDOMPoint` or `EditorRawDOMPoint`.

Differential Revision: https://phabricator.services.mozilla.com/D143880
2022-04-20 23:41:28 +00:00
Gerald Squelart c1b8cfb651 Bug 1765226 - Make ProfilerIOInterposeObserver a static object - r=florian
This removes some memory operations, and extends the observer's life.

Differential Revision: https://phabricator.services.mozilla.com/D144176
2022-04-20 23:39:21 +00:00
Masayuki Nakano d58e1b92f7 Bug 1765018 - part 2: Make `EditorBase::Get(Start|End)Point` return `EditorDOMPoint` or `EditorRawDOMPoint` r=m_kato
This avoids unnecessary conversion at the callers' side, although they should be
omitted by the complier.

Differential Revision: https://phabricator.services.mozilla.com/D143879
2022-04-20 23:35:18 +00:00
Masayuki Nakano 08b1fe0b20 Bug 1765018 - part 1: Get rid of implicit conversion between `EditorDOMPointBase` instances r=m_kato
The implicit copy constructors and `operator=` makes it harder to realize
that implicit conversion wastes the runtime cost.  Therefore, this patch
replaces them with a template method to convert the `EditorDOMPointBase` type.

Differential Revision: https://phabricator.services.mozilla.com/D143878
2022-04-20 22:41:02 +00:00
Cristian Tuns 9f7f5dc7c8 Backed out 2 changesets (bug 1654054) for causing mochites failures on browser_nimbusMessageFirstTimePip.js CLOSED TREE
Backed out changeset 164e5a97cc41 (bug 1654054)
Backed out changeset dde97d800713 (bug 1654054)
2022-04-20 18:47:32 -04:00
Daniel Holbert e0100e2b76 Bug 1765632: Coalesce two variables into one Maybe<> variable, in ReflowInput::CalculateHypotheticalPosition. r=dshin
This patch shouldn't change behavior; it's just refactoring/simplifying
existing code, without changing the logic.

Differential Revision: https://phabricator.services.mozilla.com/D144221
2022-04-20 22:35:20 +00:00
Morgan Reschenberg 420ef979b8 Bug 1765000: Ignore missing view when running in headless mode r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D143852
2022-04-20 22:16:07 +00:00
Noemi Erli 560b5ccdb5 Backed out 4 changesets (bug 1737918) for causing bustages in ScrollTimeline.cpp CLOSED TREE
Backed out changeset cecdd071c1aa (bug 1737918)
Backed out changeset fcc5ecd364e4 (bug 1737918)
Backed out changeset f7bf3143e4a7 (bug 1737918)
Backed out changeset a143d2e54fb9 (bug 1737918)
2022-04-21 01:21:14 +03:00
Cristian Tuns 4216396f3e Merge mozilla-central to autoland on a CLOSED TREE 2022-04-20 17:54:01 -04:00
Cristian Tuns 6f6cf28107 Merge autoland to mozilla-central. a=merge 2022-04-20 17:51:20 -04:00
Matthew Gregan ac471e08bd Bug 1761691 - Fix audio_thread_priority build when dbus is build disabled. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D144077
2022-04-20 21:37:06 +00:00
Mike Conley 05c6efed91 Bug 1765606 - Make browser_resizeVideo.js more resilient against non-default OS control configurations. r=pip-reviewers,mhowell
Some OS's are configured such that the top-left edge isn't at 0,0 (which browser_resizeVideo.js
assumed). This makes this test more resilient to such configurations by sampling the top-left
edge coordinates before the test runs.

Differential Revision: https://phabricator.services.mozilla.com/D144206
2022-04-20 21:25:12 +00:00
Niklas Baumgardner 6bf30f3a8f Bug 1654054 - Fluent migration for videocontrols. r=fluent-reviewers,mconley,flod
Depends on D139742

Differential Revision: https://phabricator.services.mozilla.com/D143622
2022-04-20 21:22:45 +00:00
Mike Conley 41ac19ba0f Bug 1654054 - Port videocontrols to Fluent. r=mconley,fluent-reviewers,pip-reviewers,flod
Original patch by Guanlin Cheng <chenggu3@msu.edu>.

Differential Revision: https://phabricator.services.mozilla.com/D139742
2022-04-20 21:22:45 +00:00
Andrew McCreight 5ec46e3cef Bug 1764370 - Use NS_GET_IID instead of NS_DEFINE_IID for PRIVATE_IDBREQUEST_IID. r=dom-workers-and-storage-reviewers,asuth
Create a new fake class so that NS_GET_IID can be used instead of
NS_DEFINE_IID.

Differential Revision: https://phabricator.services.mozilla.com/D143509
2022-04-20 21:09:27 +00:00
Cristian Tuns 467d2abfd0 Backed out 16 changesets (bug 1752332) for causing gtest failures CLOSED TREE
Backed out changeset 2523f5463789 (bug 1752332)
Backed out changeset 8d2932869cbd (bug 1752332)
Backed out changeset 7d159898e81d (bug 1752332)
Backed out changeset 5b9bbe252fec (bug 1752332)
Backed out changeset aeb79413e987 (bug 1752332)
Backed out changeset c184c517de91 (bug 1752332)
Backed out changeset 1bc4f1780f37 (bug 1752332)
Backed out changeset 2b78f295d903 (bug 1752332)
Backed out changeset 21f015b60220 (bug 1752332)
Backed out changeset a74095dfe3da (bug 1752332)
Backed out changeset 4b04bf33486e (bug 1752332)
Backed out changeset 8566711743a8 (bug 1752332)
Backed out changeset eec507d87b2b (bug 1752332)
Backed out changeset ef50d2618c7f (bug 1752332)
Backed out changeset 1b4d316e7f20 (bug 1752332)
Backed out changeset e40a778cb93f (bug 1752332)
2022-04-20 17:23:11 -04:00
Boris Chiou 512b4a3fb3 Bug 1737918 - Part 4: Implement scroll() in layout and support nearest scroller. r=emilio
There is a known issue: if we change overflow property of the
scroll-container, we may have to update the scroll-linked animations of
its descendants. This may be very tricky, so I filled Bug 1765211 for it.

Differential Revision: https://phabricator.services.mozilla.com/D143420
2022-04-20 20:28:53 +00:00
Boris Chiou 0567aa6b83 Bug 1737918 - Part 3: Replace Scroller::Type with StyleScroller. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D143419
2022-04-20 20:28:53 +00:00
Boris Chiou 53830b1b34 Bug 1737918 - Part 2: Replace StyleScrollDirection with StyleAxis. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D143418
2022-04-20 20:28:53 +00:00
Boris Chiou e8ad45ee42 Bug 1737918 - Part 1: Add scroll() to animation-timeline for style system. r=emilio
scroll() is defined in the spec proposal, and there is a temporary spec:
https://drafts.csswg.org/scroll-animations-1/rewrite#scroll-notation.

The spec is still under development, so we don't drop the orignal
scroll-timeline at rule. Instead, we add a new scroll() notation to
animation-timeline, and support both syntax for now.

Differential Revision: https://phabricator.services.mozilla.com/D143417
2022-04-20 20:28:52 +00:00
Tom Ritter f625f33753 Bug 1752332: Update the preferences documentation r=KrisWright
Depends on D141422

Differential Revision: https://phabricator.services.mozilla.com/D141423
2022-04-20 20:21:49 +00:00
Tom Ritter c781409d77 Bug 1752332: Sanitize preferences in the shared memory region r=KrisWright
Before we would stick all prefs into an immutable shared memory
region and clear our HashMap.

Now we will stick all non-sanitized prefs into the immutable
shared memory region, save the sanitized prefs in a list
temporarily, clear the hashmap, and then repopulate the hashmap
with the sanitized prefs.

As a bit of underlying complexity, to do this we must do some
tricks with the Pref Name Arena which is a chunk of memory
dedicated to storing pref names. That goes away (and we want to
wipe it to save space) - so we just need to move the sanitized
pref names to a new arena.

Depends on D141421

Differential Revision: https://phabricator.services.mozilla.com/D141422
2022-04-20 20:21:48 +00:00
Tom Ritter 2787efa727 Bug 1752332: Optimize the crash checks in Check*Value functions r=KrisWright
We busted browser_preferences_usage.js by looking up a
preference too many times.

The reason we are now exceeding the pref-reading limit for
this pref is that inside ShouldSanitizePreference all of
our calls to Preferences::Something(pref_name) are causing
pref lookups.  _Most_ of the time when we are in
ShouldSanitizePreference, we got there from a place that has
the actual pref object; so change the function to take in a
Pref object.

Unfortunately, there is a place we do need to look it up
by name, and that's in Static Pref getters, so we need to
keep that function around (and expose it in Preferences.h)

To minimize code duplication (i.e. not having the exact same
code for ShouldSanitizePreference(Pref) and
ShouldSanitizePreference(PrefWrapper) we do some templating
tricks because even though they expose the same API, they are
not in a class hierarchy where we could just make one function
for a base class.

Depends on D141420

Differential Revision: https://phabricator.services.mozilla.com/D141421
2022-04-20 20:21:48 +00:00
Tom Ritter 3313c98eaf Bug 1752332: Remove the shouldSanitizeFunction member r=KrisWright
In the following patch we are going to change the signature of
ShouldSanitizePreference to take a Pref object.  Pref is only
known to the Preferences compilation unit; so to keep this member
(whose signature will change) we would need to expose the Pref
class. However it will only be a forward declaration, one could
not construct a Pref object in e.g. the gtest.

It is simpler to just remove the member entirely and call
ShouldSanitizePreference unconditionally - the member was only
used for the gtest, and while the gtest will be less robust
because of this change, it will still do some testing.

Depends on D141419

Differential Revision: https://phabricator.services.mozilla.com/D141420
2022-04-20 20:21:47 +00:00
Tom Ritter 59092e70b4 Bug 1752332: Add preferences that control whether we send user data and/or crash r=KrisWright
Depends on D141418

Differential Revision: https://phabricator.services.mozilla.com/D141419
2022-04-20 20:21:47 +00:00
Tom Ritter 9b9b78005e Bug 1752332: Crash if a pref is accessed that shouldn't be r=KrisWright
Depends on D141417

Differential Revision: https://phabricator.services.mozilla.com/D141418
2022-04-20 20:21:47 +00:00
Tom Ritter 0268186690 Bug 1752332: Improve the blocklisting behavior r=KrisWright
For all subprocesses, if a preference is in the blocklist,
sanitize it.  (This preserves the IPC optimization behavior,
kind of.  We now generate IPC traffic when we didn't before,
but we omit the value. Values were previously capped at 4 KiB
now they're 0 bytes.)

For Web Content processes, we sanitize a preference if it is
in the blocklist, or if does not have a Default value (i.e.
it is dynamically named). There is an exception list for
dynamically named preferences we know we need though.

In subprocesses, we know if a preference was sanitized
by checking its Sanitized bit.

Depends on D141416

Differential Revision: https://phabricator.services.mozilla.com/D141417
2022-04-20 20:21:46 +00:00
Tom Ritter 43277d4358 Bug 1752332: Make SerializePreferences correctly sanitize preferences r=KrisWright,necko-reviewers,dragana
To do the correct thing in Preferences::SerializePreferences
(which is used during subprocess startup) we need to know if
the destination process is a web content process or not.
We add parameters to
SharedPreferenceSerializer::SerializeToSharedMemory that let
us figure that out.

In Preferences::SerializePreferences we fix the call to
aShouldSanitizeFn to pass the correct destination.

Depends on D141415

Differential Revision: https://phabricator.services.mozilla.com/D141416
2022-04-20 20:21:46 +00:00
Tom Ritter 80d036e297 Bug 1752332: Remove the blocklisting check in ::OnPreferenceChange r=KrisWright
Now that we send everything (except sometimes the user value
is sanitized) we should no longer perform this check.

This is also good because it eliminates security code you
have to have (and thus accidently omitting it is a
vulnerability) and changes it to security code that happens
automatically, and is enforced by the compiler (via mandatory
ctor argument.)

Depends on D141414

Differential Revision: https://phabricator.services.mozilla.com/D141415
2022-04-20 20:21:45 +00:00
Tom Ritter aa6e89410f Bug 1752332: Remove some prefs from the blocklist r=KrisWright
Depends on D141413

Differential Revision: https://phabricator.services.mozilla.com/D141414
2022-04-20 20:21:45 +00:00
Tom Ritter 1cc103189e Bug 1752332: Correctly populate the sanitized bit for PreferenceUpdate r=KrisWright
PreferenceUpdate is the IPC message notifying a child process
that a preference has been updated. To correctly decide whether
or not a value should be sanitized in it, we need to know
what type of destination process it is; we add parameters to
Preferences::GetPreference indicating that.

Inside of ToDomPref we call ShouldSanitizePreference to
correctly populate the sanitized bit.

Depends on D141412

Differential Revision: https://phabricator.services.mozilla.com/D141413
2022-04-20 20:21:44 +00:00
Tom Ritter e9bd1a1b96 Bug 1752332: Rename ShouldSyncPreference to ShouldSanitizePreference r=KrisWright
This simplifies the number of negations needed,
and makes things easy to understand. I think
anyway; I know that without renaming it I made
several annoying-to-diagnose negation errors...

Depends on D141411

Differential Revision: https://phabricator.services.mozilla.com/D141412
2022-04-20 20:21:44 +00:00
Tom Ritter a7e00d1b86 Bug 1752332: Tell ShouldSyncPreference if the destination is a web content process r=KrisWright
A couple places where it might be a web content process
still pass 'false' - this will be corrected in a later
patch.

Depends on D141410

Differential Revision: https://phabricator.services.mozilla.com/D141411
2022-04-20 20:21:44 +00:00
Tom Ritter a77e0fbeb2 Bug 1752332: Move ShouldSyncPreferences to Preferences module r=KrisWright
Depends on D141409

Differential Revision: https://phabricator.services.mozilla.com/D141410
2022-04-20 20:21:43 +00:00
Tom Ritter b5a0bee961 Bug 1752332: Rename references to parent-only pref structures r=KrisWright
We're going to be using them in more contexts, so generalize
the name.

Depends on D141408

Differential Revision: https://phabricator.services.mozilla.com/D141409
2022-04-20 20:21:43 +00:00
Tom Ritter f0860a2493 Bug 1752332: Add a sanitized property to prefs r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D141408
2022-04-20 20:21:42 +00:00
Tim Giles ce01cc932d Bug 1744772 - Fix default avatar from appearing on top of initial character avatar. r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D144190
2022-04-20 19:16:59 +00:00
Mozilla Releng Treescript 737e136e7e no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
da -> 14a24d982d63a91d470c6657c2903ae16763170b
el -> 061a0dd45efc83c59949ab3efc4d34cc80b1b8dd
fy-NL -> 411c2f3a7b6bb2e5b592707e84f77074c99df822
hye -> df4fb1e1f2b9c7600461bd378b1a97499ada3b7f
ia -> c3f76a3ff38f1870d4f33da82eb2a28fef366ad0
kab -> 624f45ff32141dbf0680d10e1bcfc0588218a9a5
rm -> 2125c8a9e4c427d6e11545da96c2d90e82fe18f6
ru -> 72efcfff8d6fc8759aa2cc5a37cd88d315c0d199
2022-04-20 19:03:43 +00:00
Steve Fink 0255bfd77a Bug 1760811 - Make CCSlice markers show up in the timeline again r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D143962
2022-04-20 18:56:46 +00:00
Noemi Erli 276b91ca80 Backed out changeset 7985a1fa0789 (bug 1764768) for causing multiple failures CLOSED TREE 2022-04-20 22:25:02 +03:00
az 77c47db916 Bug 1764846 - Extend the return value of PDM's support methods to allow distinguishing between HW/SW support. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D143800
2022-04-20 18:44:48 +00:00
az 2607db324d Bug 1652950 - Unprefix mozPreservesPitch, update corresponding tests r=emilio,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D143237
2022-04-20 18:43:47 +00:00
Drew Willcoxon 8459701a18 Bug 1764669 - Record a block ping for blocked Firefox Suggest suggestions. r=nanj,daisuke
* Add a new block ping. I called it "block" to be consistent with internal
  naming in urlbar/quick suggest, but let me know if you'd prefer "dismiss"
* Add a `iab_category` property to suggestion objects returned from
  UrlbarQuickSuggest (i.e., remote settings. Merino will separately need to
  include this in its suggestions too)
* Add a new `sponsoredIabCategory` payload property to quick suggest results so
  we can record `iab_category` in the ping
* Modify existing tests to include `iab_category` in mock sponsored suggestions
  and `sponsoredIabCategory` in the expected payloads
* Replace the several QuickSuggestTestUtils functions for checking pings with a
  single function that makes sure only the specified pings are recorded and
  nothing more

Depends on D143331

Differential Revision: https://phabricator.services.mozilla.com/D143674
2022-04-20 18:37:23 +00:00
Greg Tatum 85d131c3dc Bug 1761835 - Add a test for switching locales and string bundles; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D144032
2022-04-20 18:02:02 +00:00
Dana Keeler 7b106018a8 Bug 1763524 - extend CLIENT_CERTIFICATE_SCAN_TIME telemetry probe data-review=travis_ r=jschanck
Depends on D143859

Differential Revision: https://phabricator.services.mozilla.com/D143860
2022-04-20 17:59:01 +00:00
Dana Keeler abdfd94799 Bug 1763524 - handle the builtin roots module better when scanning for client certificates r=jschanck
Scanning for client certificates involves looking through each slot in each
PKCS#11 module. There may be many certificates that don't have corresponding
private keys in the NSS softoken, so it's more efficient to search for private
keys and then find any matching certificates. This reasoning also applies to
the NSS builtin roots module, which is the change this patch makes.

Differential Revision: https://phabricator.services.mozilla.com/D143859
2022-04-20 17:59:01 +00:00
David Parks ee531e5e71 Bug 1614218: Clean up horizontal/vertical mixup in Windows widget r=cmartin
InvalidateNonClientRegion mixed up these constants.  They seem to always map to the same value on Windows so this doesn't change any behavior.

Depends on D143389

Differential Revision: https://phabricator.services.mozilla.com/D143390
2022-04-20 17:54:48 +00:00
David Parks 527ad9bf71 Bug 1614218: Do not adjust for resize region when maximized on Windows r=emilio
Bug 618353 introduced padding in the non-client area at the top of the Windows widget that compensates for a bug in Windows that causes DwmDefWindowProc to ignore mouse events (and, by extension, window buttons) on maximized windows.  The padding is then un-added when we define the client region for WM_NCCALCSIZE, making it functionally a no-op.
That predates Windows 10.  On Windows 10+, this "fix" exposes a new Windows bug where we sometimes get undrawn regions on adjacent monitors.  Windows is supposed to clip the regions of the maximized window that extend to other monitors but the undrawn regions are the result when it doesn't.
We don't need the fix from bug 618353 on Windows 10+ -- we use non-native window buttons and therefore don't run into the Windows bug.  This patch limits the padding to Windows 7/8.1.

Differential Revision: https://phabricator.services.mozilla.com/D143389
2022-04-20 17:54:47 +00:00
Dan Mosedale 307e28b907 Bug 1612986 - fix about:welcome/newtab/asrouter unit-test code-cov info, r=emcminn
This is a follow-on fix for the bug in question.  It changes the options used for building lcov.info so that the full m-c path gets included, so that https://coverage.moz.tools/ will start reflecting our unit test coverage.

Differential Revision: https://phabricator.services.mozilla.com/D144069
2022-04-20 17:36:35 +00:00
Max 2085d6068e Bug 1762499 - Add video wrapper with subtitle support for piped.kavin.rocks and piped.silkky.cloud. r=niklas,kpatenio
Added video wrapper in correct alphabetical location.

Rebased to fix conflict with other landed wrappers.

Differential Revision: https://phabricator.services.mozilla.com/D142638
2022-04-20 17:26:36 +00:00