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

748515 Коммитов

Автор SHA1 Сообщение Дата
Tim Nguyen bc646014e0 Bug 1693066 - Followup: use consistent end proton comment style. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D108317
2021-03-13 16:30:10 +00:00
Tim Nguyen ad5b1fde34 Bug 1698237 - Backed out changeset 18909220355a (bug 1697806).
Differential Revision: https://phabricator.services.mozilla.com/D108316
2021-03-13 16:06:33 +00:00
Tim Nguyen 9bfde53e84 Bug 1697623 - Restore old non-proton compact mode paddings. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D108315
2021-03-13 15:36:47 +00:00
Tim Nguyen 46fa6456fb Bug 1693066 - Implement new proton tab audio indicator design. r=jaws,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D107733
2021-03-13 14:17:36 +00:00
Emilio Cobos Álvarez 3345f44934 Bug 1698265 - Fix non-native theme with very light gtk themes.
Messed this up when introducing MozAccentColor.

Differential Revision: https://phabricator.services.mozilla.com/D108312
2021-03-13 13:13:32 +00:00
Dão Gottwald cd35bae523 Bug 1698249 - Move theme variables from browser/base/content/browser.css to browser/themes/shared/browser.inc.css. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D108309
2021-03-13 13:09:31 +00:00
Marco Bonardo 9bea0847a7 Bug 1697426 - Reduce the padding between Address Bar results in compact density. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D108250
2021-03-13 10:38:54 +00:00
Narcis Beleuzu 275b943a1e Merge mozilla-central to autoland 2021-03-13 12:09:41 +02:00
Butkovits Atila 140df51bd0 Bug 1692963 - disable browser_bug1691214.js for frequent failures. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D107367
2021-03-13 09:52:57 +00:00
Narcis Beleuzu 6806b58cd2 Merge autoland to mozilla-central. a=merge 2021-03-13 11:42:19 +02:00
Tim Nguyen c0e532d8c5 Bug 1698107 - Consolidate accessibility and private browsing icons. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D108195
2021-03-13 09:11:05 +00:00
Timothy Nikkel ca228427dd Bug 674371. Turn on the pref for double tap to zoom on mac. r=botond
Depends on D107389

Differential Revision: https://phabricator.services.mozilla.com/D107401
2021-03-13 08:24:02 +00:00
Hiroyuki Ikezoe f048161880 Bug 1697890 - Use IsRootContentDocumentCrossProcess in ScrollbarAreaToExcludeFromCompositionBoundsFor. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D108143
2021-03-13 08:15:38 +00:00
Daniel Holbert 801cf30e07 Bug 1662838 part 2: Remove nsIContentViewer's unused pausePainting() and resumePainting() APIs. r=tnikkel
These APIs are entirely unused (aside from one usage in a test, which part 1 in
this patch series removed), so this patch shouldn't impact behavior at all.

Historical note: we briefly removed these APIs once before, in this commit:
https://hg.mozilla.org/mozilla-central/rev/c216ff19d690
...but we brought them back because we had a motivating use case at the time.
We don't have any such motivating use cases any more, though.  So, this patch
here is essentially a modernized version of that older commit.

Differential Revision: https://phabricator.services.mozilla.com/D108148
2021-03-13 06:11:34 +00:00
Daniel Holbert 3b10d100f6 Bug 1662838 part 1: Adjust browser_promiseDocumentFlushed.js to use advanceTimeAndRefresh() instead of pausePainting(), as a way to pause the refresh driver. r=mconley,tnikkel
advanceTimeAndRefresh pauses the refresh driver, so it serves the same purpose
that pausePainting was serving here.

(This lets us remove the pausePainting() API entirely, because this was its
only callsite in our codebase.)

Differential Revision: https://phabricator.services.mozilla.com/D108147
2021-03-13 06:11:33 +00:00
Botond Ballo 5f78d6f8ef Bug 1696846 - Make sure APZ knows about the wheel listener in helper_zoom_with_touchpad.html before sending it events. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D108306
2021-03-13 03:48:10 +00:00
Doug Thayer fc47f797f9 Bug 1693052 - Update fxa signout dialog r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D108225
2021-03-13 03:05:17 +00:00
Bogdan Tara 5a7cb2592d Backed out 9 changesets (bug 1697935, bug 1697904) for assertion failure at StaticPrefList_layers.h and hardware acceleration related failures CLOSED TREE
Backed out changeset f37bc1afe77c (bug 1697904)
Backed out changeset 4aaab7a45b92 (bug 1697904)
Backed out changeset 87c31ed94b30 (bug 1697904)
Backed out changeset d9a650b603f5 (bug 1697904)
Backed out changeset c8680ade8ec5 (bug 1697904)
Backed out changeset 2b0048582dcf (bug 1697904)
Backed out changeset 09df3a61027d (bug 1697904)
Backed out changeset 17d4fbbd7a1e (bug 1697904)
Backed out changeset ddb46dad7605 (bug 1697935)
2021-03-13 04:47:57 +02:00
Tim Nguyen eec5839457 Bug 1698058 - Update downloads panel/window icons & icon button styling. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D108189
2021-03-13 01:51:28 +00:00
Timothy Nikkel c21d494430 Bug 1697756. Restructure dmanip code so it's not possible to hit MOZ_ASSERT(updateLastScale) in DManipEventHandler::OnContentUpdated. r=botond
I'm not sure if the weird dmanip behaviour coming from the OS is new (because we have a new bug (bug 1697091) that seems like dmanip has changed what it sends us sometimes), or has always existed. But it seems like a good idea to make the code robust against this.

We can hit this assert in the following way. It seems as though dmanip decides after the first few OnContentUpdate calls if it is processing a pinch or a pan (because we can get a scale that is slightly different from 1 on the first OnContentUpdated call, but after that point never changes at all while the offset is changing fluidly) and if it decides it is a pan then it locks the scale to whatever it's last value was. So if we get a scale that is very close to 1 but not fuzzy equal to 1 on the first OnContentUpdated call we will decide that we are processing a pinch, but dmanip can then decide that it's processing a pan. Once the user lifts their finger dmanip will inform us via OnViewportStatusChanged that it is now in inertia mode, it is allowed to go into inertia for pans but not pinches because we pass DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_INERTIA but not DIRECTMANIPULATION_CONFIGURATION_SCALING_INERTIA when we create dmanip here https://searchfox.org/mozilla-central/rev/87a8afd9f57ee4bc542ba0ec3f96a891042b6db7/widget/windows/DirectManipulationOwner.cpp#554 And then dmanip can go straight from inertia to running, this causes us to start a new pinch because our current scale is not fuzzy equal to 1. But also, the current scale has not changed, so it is equal to our last scale, so we have no scale change to send in the pinch start event.

An example of logging when it happens is helpful for understanding and can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=1697756#c2

Differential Revision: https://phabricator.services.mozilla.com/D107994
2021-03-13 01:11:30 +00:00
smolnar 547a309816 Backed out changeset 3d812f02347c (bug 1698058) for causing OS X build bustages. CLOSED TREE 2021-03-13 03:18:51 +02:00
Drew Willcoxon bee11b65b5 Bug 1691436 - Always include page actions in the address bar when Proton is enabled. r=Gijs
The IDs of actions pinned to the urlbar are kept in
`PageActions._persistedActions.idsInUrlbar`. To pin all actions to the urlbar,
theoretically all we need to do is add all action IDs to this array, and things
should just work. PageActions already has a migration mechanism that could check
if Proton is enabled and add all the action IDs if it is. However, that would
mean that if Proton were subsequently disabled, or if the user downgraded to a
Firefox without Proton, they'd end up with all their actions still in the
urlbar. They could remove them one by one so it's not a big problem, but it
would be annoying.

Instead, this patch keeps two arrays of urlbar IDs. One stashes the user's
original pinned actions and PageActions never touches it as long as Proton is
enabled, and the other is the usual array that happens to have the IDs of all
the actions when Proton is enabled.

Depends on D107763

Differential Revision: https://phabricator.services.mozilla.com/D107600
2021-03-13 00:52:11 +00:00
Emma Malysz 411ea1a3d2 Bug 1696524, update selected tab box shadow r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D108274
2021-03-13 00:40:02 +00:00
Tim Nguyen 6b556978c0 Bug 1698058 - Update downloads panel/window icons & icon button styling. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D108189
2021-03-13 00:35:11 +00:00
Ted Campbell c4a537e166 Bug 1697904 - Stop using RelaxedAtomicBool type for js prefs. r=jandem
We seem to have cargo-culted this in from nearby gfx code, but since we read
prefs only during the spidermonkey prefs callback this is a bit silly. Note
that the Streams cases *do* make use of off-thread uses of the mirror
variable from within Gecko.

Differential Revision: https://phabricator.services.mozilla.com/D108127
2021-03-13 00:33:10 +00:00
Ted Campbell d427d39af2 Bug 1697904 - Cleanup StaticPrefList.yaml formatting of javascript prefs. r=jandem
The top of the file has a clear formatting guide, so we should try to follow it.

Differential Revision: https://phabricator.services.mozilla.com/D108126
2021-03-13 00:33:10 +00:00
Ted Campbell 9f21666087 Bug 1697904 - Migrate the JIT spectre mitigation prefs to StaticPrefs. r=jandem
To simplify this code, turns these prefs into unlisted prefs on MIPS
platforms since the JIT support is missing there. The JitOptions will
continue to default them to false on MIPS.

Differential Revision: https://phabricator.services.mozilla.com/D108107
2021-03-13 00:33:09 +00:00
Ted Campbell 1cd5b3b30c Bug 1697904 - Migrate more JIT prefs to StaticPrefs. r=jandem
Also relax the type on large_arraybuffers to plain bool since it is only read
once on startup.

Differential Revision: https://phabricator.services.mozilla.com/D108106
2021-03-13 00:33:09 +00:00
Ted Campbell 2fddbf10e9 Bug 1697904 - Migrate JIT threshold prefs to StaticPrefs. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D108105
2021-03-13 00:33:08 +00:00
Ted Campbell 288af81e5b Bug 1697904 - Migrate JIT-enable prefs to StaticPrefs. r=jandem,KrisWright
Use 'mirror: once' for these prefs to make it clear they are only read again
after a restart.

Differential Revision: https://phabricator.services.mozilla.com/D108104
2021-03-13 00:33:08 +00:00
Ted Campbell 18136a0ffb Bug 1697904 - Make default values of unlisted javascript.options prefs explicit. r=jandem
These prefs are unlisted in all.js / StaticPrefs and so make sure that is
obvious from the code and that their default is explicit. These probably
should just become listed prefs in the future.

Differential Revision: https://phabricator.services.mozilla.com/D108103
2021-03-13 00:33:07 +00:00
Ted Campbell 1d1a50f0ca Bug 1697904 - Remove javascript.*.unsafe_eager_compilation prefs. r=iain
These prefs are unlisted (eg not in about:config) and seem to hark back to a
different era. In practice, setting the appropriate JIT threshold to 0 does
the same thing and is much clearer.

Differential Revision: https://phabricator.services.mozilla.com/D108102
2021-03-13 00:33:07 +00:00
Ted Campbell 5298ae8882 Bug 1697935 - Remove unused javascript.options.spectre.object_mitigations.barriers pref. r=iain
The "barriers" here refered to type-barriers which no longer exist after
IonBuilder was removed so this pref is now dead. Also remove the .misc suffix
of the sibling pref.

Differential Revision: https://phabricator.services.mozilla.com/D108123
2021-03-13 00:33:07 +00:00
Sam Foster 72d4c476b1 Bug 1682162 - Use the paperSizeUnit to display and handle mm/inch custom margin values. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D104291
2021-03-13 00:27:53 +00:00
Nick Alexander 2dd2d5d19d Bug 1694530 - Allow to prepend a distinct header by using MOZ_LOG=prependheader. r=xpcom-reviewers,nika
This is follow-up to Bug 1687549, which added the `maxsize` flag.
That works well, but it's hard to distinguish separate logging
sessions.  This makes it a little easier.

This calls through to a slightly modified `Print`, leveraging the
concurrency correctness of that implementation.  Doing so doesn't
allow great visual distinction, but it's enough.

This produces output like:
```
$ firefox --backgroundtask success --MOZ_LOG prependheader

***

[(null) 1937604: Main Thread]: I/Logger Opening log
*** You are running in background task mode. ***
...
```
and
```
$ firefox --backgroundtask success --MOZ_LOG prependheader,raw

***

Opening log
*** You are running in background task mode. ***
...
```

Differential Revision: https://phabricator.services.mozilla.com/D106224
2021-03-13 00:18:47 +00:00
Gijs Kruitbosch d6848e7101 Bug 1692082 - fix spacing, icons and colours for checkmarks and arrows in Windows 10 menus, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108108
2021-03-13 00:16:36 +00:00
Toshihito Kikuchi 2279f22a3f Bug 1697282 - Make the repo buildable without MOZ_LAUNCHER_PROCESS. r=aklotz
This patch makes sure the repo can be built without `MOZ_LAUNCHER_PROCESS`.

- Compile WinTokenUtils.cpp under winlaucher regardless of `MOZ_LAUNCHER_PROCESS`
  because we still need `IsAdminWithoutUac`.
- Skip TestDllBlocklist.NoOpEntryPoint GTest because the `RedirectToNoOpEntryPoint`
  feature is only available with the new blocklist with the launcher process.

Differential Revision: https://phabricator.services.mozilla.com/D108142
2021-03-12 23:38:01 +00:00
Tomislav Jovanovic fdbb88c4cf Bug 1646817 - Support DocumentChannel process switching in sidebars and popups r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D100396
2021-03-12 22:58:29 +00:00
Emilio Cobos Álvarez ccbc2fe63d Bug 1698175 - Add a pref for window.print to block. r=tsmith
Let me know if this doesn't work for your purposes.

Differential Revision: https://phabricator.services.mozilla.com/D108254
2021-03-12 22:45:46 +00:00
Mitchell Hentges 4672929606 Bug 1695366: Only submit Sentry events when Mach is unmodified r=sheehan
If the "mach" file and all "*.py" files are unchanged, then the reported
exception is likely legitimate and can be reproduced on the public tree.

Differential Revision: https://phabricator.services.mozilla.com/D108262
2021-03-12 22:29:28 +00:00
Bogdan Tara afa4e42330 Backed out 3 changesets (bug 1693677) for browser_devices_get_user_media_grace.js failures CLOSED TREE
Backed out changeset df230c366ab3 (bug 1693677)
Backed out changeset 816d2b917939 (bug 1693677)
Backed out changeset f9895c7f1b26 (bug 1693677)
2021-03-13 01:16:10 +02:00
Dave Hunt 9e3ef144c3 Bug 1697772 - Replace uses of "whitelist" with "allowlist" in Talos r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D108163
2021-03-12 22:04:46 +00:00
Emma Malysz 6e4c1b1588 Bug 1694678: update fxa and remote tabs sync now buttons r=fluent-reviewers,mconley
This patch:
-Maintains consistency between the fxa and remote tabs' panels "sync now" buttons
-Removes a fluent string no longer in use
-Restores tooltip functionality

Differential Revision: https://phabricator.services.mozilla.com/D106651
2021-03-12 21:41:46 +00:00
heftydav cfda812b52 Bug 1669205 - Ensure PictureinPicture attribute is preserved when parent tab is changed r=mhowell,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D105831
2021-03-12 21:27:24 +00:00
Tim Nguyen 94c7e50db9 Bug 1695172 - Fix some flaws with the --toolbar-start-end-padding first button selector. r=mstriemer
* Applies it on toolbarpaletteitem for customize mode.
* Stops applying it on every child of the first toolbaritem child, since the content of toolbaritem is unpredictable (zoom-controls, reload/stop, profiler icon & dropmarker.

Differential Revision: https://phabricator.services.mozilla.com/D108258
2021-03-12 21:26:36 +00:00
Sebastian Zartner 13bcca8ae3 Bug 1212958 - Unified splitter colors throughout DevTools. r=victoria
This change unifies the different colors of splitters used within the different panels.

"Splitter" here referes to a thin (usually one pixel wide) line between different items in the UI. It does not mean borders around items.

Differential Revision: https://phabricator.services.mozilla.com/D105682
2021-03-12 21:23:51 +00:00
Bogdan Tara 4ef8cbdcc7 Backed out changeset 7480579b4348 (bug 1692308) for abouthomecache mochitest failures CLOSED TREE 2021-03-12 23:28:57 +02:00
Mike Hommey a34d14071f Bug 1697960 - Don't prompt for telemetry when glean couldn't be installed. r=firefox-build-system-reviewers,mhentges,sheehan
Bootstrap runs mach create-mach-environment, which may or may not
successfully install glean. When it doesn't, it's not useful to ask
whether to enable telemetry when it's not going to work.

Differential Revision: https://phabricator.services.mozilla.com/D108131
2021-03-12 21:14:40 +00:00
Jed Davis 8262eb0e29 Bug 1690921 - Detect socket syscalls only once per process when building Linux sandbox policies. r=gcp
The function to detect whether the kernel has separate syscalls for
socket operations (rather than only `socketcall`) had a comment that
it's called only once, which is no longer true.  So, this seems like a
good time to add a cache (but not on newer archs like `x86_64` where the
answer is constant).

This patch also removes the ifdefs on `__NR_socket`, because all archs
have it now, and our local headers will define it even if the build
host's headers don't.

Differential Revision: https://phabricator.services.mozilla.com/D105853
2021-03-12 21:12:11 +00:00
Jed Davis 2d6db34852 Bug 1690921 - Limit IPC `sendmsg` gather list sizes based on socket buffer capacity. r=mccr8,gcp
When setting up calls to `sendmsg` for IPC on Unix systems, we generate
`iovec`s for the entire message or until the `IOV_MAX` limit is reached,
whichever comes first.  However, messages can be very large (up to 256
MiB currently), while the OS socket buffer is relatively small (8KiB on
macOS and FreeBSD, ~200KiB on Linux).

This patch detects the socket buffer size with the `SO_SNDBUF` socket
option and cuts off the `iovec` array after it's reached; it also adjusts
the Linux sandbox policy to allow reading that value in all processes.

On my test machines this increases throughput on large messages by about
2.5x on macOS (from ~0.3 to ~0.7 GB/s), but on Linux the improvement is
only about 5% (most of the running time is spent elsewhere).

Differential Revision: https://phabricator.services.mozilla.com/D105852
2021-03-12 21:12:10 +00:00