Commit graph

987437 commits

Author SHA1 Message Date
Mozilla Releng Treescript
c11e5a3b9b No bug - Tagging c4a5d008ee64fab523384408fa2868e2d028025d with FIREFOX_128_4_0esr_BUILD1 a=release CLOSED TREE DONTBUILD 2024-10-22 00:05:56 +00:00
David Parks
cc058e14a5 Bug 1917201: Remove cancel button from modal while waiting for user to respond to Windows geolocation dialog r=Gijs a=RyanVM
The cancel button is not really useful here and is probably confusing some
users, since they are pressing it anyway, and it is causing this crash. The
ideal fix would be for the Windows dialog to be modal instead of just immovable,
but it isn't.

Differential Revision: https://phabricator.services.mozilla.com/D225154
2024-10-18 21:58:28 +00:00
David Parks
5f342def31 Bug 1900225: Part 6 - Wait for Windows permission dialog to be dismissed before requesting geolocation r=emilio,win-reviewers,gstoll a=RyanVM
When Windows presents the dialog asking the user to give geolocation permission
to Firefox, we need to wait for the user to make a choice before running the
geolocation request.    Previously, we were not waiting for the user's response
so most requests would timeout and fail, even if the user replied "Yes".

This dialog is only ever presented once -- the first time that Firefox asks
Windows for a wifi scan.  It does not reappear on restarts or reinstalls.   This
dedicated Yes/No system prompt is a bit more user-friendly than system settings.

This "system will prompt for permission" case could be completely avoided since
wifi scanning is not useful to us when it requires geolocation permissions as
geolocation would override it.  We would need the MLSFallback behavior to skip
scanning wifi when geolocation permission wasn't already granted, or else the
MLSFallback would present the system prompt in question, despite the user having
already denied permission.  On the other hand, we need the old scanning behavior
for this case when running versions of Windows 10 and 11 that don't have these
updates.  (The updates are set to appear in the 24H2 version of Windows 11.)
This approach avoids that kind of version special-casing.

Differential Revision: https://phabricator.services.mozilla.com/D218589
2024-08-27 22:47:33 +00:00
David Parks
7353dad1ee Bug 1900225: Part 5 - On Windows, do not show message about wifi scan permission if no wifi is present r=win-reviewers,necko-reviewers,valentin,gstoll a=RyanVM
We added a note to the geolocation doorhanger, warning the user when Windows is
going to repeat the request for user permission (although it asks for permission
for Firefox, not for the web page).  However, Windows won't do this if there is
no wifi adapter that could perform the scan.  Here, we avoid adding the note in
that case.

Differential Revision: https://phabricator.services.mozilla.com/D218588
2024-08-27 22:47:33 +00:00
David P
b5f3201f9f Bug 1900225: Part 4 - Add geo.prompt.open_system_prefs to block opening system preferences r=gstoll a=RyanVM
Also adds this as the default for mochitests, in anticipation of the day that
the implementation is supported by the computers in automation.

Differential Revision: https://phabricator.services.mozilla.com/D216475
2024-08-27 22:47:32 +00:00
David P
02741f5f68 Bug 1900225: Part 3 - Implement system geolocation permission UX on Windows r=win-reviewers,gstoll a=RyanVM
This implements PresentSystemSettings, LocationIsPermittedHint and
SystemWillPromptForPermissionHint for Windows.  The Windows APIs are not always
available -- some are currently only available in Windows 11 Canary builds
(slated for September release).  In the event that APIs are not available, this
should do nothing.  At present, this is detailed here:

https://learn.microsoft.com/en-us/windows/win32/nativewifi/wi-fi-access-location-changes

There are two issues that this is intended to handle:

1. The system will display a one-time (or so) dialog to the user when Firefox
requests geolocation but doesn't have permission.  For that case, we inform the
user that they will be asked to grant location permission again.  This system
dialog is only presented in versions of Windows that support all of the relevant
APIs.
2. We open system settings to the right page and post a cancelable modal dialog
on the tab if the user grants geolocation to the page but geolocation permission
isn't currently granted in the OS.  This case will not happen if case #1 did.
Unfortunately, we can't get information about the permission status without a
location request on old versions of Windows, so this also does nothing unless
the recent APIs are supported (in this case, AppCapability::CheckAccess).

This work is necessitated not only by the new (occasional) system dialog but
also by Microsoft's plans to block wifi scanning if geolocation isn't available.
We have used wifi scanning as part of a fallback when system geolocation isn't
available -- that approach is no longer viable here.  A user would confusingly
get repeated errors or very poor results (e.g. IP lookup results) without
information as to why, if that happened.  This is what happens in the current
Windows Canary build if system geolocation is turned off.  The fallback remains
useful on other platforms, although Linux is in flux (but it is not in the
scope of this bug).

Differential Revision: https://phabricator.services.mozilla.com/D216474
2024-08-27 22:47:32 +00:00
David P
4457936d80 Bug 1900225: Part 2 - Inform user of system UX issues initiated by geolocation request r=gstoll,emilio,bolsson,pbz a=RyanVM
This patch installs the framework for various platforms to inform the user of
one of two things: 1) a coming system dialog asking for system geolocation
permission that will be presented after the Firefox doorhanger asking for
permission for the page, and 2) that we will open a system preferences window,
where the user can enable geolocation for Firefox because it is currently not
enabled.  The code that handles this has been remoted to the parent process
since implementations will not be able to operate in the content process
sandbox.

Here, it stubs the behavior so this does nothing on every platform.
In this patch series, the behavior will be implemented for Windows.

Note: The code will run the geolocation for the page if the user granted it in
Firefox, regardless of whether the user granted or canceled the system
permission.  This respects the user's instruction and provides a work-around in
the event of a bug, although it would usually either fail to get a location or
it will get a very poor one (e.g. via IP lookup).

Differential Revision: https://phabricator.services.mozilla.com/D216473
2024-08-27 22:47:32 +00:00
David Parks
d7a066ab36 Bug 1900225: Part 1 - Add dismissPrompts to Windows geolocation UI utils r=Gijs a=RyanVM
Will be used later in this series to remove a cancel dialog that is presented
over a tab while Gecko waits for the user to grant geolocation permission in the
OS.

Differential Revision: https://phabricator.services.mozilla.com/D217015
2024-08-27 22:47:31 +00:00
Eitan Isaacson
e23be1e206 Bug 1919087 - Defer PushNameOrDescriptionChange to WillRefresh tick. a=RyanVM
Since the method is deferred we need to do extra guesswork for possible
situtations where the name has changed because we don't have the
privilege to calculate the name in-line when content is deleted.

I tried to account for all cases as we have in our test coverage. I
hope that if there are edge cases they are false positives, and we are
firing extra name changes and not the opposite.

Original Revision: https://phabricator.services.mozilla.com/D223877

Differential Revision: https://phabricator.services.mozilla.com/D225716
2024-10-20 18:53:42 +00:00
ffxbld
6f20ec137d No Bug, mozilla-esr128 repo-update HSTS HPKP remote-settings tld-suffixes - a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D226304
2024-10-21 12:33:03 +00:00
Kagami Sascha Rosylight
f9036a9a1d Bug 1924154 - Disallow too small record a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D225687

Differential Revision: https://phabricator.services.mozilla.com/D226147
2024-10-18 16:31:52 +00:00
Thomas Wisniewski
88ec901b2c Bug 1925270 - uplift webcompat interventions for v133.2.0 to ESR 128; r=denschub a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D226038
2024-10-18 16:31:00 +00:00
Ryan VanderMeulen
7d979155b4 Bug 1768724 - Update l10n-changesets.json. a=RyanVM 2024-10-17 13:06:08 -04:00
Sean
f29745d917 Bug 1917664 - Ensure mMSAuthorities is loaded even when the preference is switched a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D221532

Differential Revision: https://phabricator.services.mozilla.com/D226000
2024-10-17 16:36:56 +00:00
Sean
96cc4f152b Bug 1768724 - Part 3: Add support for Microsoft SSO on macOS (Necko Part) a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D218355

Differential Revision: https://phabricator.services.mozilla.com/D225994
2024-10-17 16:36:55 +00:00
Sean
4c6237fbf3 Bug 1768724 - Part 2: Add MS SSO Authority List and Initialize MicrosoftEntraSSOUtils a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D216560

Differential Revision: https://phabricator.services.mozilla.com/D225992
2024-10-17 16:36:55 +00:00
Sean
2721d6c146 Bug 1768724 - Part 1: Add a preference and policy for Microsoft SSO on macOS (Non-Necko Part) a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D212445

Differential Revision: https://phabricator.services.mozilla.com/D225913
2024-10-17 16:36:55 +00:00
Jan Varga
842cbaa763 Bug 1914599 - Fix a potential race between OpenDatabaseOp and GetDatabasesOp; r=dom-storage-reviewers,jari a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D224463
2024-10-09 18:19:22 +00:00
Jan Varga
80194fbe0b Bug 1917242 - Destroy callbacks before chaining completion promise; r=xpcom-reviewers,nika a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D221321
2024-09-11 15:30:00 +00:00
Jan Varga
cdefc8416d Bug 1917242 - Add a gtest for expected callback destruction order; r=xpcom-reviewers,nika a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D221320
2024-09-11 15:29:59 +00:00
Yannis Juglaret
493707d775 Bug 1921022 - Run TestDllInterceptorCrossProcess and fix ccov TestDllInterceptor*. r=gstoll,win-reviewers a=test-only
TestDllInterceptorCrossProcess is not listed in cppunittest.toml so not
ran. Also this test and TestDllInterceptor should be able to fully run
under ccov thanks to MOZ_NOPROFILE MOZ_NOINSTRUMENT (which is also now
automatically part of MOZ_NAKED).
2024-09-26 08:00:43 +00:00
Valentin Gosu
f5d7929c1b Bug 1888494 - Make CanonicalBrowsingContext::FixupAndLoadURIString check set the correct TRR mode a=RyanVM
It would seem sometimes in Firefox 77 we regressed the ability to set the TRR
mode for a browsing context when opening a new tab.
I confirmed that this bug didn't happen in Fx 77 when setting the
`browser.tabs.documentchannel.parent-initiated` pref to `false`.

The nsIWebNavigation::LOAD_FLAGS_DISABLE_TRR is correctly passed into
CanonicalBrowsingContext, but it doesn't end up getting used.

This sets the appropriate DefaultLoadFlags for BrowsingContext
when the LOAD_FLAGS_DISABLE_TRR or LOAD_TRR_ONLY_MODE flags are present
in nsDocShellLoadState::LoadFlags()

Original Revision: https://phabricator.services.mozilla.com/D220550

Differential Revision: https://phabricator.services.mozilla.com/D225964
2024-10-17 13:03:27 +00:00
Yannis Juglaret
2972cd11ac Bug 1920643 - Hook VariantClear to mitigate third-party crashes. a=RyanVM
Freeing the same BSTR twice is a recurring issue in third-party code
that affects our stability. By hooking VariantClear so that it cleans
bstrVal, we can mitigate a subclass of these issues.

Original Revision: https://phabricator.services.mozilla.com/D223282

Differential Revision: https://phabricator.services.mozilla.com/D225922
2024-10-17 12:57:34 +00:00
Valentin Gosu
5573ded61b Bug 1913692 - Write test for mode3 TRR with captive portal login a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D220549

Differential Revision: https://phabricator.services.mozilla.com/D225963
2024-10-17 12:56:52 +00:00
ffxbld
4ea487fbc9 No Bug, mozilla-esr128 repo-update HSTS HPKP remote-settings tld-suffixes - a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D225952
2024-10-17 12:55:49 +00:00
Paul Zuehlcke
854c45f35f Bug 1920423, a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D224349
2024-10-16 20:03:28 +00:00
Kelsey Gilbert
0b241cca62 Bug 1914707 - Disable attrib divisor for non-array attribs. r=gfx-reviewers,lsalzman,bradwerth a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D222889
2024-10-09 21:16:57 +00:00
Emilio Cobos Álvarez
93d6da7305 Bug 1921972 - Allow to propagate loadgroup flags to parent process. r=nika,necko-reviewers,valentin a=RyanVM 2024-10-08 21:28:09 +00:00
Peter Van der Beken
79c598b5d5 Bug 1920960 - Simplify nsDocShellLoadState::CalculateChannelLoadFlags argument. r=farre a=RyanVM 2024-10-02 12:26:40 +00:00
Emilio Cobos Álvarez
f3bae754d7 Bug 1911977 - Don't abort networking activity on external protocol navigations. r=smaug a=RyanVM 2024-09-10 15:22:04 +00:00
Emilio Cobos Álvarez
38e789011c Bug 1911977 - Minor clean-ups in nsDocShell::InternalLoad. r=smaug a=RyanVM
Use const and the same style for download and JS checks.
2024-09-05 17:08:39 +00:00
Andreas Farre
3fe60fe37b Bug 1921733 - Update load info when object loads get upgraded. r=necko-reviewers,peterv a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D224956
2024-10-15 09:12:17 +00:00
Andrew Osmond
037f26be8c Bug 1923741 - Add telemetry to measure how many users have read only system temporary folders. r=jrmuizel a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D225139
2024-10-10 14:48:04 +00:00
Dão Gottwald
31851c35b2 Bug 1908920 - Ensure that loading.svg respects prefers-reduced-motion. r=nordzilla,desktop-theme-reviewers,sfoster a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D217104
2024-08-27 09:20:15 +00:00
Gijs Kruitbosch
c98eeca592 Bug 1923655 - add test for protocol handler from non-existent currentWindowGlobal, r=pbz a=test-only
Differential Revision: https://phabricator.services.mozilla.com/D225332
2024-10-15 18:32:57 +00:00
Gijs Kruitbosch
1e270c73e7 Bug 1923655 - driveby: fix naming of existing test functions to be unique, r=pbz a=test-only
Differential Revision: https://phabricator.services.mozilla.com/D225331
2024-10-15 18:32:57 +00:00
Gijs Kruitbosch
02e57dd0fa Bug 1923655 - fix external protocol handler dialog sometimes being empty, a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D225330

Differential Revision: https://phabricator.services.mozilla.com/D225756
2024-10-16 19:48:49 +00:00
Nikki Sharpley
b05012a533 Bug 1908908 - Preserve sidebar width on close in session store. a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D219238

Differential Revision: https://phabricator.services.mozilla.com/D225790
2024-10-16 17:03:38 +00:00
Mike Hommey
100582b6b7 Bug 1924021 - Add some recent distros for bootstrap tasks. a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D225317

Differential Revision: https://phabricator.services.mozilla.com/D225609
2024-10-15 13:32:40 +00:00
Mike Hommey
e4e0df6813 Bug 1906851 - Use mozbuild.shellutil.quote instead of pipes.quote. a=RyanVM
The latter was removed in python 3.13, and while it can be replaced with
shlex, we also have our own version that considers more characters as
needing quotes.

Original Revision: https://phabricator.services.mozilla.com/D225329

Differential Revision: https://phabricator.services.mozilla.com/D225608
2024-10-15 13:32:39 +00:00
Mike Hommey
2c79ccbc06 Bug 1924031 - Replace use of pipes.quote with shlex.quote. a=RyanVM
It was literally a reexport before the pipes module was removed in
python 3.13.
https://github.com/python/cpython/blob/3.12/Lib/pipes.py#L66

Original Revision: https://phabricator.services.mozilla.com/D225319

Differential Revision: https://phabricator.services.mozilla.com/D225607
2024-10-15 13:32:39 +00:00
Mike Hommey
1f29eb0017 Bug 1924022 - Use urlopen's context parameter instead of cafile. a=RyanVM
The latter was removed in python 3.13.

Original Revision: https://phabricator.services.mozilla.com/D225318

Differential Revision: https://phabricator.services.mozilla.com/D225606
2024-10-15 13:32:39 +00:00
Mike Hommey
95c1c5c885 Bug 1923217 - Upgrade zstandard to 0.23.0. a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D224850

Differential Revision: https://phabricator.services.mozilla.com/D225611
2024-10-15 13:32:38 +00:00
Harshit Sohaney
32438aa558 Bug 1907732 - (part 2) Tests for exempting addon principals from clearing with site data. r=pbz,robwu a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D219826
2024-08-28 15:47:03 +00:00
Harshit Sohaney
2606866d25 Bug 1907732 - (part 1) Exempt addon principals from clearing with site data. r=pbz,robwu a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D219825
2024-08-28 15:47:03 +00:00
ffxbld
3c4437a0e6 No Bug, mozilla-esr128 repo-update HSTS HPKP remote-settings - a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D225494
2024-10-14 18:27:10 +00:00
tessa
4d8f687c79 Bug 1830553 - Extending regex for inferring non username fields in only username login forms to fix mismatch. a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D220378

Differential Revision: https://phabricator.services.mozilla.com/D225486
2024-10-14 18:25:58 +00:00
Nicolas Chevobbe
2391fb067d Bug 1918617 - [devtools] Don't apply top margin on prompt dialogs when RDM is enabled. a=RyanVM.
Original Revision: https://phabricator.services.mozilla.com/D224448

Differential Revision: https://phabricator.services.mozilla.com/D224592
2024-10-06 20:48:16 +00:00
Ryan VanderMeulen
ab5a0efa54 Backed out changeset f7c7a654a9a3 (bug 1917536) for causing bug 1923376. 2024-10-11 17:52:38 -04:00
Tim Giles
d6a19e5132 Bug 1913115 - Use "checkbox" panel-item for the "update add-ons automatically" menu item. r=extension-reviewers,robwu a=RyanVM
This change adds improved semantics to the
"Update Add-ons Automatically" menu item so that screen readers are
able to determine if the auto updates item is enabled or not.

Differential Revision: https://phabricator.services.mozilla.com/D219567
2024-09-10 16:21:33 +00:00