Commit Graph

775433 Commits

Author SHA1 Message Date
Mark Banner
e04689fad3 Bug 1738678 - Remove unnecessary ESLint warning rules for sjs files. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D130048
2021-11-02 08:55:52 +00:00
Karl Tomlinson
ff3a60ad72 Bug 1738186 inline Init() into MediaEngineRemoteVideoSource constructor r=pehrsons
Requested in
https://phabricator.services.mozilla.com/D129777?id=501774#inline-712902
to clarify when this code runs.

Differential Revision: https://phabricator.services.mozilla.com/D129888
2021-11-02 08:35:53 +00:00
Karl Tomlinson
d0731da677 Bug 1738186 clarify use of device index and capture id r=ng
Depends on D129777

Differential Revision: https://phabricator.services.mozilla.com/D129778
2021-11-02 08:35:53 +00:00
Karl Tomlinson
042104aa9a Bug 1738186 remove some unused string manipulation r=pehrsons
and associated thread hop.

Unused/unnecessary since
https://hg.mozilla.org/mozilla-central/rev/20543d03a4cda05c785011a25079aa42aec8b2ba#l13.37

Depends on D129776

Differential Revision: https://phabricator.services.mozilla.com/D129777
2021-11-02 08:35:52 +00:00
Karl Tomlinson
4f20d2ab96 Bug 1738186 adjust calling conventions to clarify function outputs r=ng
Prefer using return values over output parameters.
https://google.github.io/styleguide/cppguide.html#Inputs_and_Outputs

Use pointers, instead of references for function out parameters.
https://firefox-source-docs.mozilla.org/code-quality/coding-style/coding_style_cpp.html#com-and-pointers

Depends on D129775

Differential Revision: https://phabricator.services.mozilla.com/D129776
2021-11-02 08:35:52 +00:00
Karl Tomlinson
07d6c5cd44 Bug 1738186 rename to distinguish counts/indices/ids and devices/captures/capabilities r=ng
Differential Revision: https://phabricator.services.mozilla.com/D129775
2021-11-02 08:35:51 +00:00
Masayuki Nakano
f3e5a9686f Bug 1738200 - Add new tests to check the behavior of insertText command when caret is after "invisible" <br> element r=m_kato
If a `<br>` element follows a visible thing and there is no visible content
between it and following block boundary (both child's and parent's), it's
called as "invisible" BR element at Mozilla.

Selection API can put caret after it but before the following block boundary
and of course, user may be able to put caret at there if the browser has a
bug like <https://bugzilla.mozilla.org/show_bug.cgi?id=1738193>.

Even in this case, user can type something if it's in editable content, and
even though this is an edge case, it's safe to get same result in any browsers
since web apps may put caret there accidentally.

The expected results are based on Blink's behavior and Gecko fails the cases
if the following block boundary is of a child block.  However, no patch for
Gecko for now.

Differential Revision: https://phabricator.services.mozilla.com/D130137
2021-11-02 07:44:11 +00:00
Christoph Kerschbaumer
4a5f4b163c Bug 1737262: Update tests within toolkit/components/url-classifier/tests/mochitest to work with https-first enabled r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D129260
2021-11-02 07:38:09 +00:00
stransky
1701b68173 Bug 1730533 [Linux] Use Drag and Drop popups on Gtk >= 3.24 r=rmader
Differential Revision: https://phabricator.services.mozilla.com/D129494
2021-11-02 07:34:35 +00:00
stransky
74c0beb525 Bug 1738729 [Linux] Check mGdkWindow before we get a scale factor of it, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D130108
2021-11-02 07:34:24 +00:00
Hiroyuki Ikezoe
e5085ada71 Bug 1738839 - Drop layout.css.scroll-behavior.enabled. r=dholbert
It's been enabled by default for years since bug 1087559.

Differential Revision: https://phabricator.services.mozilla.com/D130147
2021-11-02 06:58:47 +00:00
Francesco Lodolo (:flod)
7142424b1b Bug 1738836 - Remove unused DTD strings from devtools, r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D130145
2021-11-02 06:22:53 +00:00
Hiroyuki Ikezoe
dd419fe544 Bug 1738811 - Drop ScrollSnapMode argument from nsIScrollableFrame::ScrollToCSSPixels and nsIScrollableFrame::ScrollByCSSPixels. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D130135
2021-11-02 05:08:03 +00:00
shravanrn@gmail.com
7588d07725 Bug 1737704 - Re-enable hunspell rlbox sandbox on 32 bit platforms r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D128571
2021-11-02 03:17:26 +00:00
Noemi Erli
d6a163adba Backed out changeset f8c0561be4db (bug 1738791) for causing failures in observer-attributes.html CLOSED TREE 2021-11-02 04:30:37 +02:00
Makoto Kato
1be11f4ee1 Bug 1556983 - Primary pointer capability should be coarse when having touch screen. r=geckoview-reviewers,agi
Many users report that GeckoView returns non-coarse value for primary pointer
capabilities. Actually, we assume that primary pointer device is 1st device by
`InputDevice.getDeviceIds`, but some mobile devices seems not to return touch
screen as 1st item according to user reports.

Also, Android's `InputDevice` API doesn't define what is primary pointer
device, so we cannot assume primary pointer device well.

Other implements are,

- Chrome returns coarse if something input device has coarse capability.
- Firefox for Windows seems to return coarse if it is tablet mode.

So we should return coarse as primary pointer capability when having touch
screen, like Chrome.

But there is still another issue.

When I check some devices (including Android VM on Chrome OS), even if no touch
screen, the `InputDevice`'s source may has `SOURCE_TOUCHSCREEN`. Chrome checks
that fine pointer at first, then it checks coarse pointer. But current GV is
coarse pointer at first. Since the `InputDevice`'s source may have both
`SOURCE_MOUSE` and `SOURCE_TOUCHSCREEN` on touchpad/mouse, GV returns different
result. So we shouldn't check `SOURCE_TOUCHSCREEN` at first.

Differential Revision: https://phabricator.services.mozilla.com/D129901
2021-11-02 02:04:06 +00:00
Jeff Muizelaar
4d894d0f28 Bug 1737896 - Update to core-foundation 0.9.2. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D129570
2021-11-02 01:38:38 +00:00
James Teh
570683a696 Bug 1730096 part 9: Add tests for cached text attributes. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D129475
2021-11-01 23:27:40 +00:00
James Teh
1563d99b94 Bug 1730096 part 8: Move DefaultTextAttributes to HyperTextAccessibleBase and implement it for RemoteAccessible. r=eeejay
This patch includes ATK and XPCOM support.

Differential Revision: https://phabricator.services.mozilla.com/D129474
2021-11-01 23:27:39 +00:00
James Teh
6bd5ccff7d Bug 1730096 part 7: Support cached remote text attributes in TextLeafPoint. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D129473
2021-11-01 23:27:39 +00:00
James Teh
7f79cc0400 Bug 1730096 part 6: Add AccAttributes::CopyTo to copy an AccAttributes. r=eeejay
This is necessary for two reasons:

1. Leaf text attributes and default text attributes are cached separately, since the caller can choose whether to include defaults or not. This means merging them together.
2. Methods for retrieving attributes currently return a non-const AccAttributes. We might be able to change this in future for some of them, but I didn't want to deal with that in this work.

Differential Revision: https://phabricator.services.mozilla.com/D129472
2021-11-01 23:27:39 +00:00
James Teh
e2a75ff2ce Bug 1730096 part 5: Push text attributes to the cache. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D129471
2021-11-01 23:27:38 +00:00
James Teh
5cb3312f64 Bug 1730096 part 4: Support AccAttributes as a value inside an AccAttributes. r=eeejay
This will be used to include text attributes as part of the cache for an Accessible.

Differential Revision: https://phabricator.services.mozilla.com/D129470
2021-11-01 23:27:38 +00:00
James Teh
f24390b6a8 Bug 1730096 part 3: Add HyperTextAccessibleBase::TextAttributes. r=eeejay
This uses TextLeafPoint.
This patch includes support for ATK, IA2 and XPCOM.
As with TextAtOffset, HyperTextAccessible calls the base implementation if the cache is enabled, but otherwise uses the old implementation for now.

Differential Revision: https://phabricator.services.mozilla.com/D129469
2021-11-01 23:27:37 +00:00
James Teh
754058c557 Bug 1730096 part 2: Implement support for text attributes in TextLeafPoint. r=eeejay
This supports both fetching text attributes and finding the start of attribute runs, but only for LocalAccessible.
Support for RemoteAccessible will be added in a subsequent patch.

Differential Revision: https://phabricator.services.mozilla.com/D129468
2021-11-01 23:27:37 +00:00
James Teh
39c9ee45b8 Bug 1730096 part 1: Add AccAttributes::Equal to compare attributes in two instances. r=eeejay
This will be used later to check whether text attributes are different between two Accessibles.
I added this as a method instead of operator== because callers always hold a pointer to AccAttributes, and *a1 == *a2 is weird and will probably lead to mistakes.
This required adding operator== for our value structs.

Differential Revision: https://phabricator.services.mozilla.com/D129467
2021-11-01 23:27:37 +00:00
Andrei Oprea
146d799d27 Bug 1738206 - Add an additional action that enables the pref for TCP section in about:preferences r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D129783
2021-11-01 23:17:01 +00:00
Emilio Cobos Álvarez
7dc130a7a8 Bug 1738791 - Treat empty root margin as zero as per spec. r=AlaskanEmily
Differential Revision: https://phabricator.services.mozilla.com/D130131
2021-11-01 22:46:02 +00:00
Ting-Yu Lin
fc243f8a42 Bug 1736755 - Change nsTArray allocation to fallible in nsLineBreaker. r=emilio,jfkthame
This patch audits five XXX(Bug 1631371) comments, and convert them to
use fallible nsTArray allocation.

Differential Revision: https://phabricator.services.mozilla.com/D128972
2021-11-01 22:35:52 +00:00
alwu
aa1981beb0 Bug 1733902 - part4 : add a test. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D128165
2021-11-01 22:26:41 +00:00
alwu
5e5944d9ec Bug 1733902 - part3 : merge RefreshAgentsSuspend into NotifyResumingDelayedMedia. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D128128
2021-11-01 22:26:41 +00:00
alwu
b9abcddbc1 Bug 1733902 - part2 : use the new method to check if we should delay media from starting playback. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D128127
2021-11-01 22:26:40 +00:00
alwu
28430fb0d3 Bug 1733902 - part1 : create a new sync attribute on top-level browsing context for whether we should delay media from starting, and use it to replace the old attribute on outer windows. r=nika,emilio
Brief recap:
Before we have blocking autoplay, we had a feature which will delay media from start if the tab hasn't been visited by users, in order to prevent an unvisited background tab suddenly play sounds, which is annoying and might be unexpected to users.

In this patch:
The attribute we use to check whether we need to delay media is on the outer window, which is not Fission compatible if the top level window and its child windows are on the different process.

If the top level window has been visited, then all its child window should follow the same result. Therefore, we need to move the attribute to the browsing context in order to sync it across different windows.

Differential Revision: https://phabricator.services.mozilla.com/D128126
2021-11-01 22:26:40 +00:00
Sebastian Hengst
58573cd3b5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2021-11-01 23:29:07 +01:00
Sebastian Hengst
6c29d986c3 Bug 1738787 - remove duplicate line. a=Aryx 2021-11-01 23:21:27 +01:00
Sebastian Hengst
22d3b81141 Merge mozilla-central to autoland. CLOSED TREE 2021-11-01 23:06:15 +01:00
Sebastian Hengst
d21e359bd2 Merge autoland to mozilla-central. a=merge 2021-11-01 22:58:34 +01:00
Sebastian Hengst
57b1dddd26 Bug 1738787 - temporarily disable screen-capture/getdisplaymedia.https.html for test failures from race on Windows opt (shippable). a=Aryx DONTBUILD
Regression from bug 1654112.
2021-11-01 22:56:26 +01:00
Mitchell Hentges
973f0aa262 Bug 1730712: Remove customizeable log handle from VirtualenvManager r=ahal
The optional `log_handle` argument was only used by:

* Configure, but the output was always dumped to stdout and *not*
  `config.log`. The manual logging _was_ used to handle encoding issues,
  but those are likely invalidated by the Python 3 migration.
* `./mach doc`, where we were putting virtualenv setup into stderr,
  which seems incorrect. The commit adding it doesn't explain why it's
  the case, but I'm guessing it shouldn't be too risky to remove.

Additionally, `log_handle` was used very inconsistently: for example,
running `install_pip_package()` would _not_ use `log_handle`.
So, removing `log_handle` removes a bit of abstraction leakage.

Differential Revision: https://phabricator.services.mozilla.com/D129298
2021-11-01 21:34:05 +00:00
Mitchell Hentges
8d7a1cbad4 Bug 1730712: Remove redundant Python version check in configure r=glandium
Mach already verifies the Python version during initialization.

Maintaining a second version check can be tough to keep up-to-date, as
we're already seeing due to the obsolete Python 2 check.

Differential Revision: https://phabricator.services.mozilla.com/D129297
2021-11-01 21:34:05 +00:00
Mitchell Hentges
162c7ab422 Bug 1732946: Vendor pip/setuptools/wheel instead of installing into venv r=ahal
Now that are prioritizing system over virtualenv site-packages, the
system `pip` is sometimes being used instead.
This is causing issues when the system pip is set up in a
distro-specific way, such as when "debundled":
https://github.com/pypa/pip/blob/9.0.1/pip/_vendor/__init__.py#L53-L61

However, if we vendor `pip`, `setuptools` and `wheel`, and ensure that
they're prioritized in the `sys.path` before anything is imported from
the system, then we can ensure that we're using a modern `pip` _and_
sidestep system-specific pip weirdness.

Note that `pip-compile`'s `--allow-unsafe` flag is not as dangerous as
it sounds.
There's confusion among maintainers about its origin:
https://github.com/jazzband/pip-tools/issues/522
Additionally, it's going to be enabled by default in a future
`pip-tools` release. So, it's not scary for us to embrace here.

Also, heads up that the "pip outdated warning" no longer needs
to be manually silenced, since pip avoids that code path when
not running from an "installed" context.

Differential Revision: https://phabricator.services.mozilla.com/D127182
2021-11-01 21:34:03 +00:00
Mitchell Hentges
a9f396324f Bug 1717051: Always populate Mach pths r=firefox-build-system-reviewers,glandium
The previous behaviour was to:
* Never add a `pthfile` to the Mach virtualenv, and
* Always add Mach's paths to the `sys.path` when Mach initializes

However, this meant that `pip` would needlessly install packages
that already exist in the vendored environment.

Tweak `pth` behaviour so that `pip` behaves more efficiently.

Differential Revision: https://phabricator.services.mozilla.com/D120402
2021-11-01 21:34:03 +00:00
Mitchell Hentges
537d201bcc Bug 1732948: Assert that the Mach venv isn't out-of-date during init r=ahal
As we leverage the Mach environment more, it becomes increasingly
important that it isn't out-of-date on developer machines.

Add an `up_to_date()` check during Mach initialization.
To minimize the cost to startup, I'm skipping the "pip list" check.

This change required moving `virtualenv` from `mozbuild` to `mach` to
make it available during the early stage of Mach init.

Differential Revision: https://phabricator.services.mozilla.com/D127144
2021-11-01 21:34:02 +00:00
Mitchell Hentges
b650e75dd6 Bug 1730712: Mild cleanup in virtualenv build() r=ahal
Inline a variable used once, and ensure that `old_env_variables` is
defined consistently before the `finally` block runs to satisfy an
intellisense warning.

Also, ensure that a wide comment is shuffled underneath the line limit.

Differential Revision: https://phabricator.services.mozilla.com/D129296
2021-11-01 21:34:02 +00:00
Mitchell Hentges
a891c8b05b Bug 1730712: Don't re-exec "virtualenv.py" in new process r=ahal
Now that packages are consistently installed in a dedicated
`pip install` process, we can remove our funky re-execution of
`virtualenv.py`.

Since this re-execution was the only case in which `virtualenv.py`
was directly invoked by Python, we can remove the `__main__`-handling
block.

Also, now that `virtualenv.py` always is interpreted with its needed
modules in-scope, the deferred `MachEnvRequirements` import can be
moved to the top of the file.

Differential Revision: https://phabricator.services.mozilla.com/D129295
2021-11-01 21:34:01 +00:00
Mitchell Hentges
1ae08fbcc5 Bug 1730712: Do simple "pip install" when preparing venv r=ahal
`install_pip_package()` does some logic around not running pip if a
package is already installed.

However, this is redundant, because when building a venv, no packages
are installed.

Additionally, this was the constraint forcing us to populate the
virtualenv in a separate process from the one building it.

Differential Revision: https://phabricator.services.mozilla.com/D129294
2021-11-01 21:34:01 +00:00
sotaro
c775c1f269 Bug 1732736 - Enable window occlusion on Nightly on Windows r=jrmuizel,gfx-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D127366
2021-11-01 21:28:44 +00:00
Miko Mynttinen
e1f2003e51 Bug 1732921 - Part 2: Add test. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D129967
2021-11-01 20:22:33 +00:00
Miko Mynttinen
70489330ec Bug 1732921 - Part 1: Do not skip display list building when a replaced element is stacking context. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D129966
2021-11-01 20:22:33 +00:00
Lee Salzman
eb7455e935 Bug 1393362 - Make more RecordedEvent implementations fallible. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D129879
2021-11-01 19:33:28 +00:00