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

20084 Коммитов

Автор SHA1 Сообщение Дата
Dragana Damjanovic 1fd7957fc0 Bug 1744006 - Replace dom.securecontext.whitelist_onions with dom.securecontext.allowlist_onions and dom.securecontext.whitelist with dom.securecontext.allowlist r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D133660
2021-12-14 05:20:08 +00:00
Boris Chiou c90c01d5b1 Bug 1744599 - Ship d property. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D133545
2021-12-14 02:42:10 +00:00
Nika Layzell 7b2e6d4996 Bug 1741665 - Align nsCString's public size_type better with other C++ APIs, r=mccr8,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D131422
2021-12-13 21:47:56 +00:00
Nika Layzell e619b6820e Bug 1732358 - Part 4: Enable fission by default on non-android platforms, r=annyG,peterv,pbone,cpeterson
This requires changing the behaviour of test_fission_autostart.js to handle the
new default value.

Differential Revision: https://phabricator.services.mozilla.com/D133008
2021-12-13 20:28:33 +00:00
Jonathan Kew f80018a6b5 Bug 1240277 - Add hyphenation patterns for Indic languages. r=platform-i18n-reviewers,dminor
Using hyphenation patterns from https://github.com/santhoshtr/hyphenation.

The tests here are implemented as Mozilla reftests rather than added to WPT because I don't think
we can reasonably have such tests in WPT. The specific set of languages for which the UA supports
auto-hyphenation is not a normative requirement, and nor is the particular dictionary or algorithm
that will be used for any specific language. As such, the exact results are not defined by the
spec. (They may also change over time, if the hyphenation rules we use are updated, in which case
the tests will have to change accordingly.)

Differential Revision: https://phabricator.services.mozilla.com/D133558
2021-12-13 14:20:06 +00:00
Marian-Vasile Laza 223875d312 Backed out changeset 97e4953165d9 (bug 1745385) for causing xpcshell test failures on test_ext_native_messaging_perf.js. CLOSED TREE 2021-12-13 15:21:18 +02:00
Kershaw Chang b9f0306faa Bug 1743079 - Remove ResetUserPrefs(), r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D133468
2021-12-13 09:27:56 +00:00
Kershaw Chang 0dba6b636f Bug 1745385 - Enable network.proxy.detect_system_proxy_changes on nightly, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D133470
2021-12-13 08:58:06 +00:00
Kershaw Chang 1722b3587c Bug 1745385 - Enable network.proxy.parse_pac_on_socket_process on nightly, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D133469
2021-12-13 08:57:41 +00:00
Jonathan Watt 385f49415f Bug 1745465 - Add a pref to enable the Page Setup menu. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D133502
2021-12-10 19:02:48 +00:00
Emilio Cobos Álvarez 5f018982cf Bug 1745428 - Make dom.maxHardwareConcurrency not require a restart. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D133484
2021-12-10 18:42:06 +00:00
Rashelle Hopkins 46641fae91 Bug 1739515 - Remove checks for multiple PiP windows pref r=mtigley,kpatenio,mhowell,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D133147
2021-12-10 10:33:14 +00:00
Mike Hommey 0343b1d227 Bug 1745069 - Remove MOZ_WEBM_ENCODER. r=bryce
It's always on and unsetting it manually in old-configure.in leads to a
busted build.

Differential Revision: https://phabricator.services.mozilla.com/D133287
2021-12-10 03:27:26 +00:00
Boris Chiou 7c8078f842 Bug 1388931 - Unship SVGPathSeg APIs behind a preference. r=emilio
Add the preference, dom.svg.pathSeg.enabled, so let
SVGPathElement::getPathSegAtLength(), SVGAnimatedPathData::pathSegList,
and SVGAnimatedPathData::animatedPathSegList behind the preference, and
set the preference to false by default on all channels.

Differential Revision: https://phabricator.services.mozilla.com/D133289
2021-12-10 01:01:40 +00:00
Kagami Sascha Rosylight 120bd0a098 Bug 1707075 - Enable dispatch_by_pointer_messages by default r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D133352
2021-12-09 19:44:28 +00:00
Ryan VanderMeulen 266ec6a6cb Bug 1744073 - Update freetype2 to 2.11.1. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D132702
2021-12-09 16:22:19 +00:00
Paul Zuehlcke 25970112b5 Bug 1745039 - Remove privacy.antitracking.cacheStorageAllowedForWindow pref. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D133237
2021-12-09 11:19:15 +00:00
John Lin 1d098bb719 Bug 1726617 - p1: use video encoder fallback wrapper in WebRTC. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D126975
2021-12-09 07:57:17 +00:00
sotaro 541d1dbd70 Bug 1745109 - Remove DiagnosticsD3D11 r=gfx-reviewers,lsalzman
With WebRender, DiagnosticsD3D11 is not necessary.

Differential Revision: https://phabricator.services.mozilla.com/D133310
2021-12-09 04:14:58 +00:00
Shravan Narayan d37cf39bdc Bug 1744460 part 1 - Move woff2 memory estimation code outside rlbox sandbox r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D133009
2021-12-09 00:01:16 +00:00
Jan Varga 7df02395dd Bug 1735713 - Revamp temporary storage limits; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D130760
2021-12-08 20:40:47 +00:00
Butkovits Atila 6ffe112d27 Backed out 2 changesets (bug 1744460) for causing build bustages at RLBoxSandboxPool.cpp. CLOSED TREE
Backed out changeset 582101d582a0 (bug 1744460)
Backed out changeset dba7b7c19b2f (bug 1744460)
2021-12-08 21:57:58 +02:00
Shravan Narayan cb984eadce Bug 1744460 part 1 - Move woff2 memory estimation code outside rlbox sandbox r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D133009
2021-12-08 17:55:16 +00:00
Emily McDonough c4d55a9374 Bug 1741973 - Implement parsing of the page property r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D131531
2021-12-07 22:11:53 +00:00
Valentin Gosu 01b728719b Bug 650091 - Sort authentication challenges by safety rating r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D132499
2021-12-07 11:30:50 +00:00
Valentin Gosu fa719e1872 Bug 1741426 - Ship network.url.max-length = 32Mb dataURL limit to release r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D132480
2021-12-07 11:30:03 +00:00
Narcis Beleuzu 265b401a97 Bug 1744225 - Correct early beta variable name guarding preference in StaticPrefs.yaml r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D132775
2021-12-07 03:33:29 +00:00
owlishDeveloper 2d9a445ab0 Bug 1619655 - Part 1. Enable COOP+COEP prefs on GeckoView Beta and Release r=calu
Differential Revision: https://phabricator.services.mozilla.com/D132960
2021-12-06 23:38:24 +00:00
Alexandru Michis 40430b0cce Backed out changeset 66eb52e5da74 (bug 1741973) for causing mochitest failures in test_animation-type-longhand.html
CLOSED TREE
2021-12-07 00:01:55 +02:00
Emily McDonough bd3b879775 Bug 1741973 - Implement parsing of the page property r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D131531
2021-12-06 19:34:43 +00:00
Cathy Lu 8348b23f54 Bug 1697647 - Add screen orientation lock api r=ipc-reviewers,mccr8,agi,smaug,jonalmeida
Previously, the screenOrientation.lock API was for Fennec and not supported for Fenix and multi-process use. The overall idea is to now allow apps to use the API through a delegate and make asynchronous calls to LockDeviceOrientation. This required replacing the existing code that returned a default false bool to calls that perform the requested orientation change and instead return a promise that contained either an allow or deny value.

Returning a promise instead of a bool involved changing the API calls from the C++ side to Java. The new general control flow of screenOrientation lock follows: an app calls C++ ScreenOrientation.lock() which eventually dispatches LockOrientationTask to resolve the pending orientation promise. Hal.cpp sends an IPC call to the content process and RecvLockScreenOrientation retrieves the current instance of geckoRuntime and calls the java side LockScreenOrientation. Apps must create a delegate and override onOrientationLock to set the requested orientation. In geckoview's testing, this is done with the android API setRequestedOrientation. Once a device orientation change has been triggered, native OnOrientationChange calls to NotifyScreenConfigurationChange, which notifies all observers and dispatches a change event to resolve the pending orientation promise.

Testing:
I used a demo on the GeckoView Example (https://usefulangle.com/demos/105/screen.html) to test locking to landscape orientation. This required a change to the GVE to show the app from recreating the whole thing on orientation change. In the example AndroidManifest xml file, `orientation` prevents restart when orientation changes.

The Junit/Kotlin tests were to verify that the expected orientation delegate was called with the expected new orientation value, in an orientation change, if the new orientation was the same as the current, and if the pre-lock conditions such as being fullscreen were not met.

A static preference `dom.screenorientation.allow-lock` was added to the dom group, since it affects the ui dom) and is currently turned off. C++ can access it through its mirrored variable dom_screenorientation_allow_lock (same name but with underscores). The junit tests turn the preference on and test the lock feature.

Reference:
Orientation constant values:
    C++
        1 ScreenOrientation_PortraitPrimary); - vertical with button at bottom
        2 ScreenOrientation_PortraitSecondary); - vertical with button at top
        4 ScreenOrientation_LandscapePrimary); - horizational w button right
        8 ScreenOrientation_LandscapeSecondary); - horization button left
        16 ScreenOrientation_Default);
    Java
        1 GeckoScreenOrientation.ScreenOrientation.PORTRAIT_PRIMARY.value
        2 GeckoScreenOrientation.ScreenOrientation.PORTRAIT_SECONDARY.value
        4 GeckoScreenOrientation.ScreenOrientation.LANDSCAPE_PRIMARY.value
        8 GeckoScreenOrientation.ScreenOrientation.LANDSCAPE_SECONDARY.value

    Java public API
        0 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
        1 Activitynfo.SCREEN_ORIENTATION_PORTRAIT

    Android
        1 ORIENTATION_PORTRAIT
        2 ORIENTATION_LANDSCAPE

Differential Revision: https://phabricator.services.mozilla.com/D129427
2021-12-06 13:58:37 +00:00
Butkovits Atila cd8a98f0df Backed out changeset 05897abf2c4e (bug 1697647) for causing failures at lock-sandboxed-iframe.html. CLOSED TREE 2021-12-04 04:32:48 +02:00
Cathy Lu 3e9924d513 Bug 1697647 - Add screen orientation lock api r=ipc-reviewers,mccr8,agi,smaug,jonalmeida
Previously, the screenOrientation.lock API was for Fennec and not supported for Fenix and multi-process use. The overall idea is to now allow apps to use the API through a delegate and make asynchronous calls to LockDeviceOrientation. This required replacing the existing code that returned a default false bool to calls that perform the requested orientation change and instead return a promise that contained either an allow or deny value.

Returning a promise instead of a bool involved changing the API calls from the C++ side to Java. The new general control flow of screenOrientation lock follows: an app calls C++ ScreenOrientation.lock() which eventually dispatches LockOrientationTask to resolve the pending orientation promise. Hal.cpp sends an IPC call to the content process and RecvLockScreenOrientation retrieves the current instance of geckoRuntime and calls the java side LockScreenOrientation. Apps must create a delegate and override onOrientationLock to set the requested orientation. In geckoview's testing, this is done with the android API setRequestedOrientation. Once a device orientation change has been triggered, native OnOrientationChange calls to NotifyScreenConfigurationChange, which notifies all observers and dispatches a change event to resolve the pending orientation promise.

Testing:
I used a demo on the GeckoView Example (https://usefulangle.com/demos/105/screen.html) to test locking to landscape orientation. This required a change to the GVE to show the app from recreating the whole thing on orientation change. In the example AndroidManifest xml file, `orientation` prevents restart when orientation changes.

The Junit/Kotlin tests were to verify that the expected orientation delegate was called with the expected new orientation value, in an orientation change, if the new orientation was the same as the current, and if the pre-lock conditions such as being fullscreen were not met.

A static preference `dom.screenorientation.allow-lock` was added to the dom group, since it affects the ui dom) and is currently turned off. C++ can access it through its mirrored variable dom_screenorientation_allow_lock (same name but with underscores). The junit tests turn the preference on and test the lock feature.

Reference:
Orientation constant values:
    C++
        1 ScreenOrientation_PortraitPrimary); - vertical with button at bottom
        2 ScreenOrientation_PortraitSecondary); - vertical with button at top
        4 ScreenOrientation_LandscapePrimary); - horizational w button right
        8 ScreenOrientation_LandscapeSecondary); - horization button left
        16 ScreenOrientation_Default);
    Java
        1 GeckoScreenOrientation.ScreenOrientation.PORTRAIT_PRIMARY.value
        2 GeckoScreenOrientation.ScreenOrientation.PORTRAIT_SECONDARY.value
        4 GeckoScreenOrientation.ScreenOrientation.LANDSCAPE_PRIMARY.value
        8 GeckoScreenOrientation.ScreenOrientation.LANDSCAPE_SECONDARY.value

    Java public API
        0 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
        1 Activitynfo.SCREEN_ORIENTATION_PORTRAIT

    Android
        1 ORIENTATION_PORTRAIT
        2 ORIENTATION_LANDSCAPE

Differential Revision: https://phabricator.services.mozilla.com/D129427
2021-12-03 23:49:25 +00:00
criss daea1328b7 Backed out changeset 9c623cac6b96 (bug 1697647) for causing mozlint failures. CLOSED TREE 2021-12-04 01:34:21 +02:00
Cathy Lu 1e4d05e6fd Bug 1697647 - Add screen orientation lock api r=ipc-reviewers,mccr8,agi,smaug,jonalmeida
Previously, the screenOrientation.lock API was for Fennec and not supported for Fenix and multi-process use. The overall idea is to now allow apps to use the API through a delegate and make asynchronous calls to LockDeviceOrientation. This required replacing the existing code that returned a default false bool to calls that perform the requested orientation change and instead return a promise that contained either an allow or deny value.

Returning a promise instead of a bool involved changing the API calls from the C++ side to Java. The new general control flow of screenOrientation lock follows: an app calls C++ ScreenOrientation.lock() which eventually dispatches LockOrientationTask to resolve the pending orientation promise. Hal.cpp sends an IPC call to the content process and RecvLockScreenOrientation retrieves the current instance of geckoRuntime and calls the java side LockScreenOrientation. Apps must create a delegate and override onOrientationLock to set the requested orientation. In geckoview's testing, this is done with the android API setRequestedOrientation. Once a device orientation change has been triggered, native OnOrientationChange calls to NotifyScreenConfigurationChange, which notifies all observers and dispatches a change event to resolve the pending orientation promise.

Testing:
I used a demo on the GeckoView Example (https://usefulangle.com/demos/105/screen.html) to test locking to landscape orientation. This required a change to the GVE to show the app from recreating the whole thing on orientation change. In the example AndroidManifest xml file, `orientation` prevents restart when orientation changes.

The Junit/Kotlin tests were to verify that the expected orientation delegate was called with the expected new orientation value, in an orientation change, if the new orientation was the same as the current, and if the pre-lock conditions such as being fullscreen were not met.

A static preference `dom.screenorientation.allow-lock` was added to the dom group, since it affects the ui dom) and is currently turned off. C++ can access it through its mirrored variable dom_screenorientation_allow_lock (same name but with underscores). The junit tests turn the preference on and test the lock feature.

Reference:
Orientation constant values:
    C++
        1 ScreenOrientation_PortraitPrimary); - vertical with button at bottom
        2 ScreenOrientation_PortraitSecondary); - vertical with button at top
        4 ScreenOrientation_LandscapePrimary); - horizational w button right
        8 ScreenOrientation_LandscapeSecondary); - horization button left
        16 ScreenOrientation_Default);
    Java
        1 GeckoScreenOrientation.ScreenOrientation.PORTRAIT_PRIMARY.value
        2 GeckoScreenOrientation.ScreenOrientation.PORTRAIT_SECONDARY.value
        4 GeckoScreenOrientation.ScreenOrientation.LANDSCAPE_PRIMARY.value
        8 GeckoScreenOrientation.ScreenOrientation.LANDSCAPE_SECONDARY.value

    Java public API
        0 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
        1 Activitynfo.SCREEN_ORIENTATION_PORTRAIT

    Android
        1 ORIENTATION_PORTRAIT
        2 ORIENTATION_LANDSCAPE

Differential Revision: https://phabricator.services.mozilla.com/D129427
2021-12-03 22:35:22 +00:00
Jeff Muizelaar 37608acf34 Bug 1744037. Set media.rdd-ffmpeg.enabled=@IS_EARLY_BETA_OR_EARLIER@ r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D132699
2021-12-03 14:01:22 +00:00
Masayuki Nakano 340301eec4 Bug 1743346 - Make `TextInputHandler::HandleEvent` handle native key bindings first, then, our shortcut keys r=smaug
Oddly, `TextInputHandler` which is keyboard event handler for
`<input type="text">` and `<textarea>` handles our shortcut keys
first, then, refer native key bindings.  So if a key combination
matches in both definitions, our shortcut key wins.

On the other hand, if `HTMLEditor` has focus, `keypress` event
listener on the `Document` node hanldes native key bindings:
https://searchfox.org/mozilla-central/rev/70b32246fce5ca1f53af573a21c1939df58cb969/editor/libeditor/EditorEventListener.cpp#641-644

Then, global key listener will be run later:
https://searchfox.org/mozilla-central/rev/70b32246fce5ca1f53af573a21c1939df58cb969/dom/events/GlobalKeyListener.cpp#163-164

Perhaps, it's better to refer native key bindings first because
unusual shortcut key definition must be caused by customization
by the user in the system level.

Therefore, this patch makes the order switchable with the new
pref for making it easier to back it out.

Differential Revision: https://phabricator.services.mozilla.com/D132451
2021-12-03 11:57:29 +00:00
Masayuki Nakano e70edff6bc Bug 1743339 - Make `NativeKeyBindings` for single line editor try the one for multiline editor too r=stransky
`GtkEntry` is used to check what editing or natvigation command is
mapped to every key combination when `<input>` has focus.  However,
it does not support `select-all` signal, thus, Gecko does not respect
native shortcut key for "Select All".

This patch makes it try to check whether the given key combination is
mapped to "Select All" or not in `GtkTextView` widget which supports
`select-all` signal.  Thus, we'll get consistent behavior between
`<input>` and `<textarea>` about "Select All".

Differential Revision: https://phabricator.services.mozilla.com/D132450
2021-12-03 11:57:29 +00:00
Sandor Molnar 0d095a62b5 Backed out changeset 8fac157c354a (bug 1741973) for causing xpc failures in devtools/shared/tests/xpcshell/test_css-properties-db. CLOSED TREE 2021-12-03 04:17:36 +02:00
Emily McDonough 1de10c57f2 Bug 1741973 - Implement parsing of the page property r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D131531
2021-12-02 23:37:28 +00:00
Olli Pettay dd85add02c Bug 1728741, increase max navigator.hardwareConcurrency, r=tjr
Threadripper may have 128 logical cores.

Differential Revision: https://phabricator.services.mozilla.com/D124447
2021-12-02 21:48:07 +00:00
Nihanth Subramanya 6b8bc2088d Bug 1743122 - Disable TRR temp blocklist feature in tests. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132245
2021-12-02 13:21:56 +00:00
Nihanth Subramanya bdcc5aef9e Bug 1737198 - Part 6: Enable strict fallback mode by default in Nightly. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D132112
2021-12-02 13:21:55 +00:00
Nihanth Subramanya d3fe75231e Bug 1737198 - Part 3: Remove TRR blocklist cleanup code. r=valentin,necko-reviewers
Reverts bug 1651672 / rev D86520. It's been a few releases,
we can remove this cleanup code.

Differential Revision: https://phabricator.services.mozilla.com/D132107
2021-12-02 13:21:54 +00:00
Nihanth Subramanya 232120db57 Bug 1737198 - Part 1: Cycle DoH connection and retry upon lookup failure. r=necko-reviewers,valentin,dragana
1. When we see a failed TRR lookup in nsHostResolver::CompleteLookup, we trigger
a Confirmation and retry the lookup.
2. When triggering Confirmation, we set LOAD_FRESH_CONNECTION on the TRR channel,
which will then tell the connection manager to clear out the current TRR conneection.
This will cause us to use a new connection for the Confirmation and subsequent
lookups.

Differential Revision: https://phabricator.services.mozilla.com/D129227
2021-12-02 13:21:53 +00:00
kriswright df91a347b4 Bug 1532955 - Track available memory on linux. r=gsvelto,tkikuchi
This introduces a low memory watcher that dispatches an offthread read of /proc/meminfo every 5000/1000ms depending on memory levels, then determines which information to act on. It works like this:
- Get a percentage of `MemAvailable` versus `MemTotal`.
- If memory drops below 5% availability, we are in a memory pressure scenario
- If `MemAvailable` is not large enough to accommodate a content process, we are in a memory pressure scenario
- If we are in a memory pressure scenario, notify the observers from the main thread.

The value I decided to use to represent a content process was based on observation and should be adjusted if it is not representative of what we consider a "typical" content process.

Differential Revision: https://phabricator.services.mozilla.com/D117972
2021-12-02 11:14:30 +00:00
Noemi Erli 56a43f9e9e Backed out 9 changesets (bug 1743122, bug 1737198) for causing assertion failure in TRRServiceChild.cpp CLOSED TREE
Backed out changeset 044390f37a8f (bug 1743122)
Backed out changeset d742fcfb8fad (bug 1737198)
Backed out changeset 9e4b52c06e3c (bug 1737198)
Backed out changeset 546b0f714a4d (bug 1737198)
Backed out changeset 189ed6145945 (bug 1737198)
Backed out changeset 3bab6f5b5b6b (bug 1737198)
Backed out changeset cdc9de540f2f (bug 1737198)
Backed out changeset e981d9e9c11c (bug 1737198)
Backed out changeset 04a75a837de9 (bug 1737198)
2021-12-02 13:40:57 +02:00
Nihanth Subramanya 52ce47f7bf Bug 1743122 - Disable TRR temp blocklist feature in tests. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132245
2021-12-02 10:13:36 +00:00
Nihanth Subramanya cbd0f96f31 Bug 1737198 - Part 6: Enable strict fallback mode by default in Nightly. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D132112
2021-12-02 10:13:35 +00:00
Nihanth Subramanya 40445c33bc Bug 1737198 - Part 3: Remove TRR blocklist cleanup code. r=valentin,necko-reviewers
Reverts bug 1651672 / rev D86520. It's been a few releases,
we can remove this cleanup code.

Differential Revision: https://phabricator.services.mozilla.com/D132107
2021-12-02 10:13:34 +00:00