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

19432 Коммитов

Автор SHA1 Сообщение Дата
Butkovits Atila 67c65f256e Backed out 4 changesets (bug 1708235, bug 1708236) for causing build bustages. CLOSED TREE
Backed out changeset 87bf4278726e (bug 1708236)
Backed out changeset 26f9043652b4 (bug 1708236)
Backed out changeset 48fb4213beb9 (bug 1708235)
Backed out changeset 26e29ac0e610 (bug 1708235)
2021-04-30 20:01:22 +03:00
Matthew Gaudet 6b5353d84b Bug 1708236 - Enable Private Methods Preference by default r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D113706
2021-04-30 16:00:21 +00:00
Matthew Gaudet af595692c6 Bug 1708235 - Enable Private Fields Preference by default r=yulia,robwu
Differential Revision: https://phabricator.services.mozilla.com/D113704
2021-04-30 16:00:19 +00:00
Emilio Cobos Álvarez 9ffb840117 Bug 1707957 - Extract both light and dark system colors in GTK. r=stransky
And add code to use the appropriate variant like we do in macOS with
respect-system-appearance (but this still needs more work as noted in
StaticPrefList.yaml).

Still, it cleans up a bunch, and allows to not depend on the content
process boundary to provide light system colors.

Depends on D113542

Differential Revision: https://phabricator.services.mozilla.com/D113543
2021-04-30 12:36:50 +00:00
Dragana Damjanovic fe31a10105 Bug 1708567 - Add support for HTTP3 version 1 behind a pref r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D113881
2021-04-30 11:33:39 +00:00
Olli Pettay c5a8c77991 Bug 1705734 - Enable BFCache for pages with *unload event listeners on Android, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D112824
2021-04-30 11:17:01 +00:00
Valentin Gosu d3f14d0f5b Bug 1694662 - Remove Appcache storage pref r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D106461
2021-04-30 07:20:26 +00:00
Narcis Beleuzu 92be708195 Backed out changeset 87d9ec38423c (bug 1705734) for xpcshell failures on test_ext_contentscript_context_isolation.js (Bug 1659984) . CLOSED TREE 2021-04-30 06:43:14 +03:00
Chris Martin 133f7ff00b Bug 1697865 - Add Win32k Lockdown Pref to Nightly Experiments r=preferences-reviewers,jaws,fluent-reviewers
Win32k Lockdown is getting to the point where we *could* have people in the
community start testing. Let's make it easy for them!

Differential Revision: https://phabricator.services.mozilla.com/D108255
2021-04-28 13:40:59 +00:00
Valentin Gosu cab101ef5e Bug 1574475 - Remove ftp prefs r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111247
2021-04-28 09:33:46 +00:00
Butkovits Atila 6e4df5e067 Backed out 2 changesets (bug 1707872, bug 1707957) for causing valgrind failures. CLOSED TREE
Backed out changeset 0fb0e3d056f8 (bug 1707957)
Backed out changeset 03767acc6135 (bug 1707872)
2021-04-28 07:46:21 +03:00
Olli Pettay eefe8aaa00 Bug 1705734 - Enable BFCache for pages with *unload event listeners on Android, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D112824
2021-04-27 23:30:33 +00:00
Emilio Cobos Álvarez 19af6bcbf4 Bug 1707957 - Extract both light and dark system colors in GTK. r=stransky
And add code to use the appropriate variant like we do in macOS with
respect-system-appearance (but this still needs more work as noted in
StaticPrefList.yaml).

Still, it cleans up a bunch, and allows to not depend on the content
process boundary to provide light system colors.

Depends on D113542

Differential Revision: https://phabricator.services.mozilla.com/D113543
2021-04-27 22:34:56 +00:00
Emilio Cobos Álvarez 9402e09c63 Bug 1707895 - Make the -moz-toolbar-prefers-color-scheme a tri-state. r=mstriemer
This will allow detecting the system theme, which allows fixing some of
the blocked bugs.

Note that when using the system theme we will still match light or dark
appropriately, so this shouldn't change behavior just yet.

Differential Revision: https://phabricator.services.mozilla.com/D113516
2021-04-27 16:20:35 +00:00
Valentin Gosu 0033f0524c Bug 1707853 - Add always-skipped unit test for documentation purposes r=necko-reviewers,dragana
This test is for documentation purposes. You may run it locally on Windows by removing the skip-if = true from xpcshell.ini
As sharing  folders on windows requires elevated priviledges, you will need to execute some commands in a separate cmd.exe instance with Admin priviledges.

Differential Revision: https://phabricator.services.mozilla.com/D113498
2021-04-27 13:33:28 +00:00
Valentin Gosu e7889adba2 Bug 1707853 - Use std::copy instead of memcpy to ensure exception handling works r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D113497
2021-04-27 13:33:27 +00:00
Emilio Cobos Álvarez 34a9a0f457 Bug 1705605 - Implement accent-color in nsNativeBasicTheme. r=mstange
This is a new addition for CSS UI Level 4:

  https://drafts.csswg.org/css-ui-4/#widget-accent

I want to provide feedback on some spec issues, and thought it was a
kinda neat thing to prototype (it also makes testing contrast and such
with random GTK themes easier).

For now enable for Nightly only.

Differential Revision: https://phabricator.services.mozilla.com/D112312
2021-04-27 10:41:00 +00:00
Kershaw Chang 0855cd1e18 Bug 1703934 - P2: Use another parallel limit for backup speculative connection, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D112349
2021-04-27 08:37:25 +00:00
Jan Varga a43be2a21f Bug 1702422 - Report failed LoadQuotaFromCache as a warning (instead of an error); r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D113370
2021-04-27 07:12:23 +00:00
Jeff Muizelaar b57459857a Bug 1707682 - Bump up GPU process max restarts. r=aosmond
We've been using 3 on Nightly for a long time without
any problems and it's generally much better to keep the GPU
process around than give up on it.

We also bump the Nightly value to increase the chances of us
finding any problems where we should give up on using the GPU process.

Differential Revision: https://phabricator.services.mozilla.com/D113393
2021-04-26 20:22:20 +00:00
Kagami Sascha Rosylight 2489bd2d16 Bug 973604 - Mark set/releaseCapture() as deprecated r=annevk,edgar
Differential Revision: https://phabricator.services.mozilla.com/D113195
2021-04-26 19:37:45 +00:00
Alexandru Michis 7602acfd71 Backed out 3 changesets (bug 1703934) for causing xpcshell failures in test_http3_fast_fallback.js
CLOSED TREE

Backed out changeset 9dea771db2ce (bug 1703934)
Backed out changeset 2a51d2530939 (bug 1703934)
Backed out changeset 6af76624ce86 (bug 1703934)
2021-04-26 19:56:53 +03:00
Sean Feng 8128d06c90 Bug 1706794 - Enable dom.input_events.strict_input_vsync_alignment in Nightly again r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D113039
2021-04-26 14:27:15 +00:00
Robert Mader 4cde7dfa5c Bug 1707209 - [wayland] Implement experimental fractional scaling support, r=stransky
Fractional scaling currently comes at a high performance cost as we
only support integer scaling for rendering. The overdraw ratio is
something like (ceil(scale) / scale)^2, which for 125% scaling means
we're drawing 2.56 times as much as we should.

In theory we already support everything needed to have proper fractional
scaling: Webrender support appears to be in great shape and on the Wayland
side we can use the wp_viewporter protocol to have arbitrary
buffer size <-> surface size relationships. The main blocker remains the
lack of proper negotiation between client and compositor about the
optimal buffer size.

In order to speed up the upstream discussion, lets implement it via a
fixed value that can be set in `about:config` for testing purposes
(`widget.wayland.fractional_buffer_scale`).
It will, of course, require wp_viewporter support from the compositor.

Differential Revision: https://phabricator.services.mozilla.com/D113321
2021-04-26 13:57:23 +00:00
Kershaw Chang 058591b002 Bug 1703934 - P2: Use another parallel limit for backup speculative connection, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D112349
2021-04-26 12:58:00 +00:00
Csoregi Natalia 269bcb3624 Backed out changeset ff7ef68e1267 (bug 1706794) for causing assertion failures on InputTaskManager.cpp. CLOSED TREE 2021-04-22 19:10:00 +03:00
Narcis Beleuzu 33cc31099d Backed out 8 changesets (bug 1574475, bug 1699222) for build bustages on moz.build . CLOSED TREE
Backed out changeset 6c2c039872b3 (bug 1574475)
Backed out changeset 8a2a04743c5f (bug 1699222)
Backed out changeset 9437c60798d6 (bug 1574475)
Backed out changeset 7ef1884ac11b (bug 1574475)
Backed out changeset ec8c237d5298 (bug 1574475)
Backed out changeset 4a760b3f5d53 (bug 1574475)
Backed out changeset b229b0eea1e7 (bug 1574475)
Backed out changeset 03d34a2f10a6 (bug 1574475)
2021-04-22 18:10:59 +03:00
Valentin Gosu 7c9a639c26 Bug 1574475 - Remove ftp prefs r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111247
2021-04-22 13:41:33 +00:00
Sean Feng d2993fc6ae Bug 1706794 - Enable dom.input_events.strict_input_vsync_alignment in Nightly again r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D113039
2021-04-22 13:34:27 +00:00
Markus Stange 0b4e2da8d5 Bug 1700679 - Enable native context menus by default. r=harry,mac-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113029
2021-04-22 12:40:23 +00:00
Brindusan Cristian 326e86c0f3 Backed out 2 changesets (bug 1703934) as requested on irc by kershaw for causing a possible regression. CLOSED TREE
Backed out changeset 46cd307ba50c (bug 1703934)
Backed out changeset 8a7e66be31e2 (bug 1703934)
2021-04-21 14:10:30 +03:00
Christoph Kerschbaumer fb0cf1ec76 Bug 1706552: Change HTTPS First Mode pref to dom.security.https_first r=lyavor
Differential Revision: https://phabricator.services.mozilla.com/D112918
2021-04-21 10:56:54 +00:00
Kershaw Chang cea51c8354 Bug 1703934 - P2: Use another parallel limit for backup speculative connection, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D112349
2021-04-21 08:59:20 +00:00
Kagami Sascha Rosylight 9e2ce50d93 Bug 1637259 - Dispatch touch event for WM_POINTER r=edgar,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111513
2021-04-21 00:13:14 +00:00
Csoregi Natalia 7fe2a291b2 Backed out changeset 267e8925453b (bug 1637259) for failures on pointerevent_attributes_nohover_pointers-manual.html. CLOSED TREE 2021-04-21 00:02:25 +03:00
Tom Schuster c13ba0db61 Bug 1701512 - Add a separate pref for clipboard.read(). r=nika
Differential Revision: https://phabricator.services.mozilla.com/D110043
2021-04-20 20:40:08 +00:00
Kagami Sascha Rosylight 8dc6d93c55 Bug 1637259 - Dispatch touch event for WM_POINTER r=edgar,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111513
2021-04-20 20:13:41 +00:00
Agi Sferro f8a731e34e Bug 1696145 - Support Notification.silent and .vibrate on Android. r=smaug,droeh,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111924
2021-04-20 18:35:36 +00:00
Csoregi Natalia cd658de8c3 Backed out 2 changesets (bug 1696145) for causing build bustage on notifications. CLOSED TREE
Backed out changeset 2e18b65dd133 (bug 1696145)
Backed out changeset 6d302afe732f (bug 1696145)
2021-04-20 20:13:56 +03:00
Agi Sferro 97ede8ffca Bug 1696145 - Support Notification.silent and .vibrate on Android. r=smaug,droeh,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111924
2021-04-20 16:38:45 +00:00
Matthew Gaudet 183afd855e Bug 1648090 - Add context option for ergnomic brand checks r=arai
Differential Revision: https://phabricator.services.mozilla.com/D86571
2021-04-20 15:21:38 +00:00
Chris Fallin c0d9956b61 Bug 1701885 part 6 - Fix signals for WASI. r=jandem,wingo
WASI lacks of the signals support yet, so this patch stubs out
uses of signals for WASI.

Differential Revision: https://phabricator.services.mozilla.com/D110216
2021-04-20 05:15:28 +00:00
Dorel Luca bbbfdba1d1 Backed out changeset 15ba31c95972 (bug 1706160) for Devtool failures in devtools/client/netmonitor/test/browser_net_copy_headers.js. CLOSED TREE 2021-04-20 07:33:26 +03:00
Jon Bauman 2f3bded146 Bug 1706160 - Enable AVIF support by default in Nightly. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D112649
2021-04-19 23:47:04 +00:00
Paul Adenot 3bb2455b40 Bug 1706104 - Remove more references to `media.useAudioChannelAPI` r=alwu DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D112619
2021-04-19 16:43:47 +00:00
Kershaw Chang 4797c96a42 Bug 1702332 - Reduce the amount of DNS queries for unavailable type records, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D111655
2021-04-19 13:56:50 +00:00
Mark Striemer 209f987106 Bug 1701691 - -moz-toolbar-prefers-color-scheme for dark theme detection r=desktop-theme-reviewers,emilio,harry
This adds a new @media query -moz-toolbar-prefers-color-scheme which works like
prefers-color-scheme but is set based on the browser theme rather than the OS
theme. The background colour of the toolbar is used to determine the theme
dark/light preference. This will be used for in-content common.css pages and
other UI elements that include that stylesheet in the browser-chrome through
shadow DOM.

The end result is that about: pages, infobars, and modals will now "match" the
browser theme (just light/dark mode, not LWT theming support).

Differential Revision: https://phabricator.services.mozilla.com/D111486
2021-04-18 22:22:49 +00:00
Emilio Cobos Álvarez c5e28b2599 Bug 1705946 - Add some prefs for datetime-local. r=smaug
This is a bit subtler than needed (ideally we'd just need one pref)
because android enables the support for the type even if it only creates
a textbox.

Co-Authored-By: Fernando García <fernando.garciagomez.01@telefonica.com>

Differential Revision: https://phabricator.services.mozilla.com/D112488
2021-04-18 18:05:54 +00:00
Valentin Gosu 3477d25274 Bug 1551562 - Use CopyMemory instead of memcpy on Windows inside try/catch blocks r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D112343
2021-04-16 12:58:28 +00:00
Noemi Erli f90389736b Backed out changeset 1c9943dacbdb (bug 1701691) for causing failures in browser_toolbar_prefers_color_scheme.js CLOSED TREE 2021-04-16 05:29:10 +03:00
Emilio Cobos Álvarez b42ccb7de0 Bug 1705509 - Hide -moz-outline-radius behind a pref. r=mstange
This property does nothing since bug 315209 got implemented.

Every single user that I checked was doing the same math by hand, so
hooray for good defaults :-)

Differential Revision: https://phabricator.services.mozilla.com/D112253
2021-04-16 01:01:45 +00:00
Mark Striemer 53099a968e Bug 1701691 - -moz-toolbar-prefers-color-scheme for dark theme detection r=desktop-theme-reviewers,emilio,harry
This adds a new @media query -moz-toolbar-prefers-color-scheme which works like
prefers-color-scheme but is set based on the browser theme rather than the OS
theme. The background colour of the toolbar is used to determine the theme
dark/light preference. This will be used for in-content common.css pages and
other UI elements that include that stylesheet in the browser-chrome through
shadow DOM.

The end result is that about: pages, infobars, and modals will now "match" the
browser theme (just light/dark mode, not LWT theming support).

Differential Revision: https://phabricator.services.mozilla.com/D111486
2021-04-16 00:43:46 +00:00
Csoregi Natalia 5cfbff72cd Backed out changeset 79c1392f7c43 (bug 1701691) for failures on browser_toolbar_prefers_color_scheme.js. CLOSED TREE 2021-04-15 22:18:09 +03:00
Mark Striemer 67dde35bda Bug 1701691 - -moz-toolbar-prefers-color-scheme for dark theme detection r=desktop-theme-reviewers,emilio,harry
This adds a new @media query -moz-toolbar-prefers-color-scheme which works like
prefers-color-scheme but is set based on the browser theme rather than the OS
theme. The background colour of the toolbar is used to determine the theme
dark/light preference. This will be used for in-content common.css pages and
other UI elements that include that stylesheet in the browser-chrome through
shadow DOM.

The end result is that about: pages, infobars, and modals will now "match" the
browser theme (just light/dark mode, not LWT theming support).

Differential Revision: https://phabricator.services.mozilla.com/D111486
2021-04-15 18:17:07 +00:00
Sarah Ukoha da4950549a Bug 1700412 - Refactor 'signon.recipes.remoteRecipesEnabled' pref to 'signon.recipes.remoteRecipes.enabled' r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D112064
2021-04-15 15:27:40 +00:00
Sean Feng e0c155f868 Bug 1705392 - Disable strict_input_vsync_alignment due to some Nightly crashes r=aryx a=crash-fix
disables feature and switches behavior back to the one before the current Nightly

Differential Revision: https://phabricator.services.mozilla.com/D112183
2021-04-15 13:15:37 +00:00
Botond Ballo 5802ebbce9 Bug 1704231 - Enable overscroll by default on Mac. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D112116
2021-04-15 01:19:05 +00:00
Timothy Nikkel 0bb019f25b Bug 674371. Turn on the pref for double tap to zoom on mac. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D107401
2021-04-15 00:28:22 +00:00
Jon Bauman bd341b09c9 Bug 1682995 - Revert Enable AVIF support by default. r=aosmond,valentin,necko-reviewers,preferences-reviewers,Gijs
Revert this change to turn AVIF off by default for now

Differential Revision: https://phabricator.services.mozilla.com/D111892
2021-04-14 23:36:23 +00:00
Gijs Kruitbosch 3144a6d586 Bug 1704616 - enable proton modals by default r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D112038
2021-04-14 22:41:11 +00:00
Sean Feng 1c6df38b7c Bug 1697585 - Make input tasks can be more strictly aligned with Vsync r=smaug
This patch introduces a new way to way to schedule input tasks, such
that input tasks remain at `InputHigh` priority normally, however, when
there's a pending `Vsync` priority task in the task queue, we
increase the priority of input tasks from `InputHigh` to `InputHighest` to
rush processing the pending input tasks.

There are two restrictions to ensure we don't delay vsync too much:
  - There's a hard limit duration
  - We won't process the input tasks that are newly added after we've
    started to process the current number of input tasks

Differential Revision: https://phabricator.services.mozilla.com/D109499
2021-04-14 19:56:42 +00:00
Narcis Beleuzu 53edf49750 Backed out 2 changesets (bug 1704616) for Mochitest failures in remote/cdp/test/browser/page/browser_javascriptDialog_prompt.js. CLOSED TREE
Backed out changeset 16e0111f7c6d (bug 1704616)
Backed out changeset 623c1b4ecf35 (bug 1704616)
2021-04-14 21:54:42 +03:00
Gijs Kruitbosch 23eb1e337b Bug 1704616 - enable proton modals by default r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D112038
2021-04-14 14:58:45 +00:00
Christoph Kerschbaumer 2688122af1 Bug 1704719: Introduce Pref for HTTPS-First in Private Browsing Mode r=JulianWels
Differential Revision: https://phabricator.services.mozilla.com/D112011
2021-04-14 11:10:39 +00:00
Julian Seward b84878b2a1 Bug 1686626 - Enable Ion by default for wasm on AArch64. r=lth.
This patch enables Ion by default as the optimising compiler for wasm on
AArch64, and disables Cranelift.  Cranelift is still available if the build is
configured with --enable-cranelift.  In that case, *only* Cranelift is
available.  There are no configuration flags to enable both Ion and Cranelift
simultaneously.

This mostly reverts the Phase 0 and Phase 1 patches that are bug 1678097
D102420 and D101867 respectively.

The command line option --wasm-force-ion has been removed.

With this patch in place, users of the shell should specify
`--wasm-compiler=optimizing` to get an optimising wasm compiler.  Which one is
provided depends on the configuration options as described above.
`--wasm-compiler=cranelift` and `--wasm-compiler=ion` are now only accepted
when the relevant compiler has been enabled, and so neither is a "safe" way to
request an optimising tier.

For that reason, test directories that previously requested
also-with-Ion-please by stating `test-also=--wasm-compiler=ion;` in their
`directives.txt` file, have been changed to use
`test-also=--wasm-compiler=optimizing;`.

In places where the JSContextOptions are set, the non-selected compiler (Ion
or CL) is explicitly set to `false` (eg, `.setWasmIon(false)`).  This may be
overly conservative, but seems wise given that it's not immediately obvious
what the previous value of that flag is, and given the recent difficulties
with incorrect option propagation/handling (eg, bug 1697560).

Differential Revision: https://phabricator.services.mozilla.com/D101695
2021-04-14 07:43:27 +00:00
Andrew Osmond cb0f2694b3 Bug 1704927 - Allow Software WebRender for all popups on early beta and Fission users. r=gfx-reviewers,jrmuizel
This patch turns on Software WebRender for all widgets that don't get
acceleration by default on nightly and early beta, as well as for users
who are put into the Fission experiment. It also cleans up our prefs to
simply enable it for all popups, and not just those affected by Fission.

Differential Revision: https://phabricator.services.mozilla.com/D111958
2021-04-13 23:58:49 +00:00
Edgar Chen 8031c3a6ce Bug 1684842 - Enable implicit pointer capture for touch on early Beta; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D111745
2021-04-13 22:10:19 +00:00
Boris Chiou 2729a10da1 Bug 1672073 - Ship aspect-ratio. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D105565
2021-04-13 18:50:44 +00:00
Christoph Kerschbaumer e1c35fda94 Bug 1658924: Implement HTTPS-First and automatically fall back to http if secure top-level connection is not available r=necko-reviewers,JulianWels,mattwoodrow,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111686
2021-04-13 17:43:12 +00:00
Jonathan Kew 7949bc6a18 Bug 1704494 - Enable the ascent-, descent-, and line-gap-override descriptors on all channels. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111629
2021-04-13 15:02:08 +00:00
Emilio Cobos Álvarez 210b1fa8e8 Bug 1704551 - Add attribute names to the bloom filter. r=boris
Safari does this. This reduces the runtime in the example linked from
comment 0 quite a lot (40ms on a local opt build, from ~130ms on a
release nightly build).

I added a pref because there's a slight chance of performance
regressions on pages that do not use attribute selectors, as we're now
doing more unconditional work per element (adding the attributes to the
bloom filter). But the trade-off should be worth it, I think.

Differential Revision: https://phabricator.services.mozilla.com/D111689
2021-04-13 10:53:40 +00:00
Butkovits Atila 6e5df92d0f Backed out changeset 6d5699810780 (bug 1686626) for causing arm64 bustage on central. CLOSED TREE 2021-04-13 01:53:09 +03:00
Eugen Sawin 33a0e4b5a4 Bug 1691819 - [2.1] Share required prefs to enable credit card and address form autocomplete for GeckoView. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D108521
2021-04-12 21:57:15 +00:00
Morgan Reschenberg 86d94a6438 Bug 1659511: Enable forced-colors by default r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111700
2021-04-12 21:29:13 +00:00
Christoph Kerschbaumer 5427febae7 Bug 1670244: Ensure we never load a document with a codebase principal in the wrong type of webIsolated process r=nika
Differential Revision: https://phabricator.services.mozilla.com/D108185
2021-04-12 18:06:52 +00:00
Valentin Gosu fffedbcc06 Bug 1703216 - Get rid of network.trr.bootstrapAddress pref r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D110913
2021-04-12 16:07:06 +00:00
Lars T Hansen 5cdb591a55 Bug 1703505 - Flip pref for large ArrayBuffer. r=jandem
Do the minimal amount of work to flip the default sense of the pref from false
to true.

One test case had to be tweaked because it assumed a 2GB max and we had not
stressed this with the --large-arraybuffer switch.

Added a test for the --no-large-arraybuffer switch.

Various test cases had to be tweaked to use the largeArrayBufferEnabled
predicate to guard tests that assumed specific buffer sizes, when those tests
could not easily be updated.

Differential Revision: https://phabricator.services.mozilla.com/D111100
2021-04-12 16:01:57 +00:00
Julian Seward 2288cd2d95 Bug 1686626 - Enable Ion by default for wasm on AArch64. r=lth.
This patch enables Ion by default as the optimising compiler for wasm on
AArch64, and disables Cranelift.  Cranelift is still available if the build is
configured with --enable-cranelift.  In that case, *only* Cranelift is
available.  There are no configuration flags to enable both Ion and Cranelift
simultaneously.

This mostly reverts the Phase 0 and Phase 1 patches that are bug 1678097
D102420 and D101867 respectively.

The command line option --wasm-force-ion has been removed.

With this patch in place, users of the shell should specify
`--wasm-compiler=optimizing` to get an optimising wasm compiler.  Which one is
provided depends on the configuration options as described above.
`--wasm-compiler=cranelift` and `--wasm-compiler=ion` are now only accepted
when the relevant compiler has been enabled, and so neither is a "safe" way to
request an optimising tier.

For that reason, test directories that previously requested
also-with-Ion-please by stating `test-also=--wasm-compiler=ion;` in their
`directives.txt` file, have been changed to use
`test-also=--wasm-compiler=optimizing;`.

In places where the JSContextOptions are set, the non-selected compiler (Ion
or CL) is explicitly set to `false` (eg, `.setWasmIon(false)`).  This may be
overly conservative, but seems wise given that it's not immediately obvious
what the previous value of that flag is, and given the recent difficulties
with incorrect option propagation/handling (eg, bug 1697560).

Differential Revision: https://phabricator.services.mozilla.com/D101695
2021-04-12 15:46:46 +00:00
Jamie Nicol 7abb7ce304 Bug 1615574 - Disable webrender shader cache on Adreno 3xx. r=aosmond
Loading cached shaders with glProgramBinary fails consistently for all
but the most trivial of our shaders on Adreno 3xx, so caching and
attempting to load them is a waste of time. Chromium and other
projects also appear to have disabled their shader caches on Adreno
3xx due to bugs.

This patch moves the gfx.webrender.program-binary-disk pref
declaration from all.js to StaticPrefList.yaml. Rather than directly
using the value of the pref to decide whether to create the shader
cache, we now initialize a Feature in gfxConfigManager with a default
value from the pref and then configure it from the blocklist. On
Android we block the feature on Adreno 3xx devices. The pref remains
true by default on Android and Windows, and false by default on Linux
and Macos.

Differential Revision: https://phabricator.services.mozilla.com/D111427
2021-04-12 15:14:12 +00:00
Emilio Cobos Álvarez 97ec9ca623 Bug 1704332 - Remove various image-orientation related prefs. r=tnikkel
These shipped in 77.

Differential Revision: https://phabricator.services.mozilla.com/D111550
2021-04-11 17:39:12 +00:00
Mark Striemer fa48ebee58 Bug 1702330 - Remove -moz-proton-infobars media query support r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D110963
2021-04-11 17:28:02 +00:00
Jonathan Kew 1bb19a1421 Bug 1694174 - Pref-on the shared font-list by default for all channels. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111533
2021-04-10 22:03:24 +00:00
Mike Conley 814c2cab99 Bug 1703716 - Enable Proton context menus by default. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D111477
2021-04-09 23:07:47 +00:00
Aaron Klotz 7ae503f61f Bug 1703968: Part 2 - Enable COOP+COEP prefs on GeckoView Nightly; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111444
2021-04-09 22:57:17 +00:00
Dorel Luca 0e53a30dc1 Backed out 7 changesets (bug 1703968) for WPT failures in hr-time/clamped-time-origin-isolated.https.html. CLOSED TREE
Backed out changeset f9628f3c1fe0 (bug 1703968)
Backed out changeset 2297f0570091 (bug 1703968)
Backed out changeset 4d48931594ed (bug 1703968)
Backed out changeset d169cd7d7083 (bug 1703968)
Backed out changeset fcb0f1251d66 (bug 1703968)
Backed out changeset cbe5389803cd (bug 1703968)
Backed out changeset ac7dbdbff84d (bug 1703968)
2021-04-10 01:27:48 +03:00
Ryan Hunt f37dc5a46c Bug 1677204 - wasm: Factor out feature gating to declarative macro. r=lth
This commit adds a declarative `JS_FOR_WASM_FEATURES` macro which
expands for every WebAssembly proposal we are gating. Most feature
gating code is refactored to use this macro so that we have one place
we need to change to get the majority of this code working. The only
place that needs to be updated for new features is the browser pref
declaration code, as that cannot use this macro. This is documented
in the new WasmFeatures.h header.

The feature gating logic should work almost identically as before.
The changes are:
 * All browser prefs are moved to StaticPrefList.yaml
 * The code to enable a feature was conditionally compiled to not
   enable the feature at variously stages of the "flag-flow". Now
   the only place that is conditionally compiled to not work is
   in the WasmXFlag functions. This is to make the macro simpler
   and might be able to be reverted if need be.
 * The flag for gc is shortened from gcTypes to gc so that the
   existing usages of the wasmGcEnabled shell function don't have
   to change.

This commit also has the effect of giving function-references/gc/
exception-handling a proper browser pref for enabling the features.

Differential Revision: https://phabricator.services.mozilla.com/D110820
2021-04-09 20:03:51 +00:00
Ryan Hunt 90c8728cc9 Bug 1677204 - wasm: Remove multi-value flag. r=lth
Multi-value has shipped and can remove its feature flag.

Differential Revision: https://phabricator.services.mozilla.com/D110819
2021-04-09 20:03:51 +00:00
Marco Bonardo 2c982d3c01 Bug 1703274 - Enable Proton Urlbar. r=jaws,extension-reviewers,zombie,rpl
Differential Revision: https://phabricator.services.mozilla.com/D110998
2021-04-09 18:20:21 +00:00
Emilio Cobos Álvarez 80d1a408b0 Bug 1704155 - Remove dead prefers-color-scheme: no preference code. r=dholbert
It was removed in bug 1643656.

Differential Revision: https://phabricator.services.mozilla.com/D111461
2021-04-09 18:02:49 +00:00
Aaron Klotz aeaf2a1c2e Bug 1703968: Part 2 - Enable COOP+COEP prefs on GeckoView Nightly; r=geckoview-reviewers,agi
Depends on D111443

Differential Revision: https://phabricator.services.mozilla.com/D111444
2021-04-09 16:45:54 +00:00
Dorel Luca 7c6d9844e5 Backed out 8 changesets (bug 1702330)for Browser-chrome failures in est/popups/browser_popup_blocker.js. CLOSED TREE
Backed out changeset b81511f8e157 (bug 1702330)
Backed out changeset 15f60f1d3f14 (bug 1702330)
Backed out changeset 809af1f94b4b (bug 1702330)
Backed out changeset 63cec3eadb4f (bug 1702330)
Backed out changeset b9964fb4dd70 (bug 1702330)
Backed out changeset 1e5ccb47056e (bug 1702330)
Backed out changeset 65faaeeb2339 (bug 1702330)
Backed out changeset e72fb8b52609 (bug 1702330)
2021-04-09 20:21:35 +03:00
Mark Striemer 7f49e59cfb Bug 1702330 - Remove -moz-proton-infobars media query support r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D110963
2021-04-09 15:26:25 +00:00
Cosmin Sabou 13826a4c50 Backed out changeset bd396182f84a (bug 1703274) for causing wpt failures on shape-outside-shape-arguments-000.html. CLOSED TREE 2021-04-09 17:51:48 +03:00
Christoph Kerschbaumer 47028a5674 Bug 1703847: Disable Mixed Content Auto-upgrading in Nightly (and in general) r=JulianWels,arthuredelstein
Differential Revision: https://phabricator.services.mozilla.com/D111272
2021-04-09 12:20:24 +00:00
Marco Bonardo af19ef5dc4 Bug 1703274 - Enable Proton Urlbar. r=jaws,extension-reviewers,zombie,rpl
Differential Revision: https://phabricator.services.mozilla.com/D110998
2021-04-09 11:05:17 +00:00
Aaron Klotz 2ffd0ef1a2 Bug 1668952: Part 1 - Remove GeckoView-specific limits on URI length from Necko; r=necko-reviewers,valentin
For webcompat reasons, we have determined that we should only limit the length
of URIs in specific cases. We're going to handle this on the GV side instead.

Differential Revision: https://phabricator.services.mozilla.com/D109426
2021-04-09 06:01:58 +00:00
Gijs Kruitbosch 79ad8f7e81 Bug 1703716 - Enable Proton panels. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D111202
2021-04-09 00:33:05 +00:00
Alexandru Michis b40e464292 Backed out 5 changesets (bug 1702330) for causing failures in browser_aboutNewTab_defaultBrowserNotification.js
CLOSED TREE

Backed out changeset 365fd1bb6dde (bug 1702330)
Backed out changeset eba73c72be18 (bug 1702330)
Backed out changeset e1277c21543f (bug 1702330)
Backed out changeset 907e4fcda266 (bug 1702330)
Backed out changeset eb2a8569ed02 (bug 1702330)
2021-04-09 03:34:23 +03:00
Mark Striemer 77be5a8d55 Bug 1702330 - Remove -moz-proton-infobars media query support r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D110963
2021-04-08 22:25:05 +00:00
Gijs Kruitbosch ff36c1a84e Bug 1703716 - Revert backout of 44916257e305 since it was backed out twice.
CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D111202
2021-04-09 00:29:43 +03:00
Alexandru Michis c4b2eb6394 Backed out changeset 44916257e305 (bug 1703716) for causing reftest failures in menulist-shrinkwrap-2.xhtml
CLOSED TREE
2021-04-09 00:10:23 +03:00
Alexandru Michis 678bd611d2 Backed out changeset 44916257e305 (bug 1703716) for causing accessible failures in test_visibility.xhtml
CLOSED TREE
2021-04-08 23:56:22 +03:00
Lars T Hansen 4dcaa0f34d Bug 1695585 - Flip SIMD flag to true for x64/x86. r=rhunt
Flip javascript.options.wasm_simd to true for beta and release.

This patch leaves the flag as true on nightly and otherwise false, for arm64,
since arm64 code landing is imminent.  But in truth simd is not even compiled
in for arm64 at the moment.

Differential Revision: https://phabricator.services.mozilla.com/D111285
2021-04-08 18:50:02 +00:00
Brindusan Cristian cd41c3c30d Backed out changeset 63ddc2074344 (bug 1703847) for causing wpt failures in tao-origin-SO-XO-SO-redirect-chain.https.html. CLOSED TREE 2021-04-08 22:32:40 +03:00
Gijs Kruitbosch 5316e4e5a7 Bug 1703716 - Enable Proton context menu and panels. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D111202
2021-04-08 17:55:47 +00:00
Christoph Kerschbaumer f6bf4b9638 Bug 1703847: Disable Mixed Content Auto-upgrading in Nightly (and in general) r=JulianWels,arthuredelstein
Differential Revision: https://phabricator.services.mozilla.com/D111272
2021-04-08 17:50:53 +00:00
Ryan VanderMeulen 45fee98888 Backed out changeset 815799bb0d7b (bug 1696997) for causing regressions.
DONTBUILD CLOSED TREE
2021-04-08 12:43:22 -04:00
Yulia Startsev 685df4d56e Bug 1681046 - Enable Top Level Await by default r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D110394
2021-04-08 08:21:56 +00:00
Mike Conley 9278500d2d Bug 1699892 - Allow the Firefox Accounts avatar server to use SVG context properties. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D111169
2021-04-08 01:48:07 +00:00
Botond Ballo 40296db318 Bug 1702855 - Disable three-finger touchpad pinch gestures on Linux by default. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D111201
2021-04-08 01:15:42 +00:00
Botond Ballo 58272bcc12 Bug 1687636 - Add a pref to disable the check to convert touch events to pan gesture events. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D110884
2021-04-07 18:56:39 +00:00
Bernard Igiri 53d4a8dc59 Bug 1700109 - Enable main Proton pref by default in Nightly r=dao,jaws
This sets browser.proton.enabled to true by default in Nightly. This is the first
wave of Proton changes.

Differential Revision: https://phabricator.services.mozilla.com/D110156
2021-04-07 16:58:24 +00:00
Andrew Osmond 764dd82fc9 Bug 1703524 - Disable Software WebRender for popups on nightly. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D111094
2021-04-07 13:00:07 +00:00
smolnar 8844e16700 Backed out 3 changesets (bug 1681046) for causing jsreftest failures in ScriptLoader. CLOSED TREE
Backed out changeset 6704600819ed (bug 1681046)
Backed out changeset 37f56518116b (bug 1681046)
Backed out changeset f61cb7496a35 (bug 1681046)
2021-04-07 12:50:28 +03:00
Yulia Startsev 2b2111b9b2 Bug 1681046 - Enable Top Level Await by default r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D110394
2021-04-07 08:45:37 +00:00
Martin Thomson 0da7ca76c3 Bug 1700233 - Enable TLS delegated credentials, r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D109448
2021-04-06 21:24:10 +00:00
Andreas Pehrson 4f4af8527f Bug 1695580 - Increase async shutdown timeout for ASAN to 5 minutes. r=xpcom-reviewers,mccr8
The patches on this bug make bug 1684441 increase in frequency. Presumable ASAN
shutdown is in many cases already close to the timeout, and this bug is making
it trip over the edge.

A 4 minute timeout made a broad linux x64 ASAN try run go from five occurrences
of bug 1684441 to two, whereas a 5 minute timeout made them go to zero.

Differential Revision: https://phabricator.services.mozilla.com/D109785
2021-04-06 20:15:12 +00:00
Kershaw Chang cefbdf0c3b Bug 1702937 - Narrow down the zero_byte_load probe, r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D110967
2021-04-06 19:53:19 +00:00
David Parks 7a4e918916 Bug 1682030 - Clean up NPAPI plugin fallback behavior. r=jmathies,emilio
Similifies use of EventStates and ObjectType/FallbackType enums since most states they represented are no longer valid with the removal of NPAPI plugins.  The state machine for (unsupported) plugin elements is now much simpler but still distinguishes between HTML fallbacks, fallbacks leading to a "BROKEN" state (e.g. failing to load the image the element refers to), and fallbacks that would simply lead the element to occupy an empty region.  The last type of fallback is behind a pref "layout.use-plugin-fallback" and is disabled by default.

Simplifying the state machine allows us to clean up nsObjectLoadingContent.  We also update many of the enums which refered to plugins, which would otherwise get confusing.

Differential Revision: https://phabricator.services.mozilla.com/D107158
2021-04-06 19:28:18 +00:00
Markus Stange c51257646d Bug 1702978 - Reduce springiness of the overscroll snapback animation. r=botond
This makes the snapback less aggressive, and feels more like Safari to me.
Reducing the stiffness makes the animation take longer to complete.
To counteract the longer time, I've also reduced the damping a little bit;
reducing the damping makes the animation complete a little more quickly.

Depends on D110845

Differential Revision: https://phabricator.services.mozilla.com/D110846
2021-04-06 15:50:10 +00:00
Markus Stange 48163dbe45 Bug 1702978 - Reduce maximum allowed velocity when initiating overscroll snapback animation. r=botond
This makes it so that quick flings don't create such a large initial overscroll gap.

Before: https://share.firefox.dev/3fFP5Kp
After: https://share.firefox.dev/3fHA4b1

The "before" profile shows a jump from -65 to -320 in the overscroll amount, when
the animation is started, and the "after" profile shows a jump from -57 to -201.

Depends on D110844

Differential Revision: https://phabricator.services.mozilla.com/D110845
2021-04-06 15:50:10 +00:00
Markus Stange 23b39e4a0f Bug 1702978 - Add prefs for some of the overscroll physics aspects. r=botond
Depends on D110843

Differential Revision: https://phabricator.services.mozilla.com/D110844
2021-04-06 15:50:09 +00:00
Brindusan Cristian 08e2af1cf7 Backed out 2 changesets (bug 1681046) for causing wpt failures in bare-specifiers.sub.html. CLOSED TREE
Backed out changeset a26ecd8063ea (bug 1681046)
Backed out changeset e161663a5a7c (bug 1681046)
2021-04-06 18:02:15 +03:00
Brindusan Cristian 972d8621c6 Backed out 5 changesets (bug 1697585) for causing build bustages on nsTimerImpl.h. CLOSED TREE
Backed out changeset e9e4a710e7d1 (bug 1697585)
Backed out changeset bc271f42bcb7 (bug 1697585)
Backed out changeset d8516aec6a5e (bug 1697585)
Backed out changeset 0b1bc6cb84af (bug 1697585)
Backed out changeset 074ebebaee27 (bug 1697585)
2021-04-06 17:45:02 +03:00
Brindusan Cristian f78d18d827 Backed out 8 changesets (bug 1695580) for causing build bustages on DataMutex.h. CLOSED TREE
Backed out changeset ec0b0fcc8d88 (bug 1695580)
Backed out changeset 982a46056fcb (bug 1695580)
Backed out changeset e38e8b90f119 (bug 1695580)
Backed out changeset 6fdd154aa151 (bug 1695580)
Backed out changeset d04f7a7ec375 (bug 1695580)
Backed out changeset 2103cd9e58b7 (bug 1695580)
Backed out changeset de9a7dd7fc79 (bug 1695580)
Backed out changeset ae16f09be41b (bug 1695580)
2021-04-06 17:41:19 +03:00
Valentin Gosu 621339b801 Bug 1433500 - detectportal.firefox.com should return something informative for users r=nhnt11,extension-reviewers,zombie
This change constitutes a way we can redirect users to an actual page that
explains what captive portals are and why we are making these requests.
Normally users should not see this page, as we only compare the contents
of a small html file. The meta redirect only happens when loaded in a
page.

The SUMO URL https://support.mozilla.org/kb/captive-portal will automatically
redirect to the appropriate locale.

Differential Revision: https://phabricator.services.mozilla.com/D99773
2021-04-06 14:12:50 +00:00
Sean Feng 25b542e9e1 Bug 1697585 - Make input tasks can be more strictly aligned with Vsync r=smaug
This patch introduces a new way to way to schedule input tasks, such
that input tasks remain at `InputHigh` priority normally, however, when
there's a pending `Vsync` priority task in the task queue, we
increase the priority of input tasks from `InputHigh` to `InputHighest` to
rush processing the pending input tasks.

There are two restrictions to ensure we don't delay vsync too much:
  - There's a hard limit duration
  - We won't process the input tasks that are newly added after we've
    started to process the current number of input tasks

Differential Revision: https://phabricator.services.mozilla.com/D109499
2021-04-06 13:10:51 +00:00
Andreas Pehrson 5367aeff32 Bug 1695580 - Increase async shutdown timeout for ASAN to 5 minutes. r=xpcom-reviewers,mccr8
The patches on this bug make bug 1684441 increase in frequency. Presumable ASAN
shutdown is in many cases already close to the timeout, and this bug is making
it trip over the edge.

A 4 minute timeout made a broad linux x64 ASAN try run go from five occurrences
of bug 1684441 to two, whereas a 5 minute timeout made them go to zero.

Differential Revision: https://phabricator.services.mozilla.com/D109785
2021-04-06 12:16:12 +00:00
Yulia Startsev 735bb5aa2a Bug 1681046 - Enable Top Level Await by default r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D110394
2021-04-06 12:10:12 +00:00
Csoregi Natalia d68661e2cc Backed out 24 changesets (bug 1682030) for bustage on ProcessHangMonitor.cpp and nsCOMPtr.h. CLOSED TREE
Backed out changeset 5b1644096477 (bug 1682030)
Backed out changeset 35ae60eea3c7 (bug 1682030)
Backed out changeset 3eca76a6d639 (bug 1682030)
Backed out changeset 259c45447ad9 (bug 1682030)
Backed out changeset de9222dc8c31 (bug 1682030)
Backed out changeset 2986c7e14349 (bug 1682030)
Backed out changeset 6af3410bdb93 (bug 1682030)
Backed out changeset 42b0621c2927 (bug 1682030)
Backed out changeset 366e3e371858 (bug 1682030)
Backed out changeset 9adb2865adea (bug 1682030)
Backed out changeset 6af6af3bc03a (bug 1682030)
Backed out changeset da94a91b35ae (bug 1682030)
Backed out changeset 9143da258d0e (bug 1682030)
Backed out changeset 5e20d06952ba (bug 1682030)
Backed out changeset 6253d7e1ce7d (bug 1682030)
Backed out changeset 0e06ddeea3e2 (bug 1682030)
Backed out changeset 9c58d57c9e44 (bug 1682030)
Backed out changeset e90edd89430e (bug 1682030)
Backed out changeset 5861b8166b10 (bug 1682030)
Backed out changeset b4b88cdc7993 (bug 1682030)
Backed out changeset b80054e9805c (bug 1682030)
Backed out changeset 580d857674c0 (bug 1682030)
Backed out changeset a9cdf93c2662 (bug 1682030)
Backed out changeset 9c9c8b4998e2 (bug 1682030)
2021-04-06 03:54:12 +03:00
David Parks ef8f5b1e09 Bug 1682030 - Clean up NPAPI plugin fallback behavior. r=jmathies,emilio
Similifies use of EventStates and ObjectType/FallbackType enums since most states they represented are no longer valid with the removal of NPAPI plugins.  The state machine for (unsupported) plugin elements is now much simpler but still distinguishes between HTML fallbacks, fallbacks leading to a "BROKEN" state (e.g. failing to load the image the element refers to), and fallbacks that would simply lead the element to occupy an empty region.  The last type of fallback is behind a pref "layout.use-plugin-fallback" and is disabled by default.

Simplifying the state machine allows us to clean up nsObjectLoadingContent.  We also update many of the enums which refered to plugins, which would otherwise get confusing.

Differential Revision: https://phabricator.services.mozilla.com/D107158
2021-04-05 23:48:42 +00:00
Emilio Cobos Álvarez 5ddee7313f Bug 1698132 - Convert proton pref checks from @supports rules to media features. r=Gijs
This means that dynamic changes will be handled correctly, we can use
StaticPrefs, etc.

Differential Revision: https://phabricator.services.mozilla.com/D110816
2021-04-05 20:48:05 +00:00
Sean Feng 43ac29d13b Bug 1703048 - Tweak lazy-loading root margin defaults to 600px in all directions for EARLY_BETA_OR_EARLIER r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D110825
2021-04-05 18:02:56 +00:00
Emilio Cobos Álvarez 9e4fe964d6 Bug 1702756 - Move some hardcoded colors out of native code. r=mstange
No reason that code needs to be there. The findbar modal highlight stuff is not
being worked on and it was unclear to me why it needed a fission check, so I
removed that special case. The findbar code can customize the colors with
Selection.setColors anyways, which is a better fix.

Depends on D110673

Differential Revision: https://phabricator.services.mozilla.com/D110674
2021-04-02 16:34:34 +00:00
Dragana Damjanovic 6c2a4d05c5 Bug 1701232 - Enable HTTP/3 on Android r=preferences-reviewers,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109891
2021-04-01 18:01:47 +00:00
stransky 6811ae4b32 Bug 1693472 [Wayland] Always use direct drawing on KWin, r=rmader
Differential Revision: https://phabricator.services.mozilla.com/D110427
2021-04-01 14:28:41 +00:00
Alexandru Michis 7ef047faaa Backed out changeset 0da564b9ec2e (bug 1681046) for causing dt failures in browser_webconsole_worklet_error.js
CLOSED TREE
2021-04-01 15:27:02 +03:00
Yulia Startsev cfb0da74ab Bug 1681046 - Enable Top Level Await by default r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D110394
2021-04-01 11:08:44 +00:00
Caroline Cullen 30b2db3912 Bug 1700771 - Create pref for inlining maximum function size. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D110350
2021-03-31 17:18:13 +00:00
Emilio Cobos Álvarez 22df991215 Bug 1701830 - Remove LookAndFeelCache. r=cmartin,geckoview-reviewers,mstange,esawin
Now that RemoteLookAndFeel is enabled everywhere, this is dead code.

Differential Revision: https://phabricator.services.mozilla.com/D110179
2021-03-30 22:58:22 +00:00
Kagami Sascha Rosylight fecaac5d19 Bug 1701824 - Hide ondevicelight behind a flag r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D110177
2021-03-30 20:44:47 +00:00
Kagami Sascha Rosylight b046eaa662 Bug 1701789 - Restore UserProximityEvent r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D110172
2021-03-30 20:44:47 +00:00
Emilio Cobos Álvarez 0c995f22b1 Bug 1701825 - Minor scrollbar tweaks. r=stransky
This is a follow-up that I thought was worth doing, but let me know if
you disagree or what not. I think this produces the best results:

 * For light pages, we still get light scrollbars for the track, but the
   active thumb still uses the dark theme highlight color.

 * For dark pages, we again still use the themed highlight color for the
   thumb, and we use dark scrollbar colors elsewhere like we do now.

Again, let me know if you think this is not worth it, or is too much, or
what not. I've tested this on a decent range of popular GTK themes and
it looks like a clear progression to me.

Differential Revision: https://phabricator.services.mozilla.com/D110203
2021-03-30 17:31:33 +00:00
Kershaw Chang 49d7717cc6 Bug 1656329 - Add a mutex to protect nsZipArchive::mFiles and nsZipArchive::mBuiltSynthetics r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D109820
2021-03-30 08:48:26 +00:00
Emilio Cobos Álvarez b0cf81da8b Bug 1701825 - Allow passing some colors from GTK even in dark themes. r=stransky
Selection and accent color should be uncontroversial, since we ensure
the darker variant goes in the background, and the scrollbars were
intended to get passed from the parent theme in bug 1669368, but it was
regressed by the initial RemoteLookAndFeel work.

Differential Revision: https://phabricator.services.mozilla.com/D110175
2021-03-30 08:17:38 +00:00
Tom Tung 20de7c4a15 Bug 1696111 - Enable the pref for ORB on Nightly; r=valentin
Depends on D106891

Differential Revision: https://phabricator.services.mozilla.com/D102449
2021-03-30 00:52:31 +00:00
Tom Tung cd108619ed Bug 1696111 - Add a pref for ORB and disable it by default; r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D102388
2021-03-30 00:52:29 +00:00
Andrew Osmond 6a0e18fe26 Bug 1701236 - Disable fallback from WR to basic on desktop in nightly and early beta. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D109894
2021-03-30 00:19:06 +00:00
Emilio Cobos Álvarez 74db060beb Bug 1701807 - Partially revert the regressing bug for now, gotta find something smarter to do.
Differential Revision: https://phabricator.services.mozilla.com/D110180
2021-03-30 00:05:14 +00:00
Andrew Osmond 126292d3d2 Bug 1699224 - Part 4. Allow shared surfaces to be mapped and unmapped on demand. r=jrmuizel
This patch adds an expiration tracker to decide when to unmap unused
shared surfaces from our address space to reclaim virtual memory. This
is only used on 32-bit builds of Firefox where there is meaningful
virtual address space pressure.

Differential Revision: https://phabricator.services.mozilla.com/D109440
2021-03-29 22:43:27 +00:00
Jonathan Kew 5357cb0d41 Bug 1698495 - Add the size-adjust descriptor to the style system. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D110022
2021-03-29 21:14:43 +00:00
Dan Minor 112e2edfe5 Bug 1700447 - Define a default value for "intl.l10n.pseudo" pref; r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D110110
2021-03-29 19:21:40 +00:00
Harry Twyford 24e213b615 Bug 738335 - Enable toolbar shifting for all users. r=mac-reviewers,bradwerth
Depends on D109988

Differential Revision: https://phabricator.services.mozilla.com/D109989
2021-03-29 17:22:11 +00:00
Jeff Muizelaar 8e7ee116a5 Bug 1701455 - Turn on ICCv4 in Nightly on macOS. r=aosmond
The only known brokeness with ICCv4 is bug 1555331 and
that only applies to parametric output profiles which no longer
applies to macOS because we always use sRGB there now.

Differential Revision: https://phabricator.services.mozilla.com/D110034
2021-03-29 16:33:22 +00:00
Sean Feng 51c148ce40 Bug 1701029 - Enable PerformanceEventTiming in all channels r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D109794
2021-03-29 15:40:49 +00:00
Tim Huang 5b93148330 Bug 1695050 - Part 1: Add a pref for controlling the cookieBehavior for Private Brwosing Mode. r=dimi,droeh
Differential Revision: https://phabricator.services.mozilla.com/D109044
2021-03-29 11:01:50 +00:00
Mark Striemer 81479b1262 Bug 1699250 - Use proton dark theme in-content r=jaws
This also fixes up various about pages.

Differential Revision: https://phabricator.services.mozilla.com/D108800
2021-03-28 18:33:05 +00:00
Butkovits Atila 71d46d5a75 Backed out 2 changesets (bug 1690333, bug 1699250) for causing failures on test_bug509732.xhtml. CLOSED TREE
Backed out changeset dcba2814dbc4 (bug 1690333)
Backed out changeset ae3a0e6dde00 (bug 1699250)
2021-03-28 21:16:58 +03:00
Mark Striemer 5c54a9a003 Bug 1699250 - Use proton dark theme in-content r=jaws
This also fixes up various about pages.

Differential Revision: https://phabricator.services.mozilla.com/D108800
2021-03-28 17:02:20 +00:00
Bogdan Tara 3b463ca0d1 Backed out changeset 421e6e333309 (bug 1699250) for browser_html_discover_view_clientid.js mochitest failures
DONTBUILD
2021-03-28 02:37:33 +02:00
Mark Striemer 3d91b0c5fb Bug 1699250 - Use proton dark theme in-content r=jaws
This also fixes up various about pages.

Differential Revision: https://phabricator.services.mozilla.com/D108800
2021-03-27 23:31:07 +00:00
Cosmin Sabou 4618d0a607 Backed out 2 changesets (bug 1690333, bug 1699250) for mochitest failures on test_notificationbox.xhtml.
Backed out changeset d6780d34ca05 (bug 1690333)
Backed out changeset 50cc5db86f1e (bug 1699250)
2021-03-27 23:58:04 +02:00
Mark Striemer d4b82a8583 Bug 1699250 - Use proton dark theme in-content r=jaws
This also fixes up various about pages.

Differential Revision: https://phabricator.services.mozilla.com/D108800
2021-03-27 21:02:50 +00:00
Noemi Erli ebaee4ef03 Backed out 5 changesets (bug 1699224) for causing web platform and reftest failures CLOSED TREE
Backed out changeset bc232de0c5f8 (bug 1699224)
Backed out changeset 94c75dba6545 (bug 1699224)
Backed out changeset 206187cafb6f (bug 1699224)
Backed out changeset ef3ef367986e (bug 1699224)
Backed out changeset d2294fe6ef31 (bug 1699224)
2021-03-26 22:16:10 +02:00
Andrew Osmond 16b0e45a82 Bug 1699224 - Part 4. Allow shared surfaces to be mapped and unmapped on demand. r=jrmuizel
This patch adds an expiration tracker to decide when to unmap unused
shared surfaces from our address space to reclaim virtual memory. This
is only used on 32-bit builds of Firefox where there is meaningful
virtual address space pressure.

Differential Revision: https://phabricator.services.mozilla.com/D109440
2021-03-26 18:21:15 +00:00
Butkovits Atila a8a0f140d3 Backed out 5 changesets (bug 1699224) for causing build bustages on SharedSurfacesParent.cpp. CLOSED TREE
Backed out changeset f929f9783e61 (bug 1699224)
Backed out changeset 36bf68e01a50 (bug 1699224)
Backed out changeset 85f3499080db (bug 1699224)
Backed out changeset 8ce6ddf6ec6f (bug 1699224)
Backed out changeset f8b232382361 (bug 1699224)
2021-03-26 18:33:17 +02:00
Andrew Osmond 3be7ed3f5f Bug 1699224 - Part 4. Allow shared surfaces to be mapped and unmapped on demand. r=jrmuizel
This patch adds an expiration tracker to decide when to unmap unused
shared surfaces from our address space to reclaim virtual memory. This
is only used on 32-bit builds of Firefox where there is meaningful
virtual address space pressure.

Differential Revision: https://phabricator.services.mozilla.com/D109440
2021-03-26 13:21:52 +00:00
Butkovits Atila 65b9a969c7 Backed out changeset 153bb20062aa (bug 1433500) for causing failure on test_captive_portal_service.js. CLOSED TREE 2021-03-26 13:35:29 +02:00
Valentin Gosu 7e27201e36 Bug 1433500 - detectportal.firefox.com should return something informative for users r=nhnt11
This change constitutes a way we can redirect users to an actual page that
explains what captive portals are and why we are making these requests.
Normally users should not see this page, as we only compare the contents
of a small html file. The meta redirect only happens when loaded in a
page.

The SUMO URL https://support.mozilla.org/kb/captive-portal will automatically
redirect to the appropriate locale.

Differential Revision: https://phabricator.services.mozilla.com/D99773
2021-03-26 10:41:10 +00:00
Butkovits Atila 60ee5484c0 Merge mozilla-central to autoland. CLOSED TREE 2021-03-26 11:44:34 +02:00
Butkovits Atila bd25b6690f Merge autoland to mozilla-central. a=merge 2021-03-26 11:35:28 +02:00
Butkovits Atila ad9b1ed9d7 Backed out 12 changesets (bug 1683131, bug 1696111, bug 1695987) for causing crashes(Bug 1701151). a=backout
Backed out changeset 8ffef57e27d2 (bug 1683131)
Backed out changeset c02d5dc72abb (bug 1695987)
Backed out changeset 276f016ddc67 (bug 1683131)
Backed out changeset 2c7a45e20b50 (bug 1683131)
Backed out changeset 11fdb503d537 (bug 1696111)
Backed out changeset 2946eff1e9c8 (bug 1696111)
Backed out changeset e4d01b88e517 (bug 1696111)
Backed out changeset fab7f4cd445d (bug 1696111)
Backed out changeset d60c38f8939a (bug 1696111)
Backed out changeset 3fdc8089a46f (bug 1696111)
Backed out changeset 51a16dfabc98 (bug 1696111)
Backed out changeset 642bdd52fd57 (bug 1696111)
2021-03-26 11:30:28 +02:00
Andreas Farre f722be009c Bug 1572084 - Part 2: Make Session Store data collection work with fission. r=nika
Instead of collecting data from the entire tree of documents, we
collect data per document. The collected data is sent to the
corresponding parent window context and is applied incrementally to
the tab state cache.

Differential Revision: https://phabricator.services.mozilla.com/D107814
2021-03-26 08:59:33 +00:00
Botond Ballo a81c1d3997 Bug 1699880 - Gate the test async scroll offset going into overscroll on a pref. r=tnikkel
This way, tests which specifically want to test overscroll can set the
pref explicitly, and other tests need not worry about accidentally
going into overscroll.

Differential Revision: https://phabricator.services.mozilla.com/D109435
2021-03-26 04:13:54 +00:00
Emilio Cobos Álvarez 16c2ac4c88 Bug 1699768 - Don't unsuppress painting until we've known the website background, to prevent flashing. r=smaug
Actually the page in this case starts getting styled _after_ the load
event, sometimes, but when that happens that also causes a white flash
in other browsers.

Differential Revision: https://phabricator.services.mozilla.com/D109392
2021-03-26 01:10:53 +00:00
sotaro 322bbdd0e0 Bug 1700949 - Set pref gfx.webrender.fallback.software to false on Android r=mattwoodrow
Support of fallback to sw-wr is not completed yet on Android.

Differential Revision: https://phabricator.services.mozilla.com/D109831
2021-03-26 00:50:08 +00:00
Bogdan Tara 8f9d044d0f Backed out 3 changesets (bug 1572084) for WindowGlobalParent.cpp related failures CLOSED TREE
Backed out changeset d42a68132e7e (bug 1572084)
Backed out changeset 4d5a5ac074e6 (bug 1572084)
Backed out changeset 5aa59e106a42 (bug 1572084)
2021-03-25 18:56:02 +02:00
Andreas Farre 728f061c16 Bug 1572084 - Part 2: Make Session Store data collection work with fission. r=nika
Instead of collecting data from the entire tree of documents, we
collect data per document. The collected data is sent to the
corresponding parent window context and is applied incrementally to
the tab state cache.

Differential Revision: https://phabricator.services.mozilla.com/D107814
2021-03-25 15:36:38 +00:00
Tom Tung 69465d053f Bug 1696111 - Enable the pref for ORB on Nightly; r=valentin
Depends on D106891

Differential Revision: https://phabricator.services.mozilla.com/D102449
2021-03-25 12:09:40 +00:00
Tom Tung 7319969460 Bug 1696111 - Add a pref for ORB and disable it by default; r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D102388
2021-03-25 12:09:38 +00:00
Simon Giesecke 760cc7e936 Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert
- Add missing include directives and forward declarations.
- Remove some extra include directives.
- Add missing namespace qualifications.
- Move include directives out of namespace in toolkit/xre/GlobalSemaphore.h

Differential Revision: https://phabricator.services.mozilla.com/D98894
2021-03-25 10:19:44 +00:00
Emilio Cobos Álvarez 7f5364389c Bug 1700640 - Map width and height to aspect-ratio in <canvas>, <input type=image>, and <video>. r=boris
As per https://html.spec.whatwg.org/#attributes-for-embedded-content-and-images:

> The width and height attributes map to the aspect-ratio property on
> img, canvas, and video elements, and input elements with a type
> attribute in the Image Button state.

See https://github.com/whatwg/html/issues/6527 for the parsing issue
with canvas and zero. For now allow both behaviors in the tests.

We also remove the width-and-height-map-to-aspect-ratio pref, as it is
true everywhere and has been for a while.

Differential Revision: https://phabricator.services.mozilla.com/D109618
2021-03-24 22:18:55 +00:00
Emilio Cobos Álvarez 22061e8965 Bug 1697053 - Let non-native-theme ride the trains in Firefox 89. r=cpeterson,mstange
Differential Revision: https://phabricator.services.mozilla.com/D109555
2021-03-24 19:11:05 +00:00
Simon Giesecke 613e20d136 Bug 1184468 - Use nsBaseHashtable::Values. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D108587
2021-03-24 17:56:49 +00:00
Tim Giles 20c7eb2867 Bug 1699705 - Allow autocomplete to use related realm credentials. r=sfoster,leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D91205
2021-03-23 20:21:13 +00:00
Jonathan Kew 8b75657e88 Bug 1681691 - Add ascent-, descent- and line-gap-override descriptors to the style system. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D109287
2021-03-23 17:10:22 +00:00
Markus Stange f92e83a7db Bug 1698997 - Make nsXULPopupManager::ShowPopupAtScreen open a native context menu, if preffed on. r=tnikkel
This is macOS only and behind the prefs widget.macos.native-context-menus and
browser.proton.contextmenus.enabled .

The big design question here is: Where do we put the fork in the road? How much
should the existing non-native popup management machinery know about the state
of the native menu? Which parts of the non-native state should a) reflect the
true native state, b) enter a special "handled natively" state, or c) lie?

This patch picks the following approach:

 - The nsMenuPopupFrame of the root menupopup knows about the native menu; it
   keeps it alive in its new mNativeMenu field.
 - If the context menu has submenus, i.e. nested <menupopup> elements, the
   nsMenuPopupFrames for those nested menupopups do not know anything about the
   native menu.
 - The mPopupState of natively-handled nsMenuPopupFrames is ePopupClosed.
 - XULPopupElement::GetState, which queries the frame's mPopupState, also
   returns "closed". This might cause problems in the future.
 - The XUL popup manager's mPopups "menu chain" does not know about any open
   native menus.
 - The rollup widget also does not know about the native popup.

I've chosen to use ePopupClosed for native menus for the following reasons:
 1. While mirroring / updating the state for the root menu would be doable
    without too much trouble, it would be much more annoying to do the same for
    nested menupopups of submenus. So if submenus will be ePopupClosed, it's
    consistent for the root menu to also be ePopupClosed.
 2. nsXULPopupManager has assertions (for example in MayShowPopup) that make
    sure that the menu popup frame's mPopupState is consistent with the XUL
    popup manager's mPopups menu chain. Keeping the two both "closed" is the
    easiest way to achieve consistency.

Unless there are grave concerns with this approach, I suggest we go with it for
now and see what trouble arises.

Differential Revision: https://phabricator.services.mozilla.com/D109183
2021-03-23 14:38:29 +00:00
Noemi Erli 9ec97e75b1 Backed out changeset 1d4a266e0e49 (bug 1699768) for causing multiple failures CLOSED TREE 2021-03-23 13:44:39 +02:00
Emilio Cobos Álvarez ca2819c13c Bug 1699768 - Don't unsuppress painting until we've known the website background, to prevent flashing. r=smaug
Actually the page in this case starts getting styled _after_ the load
event, sometimes, but when that happens that also causes a white flash
in other browsers.

Differential Revision: https://phabricator.services.mozilla.com/D109392
2021-03-23 10:16:52 +00:00
smolnar 03eae2c9a5 Backed out 8 changesets (bug 1681691) for causing wpt failures in idlharness.https.html. CLOSED TREE
Backed out changeset dda736a69ceb (bug 1681691)
Backed out changeset 64edecd0df6f (bug 1681691)
Backed out changeset a19844063d00 (bug 1681691)
Backed out changeset 5dd06c73f703 (bug 1681691)
Backed out changeset 1bc4081f95e4 (bug 1681691)
Backed out changeset e7887dc9a3c6 (bug 1681691)
Backed out changeset d9b488c09c23 (bug 1681691)
Backed out changeset b45b607fee4d (bug 1681691)
2021-03-23 12:00:39 +02:00
Jonathan Kew 9c70dc7340 Bug 1681691 - Add ascent-, descent- and line-gap-override descriptors to the style system. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D109287
2021-03-23 08:37:06 +00:00
Lee Salzman 7d630ccb29 Bug 1678892 - Pass dirty and opaque regions to layers compositor. r=sotaro
The backend CompositorD3D11/CompositorOGL layers compositors can already do
partial clear optimizations for us if applicable. The only thing we need to
do is pass in the actual dirty/opaque regions so that it can utilize it.

Like with RenderCompositorSWGL, we move the actual allocation of the framebuffer
into StartCompositing when this information is known, rather than BeginFrame
which is too early in the frame to have this information yet.

Differential Revision: https://phabricator.services.mozilla.com/D109092
2021-03-23 06:36:39 +00:00
Jeff Muizelaar 4231661a1d Bug 1696688. Set IOSurface color space to sRGB. r=mstange
This lets the WindowServer do all of the color correction for us
including WebGL and 2D canvas.

There's some concern that this will increase GPU usage as
reported in https://bugs.chromium.org/p/chromium/issues/detail?id=417150#c34.
However, the alernative of doing everything in device space isn't very
attractive because we'd have to color manage canvas and webgl ourselves.

Further, Chrome doesn't seem to be using the device space and it seems
like there's typically already a mix of color spaces in use so hopefully
the GPU increase is not high.

Differential Revision: https://phabricator.services.mozilla.com/D109383
2021-03-23 01:33:54 +00:00
Emily McDonough 44fd9a31e7 Bug 1647845 Part 2 - Add page-size attribute to nsStyleStruct and property parsing r=emilio
This parsing is hidden behind the pref layout.css.page-size.enabled.

It isn't ideal that we parse this as a property, but we can't treat it as a
descriptor because of compatibility issues with other browsers. There are also
outstanding spec issues related to how descriptors like page-size are cascaded,
and whether the !important specifier is valid or not.

Differential Revision: https://phabricator.services.mozilla.com/D103958
2021-03-22 19:08:59 +00:00
Kagami Sascha Rosylight 24e9b29c8d Bug 1699707 - Remove DeviceProximityEvent and UserProximityEvent r=agi,annevk,smaug
Note that this removes `window.ondeviceproximity` and `window.onuserproximity` which unexpectedly have been exposed unconditionally.

Differential Revision: https://phabricator.services.mozilla.com/D109160
2021-03-22 18:16:16 +00:00
Cosmin Sabou 193a73a5ea Backed out 10 changesets (bug 1681691) for wpt failures on fontface-override-descriptor-getter-setter.sub.html and idlharness.https.html. CLOSED TREE
Backed out changeset e43fba82fb31 (bug 1681691)
Backed out changeset 104675869016 (bug 1681691)
Backed out changeset 536bbc4b9ecd (bug 1681691)
Backed out changeset bb53155c3dd0 (bug 1681691)
Backed out changeset 9f9c3c13801a (bug 1681691)
Backed out changeset af79bc7f7919 (bug 1681691)
Backed out changeset e86d980f511e (bug 1681691)
Backed out changeset 12418707741d (bug 1681691)
Backed out changeset 8d5c2106a2b4 (bug 1681691)
Backed out changeset 4805e23e62d2 (bug 1681691)
2021-03-22 20:37:38 +02:00
Andrew Osmond 9c13aa431d Bug 1700153 - Disable SW-WR for transparent popups on early beta and the Fission experiment. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D109375
2021-03-22 17:19:04 +00:00
Jonathan Kew cd80bce521 Bug 1681691 - Add ascent-, descent- and line-gap-override descriptors to the style system. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D109287
2021-03-22 15:40:52 +00:00
Dragana Damjanovic 1c61cfc77a Bug 1699490 - Enable HTTP3 on Nightly and beta r=necko-reviewers,kershaw,preferences-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D108970
2021-03-20 02:07:24 +00:00
Emilio Cobos Alvarez d1e5b2d2ed Bug 1699682 - Consistently initialize UI state to hide focusrings by default. r=mhowell
UIS_INITIALIZE does something like setting the flag if the last input event was
a mouse event or clearing it if it was a keyboard event. Unfortunately, if this
is initialized to always show focus rings we start always showing outlines for
all content, all the time, which is both undesired and confusing.

It's also not clear from the docs _which_ event it looks at specially at
startup, but anyhow the result we get is clearly flaky, from my testing.

Explicitly clear the flag. It's not clear to me if other applications can cause
the state to change... but otherwise maybe we can just remove the code dealing
with these flags?

Differential Revision: https://phabricator.services.mozilla.com/D109086
2021-03-20 01:28:20 +00:00
Jonathan Kew 2decdf11e0 Bug 1699329 - Add Hiragino fallbacks to font.name-list.monospace.ja, for cases where Osaka is not installed. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D108936
2021-03-19 19:28:09 +00:00
Valentin Gosu 47cd0f08de Bug 1658278 - Split TRR's CONFIRM_TRYING into CONFIRM_TRYING_OK and CONFIRM_TRYING_FAILED r=necko-reviewers,nhnt11,dragana,preferences-reviewers
- Adds CONFIRM_TRYING_FAILED confirmation state. We use this state when we retry confirmation after confirmation fails.
- Rename CONFIRM_TRYING to CONFIRM_TRYING_OK. We use this state when we try confirmation but no confirmation failure has happened.
- Rename CONFIRM_INIT to CONFIRM_OFF. We use this state whenever there is an event that would disable TRR - such as a TRR mode change.
- Add CONFIRM_DISABLED confirmation state. We use this state in mode3 or when confirmationNS=="skip"
- To potentially allow us to have the same behaviour as after Bug 1689113, specifically the we might be able to report TRRService::Enabled = true when retrying and the state is CONFIRM_TRYING_FAILED we added `network.trr.attempt-when-retrying-confirmation`
- After a large number of TRR failures occurs, we immediately trigger another confirmation and go into CONFIRM_TRYING_OK. This allows us to cope with a temporary increase in network latency that is smaller than 6s.
- We no longer trigger confirmation for nsIRequest::TRR_FIRST_MODE when the resolver mode is not TRR_FIRST. This allows us to simplify the code.
- test_trr_proxy.js now calls trr_test_setup() after it sets up the pac script to avoid confirmation causing non-local connections in tests.
- Moves all the confirmation state handing into HandleConfirmationEvent

Differential Revision: https://phabricator.services.mozilla.com/D107666
2021-03-19 17:51:26 +00:00
Kershaw Chang 02a4432e92 Bug 1698015 - Add another way to download ODoHConfigs via https r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108174
2021-03-19 08:29:14 +00:00
Emilio Cobos Álvarez f2d4b8c005 Bug 1699570 - Make mouse_focuses_formcontrol on chrome documents match the old behavior. r=mstange
For that, we make accessibility.mouse_focuses_formcontrol a static pref,
and make it work in all platforms because it's simpler and allows to
test mac-specific things on other platforms more easily.

Differential Revision: https://phabricator.services.mozilla.com/D109006
2021-03-18 23:01:45 +00:00
Butkovits Atila cfce9044e0 Backed out 2 changesets (bug 1647845) for causing build bustages. CLOSED TREE
Backed out changeset 8822a2e578f2 (bug 1647845)
Backed out changeset 5a44095128e0 (bug 1647845)
2021-03-19 01:07:18 +02:00
Emily McDonough d75c4dc4be Bug 1647845 Part 2 - Add page-size attribute to nsStyleStruct and property parsing r=emilio
This parsing is hidden behind the pref layout.css.page-size.enabled.

It isn't ideal that we parse this as a property, but we can't treat it as a
descriptor because of compatibility issues with other browsers. There are also
outstanding spec issues related to how descriptors like page-size are cascaded,
and whether the !important specifier is valid or not.

Differential Revision: https://phabricator.services.mozilla.com/D103958
2021-03-18 22:26:24 +00:00
Harry Twyford f504ef29cc Bug 1699506 - Part 3 - Add pref to control shifting behaviour. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D108976
2021-03-18 20:20:40 +00:00
Emilio Cobos Alvarez 31b583bbcc Bug 1698783 - Respect Windows' system scrollbar sizes. r=mstange
Depends on D108960

Differential Revision: https://phabricator.services.mozilla.com/D108973
2021-03-18 19:12:49 +00:00
Emilio Cobos Álvarez 2ef90f0690 Bug 1698783 - Make non-native scrollbar size configurable in Windows too. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D108960
2021-03-18 19:12:49 +00:00
Emilio Cobos Álvarez 83d5691cbc Bug 1614658 - Enable accessibility.mouse_focuses_formcontrol by default. r=mac-reviewers,bradwerth,mstange
This aligns Mac's focus model with other platforms. Matches Chromium, but not
Safari.

Reasons why I think it's worth making this change:

 * Consistency with all other platforms.
 * Makes the :focus-visible implementation more useful.
 * Fixes focus navigation after e.g. clicking a button.
 * Shouldn't cause a lot more outlines to show up (at least not by default).

An example of the second point:

    data:text/html,<button onclick="this.nextElementSibling.focus()">Click</button><button>Imagine I'm a dialog close button or something</button>

In non-macOS platforms, we won't show an outline for the button in that case,
which matches the developer expectations (links below). We don't show the
outline because the focus comes from an element that has been focused by mouse
(and thus didn't show an outline). But on macOS that doesn't work, because the
button is not focused.

For completeness, the actual heuristics for :focus-visible may change a bit as
a result of the discussions in:

  * https://github.com/w3c/csswg-drafts/issues/5885
  * https://github.com/web-platform-tests/wpt/pull/27806

But it's not clear to me how to best define this so it works on the macOS focus
model.

An example of the third point:

    data:text/html,<input type=text><input type=submit><input type=text>

On Safari and Chrome (and Firefox on non-macOS platforms), clicking the button,
then pressing tab, goes to the input on the right. In Firefox on macOS it
doesn't because the button doesn't gain focus nor is selectable.

Differential Revision: https://phabricator.services.mozilla.com/D108808
2021-03-17 22:34:55 +00:00
Brendan Dahl 42c4a7e79e Bug 1699219 - Enable JS support in the PDF viewer by default. r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D108824
2021-03-17 18:37:43 +00:00
Simon Giesecke b9621d6376 Bug 1695162 - Use range-based for instead of custom hashtable iterators. r=xpcom-reviewers,kmag
Differential Revision: https://phabricator.services.mozilla.com/D108585
2021-03-17 15:49:46 +00:00
Alexandru Michis b7b156e536 Merge autoland to mozilla-central. a=merge 2021-03-17 11:45:21 +02:00
Alexandru Michis 0210028eb5 Backed out changeset 801dec9ebbd7 (bug 1697865) for causing frequent crashes on machines with dedicated graphics cards. a=backout 2021-03-17 10:33:28 +02:00
Noemi Erli b4700b1965 Backed out 2 changesets (bug 1647845) for causing assertions in nsStyleStruct.cpp CLOSED TREE
Backed out changeset 1564d93002de (bug 1647845)
Backed out changeset bc1815fb4405 (bug 1647845)
2021-03-16 23:01:50 +02:00
Andrew Osmond 86da16f9a5 Bug 1696071 - Add support for DMABuf to the blocklist. r=rmader
Differential Revision: https://phabricator.services.mozilla.com/D107019
2021-03-16 20:14:51 +00:00
Emily McDonough 626bdb9278 Bug 1647845 Part 2 - Add page-size attribute to nsStyleStruct and property parsing r=emilio
This parsing is hidden behind the pref layout.css.page-size.enabled.

It isn't ideal that we parse this as a property, but we can't treat it as a
descriptor because of compatibility issues with other browsers. There are also
outstanding spec issues related to how descriptors like page-size are cascaded,
and whether the !important specifier is valid or not.

Differential Revision: https://phabricator.services.mozilla.com/D103958
2021-03-16 19:54:27 +00:00
Kagami Sascha Rosylight 4676ee10ba Bug 1697680 - Remove Presentation API implementation r=smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D108574
2021-03-16 18:21:12 +00:00
Andrew Osmond a8a46df9c6 Bug 1698869 - Add pref to force WebRender to be used with all widgets. r=jrmuizel
This pref is used for testing purposes and forces all widgets to use the
same compositor. If the user is configured for WebRender, all will use
WebRender. If the user is configured for Software WebRender, all will
use Software WebRender.

Differential Revision: https://phabricator.services.mozilla.com/D108663
2021-03-16 17:39:09 +00:00
Nihanth Subramanya 65d31851ec Bug 1698807 - Block TRR on confirmation by default until we can complete a performance study. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D108634
2021-03-16 14:33:58 +00:00
Lars T Hansen f3ed586788 Bug 1678097 - Enable Ion for wasm on ARM64 (phase 1). r=lth.
In Phase 1, both Ion and Cranelift are available, and the default is switched
to Cranelift.  Use --wasm-force-ion or --wasm-compiler=ion at the shell to
select Ion, or make sure javascript.options.wasm_force_ion is true in
about:config.  Phase 1 is appropriate for fuzzing, after the patch set lands
in mozilla-central but before Ion is enabled by default.  The patch for Phase
1 will appear on bug 1678097 and will be very small, and MUST land with the
patch for Phase 0.

Differential Revision: https://phabricator.services.mozilla.com/D101867
2021-03-16 10:58:42 +00:00
Lars T Hansen 67d5845467 Bug 1678097 - Enable Ion for wasm on arm64 without SIMD (phase 0). r=lth.
In Phase 0, both Cranelift and Ion are available on arm64, and Ion is the
default.  Use --wasm-force-cranelift or --wasm-compiler=cranelift at the shell
to select Cranelift, or set javascript.options.wasm_force_ion to false in
about:config.  Phase 0 is appropriate for developers, before the patch set
lands in mozilla-central and before SIMD is present.

In Phase 1, both compilers are still available, but the default is switched to
Cranelift.  Use --wasm-force-ion or --wasm-compiler=ion at the shell to select
Ion, or make sure javascript.options.wasm_force_ion is true in about:config.
Phase 1 is appropriate for fuzzing, after the patch set lands in
mozilla-central but before Ion is enabled by default.  The patch for Phase 1
will appear on bug 1678097 and will be very small, and MUST land with the
patch for Phase 0.

In Phase 0 and Phase 1, --wasm-compiler=cranelift and --wasm-compiler=ion are
both accepted, and do the expected thing.

In Phase 2, Cranelift becomes disabled in moz.configure and all the changes in
the present patch are removed again.  The patch for Phase 2 will appear on bug
1686626 and will revert Phase 0 and Phase 1, and additionally update
moz.configure.

Differential Revision: https://phabricator.services.mozilla.com/D102420
2021-03-16 10:58:41 +00:00
Dimi Lee 43fbfae832 Bug 1166995 - P5. Add a preference to control whether to capture login when a form is removed r=sfoster,tgiles
Add preference `signon.formRemovalCapture.enabled`, default on

Depends on D106027

Differential Revision: https://phabricator.services.mozilla.com/D108426
2021-03-16 09:15:20 +00:00
Kershaw Chang 1f61223581 Bug 1697776 - Enable network.dns.use_https_rr_as_altsvc on nightly r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108007
2021-03-16 08:50:09 +00:00
Ted Campbell d7756b58fc 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-15 22:20:44 +00:00
Ted Campbell 1fa49c916e 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-15 22:20:44 +00:00
Ted Campbell 31cb93d51e 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-15 22:20:44 +00:00
Ted Campbell 002f610266 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-15 22:20:43 +00:00
Ted Campbell 3c1cf4006c Bug 1697904 - Migrate JIT threshold prefs to StaticPrefs. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D108105
2021-03-15 22:20:43 +00:00
Ted Campbell bccaebc8f0 Bug 1697904 - Migrate JIT-enable prefs to StaticPrefs. r=jandem,KrisWright
Mark these prefs as 'do_not_use_directly` to avoid confusion since they
should only be snapshotted once in `LoadStartupJSPrefs`. We cannot use the
`once` mirrors here since they are not available until after the
EnterprisePolicies code has ran and that itself uses javascript.

Differential Revision: https://phabricator.services.mozilla.com/D108104
2021-03-15 22:20:42 +00:00
Timothy Nikkel deedd29802 Bug 1698642. Enable double tap to zoom on macOS in nightly only. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D108516
2021-03-15 20:58:33 +00:00
Dorel Luca 23ff88a47f Backed out changeset fbf677b3fb7e (bug 674371) on dev's request. 2021-03-15 22:45:17 +02:00
Kris Maglione 0d92b293c4 Bug 1697055: Enable non-native-theming for all users enrolled in the Fission experiment. r=nika,emilio
Differential Revision: https://phabricator.services.mozilla.com/D108253
2021-03-15 20:33:31 +00:00
Ted Campbell 0004fb8b5c Bug 1697954 - Remove unused javascript.options.showInConsole prefs r=marionette-reviewers,webdriver-reviewers,mossop,remote-protocol-reviewers,whimboo
This dates back to a time before the browser console where the normal content
console could optionally show chrome code messages. Today it serves no use.

Differential Revision: https://phabricator.services.mozilla.com/D108130
2021-03-15 19:50:41 +00:00
Narcis Beleuzu 526a5089c6 Backed out 4 changesets (bug 1678097) for bustages on XPCJSContext.cpp CLOSED TREE
Backed out changeset f3e0ba29ae46 (bug 1678097)
Backed out changeset 0c14d39bd01b (bug 1678097)
Backed out changeset 04cdd20e2557 (bug 1678097)
Backed out changeset 92b5e5f5b3f7 (bug 1678097)
2021-03-15 22:27:10 +02:00
Valentin Gosu e9ae3a03ea Bug 1675542 - Add API to get the system DNS resolver IPs [windows] r=necko-reviewers,dragana
Depends on D96065

Differential Revision: https://phabricator.services.mozilla.com/D96084
2021-03-15 17:58:02 +00:00
sagudev 584e3b9e87 Bug 1696698 - Remove reader.parse-on-load.force-enabled pref. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D108353
2021-03-15 17:53:10 +00:00
Chris Martin ae33288c2c Bug 1697865 - Add Win32k Lockdown Pref to Nightly Experiments r=preferences-reviewers,jaws,fluent-reviewers
Win32k Lockdown is getting to the point where we *could* have people in the
community start testing. Let's make it easy for them!

Differential Revision: https://phabricator.services.mozilla.com/D108255
2021-03-15 17:37:48 +00:00
Lars T Hansen 107c575f8d Bug 1678097 - Enable Ion for wasm on ARM64 (phase 1). r=lth.
In Phase 1, both Ion and Cranelift are available, and the default is switched
to Cranelift.  Use --wasm-force-ion or --wasm-compiler=ion at the shell to
select Ion, or make sure javascript.options.wasm_force_ion is true in
about:config.  Phase 1 is appropriate for fuzzing, after the patch set lands
in mozilla-central but before Ion is enabled by default.  The patch for Phase
1 will appear on bug 1678097 and will be very small, and MUST land with the
patch for Phase 0.

Differential Revision: https://phabricator.services.mozilla.com/D101867
2021-03-15 16:44:32 +00:00
Lars T Hansen 065c095849 Bug 1678097 - Enable Ion for wasm on arm64 without SIMD (phase 0). r=lth.
In Phase 0, both Cranelift and Ion are available on arm64, and Ion is the
default.  Use --wasm-force-cranelift or --wasm-compiler=cranelift at the shell
to select Cranelift, or set javascript.options.wasm_force_ion to false in
about:config.  Phase 0 is appropriate for developers, before the patch set
lands in mozilla-central and before SIMD is present.

In Phase 1, both compilers are still available, but the default is switched to
Cranelift.  Use --wasm-force-ion or --wasm-compiler=ion at the shell to select
Ion, or make sure javascript.options.wasm_force_ion is true in about:config.
Phase 1 is appropriate for fuzzing, after the patch set lands in
mozilla-central but before Ion is enabled by default.  The patch for Phase 1
will appear on bug 1678097 and will be very small, and MUST land with the
patch for Phase 0.

In Phase 0 and Phase 1, --wasm-compiler=cranelift and --wasm-compiler=ion are
both accepted, and do the expected thing.

In Phase 2, Cranelift becomes disabled in moz.configure and all the changes in
the present patch are removed again.  The patch for Phase 2 will appear on bug
1686626 and will revert Phase 0 and Phase 1, and additionally update
moz.configure.

Differential Revision: https://phabricator.services.mozilla.com/D102420
2021-03-15 16:44:30 +00:00
Gerald Squelart f193604f7c Bug 1687631 - Enable CPU Utilization by default in the profilers - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D107598
2021-03-15 11:54:43 +00:00
Emilio Cobos Álvarez 678b10493d Bug 1698315 - Manage placeholder and autofill preview visibility using CSS rather than custom code. r=masayuki
Should be much simpler and doesn't need to deal with the different
stuff. We already have pseudo-classes for this, :autofill and
:placeholder-shown.

I initially wrote this because this is the only limitation that forces
us to have the placeholder text as a direct child of the text control
frame. In the end I kept that as-is, but this simplification is still
worth it.

We remove dom.placeholder.show_on_focus because it doesn't behave
correctly (it doesn't match the :placeholder-shown pseudo-class and it
should). It was introduced in bug 807613 and never turned to false by
default. I suspect nobody will miss this, but if somebody complains
about it we can reintroduce it properly (handling the pref in DOM
instead, changing the right state bits).

Differential Revision: https://phabricator.services.mozilla.com/D108304
2021-03-15 08:52:43 +00:00
Ted Campbell 787e85a561 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 16:46:57 +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
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
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