Commit Graph

19032 Commits

Author SHA1 Message Date
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