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

67510 Коммитов

Автор SHA1 Сообщение Дата
Aaron Klotz 004362bf3e Bug 1690384: Propagate error information up through XPCOMGlueLoad and GetBootstrap; r=glandium
We know that some GV installations (particularly but not exlcusively Focus) are
failing to load `libxul.so` during early Gecko bootstrapping. Unfortunately
a boolean pass/fail result is not giving us sufficient information to be able to
properly troubleshoot this problem.

This patch adds `mozilla::Result`-based return values to `XPCOMGlueLoad` and
`GetBootstrap` in an effort to produce more actionable information about these
failures.

We include either a `nsresult` or, if the failure is rooted in a dynamic linker
failure, appropriate platform-specific error information:

* On Unix-based platforms, a `UniqueFreePtr<char>` containing the string from `dlerror(3)`;
* On Windows, the Win32 `DWORD` error code from `GetLastError()`.

For non-Android platforms, I updated them to handle the new return type, but
otherwise did not make any further changes.

For Android, we include the error information in the message string that we pass
into the Java `Exception` that is subsequently thrown.

Differential Revision: https://phabricator.services.mozilla.com/D104263
2021-02-23 23:25:22 +00:00
Gijs Kruitbosch 75a736b09e Bug 1692376 - stop showing hover state for menuitems in the new windows 10 menus, r=jaws
I'm also updating the colours for the spec updates to menu colours.

Differential Revision: https://phabricator.services.mozilla.com/D106009
2021-02-23 23:20:10 +00:00
Tom Ritter e6322c7b6f Bug 1693861: Record telemetry for popular but unsupported privacy prefs r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D105823
2021-02-23 21:05:46 +00:00
Kris Maglione f508b30e41 Bug 1403348: Follow-up: Remove crash annotations for AsyncShutdown load failures. r=mccr8
They've done their job. It's clear at this point that these failures are
happening because of omni.ja corruption.

Differential Revision: https://phabricator.services.mozilla.com/D105834
2021-02-23 20:18:13 +00:00
Kershaw Chang 59e3afaf3d Bug 1694263 - P2: Record more file types in zero_byte_load telemetry r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D106139
2021-02-23 18:09:55 +00:00
harry 43ec533571 Bug 1594132 - Move background-color rules so they do not appear under appearance rules, enabling sidebar vibrancy. r=ntim,dao
`appearance` CSS rules allow elements to take on system appearance. For UI elements that we want to take on system styling, we set `appearance: auto` combined with platform-specific rules like `-moz-default-appearance: -moz-mac-vibrant-titlebar-light;`

macOS sidebar vibrancy broke because a background-color was being applied to `root`. That colour appeared under elements with `appearance: auto` set, so we wouldn't see the platform-specific styling. This patch moves the root background-color to `#navigator-toolbox`, so that it does not appear under `#sidebar-box`.

We still want a background colour applied to sidebars when a lwtheme includes one. We only want `appearance: auto` applied to sidebars when the active theme does not have sidebar styling rules. That's why `#sidebar-box:not(:-moz-lwtheme)` is changed to `#sidebar-box:not([lwt-sidebar])`.

This patch also removes the rule
```
:root:-moz-lwtheme {
  appearance: none;
}
```
from osx/global/global.css. There's no corresponding addition of a `#navigator-toolbox { appearance:none; }` rule because that rule already exists in [osx/browser.css](https://searchfox.org/mozilla-central/rev/7067bbd8194f4346ec59d77c33cd88f06763e090/browser/themes/osx/browser.css#45).

Differential Revision: https://phabricator.services.mozilla.com/D104416
2021-02-23 15:03:45 +00:00
Tom Tung f8a32ec9bc Bug 1665942 - Collect userContextId from tab in _collectBaseTabData and stop collecting it in the session history collection; r=nika,geckoview-reviewers,agi
### Story

When a COOP+COEP page is opened, we change the remoteness of the tab. After
changing the remoteness, the tab is then restored by its TabState. However,
we haven't collected userContextId through the current mechanism.

To fix that, this patch changes the way to collect userContextId.

### Test Plan

Test: D98296

Depends on D98296

Differential Revision: https://phabricator.services.mozilla.com/D98468
2021-02-23 08:28:57 +00:00
Rob Wu fa006df8b4 Bug 1693664 - Correctly run prefix logic in getWindowTitleForBrowser r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D105690
2021-02-23 08:23:44 +00:00
Tim Nguyen b2f6b738b8 Bug 1693979 - Adjust visual weight of notification bar shadow and icon spacing. DONTBUILD
Reduces the uneven spacing from the icons, and the weight of the shadow (while keeping some of it, so it still looks over like part of browser chrome).

Differential Revision: https://phabricator.services.mozilla.com/D106070
2021-02-23 07:52:29 +00:00
Mike Hommey 23f4404e5f Bug 1693689 - Avoid bootstrapping toolchains unless needed. r=firefox-build-system-reviewers,andi,sheehan,mhentges
- Only bootstrap sccache when building with --with-ccache=sccache or
  CCACHE=sccache
- Don't bootstrap dump_syms or nasm on builds that don't compile

Differential Revision: https://phabricator.services.mozilla.com/D105704
2021-02-23 03:34:04 +00:00
Mihai Alexandru Michis ac04bdcbeb Bug 1692940 - Fix bustages on Win 2012 AArch64. a=bustage-fix
CLOSED TREE
2021-02-23 05:05:43 +02:00
Mike Hommey fbbe02d958 Bug 1692940 - Remove build system support for yasm. r=firefox-build-system-reviewers,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D105432
2021-02-23 01:26:46 +00:00
Mike Hommey ed44c83111 Bug 1692940 - Switch ffvpx build to nasm instead of yasm. r=firefox-build-system-reviewers,dmajor
nasm doesn't like compiling simple_idct10.asm on x86
(https://bugzilla.nasm.us/show_bug.cgi?id=3392738), which is empty once
preprocessed for x86, so exclude it there.

Differential Revision: https://phabricator.services.mozilla.com/D105429
2021-02-23 01:26:45 +00:00
Mike Hommey a2f6caf5a0 Bug 1692940 - Switch jpeg build to nasm instead of yasm. r=firefox-build-system-reviewers,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D105428
2021-02-23 01:26:45 +00:00
Mike Hommey 0aa2e2da9a Bug 1692940 - Switch vpx build to nasm instead of yasm. r=firefox-build-system-reviewers,dmajor
We also remove the dependency on the check for GNU as, because all the
build environments we support for arm use GNU as, and the dependency
causes complications.

Differential Revision: https://phabricator.services.mozilla.com/D105427
2021-02-23 01:26:44 +00:00
Mike Hommey 5479923a50 Bug 1692940 - Change the logic to check for nasm. r=firefox-build-system-reviewers,dmajor
Instead of preemptively check for it, and then check if it's good enough to
build AV1, only check for (and bootstrap) nasm when building AV1 requires
it.

At the same time, we future-proof the code to be able to handle multiple
things requiring nasm, which we're going to add shortly.

Differential Revision: https://phabricator.services.mozilla.com/D105425
2021-02-23 01:26:43 +00:00
smolnar c245e071f7 Backed out changeset 7c67e3cb1ded (bug 1403348) for causing xpc failures in AsyncShutdown. CLOSED TREE 2021-02-23 02:17:08 +02:00
Tim Nguyen 617dd08efc Bug 1689230 - Simplify gViewController API methods. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D103251
2021-02-22 22:44:03 +00:00
Mike Hommey e83b8b7220 Bug 1693215 - Simplify the ffvpx configuration. r=firefox-build-system-reviewers,dmajor
Since MOZ_LIBAV_FFT doesn't need the flags, we simplify the libav_fft
function to return true in the conditions it used to return flags for,
which is clearer.
We then move all these flags to the ffvpx function, and rearrange the
tests to be less convoluted, and with hope, more readable.

This has been verified to not change the outcomes on the following
targets:
- i686-pc-linux-gnu
- x86_64-pc-linux-gnu
- aarch64-unknown-linux-gnu
- arm-unknown-linux-gnueabi
- s390x-unknown-linux-gnu
- i686-apple-darwin
- x86_64-apple-darwin
- aarch64-apple-darwin
- i686-pc-mingw32
- x86_64-pc-mingw32
- aarch64-pc-mingw32

Differential Revision: https://phabricator.services.mozilla.com/D105400
2021-02-22 22:11:26 +00:00
Mike Hommey caa72b33bd Bug 1693215 - Don't check for yasm for libav. r=firefox-build-system-reviewers,dmajor
Bug 1476231 actually removed libav, so we don't build it, and don't need
neither the yasm check nor the LIBAV_FFT_ASFLAGS variable.
However, we still have checks, both in moz.build and code, for
MOZ_LIBAV_FFT, so we need to keep that.

Differential Revision: https://phabricator.services.mozilla.com/D105399
2021-02-22 22:11:26 +00:00
Mike Hommey 346820ef1f Bug 1693215 - Always depend on yasm >= 1.2 for ffvpx. r=firefox-build-system-reviewers,dmajor
Yasm 1.2 was released in October 2011. Let's just assume everyone can
use that now.

Differential Revision: https://phabricator.services.mozilla.com/D105398
2021-02-22 22:11:25 +00:00
Kris Maglione 9e57d6f966 Bug 1403348: Follow-up: Remove crash annotations for AsyncShutdown load failures. r=mccr8
They've done their job. It's clear at this point that these failures are
happening because of omni.ja corruption.

Differential Revision: https://phabricator.services.mozilla.com/D105834
2021-02-22 21:37:28 +00:00
Emma Malysz f05741c80d Bug 1690854, remove slow startup notification r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D105993
2021-02-22 21:20:36 +00:00
Florian Quèze b58b45313b Bug 1693561 - avoid stat'ing profiles.ini twice during startup, r=mossop.
Differential Revision: https://phabricator.services.mozilla.com/D105644
2021-02-22 20:48:14 +00:00
Emilio Cobos Álvarez 15ff419df0 Bug 1694059 - Rename various nnt prefs. r=spohl,mstange
As per feedback in D105931.

Differential Revision: https://phabricator.services.mozilla.com/D105991
2021-02-22 20:05:35 +00:00
Nan Jiang 1a0e71c351 Bug 1688698 - Add telemetry for sponsored TopSites r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D104846
2021-02-22 20:03:18 +00:00
Gijs Kruitbosch 8002a3c48c Bug 1678255 - prompt for external protocol links whose loads were also triggered externally, instead of looping forever, r=pbz,nika
This passes around the "are we external" bit of load information a bunch,
such that the external protocol handling code has access to it.

In this bug and bug 1667468, I think ideally I would have used a check
if we're the OS default for a given protocol before continuing. However,
this information is currently unavailable on Linux (bug 1599713), and
worse, I believe is likely to remain unavailable in flatpak and other
such restricted environments (cf. bug 1618094 - we aren't able to find
out anything about protocol handlers from the OS).

So instead, we prompt the user if we are about to open a link passed
to us externally. There is a small chance this will be Breaking People's
Workflows, where I don't know whether anyone relies on Firefox happily
passing these URIs along to the relevant application (more convenient
than doing all the registry/API work yourself in scripts!) or anything
like that. To help with that, there's a pref,
`network.protocol-handler.prompt-from-external`, that can be created and
set to false to avoid prompting in this case.

Differential Revision: https://phabricator.services.mozilla.com/D103967
2021-02-22 19:00:10 +00:00
Calixte Denizet 298788c5e7 Bug 1684928 - Enable mochitest for pdf.js JS sandbox r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D105832
2021-02-22 17:13:24 +00:00
Nihanth Subramanya b88988a027 Bug 1460314 - TRR: add telemetry probe for used HTTP version. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D100519
2021-02-22 14:43:15 +00:00
Valentin Gosu a9cce9ac08 Bug 1646452 - Key TRR telemetry by domain of DoH server r=nhnt11,necko-reviewers,dragana
This allows us to separate general TRR performance issues from "this user's
custom DoH server is slow or malfunctioning".
Any DoH servers domains that are not shipped by Firefox are reported as (other).

Differential Revision: https://phabricator.services.mozilla.com/D105602
2021-02-22 13:51:44 +00:00
Stephen A Pohl ca8b4e2c68 Bug 1693950: Ensure that chrome tests continue to use the native theme to not lose test coverage since we do not intend to enable the non-native theme in chrome at this time. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105856
2021-02-22 13:12:17 +00:00
Tim Nguyen b7714f3775 Bug 1693979 - Reduce the size of notification bars. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D105865
2021-02-22 12:47:30 +00:00
Simon Giesecke c5f7800f35 Bug 1691913 - Rename nsClassHashtable::LookupOrAdd to GetOrInsertNew. r=xpcom-reviewers,nika
It should be called "Get" rather than "Lookup" because it returns
UserDataType. "Add" is called "Insert" in the other methods.

Differential Revision: https://phabricator.services.mozilla.com/D105470
2021-02-22 12:07:47 +00:00
Simon Giesecke d2caea36fa Bug 1691894 - Simplify uses of WithEntryHandle that only use OrInsert(With) by using GetOrInsertWith. r=xpcom-reviewers,necko-reviewers,jgilbert,nika
Differential Revision: https://phabricator.services.mozilla.com/D104676
2021-02-22 12:07:46 +00:00
Gijs Kruitbosch 0598e83a2b Bug 1693276 - update button styles for proton r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D105481
2021-02-22 10:53:34 +00:00
Henri Sivonen 9d6d02b341 Bug 1663931 - Avoid moving focus when changing iframe remoteness. r=nika,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D99215
2021-02-22 10:51:51 +00:00
Butkovits Atila 7bb1cc6abf Bug 1676659 - disable browser_preview_switch_print_selected.js for frequent failures. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D105413
2021-02-20 15:33:00 +00:00
Kate Hudson 5ed61e3b12 Bug 1692230 - Move nimbus code to its own directory r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D105567
2021-02-20 02:51:12 +00:00
Kirk Steuber 72ce961859 Bug 1690062 - r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D105382
2021-02-20 00:49:02 +00:00
Michael Cooper 1aaf619aea Bug 1693402 - Add telemetry to determine source of unenrollFailed events r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D105541
2021-02-19 21:48:21 +00:00
MuraliAchanti 6c503d3275 Bug 1442053 - Change the following global variables from the C string to the C++ ones:pendingDirectory,crashReporterPath,memoryReportPath,libraryPath and eventsDirectory. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D105222
2021-02-19 20:50:23 +00:00
Dragana Damjanovic 66692fa536 Bug 1693738 - Extend HTTP3_CONNECTION_CLOSE_CODE telemetry and add more detail codes for the internal errors r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105725
2021-02-19 20:37:24 +00:00
Neil Deakin 2c12c67037 Bug 1676943, add telemetry for how often tab or subframe crash ui is presented to the user. In addition, add telemetry to indicate that the user is shown the unsubmitted crashes notification bar, r=mconley
The telemetry is triggered either when the user is shown the tab crashed page, or when the subframe notification is displayed and the crash occurs in an active tab, or when the user switches to a tab that has a subframe crash notification displayed. The telemetry only applies the first time the tab is switched to. The unsubmitted crashes notification bar appears after 10 minutes or so and is shown in the top-most browser window, if one exists, and telemetry applies once when this occurs.

Differential Revision: https://phabricator.services.mozilla.com/D100349
2021-02-19 19:24:17 +00:00
Emilio Cobos Álvarez 1663bc278f Bug 1693690 - Enable the native theme in toolkit/themes/osx. r=spohl
These tests rely on implementation details of nsNativeThemeCocoa.mm

Differential Revision: https://phabricator.services.mozilla.com/D105808
2021-02-19 18:16:55 +00:00
Brendan Dahl 587acac680 Bug 1693855 - Update pdf.js to version 2.8.117 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D105804
2021-02-19 18:07:48 +00:00
Calixte Denizet 582df65115 Bug 1667973 - Add a sandbox to evaluate js embedded in PDF r=bdahl,dveditz,robwu
PDF files can embed some js code in order to validate, format, ... the data entered by a user in a PDF form.
So in order to safely execute this js code, we create a Cu.Sandbox with only what we need/want to expose to the scripts.

Differential Revision: https://phabricator.services.mozilla.com/D91746
2021-02-19 16:14:38 +00:00
Ed Lee f348f8d342 Bug 1686343 - Ask user to pin Firefox during windows about:welcome onboarding r=pdahiya
Support pin special action and add a new action property to wait for default browser that changes styles and content.

Differential Revision: https://phabricator.services.mozilla.com/D105653
2021-02-19 10:25:54 +00:00
Butkovits Atila 7c91bb869c Backed out changeset 8c8e776cbd29 (bug 1667973) for causing failures on browser_all_files_referenced.js. CLOSED TREE 2021-02-19 12:24:56 +02:00
Calixte Denizet 28de5d33f4 Bug 1667973 - Add a sandbox to evaluate js embedded in PDF r=bdahl,dveditz,robwu
PDF files can embed some js code in order to validate, format, ... the data entered by a user in a PDF form.
So in order to safely execute this js code, we create a Cu.Sandbox with only what we need/want to expose to the scripts.

Differential Revision: https://phabricator.services.mozilla.com/D91746
2021-02-19 09:24:31 +00:00
Itiel 127183db97 Bug 1693663 - Add dark mode support for about:serviceworkers r=ntim,asuth
Differential Revision: https://phabricator.services.mozilla.com/D105689
2021-02-19 09:08:29 +00:00