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

792337 Коммитов

Автор SHA1 Сообщение Дата
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
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
David Shin 9bf40b126b Bug 1765426 - Use longer timeout for WPT contain-inline-size-replaced.html. r=dholbert
With the shorter timeout, and with the chaos mode flag
set to 0xfb, this test can surpass the "slow" time
threshold, which then is marked as a failure.

Differential Revision: https://phabricator.services.mozilla.com/D144177
2022-04-20 17:25:57 +00:00
Emilio Cobos Álvarez 485bae6d11 Bug 1764768 - Don't truncate viewport units at computed value time. r=dholbert
Instead, make the behavior consistent across all <length-percentage>
values (by truncating instead of rounding). This is the already-existing
behavior for calc() and percentages, but with this patch we also apply
it to plain length-flavored <length-percentage> values (this is needed
to avoid regressing things like bug 989802).

Regular <length>s keep rounding, to preserve existing behavior. We can
consider changing that in a follow-up if need be.

Differential Revision: https://phabricator.services.mozilla.com/D143857
2022-04-20 17:22:36 +00:00
Tom Ritter 400109922f Bug 1763991: Add ed to the Updatebot docker image r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D144200
2022-04-20 17:22:02 +00:00
Niklas Baumgardner 30dba333d3 Bug 1763243 - Increase text-track width on PiP windows. r=pip-reviewers,desktop-theme-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D143089
2022-04-20 17:00:13 +00:00
Jim Blandy dab2ea0580 Bug 1765462: Update wgpu to 0b61a191 (2022-4-18) r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D144074
2022-04-20 16:29:04 +00:00
Tom Ritter e726a40dcf Bug 1763991: Re-orient patches to align with mach vendor r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D143632
2022-04-20 16:18:24 +00:00
Tom Ritter 5f0238c1f0 Bug 1763991: Let Updatebot update libvpx r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D143631
2022-04-20 16:18:19 +00:00
Markus Stange dace73a464 Bug 1759581 - Use clamped(). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D141016
2022-04-20 16:16:40 +00:00
Markus Stange 2526d5e696 Bug 1759581 - Leave rate as a TimeDuration and don't convert it to milliseconds. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D141015
2022-04-20 16:16:40 +00:00
Markus Stange 7160d718e1 Bug 1759581 - Use different timeForOutsideTick variables in the different paths. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D141014
2022-04-20 16:16:39 +00:00
Markus Stange c2d0f30e77 Bug 1759581 - Move more code around. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D141013
2022-04-20 16:16:39 +00:00
Markus Stange c5e52ed556 Bug 1759581 - Introduce more TimeStamp variables and make the nested tick handling more explicit. r=smaug
Unlike https://phabricator.services.mozilla.com/D141012, this doesn't change behavior.

Depends on D141011

Differential Revision: https://phabricator.services.mozilla.com/D143757
2022-04-20 16:16:39 +00:00
Markus Stange 00f93086fd Bug 1759581 - Move some code around. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D141011
2022-04-20 16:16:38 +00:00
Markus Stange 6f8df8d742 Bug 1759581 - Return early if RefreshDriverVsyncObserver is notified after its timer has gone away. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D141010
2022-04-20 16:16:38 +00:00
Joel Maher 0b9a381445 Bug 1765461 - skip a51 condprof tasks by default. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D144196
2022-04-20 16:16:30 +00:00
Cristian Tuns 8cf35d7033 Backed out 12 changesets (bug 1743834, bug 1765554) for causing reftest failures CLOSED TREE
Backed out changeset e4045f9906cf (bug 1765554)
Backed out changeset e2e3a95faccd (bug 1743834)
Backed out changeset 06a4c7ba1807 (bug 1743834)
Backed out changeset 322ac397ad9c (bug 1743834)
Backed out changeset f1aaa967ed6d (bug 1743834)
Backed out changeset 3728fcbd5753 (bug 1743834)
Backed out changeset 4d427e0ca400 (bug 1743834)
Backed out changeset 3000680ad5f4 (bug 1743834)
Backed out changeset 048e93d0a274 (bug 1743834)
Backed out changeset 32210507c793 (bug 1743834)
Backed out changeset b15369c023af (bug 1743834)
Backed out changeset b03a509cbe7e (bug 1743834)
2022-04-20 13:30:30 -04:00
Cristian Tuns 6e25a12cb7 Backed out 16 changesets (bug 1752332) for causing multiple failures on StaticPrefList_media.h
Backed out changeset ec6a5f016318 (bug 1752332)
Backed out changeset 10ac6886fa5e (bug 1752332)
Backed out changeset d37dec5c0d9e (bug 1752332)
Backed out changeset 258d19fe4e28 (bug 1752332)
Backed out changeset 52f6b46250a3 (bug 1752332)
Backed out changeset ab5c00d2fb02 (bug 1752332)
Backed out changeset d72dc14eeafd (bug 1752332)
Backed out changeset 061cdf612d0e (bug 1752332)
Backed out changeset 26707a82d896 (bug 1752332)
Backed out changeset 01ca344dedbf (bug 1752332)
Backed out changeset 22c6c04046b1 (bug 1752332)
Backed out changeset ce809df435e1 (bug 1752332)
Backed out changeset 185026a397b0 (bug 1752332)
Backed out changeset 9dfd530f26b8 (bug 1752332)
Backed out changeset deadcb975866 (bug 1752332)
Backed out changeset 4944ae34f15b (bug 1752332)
2022-04-20 13:10:55 -04:00
Amy Churchwell 00bce26959 Bug 1761313 - Update colorways meta data to include collection property. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D143435
2022-04-20 16:00:32 +00:00
Joel Maher d468c10ff2 Bug 1765223 - Adjust Android compiled tests to display 1proc. r=agi,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D144024
2022-04-20 15:59:23 +00:00
Katherine Patenio d7faa70d7d Bug 1682117 - enable PiP mute toggle in release. r=pip-reviewers,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D144197
2022-04-20 15:57:51 +00:00
Nicolas Chevobbe 94239d0425 Bug 1765239 - [devtools] Turn SplitView into an ES6 class. r=ochameau.
Depends on D144149

Differential Revision: https://phabricator.services.mozilla.com/D144150
2022-04-20 15:47:05 +00:00
Nicolas Chevobbe 7565d876bd Bug 1765239 - [devtools] Fix SplitView.jsm ESLint errors. r=ochameau.
Depends on D144148

Differential Revision: https://phabricator.services.mozilla.com/D144149
2022-04-20 15:47:05 +00:00
Nicolas Chevobbe 06e5af3c22 Bug 1765239 - [devtools] Move SplitView.jsm to styleeditor. r=ochameau.
It's only used here, so let's move it back here

Differential Revision: https://phabricator.services.mozilla.com/D144148
2022-04-20 15:47:05 +00:00
Tom Ritter 7c9b633202 Bug 1752332: Update the preferences documentation r=KrisWright
Depends on D141422

Differential Revision: https://phabricator.services.mozilla.com/D141423
2022-04-20 15:44:42 +00:00
Tom Ritter 5a394f247e 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 15:44:41 +00:00
Tom Ritter 5a256881db 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 15:44:41 +00:00
Tom Ritter ab308fb14f 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 15:44:40 +00:00
Tom Ritter 03973fd595 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 15:44:40 +00:00
Tom Ritter fd215c5f5e 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 15:44:40 +00:00
Tom Ritter 27e95235b4 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 15:44:39 +00:00
Tom Ritter 696098706b 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 15:44:39 +00:00
Tom Ritter ef01345335 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 15:44:39 +00:00
Tom Ritter 088a040c54 Bug 1752332: Remove some prefs from the blocklist r=KrisWright
Depends on D141413

Differential Revision: https://phabricator.services.mozilla.com/D141414
2022-04-20 15:44:38 +00:00
Tom Ritter c674d31eba 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 15:44:38 +00:00
Tom Ritter d9fb7a4c74 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 15:44:37 +00:00
Tom Ritter bc1d73db3c 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 15:44:37 +00:00
Tom Ritter 288e606baf Bug 1752332: Move ShouldSyncPreferences to Preferences module r=KrisWright
Depends on D141409

Differential Revision: https://phabricator.services.mozilla.com/D141410
2022-04-20 15:44:37 +00:00