Commit Graph

742446 Commits

Author SHA1 Message Date
Nick Alexander
03ff66c89d Bug 1667276 - Part 3: Load a custom prefs file when running a background task. r=mossop,KrisWright
There are some complications here to handle unpackaged and packaged
builds.  In addition, there could be a difference between App prefs
and GRE prefs.  Since the underlying backgroundtasks code is built as
part of Gecko (i.e., `toolkit/...` rather than `browser/...`) I have
favoured GRE prefs.  I think, however, that what is written will work
for App-specific prefs, but I'm not concerned with that detail at this
time.

This also add tests for backgroundtask-specific prefs, which are
structured as both xpcshell and mochitest-chrome tests because
locally, the former tests unpackaged builds and the latter can
accommodate testing packaged builds.  We could use mochitest-chrome
for both, but this has been pleasant to work with locally.

Differential Revision: https://phabricator.services.mozilla.com/D97510
2021-01-27 22:54:25 +00:00
Nick Alexander
9862045082 Bug 1667276 - Part 2: Add BackgroundTasksManager to invoke task defined in JS. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D97512
2021-01-27 22:54:17 +00:00
Nick Alexander
eb5ed037f9 Bug 1667276 - Part 1: Wire background task mode into Gecko startup. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D97511
2021-01-27 22:54:14 +00:00
Nick Alexander
febb92c570 Bug 1667276 - Pre: Disable extension manager in background tasks mode. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D97509
2021-01-27 22:54:02 +00:00
Dave Townsend
b57ef60b0e Bug 1667276 - Pre: Disable the startup cache when running a background task. r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D95198
2021-01-27 22:53:54 +00:00
Butkovits Atila
09e52162fa Backed out changeset c89276392499 (bug 1649611) for causing build bustages. CLOSED TREE 2021-01-28 01:13:59 +02:00
Butkovits Atila
df8358b5bb Backed out changeset 9226bc3ca03c (bug 1688700) for causing failures on browser_preferences_usage.js. 2021-01-28 01:09:22 +02:00
Joan Jennings
4748dcb616 Bug 1689052 - Only get a docshell when the document is visible. r=rickiedennehy
Differential Revision: https://phabricator.services.mozilla.com/D103149
2021-01-27 22:51:11 +00:00
Iain Ireland
d7eb5f6231 Bug 1686653: Refactor JSJitFrameIter constructors r=jandem
This fix was written by looking at the stack trace from a fuzz bug. I could not reproduce the failure locally, but decoder has confirmed that this change fixes the problem.

If we bail out of Ion, then call ReportOverRecursed in `BailoutIonToBaseline` with a wasm frame on the stack, then while trying to capture the stack for the error, we assert while trying to construct a `JSJitFrameIter` using the constructor specialized for jit->wasm frames. The other `JSJitFrameIter` constructor has special handling for the `activation->bailoutData()` case, but the jit->wasm one just asserts that the activation doesn't have any bailout data.

Benjamin wrote this code and Luke reviewed it, and unfortunately neither of them are still around to answer questions. Reading through the patch history, I can't find any reason that the jit->wasm constructor doesn't support this case. It looks like we just assumed it couldn't happen, and our assumption would've been right if it weren't for stack overflow. Rewriting the jit->wasm constructor to use the same logic as the other constructor appears to fix the problem.

Differential Revision: https://phabricator.services.mozilla.com/D102826
2021-01-25 08:50:39 +00:00
Emilio Cobos Álvarez
601f952a28 Bug 1688925 - Move DNS prefetch state out of Link into its own super-class. r=smaug,edgar
I made sure that this didn't grow HTMLAnchorElement, though if we don't
care too much (sizeof(HTMLAnchorElement) is 176 right now) we might want
to remove ToSupportsDNSPrefetch and such.

This fixes a subtle bug where OnDNSPrefetchRequested wasn't being called
when IsNeckoChild was true.

Differential Revision: https://phabricator.services.mozilla.com/D103062
2021-01-27 22:38:13 +00:00
Kimberly Sereduck
02d7cf31ed Bug 1680766 - Improvements to profile markers for Talos tests; r=perftest-reviewers,gregtatum,sparky
This patch is to add more profile markers to Talos tests, and improve existing ones, by grouping all Talos markers together under "Talos", using more descriptive labels, and employing interval markers where applicable.

Differential Revision: https://phabricator.services.mozilla.com/D98774
2021-01-26 16:49:42 +00:00
Kershaw Chang
0d82c1d0d8 Bug 1684041 - Add ODoH test r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D102629
2021-01-27 22:04:25 +00:00
Emma Malysz
83a2a99541 Bug 1649611: Remove OS.File usage from DownloadIntegration.jsm and respect umask in IOUtils::SetPermissions r=barret
Differential Revision: https://phabricator.services.mozilla.com/D99729
2021-01-27 22:19:22 +00:00
Butkovits Atila
49753aeed1 Backed out changeset d9b7bed96428 (bug 1629381) for causing failures on test_reset_src.html. CLOSED TREE 2021-01-28 00:28:11 +02:00
Jeff Muizelaar
9014b87c5c Bug 1689202 - Add a deprecation note to Advanced Layers.
Differential Revision: https://phabricator.services.mozilla.com/D103222
2021-01-27 21:35:32 +00:00
Andrew Osmond
1eabffb003 Bug 1689189 - Ship Software WebRender to users with large screens in nightly and early beta. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103194
2021-01-27 20:54:57 +00:00
Emma Malysz
365360e929 Bug 1688700, add items to proton app menu r=fluent-reviewers,mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D103090
2021-01-27 21:18:20 +00:00
Edgar Chen
c2c0ea7709 Bug 1672330 - Move pointer lock code to PointerLockManager; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D101054
2021-01-27 16:38:29 +00:00
Butkovits Atila
0bd4fa26f2 Backed out changeset cc398c4ac5c8 (bug 1688700) for causing mochitest failures. CLOSED TREE 2021-01-27 22:59:12 +02:00
Edgar Chen
b8a3cfd15d Bug 1648435 - Make dom/events/test/test_mouse_enterleave_iframe.html waiting apz stable before starting tests; r=smaug
This test uses synthesizeNativeMouseMove to synthesize mouse events, the synthesized
native events would go through apz, so wait apz getting stable before starting test
to avoid possible timing problem that causes intermittent failure.

Differential Revision: https://phabricator.services.mozilla.com/D103192
2021-01-27 20:31:44 +00:00
Andrei Cristian Petcu
2ecfeb520c Bug 1688049 - Fix wrong focused elements on Import Password from CSV dialogs r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D102876
2021-01-27 20:35:28 +00:00
Andrew Osmond
f23716aee9 Bug 1689186 - Ship Software WebRender to Linux/Windows users to early beta. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103193
2021-01-27 20:31:01 +00:00
harry
1ae7268be1 Bug 1590880 - Reenable tabMatchesInAwesomebar on Fission Linux. r=adw
Looks like this test was fixed by changes to the address bar and/or Fission over the last 14 months.

Differential Revision: https://phabricator.services.mozilla.com/D103180
2021-01-27 19:56:53 +00:00
Calixte Denizet
238fc59b59 Bug 1689062 - Store Windows third party symbol files without CFI on symbol server r=gsvelto
Right now we don't store missing symbols when binary is missing for 64 bit platforms.
But some people don't need CFI to unwind stack since they've their own stuff but need to get symbol from address.

Differential Revision: https://phabricator.services.mozilla.com/D103152
2021-01-27 20:22:26 +00:00
Emilio Cobos Álvarez
235e4bc694 Bug 1629381 - CanvasRenderingContext2D.drawImage shouldn't throw for e.g <video> if there's no valid surface to draw. r=sotaro
As per spec see comment.

Differential Revision: https://phabricator.services.mozilla.com/D103157
2021-01-27 20:09:25 +00:00
Emma Malysz
6d589aa680 Bug 1688700, add items to proton app menu r=fluent-reviewers,mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D103090
2021-01-27 19:58:22 +00:00
Butkovits Atila
89fe8f250d Backed out 8 changesets (bug 1679440, bug 1682069, bug 1667276) for causing failure on test_crash_backgroundtask_moz_crash.js. CLOSED TREE
Backed out changeset f06504e3219f (bug 1682069)
Backed out changeset 4d325f68ea24 (bug 1679440)
Backed out changeset 9ab334e527a5 (bug 1667276)
Backed out changeset 1c8d51d2c90f (bug 1667276)
Backed out changeset 8d6f10d83c6b (bug 1667276)
Backed out changeset 62488ec634f9 (bug 1667276)
Backed out changeset 1dcb2d1be264 (bug 1667276)
Backed out changeset c673fff5bd85 (bug 1667276)
2021-01-27 22:17:17 +02:00
Morgan Reschenberg
897cbb0e6e Bug 1688490: Gather moxParent directly instead of querying the parent of our gecko accessible r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D102965
2021-01-26 21:12:11 +00:00
Markus Stange
5850226b47 Bug 1688941 - Enforce and document that mTimingData is always non-null. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D103007
2021-01-27 19:24:19 +00:00
Benjamin Beurdouche
13d4b68816 Bug 1687701 - Remove IsCertificateDistrustImminent. r=keeler,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102416
2021-01-27 18:05:24 +00:00
Barret Rennie
409c413fb6 Bug 1688082 - Record time delta between content process launches r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D102684
2021-01-26 18:46:10 +00:00
Barret Rennie
26cde2a81c Bug 1688079 - Record maximum content process count per session r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D102683
2021-01-27 15:37:14 +00:00
Barret Rennie
617448e09e Bug 1688078 - Collect snapshot of content processes r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D102682
2021-01-27 15:38:08 +00:00
Itiel
12f7c87ec8 Bug 1688970 - common.inc.css changes to better match the specs for radiobuttons and checkboxes r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D103096
2021-01-27 18:18:17 +00:00
Nick Alexander
74a9608848 Bug 1682069 - Add test ensuring policies engine works for background tasks. r=mossop,mkaply
I've tested this explicitly with `AppUpdateURL` because that's the
policy-controlled value we care about for the first use case for
background tasks, namely the background update agent.

Differential Revision: https://phabricator.services.mozilla.com/D99846
2021-01-26 21:37:49 +00:00
Nick Alexander
4e25d0ed9d Bug 1679440 - Add test ensuring crash reporter works for background tasks. r=mossop,gsvelto
This adds a test to ensure that crash reporting works inside of
`application --backgroundtask ...` invocations.  A test-only `crash`
task is added that uses `CrashTestUtils.jsm` to trigger a crash.  The
`xpcshell` harness invokes that background task and processes any
minidump and extras just as it does for existing `xpcshell`
subprocesses.

The test is homed in `toolkit/crashreporter`, rather than in
`toolkit/components/backgroundtasks`, because there is special
handling for `CrashTestUtils.jsm` and the `testcrasher` library.  It's
probably possible to make that infrastructure usable from multiple
locations but it seems low value.

Differential Revision: https://phabricator.services.mozilla.com/D98096
2021-01-26 21:37:42 +00:00
Nick Alexander
60164cb603 Bug 1667276 - Post: Add test limiting the XPCOM graph of the no-op wait background task. r=mossop
This establishes a high water mark for code loaded (even after a short
delay) by a background task that does nothing.

Code loaded here means:

1) Chrome JSMs imported using `ChromeUtils.import`;

2) XPCOM services, generally long-lived, loaded using `do_getService`
   or `Services.*` or an equivalent;

3) XPCOM components defined in JavaScript and loaded via
   `chrome.manifest` entries.

At this time background tasks do not load any of category 3.  The
distinction is made because they are reported separately by Gecko.

This test is browser-chrome to make it easy/possible to work with
packaged builds.

Differential Revision: https://phabricator.services.mozilla.com/D98095
2021-01-26 21:37:39 +00:00
Nick Alexander
eb8ab6ddf2 Bug 1667276 - Part 3: Load a custom prefs file when running a background task. r=mossop,KrisWright
There are some complications here to handle unpackaged and packaged
builds.  In addition, there could be a difference between App prefs
and GRE prefs.  Since the underlying backgroundtasks code is built as
part of Gecko (i.e., `toolkit/...` rather than `browser/...`) I have
favoured GRE prefs.  I think, however, that what is written will work
for App-specific prefs, but I'm not concerned with that detail at this
time.

This also add tests for backgroundtask-specific prefs, which are
structured as both xpcshell and mochitest-chrome tests because
locally, the former tests unpackaged builds and the latter can
accommodate testing packaged builds.  We could use mochitest-chrome
for both, but this has been pleasant to work with locally.

Differential Revision: https://phabricator.services.mozilla.com/D97510
2021-01-27 18:10:33 +00:00
Nick Alexander
5548db0e56 Bug 1667276 - Part 2: Add BackgroundTasksManager to invoke task defined in JS. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D97512
2021-01-27 18:10:15 +00:00
Nick Alexander
ec0732e7d7 Bug 1667276 - Part 1: Wire background task mode into Gecko startup. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D97511
2021-01-26 21:37:21 +00:00
Nick Alexander
dcfe63b32e Bug 1667276 - Pre: Disable extension manager in background tasks mode. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D97509
2021-01-26 21:37:19 +00:00
Dave Townsend
dedd68dcac Bug 1667276 - Pre: Disable the startup cache when running a background task. r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D95198
2021-01-26 21:54:12 +00:00
Paul Zuehlcke
742670fd7c Bug 1686894 - Disable storage access heuristics to prevent telemetry race condition with the next test. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D103039
2021-01-27 16:56:22 +00:00
Jan de Mooij
4338a88176 Bug 1687441 part 13 - Add MInt32ToIntPtr. r=anba
Depends on D102729

Differential Revision: https://phabricator.services.mozilla.com/D102730
2021-01-26 09:22:29 +00:00
Jan de Mooij
61746e3d2f Bug 1687441 part 12 - Add support for IntPtr MConstants. r=anba
This will be useful for folding constant indexes to IntPtr in later patches.

Because we can't have different MConstant constructors with int64_t and intptr_t
arguments, reuse the one that takes int64_t by adding a MIRType argument to it.

Differential Revision: https://phabricator.services.mozilla.com/D102729
2021-01-26 09:07:18 +00:00
Jan de Mooij
e72d91e082 Bug 1687441 part 11 - Add MAdjustDataViewLength. r=anba
The alternative is to add support for MIRType::IntPtr to MSub and MMinMax which
seemed more complicated.

This also matches the IC code in EmitDataViewBoundsCheck. A later patch will
change codegen to branchSubPtr.

Depends on D102727

Differential Revision: https://phabricator.services.mozilla.com/D102728
2021-01-26 09:03:04 +00:00
Jan de Mooij
43faccb34b Bug 1687441 part 10 - Add MCompare::Compare_UIntPtr. r=anba
This will be used later for transpiling LoadTypedArrayElementExistsResult.

Depends on D102726

Differential Revision: https://phabricator.services.mozilla.com/D102727
2021-01-26 16:35:39 +00:00
Jan de Mooij
c888652779 Bug 1687441 part 9 - Add MIRType::IntPtr. r=anba
This is the type that will be used to represent indexes/offsets into TypedArray
and DataView objects.

Depends on D102725

Differential Revision: https://phabricator.services.mozilla.com/D102726
2021-01-26 08:38:43 +00:00
Jan de Mooij
d675db11a4 Bug 1687441 part 8 - Don't use a type policy for the index argument for atomics. r=anba
This matches what we do for similar cases like MLoadUnboxedScalar.

A later patch will change the operand type to MIRType::IntPtr and that's easier
if there's no type policy to worry about.

Depends on D102724

Differential Revision: https://phabricator.services.mozilla.com/D102725
2021-01-26 08:29:55 +00:00
Jan de Mooij
8a7633e993 Bug 1687441 part 7 - Add NumberEqualsInt64 and NumberIsInt64 to MFBT. r=sg
Tests based on the Int32 tests, with changes/tests for very large/small values.

Differential Revision: https://phabricator.services.mozilla.com/D102724
2021-01-27 15:52:29 +00:00