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

777378 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey 9caeaefc7d Bug 1696504 - Bump macOS builds to SDK 11.0. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D131588
2021-11-23 02:29:31 +00:00
Mike Hommey a154421f99 Bug 1740042 - Use llvm-readelf instead of readelf when available. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D130949
2021-11-23 02:28:18 +00:00
Hiroyuki Ikezoe 26f550200e Bug 1742495 - Drop ScrollOrigin argument from ScrollToCSSPixelsApproximate. r=botond
And rename the function to ScrollToCSSPixelsForApz.

Differential Revision: https://phabricator.services.mozilla.com/D131854
2021-11-23 02:05:33 +00:00
Paul Bone 9a5f36b0dd Bug 1735482 - Don't use a QuantumWide size class on MacOS r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D131576
2021-11-23 02:01:59 +00:00
Sandor Molnar 57c58ccb99 Backed out changeset 558b823bb68b (bug 1741780) on devs request. CLOSED TREE 2021-11-23 03:38:26 +02:00
Sandor Molnar 96d7010bce Backed out changeset e24b51679d83 (bug 1741781) on devs request. a=backout 2021-11-23 03:37:46 +02:00
Jed Davis 3ef6a5c028 Bug 1698778 - Allow using VA-API in the RDD process. r=alwu,stransky
The previous patches mean that VA-API shouldn't cause sandbox violations
in the RDD process, so there's no need to lock it out.

This patch does **not** change the prefs to enable it
(`media.rdd-ffmpeg.enabled` and `media.ffmpeg.vaapi.enabled`), but now
those prefs will be honored if they are flipped, to allow testing.

Differential Revision: https://phabricator.services.mozilla.com/D131681
2021-11-23 01:14:41 +00:00
Jed Davis 23ba2c71df Bug 1698778 - Loosen the RDD sandbox policy to support VA-API (including Intel VCS2). r=gcp
Changes:

1. For the `intel` drivers [on newer hardware][VCS2], access to SysV IPC
   is granted.  There is a slight restriction: `semget` and `shmget` are
   restricted to the fixed `key_t` value used by the driver; however,
   the other calls take shm/sem identifiers, which are dynamically
   assigned and globally scoped, so an attacker could still access
   other resources.  This is considered a reasonable tradeoff for not
   needing to allow this (or, eventually, any GPU access) in the content
   process, which is much easier for malicious content to attack than
   RDD.

2. Access to devices in `/dev/dri` and the `DRM_IOCTL_*` ioctls (type `'d'`).

3. Read access to the parts of sysfs used by Mesa to do device detection;
   again, given the choice we'd rather allow this in RDD than content.

4. Read access to directories containing libraries, for plugin loading.

5. Allowing `kcmp` in the special case of comparing the process's
   own fds, for `amdgpu` (already allowed for content).

6. The `eventfd2` syscall, which we use in connection with dma-buf.

[VCS2]: https://github.com/intel/media-driver/blob/77b3b2a6c366/media_driver/linux/common/os/mos_os_specific.c#L1508-L1512

Differential Revision: https://phabricator.services.mozilla.com/D131680
2021-11-23 01:14:41 +00:00
Jed Davis 158787246c Bug 1698778 - Move several pieces of the seccomp-bpf policies into SandboxPolicyCommon. r=gcp
Minor functional changes:

1. `fcntl` `F_DUPFD_CLOEXEC` is now allowed everywhere instead of
   just content.  It's the obvious (and maybe only? and probably
   only portable) way for a library to `dup` and atomically set the
   close-on-exec flag, and appears harmless.

2. `ioctl`s used by the `isatty` function are denied with `ENOTTY` by
   default in all processes, instead of being treated as an invalid
   syscall, and this now applies to `TIOCGWINSZ` (used by musl) as well
   as `TCGETS` (used by glibc).  Nothing new is allowed here; it's just
   that this is treated as an expected denial.

3. Getting the real or effective user or group ID is allowed everywhere.
   Every process type except RDD previously did, and RDD soon will.  See
   also the new comment about why GMP may not always need it, but that
   it's not very meaningful to block.

Refactoring, no functional change intended:

1. The policy for the `kcmp` syscall as used by Mesa's `amdgpu` driver
   is now in a protected method of SandboxPolicyCommon, but is used only
   in the content process as previously.  A later patch will also apply
   it to the RDD process, so this avoids code duplication.

Differential Revision: https://phabricator.services.mozilla.com/D131679
2021-11-23 01:14:41 +00:00
Jed Davis ac85827e83 Bug 1698778 - Allow filtering SysV IPC call arguments. r=gcp
On 32-bit x86, Linux originally used a single system call, ipc(2), for
all SysV IPC.  This is similar to socketcall(2), but the arguments are
passed directly (shifted by one position) instead of indirected via
a pointer, so seccomp-bpf can filter them normally.  Also similar to
socketcall(2), individual syscalls were added later (in kernel 5.1,
vs. 4.3 for socket calls), so the policy needs to handle both of them,
adjusting argument offsets as needed.  This patch adds an argument to
`EvaluateIpcCall` to allow that.

Differential Revision: https://phabricator.services.mozilla.com/D131678
2021-11-23 01:14:40 +00:00
Glenn Watson 49842aaa34 Bug 1741781 - Simplify complex clip reject/accept logic r=gfx-reviewers,nical
Remove the dependencies on transforming both the prim and clips
into world space, by relying on the fact that in the complex
transform case, the clip spatial nodes are ancestors of the
primitive spatial node.

This allows us to work in the same of the clip spatial node. For
now, this is only applied to the CPU accept/reject code, however
in future will allow us to optimize and simplify the GPU mask
rendering code significantly.

Differential Revision: https://phabricator.services.mozilla.com/D131464
2021-11-23 00:42:12 +00:00
Marcos Cáceres b5eeb2dfde Bug 1741343 - getGamePads() should return empty array if document is not fully active r=saschanaz
see https://github.com/w3c/gamepad/pull/157

Differential Revision: https://phabricator.services.mozilla.com/D131321
2021-11-23 00:20:13 +00:00
Kagami Sascha Rosylight fb4d69933c Bug 1741186 - Add test r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131699
2021-11-22 22:37:52 +00:00
Kagami Sascha Rosylight 2fd7d83958 Bug 1741186 - Add WorkerRef outside of the constructor r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131698
2021-11-22 22:37:52 +00:00
Kagami Sascha Rosylight 220a38db00 Bug 1741181 - NotifyRequestDestroy() only when the manager is alive r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131535
2021-11-22 22:30:34 +00:00
Matthew Gaudet db1fb88e14 Bug 1742493 - Avoid ambiguity of UnwrapArrayBuffer in ArrayBufferObject.cpp r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D131852
2021-11-22 22:29:30 +00:00
lamoure6 3478e8ae47 Bug 1719938 - Removed remaining (non-negated) -moz-proton media queries. r=mhowell,mtigley,emilio
Differential Revision: https://phabricator.services.mozilla.com/D125328
2021-11-22 22:10:33 +00:00
Sylvestre Ledru d6ba1a7419 Bug 1707591 - ride along: update of the flake8 dep to match black's r=linter-reviewers,ahal
Depends on D131717

Differential Revision: https://phabricator.services.mozilla.com/D131718
2021-11-22 22:10:04 +00:00
Sylvestre Ledru c9ed427926 Bug 1707591 - ride along: update of the pylint dep to match black's r=linter-reviewers,ahal
Depends on D130965

Differential Revision: https://phabricator.services.mozilla.com/D131717
2021-11-22 22:10:03 +00:00
Sylvestre Ledru 70be2344fc Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=ahal,webdriver-reviewers,perftest-reviewers,whimboo,gerard-majax,alexandru.irimovici
This changed with this:
https://github.com/psf/black/pull/1740

Depends on D130964

Differential Revision: https://phabricator.services.mozilla.com/D130965
2021-11-22 22:10:03 +00:00
Sylvestre Ledru 0bd2d56002 Bug 1707591 - Update to black 21.11b1 r=gerard-majax
Depends on D131716

Differential Revision: https://phabricator.services.mozilla.com/D130964
2021-11-22 22:10:03 +00:00
Sylvestre Ledru 0369d71fc0 Bug 1707591 - Parse the new output of black --version r=linter-reviewers,ahal
Depends on D126202

Differential Revision: https://phabricator.services.mozilla.com/D131716
2021-11-22 22:10:02 +00:00
Renovate Bot d7e0dac10a Bug 1731749 - Update dependency pylint to v2.11.1 r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D126202
2021-11-22 22:10:02 +00:00
Zibi Braniecki 07f49c8f68 Bug 1742106 - Add basic C++ Localization gtests. r=nordzilla,eemeli,emilio
Differential Revision: https://phabricator.services.mozilla.com/D131615
2021-11-22 21:57:34 +00:00
Evgenia Kotovich 917e91428e Bug 1674666 - Ctrl/Cmd+w should close PiP window. r=mtigley,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D129106
2021-11-22 21:39:09 +00:00
Alexis Beingessner 285ecd4b8f Bug 1741205 - remove tools/crashreporter/minidump_stackwalk r=gsvelto
This version of minidump-stackwalk is now replaced with rust-minidump's
minidump-stackwalk, which we build from a FETCH. Not touching the other
stuff in this directory because I have no idea what it is.

Differential Revision: https://phabricator.services.mozilla.com/D131316
2021-11-22 20:33:34 +00:00
Alexis Beingessner 0e8ed332d1 Bug 1741205 - Use rust-minidump's minidump-stackwalk for mozcrash.py r=gsvelto,KrisWright
This is the first step in replacing a huge pile of our breakpad-based infra
with our new implementation (rust-minidump). This stackwalker is only used
for reporting crashes in local builds and CI, so it's a good first deploy.

Although most of the work on rust-minidump has been focused on the JSON output,
this uses the --human output, because it's primarily intended for humans to
directly read. There is however some minor parsing done on this format. This
is not *strictly* supported by --human (it has no schema) but it's not something
we plan to break. (This parsing is pre-existing, just recording the facts.)

The new build configs/scripts are hybridized from fix-stacks and dump_syms,
as this basically is a hybrid of the two. In particular it needs the openssl
vendoring tricks that dump_syms uses, but is a target binary that prefers
win32 over win64 (like fix-stacks).

Technically a regression but probably just culling legacy cruft at this point:
this patchset removes support for building a local copy of minidump-stackwalk
from source. You must now download a copy built on task-cluster using mozboot.
mozboot *already* did this, which is why this feature appears to be legacy cruft
-- there was little reason to build a local copy.

However rust-minidump's minidump-stackwalk has a far better portability story,
so you can build+install your own local copy by just running:

cargo install minidump-stackwalk

Differential Revision: https://phabricator.services.mozilla.com/D131315
2021-11-22 20:33:34 +00:00
Sandor Molnar e524498137 Backed out 2 changesets (bug 1709267) for causing dt failures in browser_about-devtools-toolbox_reload. CLOSED TREE
Backed out changeset da9d3297348d (bug 1709267)
Backed out changeset ec5eb72262cc (bug 1709267)
2021-11-22 22:17:35 +02:00
Chris H-C 3b5d233474 Bug 1741674 - Use the new fog_test_reset_fog method to clear data before instrumentation tests r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D131703
2021-11-22 20:07:39 +00:00
Chris H-C aaa9b4dc15 Bug 1741674 - Expose a test_reset_fog to be able to reset Glean in tests r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D131702
2021-11-22 20:07:38 +00:00
Chris H-C 5ee0631774 Bug 1741674 - Record active_ticks and uri_count in Glean as well as Telemetry r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D131641
2021-11-22 20:07:38 +00:00
Chris H-C 8d0d430403 Bug 1741674 - Advise in each metrics.yaml that we have docs for adding metrics r=TravisLong,nalexander
Depends on D131639

Differential Revision: https://phabricator.services.mozilla.com/D131640
2021-11-22 20:07:38 +00:00
Chris H-C 0ad14ed461 Bug 1737345 - Warn in metrics_yaml that changes need a pipeline bug r=TravisLong
Depends on D131638

Differential Revision: https://phabricator.services.mozilla.com/D131639
2021-11-22 20:07:37 +00:00
Chris H-C 9666e1debe Bug 1741674 - Add some FOG logging r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D131638
2021-11-22 20:07:37 +00:00
Author: Imanol Fernandez d3b233842e Bug 1742430 - Allow using WebXR without the old WebVR spec enabled. r=emilio
MANUAL PUSH: Contributor send patch not via Phabricator
2021-11-22 20:25:46 +01:00
Alexandre Poirot 8f7f5f4ad4 Bug 1709267 - [devtools] Add support for target switching in about:debugging. r=jdescottes
The challenges here are:
* xpcshell tests still don't support the watcher actor and server side targets. So we have to ensure still using client side target fetched via Descriptor.getTarget RDP request. (We still also need that for WebExtension)
* some tests weren't spawning the TargetCommand while querying TabDescriptor.getTarget. I tuned them to call TargetCommand.startListening so that we start instantiating server side targets, including the top level one retrieved via TabDescriptor.getTarget.

Otherwise, thanks to this patch a few check can now be moved from `if (isLocalTab)` to `if (isTabDescriptor)`.

Differential Revision: https://phabricator.services.mozilla.com/D130761
2021-11-22 18:57:32 +00:00
Alexandre Poirot 32ab65debf Bug 1709267 - [devtools] Remove unused "target" query parameter from toolbox location. r=jdescottes
This wasn't used except for a test and wasn't working with server side targets.
Making this compatible with SST wasn't trivial, so I went for removing this.

Differential Revision: https://phabricator.services.mozilla.com/D130919
2021-11-22 18:57:32 +00:00
Alexandre Poirot 003720c295 Bug 1741669 - [devtools] Implement a faster TargetCommand.getParentTarget. r=nchevobbe
The original intent was to do a synchronous implementation,
but this is hard to do while keeping backward compat.

Differential Revision: https://phabricator.services.mozilla.com/D131398
2021-11-22 18:55:55 +00:00
Alexandre Poirot ce06e78015 Bug 1741652 - [devtools] Expose `commands` to all protocol.js fronts. r=nchevobbe
This help any front to interact with commands, which is frequently useful.
In the long run, all fronts should be slowly converted to become commands.

Differential Revision: https://phabricator.services.mozilla.com/D131397
2021-11-22 18:55:55 +00:00
Sandor Molnar 2594d2ac61 Backed out 2 changesets (bug 1733659) for causing build bustages. CLOSED TREE
Backed out changeset 9e23aa79fda9 (bug 1733659)
Backed out changeset e316768591c0 (bug 1733659)
2021-11-22 20:51:20 +02:00
dmeehan 76b501598c Bug 1741451 - Replace inBytes.size == 0 with inBytes.empty(). r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D131796
2021-11-22 18:38:27 +00:00
Sebastian Hengst 98767c3d56 Bug 1716866 - add back timeout expectation on Android for html/semantics/embedded-content/the-iframe-element/iframe_sandbox_block_modals-4.html
Differential Revision: https://phabricator.services.mozilla.com/D131813
2021-11-22 18:36:55 +00:00
Dan Minor 52e65406e5 Bug 1733659 - Clean up Locale naming style in make_intl_data.py; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D131512
2021-11-22 18:32:42 +00:00
Dan Minor bcbfdb6d73 Bug 1733659 - Clean up naming style in Locale; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D131511
2021-11-22 18:32:41 +00:00
Shane Caraveo 5f84116fa5 Bug 1740634 fix anchor link in changelog r=agi
Differential Revision: https://phabricator.services.mozilla.com/D131804
2021-11-22 18:11:45 +00:00
Sebastian Hengst 17e3f203d3 Bug 1716866 - set html/semantics/embedded-content/the-iframe-element/iframe_sandbox_block_modals-4.html as passing
Test started to pass after bug 1716866 had landed.

Differential Revision: https://phabricator.services.mozilla.com/D131810
2021-11-22 17:39:58 +00:00
Sylvestre Ledru e599f6c535 Bug 1731749 - ride along/pylint: remove unused global declaration r=mhentges
Fixes:
Using global for 'ALWAYS_ALLOWED_KEYS' but no assignment is done

Differential Revision: https://phabricator.services.mozilla.com/D131720
2021-11-22 16:55:30 +00:00
Iulian Moraru 6cab1c251e Backed out changeset 85fdbf7e368a (bug 1735482) for causing OS X build bustages on mozjemalloc.cpp. CLOSED TREE 2021-11-22 19:01:35 +02:00
Vincent Couvert e0bbd80ba3 Bug 1742287 - Fix Windows configuration files path (missing backslashes) and make paths highlighted. r=firefox-build-system-reviewers,mhentges DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D131730
2021-11-22 16:43:33 +00:00
Paul Bone f7d8d8c80e Bug 1735482 - Don't use a QuantumWide size class on MacOS r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D131576
2021-11-22 16:40:52 +00:00