Commit Graph

940912 Commits

Author SHA1 Message Date
Luca Greco
a484f1103e Bug 1917848 - Change extensions button message bars margin botton to use design tokens space css variable. r=desktop-theme-reviewers,hjones
This tweak does also increase the space between messagebars (and between messagebars and list of extension) a little bit
compared to the 2px value used originally.

Depends on D228677

Differential Revision: https://phabricator.services.mozilla.com/D229617
2024-11-20 17:03:16 +00:00
Luca Greco
92430da106 Bug 1917848 - Show blocklist attention dot and blocklist messagebar message on new hard/soft blocked extensions (Extensions Button frontend changes). r=fluent-reviewers,willdurand,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D228677
2024-11-20 17:03:15 +00:00
Luca Greco
767e1171fd Bug 1917848 - Show blocklist attention dot and blocklist messagebar message on new hard/soft blocked extensions (AOM/XPIProvider backend changes). r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D228676
2024-11-20 17:03:15 +00:00
Greg Mierzwinski
93ced1b5d9 Bug 1932288 - Regenerate perfdocs to fix failure. r=perftest-reviewers,kshampur DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D229642
2024-11-20 17:00:54 +00:00
Stephanie Cunnane
967224b4bf Bug 1876178 - Improve default search engine changed telemetry. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D224553
2024-11-20 16:58:21 +00:00
Dão Gottwald
ac41c569da Bug 1923653 - tab group UI: enable "delete group". r=tabbrowser-reviewers,sthompson
Differential Revision: https://phabricator.services.mozilla.com/D229507
2024-11-20 16:51:30 +00:00
Rob Wu
1e00c1b9f0 Bug 1911835 - Add support for multiple USER_SCRIPT worlds r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D228975
2024-11-20 16:50:14 +00:00
Rob Wu
8e540249d9 Bug 1911835 - Add sandbox for USER_SCRIPT world r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D228974
2024-11-20 16:50:14 +00:00
Rob Wu
c6451a49d3 Bug 1911835 - Accept USER_SCRIPT as world value in internals r=zombie
This patch adds the USER_SCRIPT value as a supported value in the
internal WebExtensionContentScript constructor.

This patch does not introduce a distinct USER_SCRIPT sandbox yet; that
will be done in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D228973
2024-11-20 16:50:14 +00:00
Rob Wu
2ce8ff0bb2 Bug 1911834 - Implement matches OR includeGlobs semantics for user scripts r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D228350
2024-11-20 16:50:13 +00:00
Rob Wu
f7d44cec32 Bug 1911833 - Add APIs to register user scripts r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D222494
2024-11-20 16:50:13 +00:00
Rob Wu
13387354d3 Bug 1911833 - Put userScripts permission behind pref r=zombie
Depends on D222492

Differential Revision: https://phabricator.services.mozilla.com/D222493
2024-11-20 16:50:12 +00:00
Rob Wu
15cb125878 Bug 1911833 - Add MV3 userScripts namespace, separate from MV2 r=zombie
- Add "userScripts" permission for MV3.

- Add "userScripts" namespace for MV3, and add schema and logic to make
  sure that this namespace is limited to MV3 only.

- Add tests to verify that the "userScripts" namespace of MV2 and MV3
  are completely isolated.

- The functionality in this patch is limited to verifying that the API
  bindings and permission requirement works; the rest of the
  implementation will follow in the next patches.

Depends on D223016

Differential Revision: https://phabricator.services.mozilla.com/D222492
2024-11-20 16:50:12 +00:00
Rob Wu
e7fedba54d Bug 1911833 - Skip userScripts in GenerateWebIDLBindings.py r=rpl
Although the bindings generator skips MV2-only APIs at some point
(https://searchfox.org/mozilla-central/rev/1bc0601cc5b3d4c3919d220acbe248221ebce035/toolkit/components/extensions/webidl-api/GenerateWebIDLBindings.py#337-338),
that only happens after loading all schemas. Because user_scripts.json
contains multiple userScripts.register definitions (one for MV2 and one
for MV3), GenerateWebIDLBindings.py raised the following error before
this patch:

> TypeError: Unxpected multiple schema data for API property "userScripts.register" in schema group toolkit

This patch fixes the issue by ignoring the schemas that define the
userScripts API, and now the following test passes again:

```
./mach test toolkit/components/extensions/webidl-api/test/test_all_schemas_smoketest.py
```

Differential Revision: https://phabricator.services.mozilla.com/D227969
2024-11-20 16:50:12 +00:00
Andrew McCreight
221b1aac47 Bug 1931877, part 3 - Add a "nothing" comment for all empty do loops in Assertions.h. r=glandium
My initial version of my patch for part 1 didn't have a "nothing" comment
because I copied the empty loop from somewhere that didn't have it. If
the comment is appropriate, let's make things consistent while I'm
touching this file anyways.

Differential Revision: https://phabricator.services.mozilla.com/D229500
2024-11-20 16:37:50 +00:00
Andrew McCreight
67817a936e Bug 1931877, part 2 - Replace 2 arg MOZ_DIAGNOSTIC_ASSERT(false) with MOZ_DIAGNOSTIC_CRASH. r=necko-reviewers,win-reviewers,glandium,rkraesig,valentin
Differential Revision: https://phabricator.services.mozilla.com/D229361
2024-11-20 16:37:50 +00:00
Andrew McCreight
e239bce2c0 Bug 1931877, part 1 - Define MOZ_DIAGNOSTIC_CRASH. r=glandium
Also use it in MOZ_ALWAYS_TRUE and fix up the comment.

Differential Revision: https://phabricator.services.mozilla.com/D229360
2024-11-20 16:37:49 +00:00
Aaditya Dhingra
103af1a274 Bug 1930153 - Set accessibility delegate to inform talkback that "New Tab" is a button. r=android-reviewers,007
Differential Revision: https://phabricator.services.mozilla.com/D229223
2024-11-20 16:35:17 +00:00
Paul Adenot
4bfef933b7 Bug 1925446 - Add a pref to disable the software fallback logic when decoding in hardware with ffmpeg on Linux. r=media-playback-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D229638
2024-11-20 16:23:04 +00:00
Eric Chen
6697e944f6 Bug 1917651 - Add a shutdown blocker to ensure update ping will be sent before Firefox exits r=bytesized,firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D227396
2024-11-20 16:20:04 +00:00
Manuel Bucher
d27f1ce239 Bug 1931316 - Update nsTSubstring::SetCapacity documentation to not mention outdated special case of calling AppendLiteral on empty string r=xpcom-reviewers,emilio DONTBUILD
Behavior changed in Bug 1487606 with test covering the case:
gTest "Strings.append_literal_with_capacity"

Differential Revision: https://phabricator.services.mozilla.com/D229635
2024-11-20 16:19:01 +00:00
Aaditya Dhingra
8ac42837da Bug 1930170 - Update custom tab menu button when changing orientation. r=android-reviewers,petru
Differential Revision: https://phabricator.services.mozilla.com/D228764
2024-11-20 16:16:51 +00:00
Norisz Fay
63b44dbec9 Backed out changeset 95c3415cf3f5 (bug 1794092) for causing bc failures on browser_appendSpanCount.js CLOSED TREE 2024-11-20 18:46:17 +02:00
Ryan VanderMeulen
b850128ed6 Bug 1930744 - Clean up UnusedPrivateMember suppressions in HistoryFragment. r=android-reviewers,rsainani
Differential Revision: https://phabricator.services.mozilla.com/D229631
2024-11-20 16:11:07 +00:00
Ryan VanderMeulen
bcd1cac1d4 Bug 1932353 - Remove UnusedPrivateMember suppression from Focus GleanMetricsService. r=android-reviewers,rsainani
Differential Revision: https://phabricator.services.mozilla.com/D229630
2024-11-20 16:11:06 +00:00
Kagami Sascha Rosylight
8623165f66 Bug 1932268 - Update WPT metadata r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D229618
2024-11-20 16:11:03 +00:00
Andrew Sutherland
40b6bf22b1 Bug 1931391 - Simplify ServiceWorkerRegistration.showNotification steps. r=saschanaz
Changes in Bug 1131324 made it possible for
ServiceWorkerRegistration.showNotification to be invoked from Dedicated
and Shared Workers where previously it could only be invoked from
Service Workers.  The fuzzer discovered this new possibility for which
we did not have test coverage for and revealed that the code would call
a WorkerPrivate method that required the global be a ServiceWorker which
causes a diagnostic assert or a release assert depending on the build
type.

It turns out the check in question was enforcing a constraint not
required by the spec that only the active worker associated with the
registration can cause a notification to be shown associated with the
registration.  All that is required is that the registration have some
active worker.

When addressing this it also turned out that since the initial
implementation of the notifications API there has been an unneccessary
check that the principal associated with the global is same-origin to
the scope.  This check additionally required a sync runnable to be
dispatched to the main thread.  This check was unnecessary and has been
removed.  All ServiceWorkerRegistrations exposed to a global are
inherently same-origin to the global and the check as implemented was
not aware of the effective storage principal and was just using the
(node) principal.  (And any checks concerned about dealing with a rogue
content process would need to take place in the parent process, not the
potentially rogue content process.)

For testing, the recently updated test
`test_notification_serviceworker_show.html` has been forked to provide
dedicated worker coverage.  If the test is run without the fix in this
patch applied, the expected assertion trips.

Differential Revision: https://phabricator.services.mozilla.com/D229561
2024-11-20 16:05:33 +00:00
Cristina Horotan
dd2cbde031 Backed out changeset a4bbf81aefbb (bug 1914596) on request for causing Bug 1927838 2024-11-20 18:02:12 +02:00
AndiAJ
b61d7f9790 Bug 1932367 - Fix failing openCustomTabInFirefoxTest r=aaronmt
Failures caused by [[ https://phabricator.services.mozilla.com/D229395 | this ]] change.
To fix the UI test I had to "Open in Firefox" button description.

The UI test successfully passed 10x on Firebase 

Differential Revision: https://phabricator.services.mozilla.com/D229634
2024-11-20 15:51:42 +00:00
AR
ce1dc2946b Bug 1465026 - Font properties are rounded in the inspector. r=jdescottes,devtools-reviewers The toFixed function in font utils now throws an error when the input is not a number
Differential Revision: https://phabricator.services.mozilla.com/D228546
2024-11-20 15:51:28 +00:00
Hubert Boma Manilla
5ebea6a729 Bug 1873432 - [devtools] Cleanup the use of parser worker for framework info r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D197907
2024-11-20 15:32:45 +00:00
Cathy Lu
6ec3ee94ad Bug 1646248 - Return empty if download state filename is null r=android-reviewers,rsainani
Differential Revision: https://phabricator.services.mozilla.com/D229541
2024-11-20 15:30:35 +00:00
Mark Banner
540e9a047b Bug 1931817 - Fix missing host issue in periodic_file_updates.sh when cloning the repository. r=releng-reviewers,jcristau
Differential Revision: https://phabricator.services.mozilla.com/D229628
2024-11-20 15:24:37 +00:00
Dave Townsend
89208fb799 Bug 1931412: Don't hold test windows alive for cleanup. r=Standard8
browser_scroll_size_determination.js is occasionally leaking browser windows. My theory is that this
is happening because `BrowserTestUtils.overflowTabs` keeps them alive in order to reset the
scrollbox attribute that it changed and then there is not enough time after cleanup for the windows
to get fully collected. Given that these windows are closed anyway there is no need to actually do
this cleanup step so this allows us to skip it.

Differential Revision: https://phabricator.services.mozilla.com/D229587
2024-11-20 15:12:16 +00:00
William Wen
e223daf96d Bug 1892172 - Add smartblock tiktok embed shim.
Differential Revision: https://phabricator.services.mozilla.com/D227079
2024-11-20 14:56:24 +00:00
William Wen
7045e0b61a Bug 1925638 - Add a pref to toggle smartblock functionality. r=pbz,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D226421
2024-11-20 14:56:24 +00:00
William Wen
15136ca100 Bug 1920776 - Implement Smartblock embed unblocking for Instagram embeds. r=pbz,webcompat-reviewers,twisniewski,fluent-reviewers,desktop-theme-reviewers,extension-reviewers,emilio,robwu
Differential Revision: https://phabricator.services.mozilla.com/D223419
2024-11-20 14:56:23 +00:00
Dale Harvey
23a2f10e2a Bug 1794092 - Disable urlbarinterventions when actions are enabled. r=urlbar-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D229547
2024-11-20 14:53:24 +00:00
Paul Adenot
75de397838 Bug 1308435 - Make setting the value attribute of an AudioParam strictly equivalent of calling setValueAtTime with AudioContext.currentTime. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D225219
2024-11-20 14:53:12 +00:00
Nicolas Chevobbe
d406d5f0db Bug 1931507 - [devtools] Adapt toolbox border in High Contrast Mode. r=devtools-reviewers,ochameau.
Make sure the border between the content and the toolbox adapts when Firefox
is in High Contrast Mode.

Differential Revision: https://phabricator.services.mozilla.com/D229115
2024-11-20 14:43:56 +00:00
Nikki Sharpley
c6228677bb Bug 1926831 - Remove animation of tab when dropped in blank tab space r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D228722
2024-11-20 14:34:36 +00:00
Thomas Wisniewski
d8a41aae2c Bug 1930440 - add a JS invention for online.singaporepools.com to prevent a browser-unsupported alert; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228929
2024-11-20 14:07:43 +00:00
Thomas Wisniewski
59eec6fb3e Bug 1930632 - add a UA override for support.hp.com; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228928
2024-11-20 14:07:43 +00:00
Thomas Wisniewski
8542cc46d8 Bug 1930429 - add ambrahealth.com to the list of sites for our InstallTrigger intervention; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228927
2024-11-20 14:07:42 +00:00
Thomas Wisniewski
3f105ee97a Bug 1899929 - add a UA override for selecionases.saude.pe.gov.br; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228875
2024-11-20 14:07:42 +00:00
Thomas Wisniewski
369f567b41 Bug 1923286 - add a JS intervention for bing.com image search to fix clicking on external image links; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228874
2024-11-20 14:07:42 +00:00
Thomas Wisniewski
5ccdfdbb2d Bug 1899072 - add a UA override for passpoint.boingo.com; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228873
2024-11-20 14:07:41 +00:00
Thomas Wisniewski
0020d7bcab Bug 1899066 - add a UA override for app.bookcreator.com; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228872
2024-11-20 14:07:41 +00:00
Thomas Wisniewski
aab92dc17a Bug 1886591 - add a CSS intervention for la-vache-noire.com to un-hide the cookie banner; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228871
2024-11-20 14:07:40 +00:00
Thomas Wisniewski
971f152c84 Bug 1913759 - add a UA override for playblackdesert.com; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228870
2024-11-20 14:07:40 +00:00