729246 Commits

Author SHA1 Message Date
Daniel Holbert
2b7e596021 Bug 1669375 part 1: Don't expose "print only even/odd pages" option in our GTK Print Dialog, since we don't actually honor it. r=jwatt
This patch simply removes GTK_PRINT_CAPABILITY_PAGE_SET from our
GtkPrintCapabilities struct.  This flag is documented as controlling whether
the gtk "Print dialog will offer printing even/odd pages", per
https://developer.gnome.org/gtk3/stable/GtkPrintUnixDialog.html

After this change, the "Only Print: All Sheets | Even Sheets | Odd Sheets"
dropdown-menu in the GTK Print Dialog will be grayed out & disabled, which will
accurately indicate that we don't support this feature.

Differential Revision: https://phabricator.services.mozilla.com/D92527
2020-10-06 14:49:31 +00:00
Simon Giesecke
56cc540be9 Bug 1653276 - Ensure that IndexedDB operations are cancelled when nsGlobalWindowInner::FreeInnerObjects is called. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D92209
2020-10-06 15:27:19 +00:00
Dragana Damjanovic
3c5f61beb2 Bug 1669449 - Make sure the output array is empty before calling GetEvent r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D92563
2020-10-06 11:12:13 +00:00
Greg Tatum
eb498b98eb Bug 1665810 - Add an end-to-end mochitest for DOMEvent markers r=gerald
I created a new test file for testing markers in the parent process. It
can be re-used to test a variety of different markers and their payloads
to ensure they are properly being created, and with relevant information.
The idea here is that this tests the entire pipeline, and excercises the
code as an end user of the profiler would.

Differential Revision: https://phabricator.services.mozilla.com/D92457
2020-10-06 13:57:50 +00:00
Greg Tatum
c8755d4217 Bug 1669266 - Upgrade the DOMEvent marker to not be of type "tracing" r=gerald
This is part of the Markers 2.0 work. This payload proved to be a bit ambiguous
when moving to the new marker schema, so it requires an upgrader.

The test is included as the following commit.

Differential Revision: https://phabricator.services.mozilla.com/D92456
2020-10-06 13:57:46 +00:00
Emilio Cobos Álvarez
c314a37ea6 Bug 1668514 - Update crossbeam-channel. r=janerik
It's used by both webrender and fog, and it contains a subtle soundness
issue which may affect us, see:

 * https://github.com/crossbeam-rs/crossbeam/pull/533
 * https://twitter.com/khuey_/status/1311641831201857537

Quoting for posterity:

> There is a 0.4.4 on a branch and it contains a reversion for the UB
> mentioned in https://github.com/crossbeam-rs/crossbeam/pull/533.
>
> This was causing corruption of jemalloc structures (and ultimately a
> deadlock) for us.

Update the crate resolving the issue.

Differential Revision: https://phabricator.services.mozilla.com/D92046
2020-10-02 19:15:26 +00:00
Jeff Muizelaar
6195db9460 Bug 1669484 - Rollout WebRender to Cherryview (gen8lp) in Nightly and early beta. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D92614
2020-10-06 15:08:43 +00:00
Jeff Muizelaar
7b09b731d0 Bug 1666455. Enable WebRender on higher refresh rates on non Intel. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D92615
2020-10-06 15:06:53 +00:00
Ryan Hunt
0cdf64bae1 Bug 1668375 - wasm: Decode ref.null in element segments as heap type. r=lth
Because we special case the decoding code for element segments, the change
to use heap types for ref.null wasn't propagated from OpIter. We should
decode as a heap type here.

Differential Revision: https://phabricator.services.mozilla.com/D91997
2020-10-05 15:47:37 +00:00
Ryan Hunt
fb950b7f4d Bug 1668373 - wasm: Split CompilerEnvironment from ModuleEnvironment. r=lth
ModuleEnvironment contains a CompilerEnvironment pointer, which describes the compiler selection,
tiering, and whether debugging is enabled. None of this information is needed for validation,
so wasm::Validate() has to create a synthetic CompilerEnvironment which is never read. This
isn't a large issue, but indicates ModuleEnvironment is doing too many things.

This commit removes CompilerEnvironment from ModuleEnvironment and pipes it
through the compiler pipeline. This is fairly straightforward except for:
  * wasm::Validate() no longer needs to create a synthetic compiler env
  * DecodeModuleEnvironment() used to invoke moduleEnv.compilerEnv.computeParameters(d)
    after the preamble was decoded. I believe this was needed for handling the GC opt-in
    section, which is no longer used. I moved this call to computeParameters() to after
    all callers of DecodeModuleEnvironment().
  * I added an assertion in IonCompileFunctions/CraneliftCompileFunctions that they are
    not being invoked for debugged modules.

Differential Revision: https://phabricator.services.mozilla.com/D91995
2020-10-05 15:47:27 +00:00
Ryan Hunt
ab7788915e Bug 1668373 - wasm: Rename future ambiguous uses of 'env_' to 'moduleEnv_'. r=lth
The next commit will move CompilerEnvironment out of ModuleEnvironment and pass it
through the compiler pipeline. The compiler pipeline typically uses 'env_' to refer
to the module environment, with a 'compilerEnv_' being used as well I think we should
rename 'env_' to 'moduleEnv_'.

The one exception is within validation/decoding where I think using just 'env_' to
refer to the module environment is fine.

Differential Revision: https://phabricator.services.mozilla.com/D91994
2020-10-05 17:01:32 +00:00
Simon Giesecke
59dd6d410d Bug 1668757 - Fix lifetime extension issues with 0-length literals. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D92179
2020-10-06 15:03:01 +00:00
Ricky Stewart
ba155900e9 Bug 1665675 - Fix sporadic AttributeError: module distutils has no attribute sysconfig error in configure r=glandium
The existing implementation of `@imports()` in the `configure` sandbox doesn't translate an import of the form `@imports('distutils.sysconfig')` into an `import distutils.sysconfig` statement; instead, it transforms the input `@imports()` request a few times in such a way that we eventually just do `import distutils`, and expect that `distutils.sysconfig` will be populated that way. This would be fine, except that this isn't the way that Python's `import` system works:

```
>>> import distutils
>>> distutils.sysconfig
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'distutils' has no attribute 'sysconfig'
>>> import distutils.sysconfig
>>> distutils.sysconfig
<module 'distutils.sysconfig' from '/usr/lib/python3.8/distutils/sysconfig.py'>
```

i.e., we can't just import a parent module and expect that we can indirectly access all child packages of that module without importing them specifically.

So instead, we simplify the current model somewhat by not transforming the `@imports()` request at all and instead just performing the exact `import` that the user requested. This resolves the `distutils.sysconfig` issue as well as hopefully preventing any other similar issues popping up in the future.

While I'm here, I also refactored some stuff so that the way that we're patching in wrapped modules for the sandbox is more structured.

Differential Revision: https://phabricator.services.mozilla.com/D90627
2020-10-06 14:59:46 +00:00
Emma Malysz
2e792e6fb4 Bug 1669188, hide shortcut if print.tab_modal.enabled is false r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D92525
2020-10-06 11:26:54 +00:00
Kershaw Chang
263a19bfb2 Bug 1669270 - Don't call OnProxyConnectComplete if it's websocket over h2 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D92494
2020-10-06 08:42:01 +00:00
Kershaw Chang
7b741eaca1 Bug 1668802 - Remove SpdyConnectTransaction::mConnInfo r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D92441
2020-10-05 14:44:03 +00:00
Simon Giesecke
072795bf2c Bug 1663924 - Replace output parameter of QuotaClient::GetDirectory by return value. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D91163
2020-10-06 14:21:55 +00:00
Simon Giesecke
39099f31d7 Bug 1663924 - Replace output parameter of CreateMutableFile by return value. r=dom-workers-and-storage-reviewers,ttung,janv
Differential Revision: https://phabricator.services.mozilla.com/D91162
2020-10-06 14:20:35 +00:00
Simon Giesecke
af6cc3688d Bug 1663924 - Replace output parameter of ReclaimFreePagesWhileIdle by return value. r=dom-workers-and-storage-reviewers,ttung,janv
Differential Revision: https://phabricator.services.mozilla.com/D91160
2020-10-06 14:20:17 +00:00
James Graham
780b07487f Bug 1668458 - Ensure paths passed to Addons.install use os path separators only, r=marionette-reviewers,whimboo
On Windows we can end up with a mixture of / and \ which makes the install fail.

Differential Revision: https://phabricator.services.mozilla.com/D92229
2020-10-06 14:01:26 +00:00
James Graham
ec26b652e7 Bug 1668458 - Load specialPowers web extension in gecko-only wpt tests, r=jmaher,twisniewski,whimboo
Lack of support for specialPowers is often cited as a reason for
developers to write mochitests rather than wpt. Although using
specialPowers means that the tests can't be upstreamed, having it
available in gecko-only tests should reduce the need to write
mochitests and potentially means that a patch which previously would
be written with just mochitests would instead be written with just
wpt, a fraction of which would be unsuitable for sharing.

Nevertheless a gecko-only specialPowers-using test should be
considered the option of last resort when cross-browser APIs such as
testdriver aren't sufficient.

This patch installs the specialPowers extension when the path to the
XPI is provided via a --specialpowers-path command line argument. To
ensure this only happens for gecko-only tests, the url_base is added
to the Test object, and the firefox settings() method is updated to
contain a specialpowers setting, which uses the url_base of the test
to determine if this is a gecko-only test.

Because the extension has to be enabled using marionette, we also need
to route this setting through the to executor, along with the provided
XPI path.

Differential Revision: https://phabricator.services.mozilla.com/D92035
2020-10-06 14:01:24 +00:00
Kershaw Chang
6531bf10b8 Bug 1666620 - Close the transaction when Http3Session::Init failed, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91115
2020-10-06 10:53:38 +00:00
Kershaw Chang
c8a92b9fee Bug 1652717 - P2: Implement fast fallback when H3 is used r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90998
2020-10-06 11:26:57 +00:00
Kershaw Chang
24121cf263 Bug 1652717 - P1: Make sure we can connect to Http3 server according to HTTPS RR r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90997
2020-10-06 10:51:58 +00:00
Kershaw Chang
4ab4ff8981 Bug 1665878 - Reset exclusion list when all target names are all excluded, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90822
2020-10-06 09:48:05 +00:00
Kershaw Chang
99208e5b56 Bug 1652713 - Implement fallback mechanism when echConfig is enabled, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90673
2020-10-06 09:47:52 +00:00
Jeff Muizelaar
ab80b5cfe4 Bug 1669286 - Hold on to a Weak<T> for fonts so that we can memory report them. r=aosmond,gw
This adds a WeakTable which is a poor man's weak_table::PtrWeakHashSet.

Differential Revision: https://phabricator.services.mozilla.com/D92474
2020-10-06 13:22:26 +00:00
Julien Cristau
6d9b07261a Bug 1668908 - beta to release migration needs to unset EARLY_BETA_OR_EARLIER. r=releng-reviewers,jlorenzo DONTBUILD
This should help beta simulations as well as act as a safeguard in case
the update is missed during beta.

Differential Revision: https://phabricator.services.mozilla.com/D92600
2020-10-06 13:21:30 +00:00
Bogdan Tara
50effb1629 Backed out changeset 5f2252c9e774 (bug 1668458) for wpt failures CLOSED TREE 2020-10-06 16:32:01 +03:00
Gabriel Luong
b5c3417177 Bug 1669129 - [devtools] Enable devtools.overflow.debugging.enabled. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D92364
2020-10-06 12:01:08 +00:00
Jan-Erik Rediger
012a6b731a Bug 1669413 - Don't label metrics index as utf-8. r=chutten
Previously invocations of `mach test` were broken with a weird error
message:

    The underlying problem is a Python syntax error on line 0:

        None

Removing the first line seems to fix that.
Now this is a Python file, so re-introducing the general mode line and a
vim line matches what others are doing too.

Differential Revision: https://phabricator.services.mozilla.com/D92560
2020-10-06 12:56:03 +00:00
James Graham
d248b39a61 Bug 1668458 - Load specialPowers web extension in gecko-only wpt tests, r=jmaher,twisniewski,whimboo
Lack of support for specialPowers is often cited as a reason for
developers to write mochitests rather than wpt. Although using
specialPowers means that the tests can't be upstreamed, having it
available in gecko-only tests should reduce the need to write
mochitests and potentially means that a patch which previously would
be written with just mochitests would instead be written with just
wpt, a fraction of which would be unsuitable for sharing.

Nevertheless a gecko-only specialPowers-using test should be
considered the option of last resort when cross-browser APIs such as
testdriver aren't sufficient.

This patch installs the specialPowers extension when the path to the
XPI is provided via a --specialpowers-path command line argument. To
ensure this only happens for gecko-only tests, the url_base is added
to the Test object, and the firefox settings() method is updated to
contain a specialpowers setting, which uses the url_base of the test
to determine if this is a gecko-only test.

Because the extension has to be enabled using marionette, we also need
to route this setting through the to executor, along with the provided
XPI path.

Differential Revision: https://phabricator.services.mozilla.com/D92035
2020-10-06 12:54:36 +00:00
Gregory Mierzwinski
5fe6e25a61 Bug 1668268 - Enable mitm5 on browsertime desktop tests. r=perftest-reviewers,Bebe
This patch enabled mitm5 for browsertime desktop tests. It also fixes a small issue in mozproxy which sets the return code to 0 on a failure.

Differential Revision: https://phabricator.services.mozilla.com/D92434
2020-10-06 12:18:39 +00:00
Lars T Hansen
907323e1fd Bug 1669428 - Properly control experimental SIMD instructions. r=jseward
This gets rid of an ad-hoc boolean constant and introduces a configuration flag
for experimental SIMD instructions.  The flag is on by default in Nightly if
SIMD is also enabled; otherwise off.  This patch therefore disables support for
experimental SIMD instructions in beta and release, where they have been
available with the other SIMD instructions behind a pref.  This seems OK:
code using unstable bits of an in-progress proposal should stick to Nightly.

Differential Revision: https://phabricator.services.mozilla.com/D92554
2020-10-06 12:10:56 +00:00
Makoto Kato
17bba3d008 Bug 1666796 - Replace ALOGIME with MOZ_LOG in GeckoEditableSupport on Nightly. r=geckoview-reviewers,agi
When debugging text issue on GV, I sometimes enable `DEBUG_ANDROID_IME` to
output log. But I think that it is better to use `MOZ_LOG` since we can get
the log on Fenix build.

If using GVE, we can output log via the following command.

```
adb shell am start -n org.mozilla.geckoview_example/.GeckoViewActivity --es env0 "MOZ_LOG=GeckoEditableSupport:5"
```

But this change is Nightly only due to footprint etc at first.

Differential Revision: https://phabricator.services.mozilla.com/D92449
2020-10-05 16:11:02 +00:00
Jan de Mooij
dad6bfc0e8 Bug 1668729 - Disable GC zeal for Environment-getVariable-13.js to fix intermittent failures. r=jonco
The test is asserting that certain code runs in Ion.

Differential Revision: https://phabricator.services.mozilla.com/D92549
2020-10-06 11:37:00 +00:00
pctopgs
9210b94c06 Bug 1265275 - Removed 'using namespace mozilla;' and 'using namespace mozilla::dom;' wih namespace mozilla {..} namespace dom {..} in PresentationSessionInfo.cpp r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D92535
2020-10-06 10:33:16 +00:00
Paul Adenot
78d06fb142 Bug 1668598 - Don't use the word 'size' to mean a number of elements in MediaData.h. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D92429
2020-10-06 10:24:00 +00:00
ffxbld
4acd881913 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D92502
2020-10-06 10:21:24 +00:00
Jonathan Watt
7ea14b32ec Bug 1669390. Fix silent printing telemetry when print.tab_modal.enabled is true. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D92531
2020-10-06 10:02:49 +00:00
Valentin Gosu
3eecc5bee1 Bug 1664874 - Call DoHController.init from _onFirstWindowLoaded instead of _onWindowsRestored r=nhnt11
Depends on D92431

Differential Revision: https://phabricator.services.mozilla.com/D92447
2020-10-05 16:40:50 +00:00
Valentin Gosu
2394269374 Bug 1664874 - Do heuristics DNS lookups at the same time r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D92431
2020-10-05 15:35:45 +00:00
Bogdan Tara
ca5eff3e26 Backed out changeset dca68a64b04c (bug 1668586) for test_ext_tabs failures CLOSED TREE 2020-10-06 13:48:35 +03:00
Bogdan Tara
8391350978 Backed out changeset eff866cb4c66 (bug 1668851) for browser_net-ws-filter-freetext.js failures CLOSED TREE 2020-10-06 13:46:20 +03:00
Bogdan Tara
0ddec45053 Backed out changeset 33ba7de82d52 (bug 1657567) for browser_markup failures CLOSED TREE 2020-10-06 13:45:14 +03:00
sotaro
4f1c35bfbd Bug 1669143 - Handle a case that GetDeviceOfEGLDisplay() returned nullptr r=nical
When ANGLE detects device reset, GetDeviceOfEGLDisplay() returns nullptr. It is not handled as device reset in current RenderCompositorANGLE::ShutdownEGLLibraryIfNecessary(). It should be handled as device reset.

Differential Revision: https://phabricator.services.mozilla.com/D92543
2020-10-06 09:31:05 +00:00
Simon Giesecke
06f817083c Bug 1663924 - Replace output parameter of GetFileSize by return value. r=dom-workers-and-storage-reviewers,ttung,janv
Differential Revision: https://phabricator.services.mozilla.com/D91159
2020-10-06 09:27:58 +00:00
Simon Giesecke
e19b65b863 Bug 1663924 - Replace output parameter of PromptIfNeeded by return value. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D91158
2020-10-06 08:39:40 +00:00
Simon Giesecke
56450b85cb Bug 1663924 - Replace output parameter of GetFreelistCount by return value. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D91132
2020-10-06 08:39:17 +00:00
Razvan Caliman
6fcbba2296 Bug 1657567 - Prevent shifting focus within a markup container when already selected. r=gl
This is a speculative fix. Open to suggestions if there's a better approach.

## Context

When clicking a node in the Markup view, the `MarkupContainer` for that node will shift focus to the [first editor](https://searchfox.org/mozilla-central/rev/d54210d490ef335b13fc1fcac817525120c8c46b/devtools/client/inspector/markup/views/markup-container.js#777-786) for that node's attributes. This is good for accessibility and for keyboard navigation. But when the Markup view is narrow, the effect is shifting the horizontal scroll in order to bring the editor into view.

As a mouse user, if I want to double click a node attribute to edit it, the focus shifts as soon as I click first.
This is particularly annoying for attributes at the far end of the node. I can't edit the attribute because it shifts away as the focus moves to the first editor.

A workaround is to tab through the attribute editors until I get to the desired one

Video of the effect and workaround:

{F2424060}


## Proposed fix

The proposed fix is to keep the original behavior on first click on a `MarkupContainer` (focus the first editor, shift scroll if the viewport is too narrow).
But on second click, i.e. the `MarkupContainer` is already selected, skip moving focus and allow the user to edit node attributes.

Video of the effect with the patch applied

{F2424065}

Differential Revision: https://phabricator.services.mozilla.com/D87869
2020-09-28 12:12:13 +00:00