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

665609 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote bcfea34a74 Bug 1573720 - Convert ui.touch_activation.duration_ms to a static pref. r=botond
The commit also adds a missing StaticPrefs_dom.h include for APZEventState.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D41915

--HG--
extra : moz-landing-system : lando
2019-08-15 05:30:23 +00:00
Nicholas Nethercote cb6862ab2c Bug 1573720 - Convert ui.touch_activation.delay_ms to a static pref. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D41914

--HG--
extra : moz-landing-system : lando
2019-08-15 05:30:09 +00:00
Nicholas Nethercote 281d296163 Bug 1573720 - Convert network.auth.force-generic-ntlm-v1 to a static pref. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D41913

--HG--
extra : moz-landing-system : lando
2019-08-15 05:29:49 +00:00
Nicholas Nethercote 5e22e64603 Bug 1573720 - Convert security.view-source.reachable-from-inner-protocol to a static pref. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D41912

--HG--
extra : moz-landing-system : lando
2019-08-15 05:29:35 +00:00
Nicholas Nethercote 28020e4832 Bug 1573720 - Convert dom.forms.number.grouping to a static pref. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D41911

--HG--
extra : moz-landing-system : lando
2019-08-15 05:29:16 +00:00
Daisuke Akatsuka 53eecbbb23 Bug 1571653: Add a test for toggling subgrid. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D41701

--HG--
rename : devtools/client/inspector/grids/test/browser_grids_grid-list-subgrids.js => devtools/client/inspector/grids/test/browser_grids_grid-list-subgrids_01.js
extra : moz-landing-system : lando
2019-08-15 05:01:40 +00:00
Daisuke Akatsuka 401719fc2b Bug 1571653: Reshow as parent grid if the grid which we hid is a parent of a subgrid highlighting. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D41700

--HG--
extra : moz-landing-system : lando
2019-08-15 05:01:26 +00:00
Connor Brewster 7658b3e68d Bug 1573914 - Fix backdrop-filter jitter during animation due to snap offsets r=gw
Since the filtered-backdrop is 1:1 with the backdrop, we don't want any snap offsets to shift the contents

Differential Revision: https://phabricator.services.mozilla.com/D42042

--HG--
extra : moz-landing-system : lando
2019-08-15 00:09:40 +00:00
Connor Brewster 1a77c310c4 Bug 1573649 - Implement feOffset SVG filter primitive in WebRender r=nical
Differential Revision: https://phabricator.services.mozilla.com/D41840

--HG--
extra : moz-landing-system : lando
2019-08-14 20:14:25 +00:00
Ehsan Akhgari 41e991dd1f Bug 1573236 - Also allow collection in the main process for the single-process case
Differential Revision: https://phabricator.services.mozilla.com/D42070

--HG--
extra : moz-landing-system : lando
2019-08-15 03:39:17 +00:00
Jason Laster 1b0c3042de Bug 925269 - Enable/disable individual debugger statements. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D41838

--HG--
extra : moz-landing-system : lando
2019-08-14 23:01:26 +00:00
Alexander Surkov cfb8c8aef7 Bug 1573337 - remove XBL anon content filtering support from accessible tree traversal r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D42022

--HG--
extra : moz-landing-system : lando
2019-08-15 00:58:28 +00:00
Marco Zehe de9c156fb7 Bug 1501182 - Expose WAI-ARIA landmarks as landmark roles through accessibility APIs, r=Jamie
This change will bring us on par with what Chrome does. However, if the author makes an error in applying a landmark role to an interactive element, or other element where the landmark role is illegal, as defined in the [WAI-ARIA in HTML specification section 2](https://www.w3.org/TR/html-aria/#document-conformance-requirements-for-use-of-aria-attributes-in-html), the accessible properties will now be that of the landmark role, no longer that of the native host language element. This might make some elements less accessible due to author error than before, but we currently do not know of examples in the wild that actually expose this problem. This could only be solved by applying the rules from said table also in the user agents, but that is not specified anywhere.

Differential Revision: https://phabricator.services.mozilla.com/D41923

--HG--
extra : moz-landing-system : lando
2019-08-15 01:25:56 +00:00
Hiroyuki Ikezoe 56c1adb81e Bug 1573876 - Enable layout.viewport_contains_no_contents_area on test_viewport_metrics_on_landscape_content.html. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D42054

--HG--
extra : moz-landing-system : lando
2019-08-15 02:26:14 +00:00
Dorel Luca e97a0f11bd Backed out changeset 61dc2ad51719 (bug 1513855) for DevTools failures in devtools/client/framework/test/browser_browser_toolbox.js 2019-08-15 05:03:07 +03:00
Makoto Kato 8dc6501cfc Bug 1572639 - Use std::move to avoid -Wreturn-std-move warning. r=dragana
Actually, compiler outputs the following warning for android build.

```
35:44.69 warning: netwerk/protocol/http/nsHttpHandler.cpp:165:12 [-Wreturn-std-move] local variable 'deviceString' will be copied despite being returned by name
35:44.69 warning: netwerk/protocol/http/nsHttpHandler.cpp:167:10 [-Wreturn-std-move] local variable 'deviceModelId' will be copied despite being returned by name
```

We should use std::move to fix this.

Differential Revision: https://phabricator.services.mozilla.com/D41327

--HG--
extra : moz-landing-system : lando
2019-08-14 19:38:23 +00:00
Ting-Yu Lin 2531063b8b Bug 1573761 - Add a web-platform reftest multicol-breaking-nobackground-004.html r=dbaron
For a better symmetry between the multicol-breaking tests and their no
background variants, this patch adds a nobackground test for
multicol-breaking-004.html. This tests the same things as
multicol-breaking-004.html, but with two things removed: outer column's
blue column-rules and inner columns' background.

Differential Revision: https://phabricator.services.mozilla.com/D41903

--HG--
extra : moz-landing-system : lando
2019-08-14 23:16:01 +00:00
Makoto Kato c4cb964c8e Bug 1572613 - Use frame pointer based stack walker even if Android/x86 and Android/x86-64. r=jseward
Actually, we use clang for all Linux and Android platform, so it is no reason to use frame pointer based stack walker for LUL on Android/x86 and Android/x86-64 if no DWARF rule.

Differential Revision: https://phabricator.services.mozilla.com/D41320

--HG--
extra : moz-landing-system : lando
2019-08-13 07:34:29 +00:00
Timothy Nikkel 2a4e690cf4 Bug 1574016. Fix logic error in patch from bug 1547277. r=bradwerth
The fixed still worked because we get another SetBounds call right after with the same bounds. But it does mean we are doing some useless invalidation.

Differential Revision: https://phabricator.services.mozilla.com/D42059

--HG--
extra : moz-landing-system : lando
2019-08-15 01:28:11 +00:00
Lina Cambridge 1e3d00af59 Bug 1573738 - Test aborting application, not only merging. a=testonly
`SyncedBookmarksMirror::merge` is racy: the storage thread might finish
merging before it gets the cancellation signal. However, `apply` also
notifies observers and fetches records, which happen after we've
aborted our JS controller. Even if the Rust op isn't canceled in time,
we should still abort the remaining operations.

Differential Revision: https://phabricator.services.mozilla.com/D42065

--HG--
extra : moz-landing-system : lando
2019-08-15 01:28:50 +00:00
Nicholas Nethercote 80fa6900e1 Bug 1572590 - Indent conditionally-defined prefs in all.js. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D41304

--HG--
extra : moz-landing-system : lando
2019-08-15 00:02:04 +00:00
lesleynorton 7fa8371641 Bug 1569846: Add breach alert dismissal. r=MattN,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D41034

--HG--
extra : moz-landing-system : lando
2019-08-14 22:56:55 +00:00
Matthew Noorenberghe bb4f8fad6d Bug 1572118 - Actually enable about:logins breach-alerts by default
Differential Revision: https://phabricator.services.mozilla.com/D42043

--HG--
extra : moz-landing-system : lando
2019-08-14 22:18:19 +00:00
Justin Wood b8da9960b7 Fix release regression from Bug 1566298 - use 'en-US' so that tasks know to strip it out from path when looking for it in upstream tasks. r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D41997

--HG--
extra : moz-landing-system : lando
2019-08-15 00:00:47 +00:00
Nicholas Nethercote c18fcfff15 Bug 1572590 - Indent conditionally-defined prefs in StaticPrefList.yaml. r=KrisWright
The patch also indents some comments within conditional blocks, which improves
readability.

Differential Revision: https://phabricator.services.mozilla.com/D41303

--HG--
extra : moz-landing-system : lando
2019-08-15 00:02:00 +00:00
arthur.iakab b24139d864 Backed out changeset 5d42edca79d4 (bug 1560354) for causing mass failures on mozilla/Maybe.h:488 CLOSED TREE 2019-08-15 03:01:50 +03:00
Agi Sferro 6c7bbc59e7 Bug 1511129 - Add Request Desktop Site to GVE. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D42045

--HG--
extra : moz-landing-system : lando
2019-08-14 23:40:18 +00:00
Shane Caraveo a4ecf58fc1 Bug 1513855 ensure we notify quit application when running silent r=kmag
Running with -silent does not result in the quit application granted notification.
Without that notification, we have a deadlock in EnvironmentAddonBuilder where it blocks
beforeShutdown waiting on the XPIDatabase to load.

Differential Revision: https://phabricator.services.mozilla.com/D41877

--HG--
extra : moz-landing-system : lando
2019-08-14 21:36:19 +00:00
Ehsan Akhgari 9d97f1365f Bug 1573236 - Address review comments on part 1
This got left out of changeset a60edc93a434 during rebase.

Differential Revision: https://phabricator.services.mozilla.com/D42051

--HG--
extra : moz-landing-system : lando
2019-08-14 23:00:00 +00:00
Dragana Damjanovic 1ed2904c50 Bug 1560354 - Transform some nss types into gecko types. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D35566

--HG--
extra : moz-landing-system : lando
2019-07-02 21:26:36 +00:00
Frédéric Wang 0a2a769367 Bug 1573775 - Export a few MathML dir reftests to WPT. r=emilio
* Tweak headers to add title and WPT meta tags.
* Simplify text content and use the Ahem font to avoid "random" result.
* Remove dir-11 since it has already been exported to
  mathml/relations/css-styling/dynamic-dir-1.html by @bkardell
* Move dir-10 to mathml/presentation-markup/direction/direction-010.html
* Move dir-9 to mathml/presentation-markup/direction/direction-009.html
  and add a .ini file for the corresponding failure expectation (bug 787215).
* Move dir-8 to mathml/presentation-markup/direction/direction-008.html
  and add a .ini file for the corresponding failure expectation.
* Move dir-7 to mathml/presentation-markup/direction/direction-007.html
* Move dir-6 to mathml/presentation-markup/direction/direction-006.html

Differential Revision: https://phabricator.services.mozilla.com/D41922

--HG--
rename : layout/reftests/mathml/dir-6-ref.html => testing/web-platform/tests/mathml/presentation-markup/direction/direction-006-ref.html
extra : moz-landing-system : lando
2019-08-14 14:17:43 +00:00
Connor Brewster 87793c740b Bug 1573871 - Only create backdrop root containers when needed r=miko,mstange
Differential Revision: https://phabricator.services.mozilla.com/D42002

--HG--
extra : moz-landing-system : lando
2019-08-14 20:50:41 +00:00
Connor Brewster 6b1bbb5465 Bug 1573886 - Fix backdrop-filter blur errors due to incorrect scaling r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D42013

--HG--
extra : moz-landing-system : lando
2019-08-14 20:13:06 +00:00
Vijay Budhram 61e1244c3a Bug 1573946 - Remove unused FxA toolbar menu strings r=flod
Differential Revision: https://phabricator.services.mozilla.com/D42017

--HG--
extra : moz-landing-system : lando
2019-08-14 19:28:02 +00:00
Jed Davis d9661aa556 Bug 1479960 - Add unit tests for shared memory freezing. r=froydnj
Also refactor SharedMemoryBasic::SystemProtect to allow testing cases
that are expected to fail.

Depends on D26748

Differential Revision: https://phabricator.services.mozilla.com/D26749

--HG--
rename : ipc/moz.build => ipc/gtest/moz.build
extra : moz-landing-system : lando
2019-08-14 22:48:52 +00:00
Jed Davis bc66e27e8c Bug 1536697 - Fix error handling in base::SharedMemory::Map. r=froydnj
If mmap failed, we'd leave the memory_ member variable set to MAP_FAILED,
but everything else in this file checks for nullptr (and only nullptr) to
test if the pointer is valid.

Also, this removes the debug assertion that the mmap succeeded, to allow
writing unit tests where we expect it to fail (e.g., for insufficient
permissions).

Depends on D26747

Differential Revision: https://phabricator.services.mozilla.com/D26748

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:51 +00:00
Jed Davis 51bcb910f3 Bug 1426526 - Remove references to the old Chromium temporary file prefix. r=gsvelto,florian
With the removal of the old Chromium file_util code, we should no longer
be using temporary files with names starting with "org.chromium.", so the
crash reporter and main thread I/O test no longer need to recognize that
prefix.

Differential Revision: https://phabricator.services.mozilla.com/D34629

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:43 +00:00
Jed Davis 150e57c3cc Bug 1426526 - Delete file_util from ex-Chromium IPC source. r=froydnj
Depends on D26746

Differential Revision: https://phabricator.services.mozilla.com/D26747

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:42 +00:00
Jed Davis ee88930515 Bug 1479960 - Convert MemMapSnapshot to use frozen shared memory. r=kmag
Depends on D26745

Differential Revision: https://phabricator.services.mozilla.com/D26746

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:40 +00:00
Jed Davis 47d68828f4 Bug 1479960 - Give SharedStringMap a magic number so that all zeroes isn't a valid instance. r=kmag
There was a strange bug when converting SharedStringMap to use shared
memory: on Android, some tests would fail because a pref wasn't set or
there was something wrong with an expected error message.  The root
cause was that mapping ashmem with MAP_PRIVATE results in all zeroes
(see bug 1525803), but that was read as a valid SharedStringMap with
length 0.

To prevent any possible future issues like that, this patch adds a
nonzero magic number to the header.  It fits into padding on 64-bit and
the cost of setting and checking it should be essentially free.

Depends on D26744

Differential Revision: https://phabricator.services.mozilla.com/D26745

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:38 +00:00
Jed Davis a2d06f8ed8 Bug 1479960 - Make AutoMemMap not fstat() the mapped object if it doesn't need to. r=kmag
One problem with using shared memory instead of files for MemMapSnapshot
is that AutoMemMap was trying to use fstat() to obtain the object size;
that doesn't work with ashmem on Android and was causing problems with
the Mac sandbox, but it's not necessary, because we already know the
size.  This patch changes it to not do that.

Depends on D26743

Differential Revision: https://phabricator.services.mozilla.com/D26744

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:36 +00:00
Jed Davis 0c5b23b47d Bug 1479960 - Add freezing of IPC shared memory. r=froydnj,kmag
This allows writing to shared memory and then making it read-only before
sharing it to other processes, such that a malicious sandboxed process
cannot regain write access.  This is currently available only in the
low-level base::SharedMemory interface.

The freeze operation exposes the common subset of read-only shared
memory that we can implement on all supported OSes: with some APIs
(POSIX shm_open) we can't revoke writeability from existing capabilies,
while for others (Android ashmem) we *must* revoke it.  Thus, we require
that the writeable capability not have been duplicated or shared to
another process, and consume it as part of freezing.  Also, because in
some backends need special handling at creation time, freezeability must
be explicitly requested.

In particular, this doesn't allow giving an untrusted process read-only
access to memory that the original process can write.

Note that on MacOS before 10.12 this will use temporary files in order to
avoid an OS security bug that allows regaining write access; those OS
versions are no longer supported by Apple (but are supported by Firefox).

Depends on D26742

Differential Revision: https://phabricator.services.mozilla.com/D26743

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:34 +00:00
Jed Davis 8692675af1 Bug 1479960 - Fix the main thread I/O tests to handle the IPC shared memory changes. r=florian
The tests for unexpected main thread I/O had exemptions for the specific
paths that were being used for shared memory, which would cause it to
fail with the changes in this bug.  This patch does two things:

1. On Linux, /dev/shm is always tmpfs (a memory filesystem), so it's not
going to cause disk I/O, and it's used by glibc to implement the POSIX
standard shm_open API.  This allows all /dev/shm paths instead of
limiting it to a hard-coded prefix.

2. On MacOS, with the patches in this bug, we'll no longer use temporary
files for shared memory on current OS versions, but we still need them on
older versions to avoid an OS bug (https://crbug.com/project-zero/1671),
and they are backed by disk in this case, so we want to allow only the
IPC files.  However, the path prefix has changed.

Differential Revision: https://phabricator.services.mozilla.com/D34628

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:33 +00:00
Jed Davis e3f21b94e9 Bug 1479960 - Clean up shared_memory_posix error handling. r=froydnj
This uses RAII to handle error-case cleanup in the POSIX backend for
SharedMemory::Create, to simplify the complexity that will be added to
support freezing.

Depends on D26741

Differential Revision: https://phabricator.services.mozilla.com/D26742

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:31 +00:00
Jed Davis 8b00fa3bea Bug 1479960 - Fix max_size in shared_memory_posix. r=froydnj
The Unix backend for shared memory needs to keep the mapped size to pass
to munmap, while the Windows backend doesn't.  Currently it's reusing the
max_size field, and then zeroing it when it's unmapped, which breaks the
freezing use case.  This patch uses a dedicated field for that.

Depends on D26740

Differential Revision: https://phabricator.services.mozilla.com/D26741

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:29 +00:00
Jed Davis 9a41450b28 Bug 1479960 - Get rid of base::SharedMemory::handle. r=froydnj
Despite the comment saying not to use the "handle" except as an opaque
identifier, it is being used to pass the handle to other OS APIs.  Direct
access to the handle needs to be controlled to make sure freezing is
safe, so this patch replaces that with interfaces that are more explicit
about ownership and lifetime.

Depends on D26739

Differential Revision: https://phabricator.services.mozilla.com/D26740

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:22 +00:00
Jed Davis 4eb2c49d03 Bug 1479960 - Remove SHM_ANON support. r=froydnj
FreeBSD's SHM_ANON is useful for the usual case of shared memory, but it
doesn't support freezing.  It could be re-added later, but for now it's
simplest to remove it (and use named shm instead) while refactoring.

Depends on D26738

Differential Revision: https://phabricator.services.mozilla.com/D26739

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:20 +00:00
Brian Hackett 87b9d612de Bug 1573997 - Use correct stride when repainting, r=loganfsmyth.
Differential Revision: https://phabricator.services.mozilla.com/D42044

--HG--
extra : moz-landing-system : lando
2019-08-14 22:47:51 +00:00
Bogdan Tara f326b67e0e Backed out changeset c60ee628dd0e (bug 1571711) for RemoteSandboxBroker related bustages CLOSED TREE 2019-08-15 01:50:01 +03:00
Kristen Wright 7978cc1098 Bug 1573968 - Remove WheelTransaction::Prefs. r=njn
All of these prefs are already static prefs, so this removes the varcache pref definitions from WheelTransaction and replaces them with the existing static prefs.

Differential Revision: https://phabricator.services.mozilla.com/D42040

--HG--
extra : moz-landing-system : lando
2019-08-14 22:18:59 +00:00