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

104118 Коммитов

Автор SHA1 Сообщение Дата
Edgar Chen be408c368a Bug 1742714 - Get rid of nsIFormSubmitObserver; r=geckoview-reviewers,agi,smaug
Differential Revision: https://phabricator.services.mozilla.com/D132091
2021-12-06 12:23:08 +00:00
Christoph Kerschbaumer e7b60715c2 Bug 1701386: Test if Principal is exempt when https-only is about to upgrade websockets r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D110104
2021-12-06 08:58:24 +00:00
Andi-Bogdan Postelnicu 359e82a664 Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre
Updated with clang-format version 13.0.0 (taskcluster-cMIjs2JaRe6fqM2zK7ZACQ)

Differential Revision: https://phabricator.services.mozilla.com/D132868
2021-12-05 19:04:18 +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
Butkovits Atila 56c46d06a1 Backed out 3 changesets (bug 1719554) for causing bustages complaining about gfxTextRun.cpp.
Backed out changeset 6181e40d4da1 (bug 1719554)
Backed out changeset c261ede6ae81 (bug 1719554)
Backed out changeset 221ec418475c (bug 1719554)
2021-12-04 00:58:15 +02:00
Dragana Damjanovic 0c99784d33 Bug 1743965 - Telemetry to measure the page load performance with HTTP/3 priorities r=nhnt11
There is not a good way to know whether the server takes into account the client's priority suggestion or whether it is applying any kind of prioritization.

The only feedback there is from the server is the "priority" header. We will use this to isolate a subset of HTTP/3 connections that are more likely to apply priorities and measure their page load time and time to first paint. If we have enough data we will do an experiment to measure whether HTTP/3 priorities sent by the client improve performance.

Differential Revision: https://phabricator.services.mozilla.com/D132669
2021-12-03 21:12:37 +00:00
Byron Campen [:bwc] 89e9351da9 Bug 1744098: Compare pt in remote rtcp-fb against remote pt, not local pt. r=mjf
Remote rtcp-fb is something that the receive codec negotiates, and the pt of
the receive codec can be different than the pt in the remote SDP. So, we need
to first determine which remote pt corresponds to the receive codec, and then
look for something that matches it.

Depends on D132827

Differential Revision: https://phabricator.services.mozilla.com/D132828
2021-12-03 21:12:11 +00:00
Byron Campen [:bwc] 6c48e39691 Bug 1744098: Test-case for bug. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D132827
2021-12-03 21:12:11 +00:00
Dan Minor 8d9076933e Bug 1719554 - Unify nsCharType as intl::BidiClass; r=platform-i18n-reviewers,jfkthame,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D132275
2021-12-03 20:49:31 +00:00
Dan Minor c0ebed22d3 Bug 1719554 - Unify most of nsUnicodeProperties.h; r=platform-i18n-reviewers,jfkthame,gregtatum,necko-reviewers,valentin
This unifies most of the calls in nsUnicodeProperties.h. CharType and Script
will be handled in subsequent patches on this bug.

Differential Revision: https://phabricator.services.mozilla.com/D132273
2021-12-03 20:49:31 +00:00
Andrew McCreight b34f3789ca Bug 1742872, part 2 - Fix the initial iframe shutdown race in the priority manager test. r=nika
With Fission, the process containing the initial page in the iframe
for the iframe navigation test might start shutting down after we
navigate away from it, because nothing else is loaded into it. If
this happens, the process will become FOREGROUND priority, causing
a test failure. See bug 1727340.

To work around this, I open an additional tab that is same-site with
the initial iframe, which should ensure that the process doesn't go
away too soon.

I also factored out a function to open a new tab.

Differential Revision: https://phabricator.services.mozilla.com/D132628
2021-12-03 18:52:08 +00:00
Andrew McCreight 6e219a4523 Bug 1742872, part 1 - Add more process uniqueness checks to browser_ProcessPriorityManager.js. r=nika
Also, add a comment about how you can run the priority manager tests on
non-Windows platforms, and rename some variables for clarity.

Differential Revision: https://phabricator.services.mozilla.com/D132382
2021-12-03 18:52:08 +00:00
Barret Rennie 83586dfc28 Bug 1741465 - Support reading files larger than UINT32_MAX if using a large enough offset r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D132262
2021-12-03 17:21:52 +00:00
Joel Maher 63bf096aef Bug 1743907 - Remove webrender annotation from manifestparser manifests. r=ahal,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D132682
2021-12-03 16:04:29 +00:00
Edgar Chen be2b141606 Bug 1556367 - Part 3: Implement checkValidity() of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D130129
2021-12-03 15:47:34 +00:00
Edgar Chen 0b76ecfebd Bug 1556367 - Part 2: Factor dispatching invalid event code into a common place; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D130274
2021-12-03 15:47:34 +00:00
Edgar Chen 58bd984018 Bug 1556367 - Part 1: Remove unused nsIConstraintValidation::CheckValidity overloading; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D130273
2021-12-03 15:47:34 +00:00
Manuel Bucher ad4dd9d3c9 Bug 1740688 - Extract parser for the Link header field r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D131498
2021-12-03 15:11:14 +00:00
Manuel Bucher 0a44809586 Bug 1741825 - Add missing truncate of titleStar in parser of Link header r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D131505
2021-12-03 15:11:14 +00:00
stransky 9b8c7dbec4 Bug 1743159 Disable hardware video decoding for WebRTC when decode fails, r=jya
Recently hardware video decoding is enabled by default for WebRTC and there isn't any fallback if it fails.
Let's try HW decoding first and fallback to SW decoding if we fail as we do for media video playback.

Differential Revision: https://phabricator.services.mozilla.com/D132492
2021-12-03 14:52:09 +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
Tom Ritter b9c7c62d3e Bug 1744118: Fix the JS Load and System Principal Telemetry r=ckerschb
If the string pref is not set, then pref lookup fails. If the lookup
fails, we interpret it as an error (rather than a missing pref) and
bail early.

This means that we never set sJSHacksChecked and no telemetry will be
sent because we permit everything.  (It also means we do a ton of pref
lookups all the time because every one of them fails.)

Differential Revision: https://phabricator.services.mozilla.com/D132727
2021-12-03 07:42:26 +00:00
Randell Jesup 08f296ee63 Bug 1743895: Add names to all TaskQueues, remove no-name constructor r=nika,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132638
2021-12-03 03:16:15 +00:00
nchevobbe b31e82ce90 Bug 1238861 - Display a warning message when doctype is not standard. r=hsivonen.
This patchs adds new error messages which are extending existing ones,
providing extra information to the user.
A webconsole mochitest is added in the following patch of this stack.

Differential Revision: https://phabricator.services.mozilla.com/D131889
2021-12-02 22:46:22 +00:00
Joel Maher 0f8883d38a Bug 1743907 - remove stale references to webrender in reftest manifests. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D132687
2021-12-02 21:56:24 +00:00
criss b8de8f45dd Backed out changeset 5ed325ce740b (bug 1740335) for causing serviceworker related failures. CLOSED TREE 2021-12-02 17:24:08 +02:00
Randell Jesup a5f65e1e44 Bug 1740335: Add telemetry for the number of service workers r=dom-worker-reviewers,edenchuang
We want to record the number of registered and running ServiceWorkers, and
subset them by whether they support Fetch or not, in order to inform
decisions about isolating ServiceWorkers.
Also reenables some of the other ServiceWorker telemetry we used to collect
until FF 102

Differential Revision: https://phabricator.services.mozilla.com/D131563
2021-12-02 14:26:56 +00:00
stransky 9d21872699 Bug 1743577 [Linux] Support color ranges by VA-API, r=sotaro,jgilbert
Get frame color range from ffmpeg by av_frame_get_color_range() (we do the same for non VA-API path),
store to DMABufSurface and propagate to rendering thread.

Differential Revision: https://phabricator.services.mozilla.com/D132469
2021-12-02 09:32:45 +00:00
Emilio Cobos Álvarez a86e7625ac Bug 1580394 - Add an InsertAnonymousContent version which tries to update layout synchronously if needed. r=nchevobbe,smaug
Differential Revision: https://phabricator.services.mozilla.com/D132034
2021-12-02 08:39:22 +00:00
Karl Tomlinson a775058a48 Bug 1743524 don't expose speaker device info after getUserMedia({audio: true, fake: true}) r=jib
Differential Revision: https://phabricator.services.mozilla.com/D132434
2021-12-01 21:53:32 +00:00
Alexandru Michis f236a62bde Backed out changeset b6ebaaea0102 (bug 1741465) for causing bustages in IOUtils.cpp
CLOSED TREE
2021-12-01 23:42:21 +02:00
Barret Rennie d7de7c8631 Bug 1741465 - Support reading files larger than UINT32_MAX if using a large enough offset r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D132262
2021-12-01 20:35:21 +00:00
Csoregi Natalia 59f022092c Backed out 2 changesets (bug 1712837) for causing RemoteProcessMonitor failures. CLOSED TREE
Backed out changeset e3ed61b61357 (bug 1712837)
Backed out changeset 19b9dfd60749 (bug 1712837)
2021-12-01 22:36:35 +02:00
Jonatan Klemets c32210afec Bug 1736060 - Part 4: Implement HostGetSupportedImportAssertions. r=mgaudet,arai
Differential Revision: https://phabricator.services.mozilla.com/D126044
2021-12-01 18:26:09 +00:00
Dana Keeler c02a76841b Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-01 18:10:34 +00:00
Makoto Kato 3da88d8e66 Bug 1743780 - Get rid of PuppetScreenManager and PuppetScreen. r=emilio
Now we use `mozilla::widget::ScreenManager` even if on content process, so no
one uses `PuppetScreen` and `PuppetScreenManager`.

And I would like to remove `Hal.h` reference from `PuppetWidget`, so I remove
unused method.

Differential Revision: https://phabricator.services.mozilla.com/D132564
2021-12-01 15:07:14 +00:00
Gabriele Svelto 41d3d5a176 Bug 1741568 - Fix all clang-tidy warnings in dom/midi r=padenot
Depends on D131222

Differential Revision: https://phabricator.services.mozilla.com/D131328
2021-12-01 13:49:40 +00:00
Gabriele Svelto 2a94618550 Bug 1741373 - Make midi.testing a static preference r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D131222
2021-12-01 13:49:40 +00:00
Andrew McCreight 309156ec3c Bug 1743702 - Make browser_ProcessPriorityManager.js use https. r=ckerschb
The trick here is to ensure that URLs continue to not be same-site after
changing to https URLs.

Differential Revision: https://phabricator.services.mozilla.com/D132522
2021-12-01 13:24:47 +00:00
Andreas Pehrson cf7d6cca2b Bug 1742804 - Re-land changeset fa867b130b44. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D132501
2021-12-01 12:59:44 +00:00
Gijs Kruitbosch e36840652c Bug 1705211, r=nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D131856
2021-12-01 12:36:07 +00:00
Makoto Kato 48a953379d Bug 1722928 - Add a check whether child process is still alive. r=eeejay
There is a lot of the following `PSpeechSynthesisRequestParent` signature
crashes in Fenix since `mActor` seems to be null.

- `mozilla::dom::PSpeechSynthesisRequestParent::SendOnEnd`
- `mozilla::dom::PSpeechSynthesisRequestParent::SendOnBoundary`
- `mozilla::dom::PSpeechSynthesisRequestParent::SendOnStart`

So we should add a check whether child process is still alive.

Differential Revision: https://phabricator.services.mozilla.com/D132457
2021-12-01 08:30:02 +00:00
Sandor Molnar 41e90a1bee Backed out 2 changesets (bug 1580394) for causing dt failures in browser_dbg-paused-overlay-loading. CLOSED TREE
Backed out changeset e692ec7d440f (bug 1580394)
Backed out changeset 0ceda05fc737 (bug 1580394)
2021-12-01 11:20:15 +02:00
Emilio Cobos Álvarez a198b03c34 Bug 1580394 - Add an InsertAnonymousContent version which tries to update layout synchronously if needed. r=nchevobbe,smaug
Differential Revision: https://phabricator.services.mozilla.com/D132034
2021-12-01 08:11:22 +00:00
Chris Peterson f6fdbf028a Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium
-Wshadow warnings are not enabled globally, so these -Wno-shadow suppressions have no effect. I had intended to enable -Wshadow globally along with these suppressions in some directories (in bug 1272513), but that was blocked by other issues.

There are too many -Wshadow warnings (now over 2000) to realistically fix them all. We should remove all these unnecessary -Wno-shadow flags cluttering many moz.build files.

Differential Revision: https://phabricator.services.mozilla.com/D132289
2021-12-01 06:40:04 +00:00
Narcis Beleuzu 4c87b2e488 Backed out 12 changesets (bug 1721217) for bc failures on browser_TopLevelNavigationDelegate.js
Backed out changeset 5fe3c617d521 (bug 1721217)
Backed out changeset c131e4a6d9d5 (bug 1721217)
Backed out changeset a59210a5b400 (bug 1721217)
Backed out changeset 74362b0c39c0 (bug 1721217)
Backed out changeset c8075b91d660 (bug 1721217)
Backed out changeset 46512deaf0e5 (bug 1721217)
Backed out changeset b38bc569d227 (bug 1721217)
Backed out changeset ee9bd012fda8 (bug 1721217)
Backed out changeset 7aa2726a0982 (bug 1721217)
Backed out changeset 885ced5f4bb4 (bug 1721217)
Backed out changeset 7d3f99ca3f44 (bug 1721217)
Backed out changeset 2f5a0164679a (bug 1721217)
2021-12-01 03:38:10 +02:00
Marian-Vasile Laza 74bbbc347e Backed out changeset 9c044551012e (bug 1705211) for causing bc test failures on browser_protocol_ask_dialog_external.js. CLOSED TREE 2021-12-01 03:09:59 +02:00