Commit graph

868575 commits

Author SHA1 Message Date
stransky
835b4b8a8c Bug 1865121 [Linux] Restrict dmabuf surface plane count r=emilio
- Don't release dmabuf with incorrect plane count
- Don't save incorrect plane count to dmabuf surface

Differential Revision: https://phabricator.services.mozilla.com/D194041
2024-01-03 17:04:16 +00:00
Hartmut Welpmann
b31669be01 Bug 1861372 - Skip empty update manifests and improve logging. r=robwu
Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1861372-handle-empty-updates-m-c.patch

Differential Revision: https://phabricator.services.mozilla.com/D192511
2024-01-03 17:01:46 +00:00
Oliver Medhurst
465206f92c Bug 1793560 - Remove navigate-to CSP directive r=tschuster
It has never shipped after being implemented years ago,
and was removed from spec in September 2022:
https://github.com/w3c/webappsec-csp/pull/564

Now skipping navigate-to WPT tests. Filed issue upstream for their future removal:
https://github.com/w3c/webappsec-csp/issues/608
Consensus seems to agree to remove, will do in follow up bug once landed.

Also removed our own tests.

Added a hack in StartDocumentLoad as just removing the navigate-to check call
breaks some inhertiance, see comment for more info.

Differential Revision: https://phabricator.services.mozilla.com/D181630
2024-01-03 16:43:12 +00:00
Mark Banner
a1ed3bd737 Bug 1872757 - Update SearchTestUtils.useTestEngines to be able to load search-config-v2 configurations. r=mcheang
This also adds data1/search-config-v2.json which uses it and starts to get some tests passing when search-config-v2 is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D197547
2024-01-03 16:29:53 +00:00
Mike Kaply
7c1fff554e Bug 1872267 - Allow setting an explicit preference type in policy. r=kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D197534
2024-01-03 16:28:38 +00:00
Nikki Sharpley
3d437284aa Bug 1864534 - remove firefox-view-next pref and update about AboutRedirector r=fxview-reviewers,Gijs
- removes `about:firefoxview-next` route
- `about:firefoxview` now points to `firefoxview-next.html` (until we rename)
- remove pref for `browser.tabs.firefox-view-next`
- preserve pref for `browser.tabs.firefox-view-newIcon` as part of firefoxViewNext feature manifest (until experiment is over)
- whitelist unreferenced files in `browser_all_files_referenced.js` as they will be removed in child Bug 1869833

Differential Revision: https://phabricator.services.mozilla.com/D196093
2024-01-03 16:17:03 +00:00
Calixte
77aeaa184d Bug 1870243 - Cherry-pick https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/256 to correctly reset the current operator when several added highlights in a pdf are printed r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D197584
2024-01-03 16:09:28 +00:00
Chun-Min Chang
9a7f690f46 Bug 1865694 - Update libvpx to f6b7166a2b6bac544c2c487d3a7e49bc265cdf9d r=webrtc-reviewers,pehrsons
This patch updates libvpx by two steps:

1. ./mach vendor media/libvpx/moz.yaml --patch-mode=none
2. ./mach vendor media/libvpx/moz.yaml --patch-mode=only

The first step pulls the upstream repo files to gecko, and the second
step applies the local patches.

Differential Revision: https://phabricator.services.mozilla.com/D197546
2024-01-03 16:07:31 +00:00
Rob Wu
04b2373945 Bug 1872277 - Fix nick of mixedpuppy in mots.yaml r=mixedpuppy,zeid
... and move kmag to peer emeritus status since he has not been active
in the WebExtensions component for several years by now.

Differential Revision: https://phabricator.services.mozilla.com/D197385
2024-01-03 15:59:10 +00:00
Tooru Fujisawa
8fac34d5a3 Bug 1871952 - Part 2: Assert the CompileOption consistency during stencil instantiation. r=spidermonkey-reviewers,jandem
Depends on D197444

Differential Revision: https://phabricator.services.mozilla.com/D197445
2024-01-03 15:34:06 +00:00
Tooru Fujisawa
7332fc622e Bug 1871952 - Part 1: Fix EvalReturningScope to create CompileOptions in the target global. r=spidermonkey-reviewers,jandem
Differential Revision: https://phabricator.services.mozilla.com/D197444
2024-01-03 15:34:06 +00:00
Emily McMinn
8dc8615065 Bug 1872686 - Disable label-has-associated-control rule for unused Themes component r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D197548
2024-01-03 15:18:37 +00:00
Nicolas Chevobbe
b4da8c6d1c Bug 1872683 - [devtools] Prepare debugger jest test for eslint-plugin-jest 27.6.1 update. r=Standard8,devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D197509
2024-01-03 14:46:04 +00:00
Anna Yeddi
ddce1b0ca2 Bug 1871596 - Add a programmatic role to the search-go-button image within the Searchbar. r=search-reviewers,Standard8
`search-go-button urlbar-icon` is an `<image>` element that has an accessible name but lacks an appropriate interactive role, because it functions as a button (not focusable with keyboard because the alternative - `Enter` key - exists and works for the search submission and we do not want to create an additional tab stop for keyboard-only users). This would prevent users of speech-to-text/Voice Control from being able to send a click to it by calling its label and screen reader users and users of other assistive technology would not be able to get to this control via shortcuts like a list of controls, etc.

This issue is similar to the `Go` button on the URL bar resolved in the bug 1864962

To activate the searchbar next to the URL Bar that includes this go button: `about:preferences` > `Search` > `Search Bar` > select `Add search bar in toolbar`.

Differential Revision: https://phabricator.services.mozilla.com/D197202
2024-01-03 14:37:55 +00:00
Anna Yeddi
cf6019d2d8 Bug 1872743 - Provide an accessible name to Default and Default Private Engine comboboxes in Settings UI. r=settings-reviewers,mossop
The [`<menulist>` with id `defaultEngine`](https://searchfox.org/mozilla-central/rev/0f39860036f9b6339e65d485aeb6b6be73d9dbda/browser/components/preferences/search.inc.xhtml#19-21) that opens for the `Default Search Engine ` selection on `Settings` > `Search` is not labelled. [The combobox pattern is expected to provide an accessible name](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/#wai-ariaroles,states,andproperties) for the control even when the listbox opened has an accessible name.

We could refer to [the `#defaultEngineGroup` container](https://searchfox.org/mozilla-central/rev/0f39860036f9b6339e65d485aeb6b6be73d9dbda/browser/components/preferences/search.inc.xhtml#15) with `aria-labelledby` to ensure the combobox is labeled, and also to include a description via `aria-describedby` referred to the [on-screen `<description>` provided for the control](https://searchfox.org/mozilla-central/rev/0f39860036f9b6339e65d485aeb6b6be73d9dbda/browser/components/preferences/search.inc.xhtml#17) - this would communicate the purpose of opened list of options to an assistive technology user.

Same pattern could apply to [the Default Private Engine `<menulist>`](https://searchfox.org/mozilla-central/rev/0f39860036f9b6339e65d485aeb6b6be73d9dbda/browser/components/preferences/search.inc.xhtml#33-35).

Since the `browser/components/preferences/tests/browser_searchDefaultEngine.js` a11y_checks will be passing with this change, we are also removing the `fail-if` notation from its test manifest.

Depends on D197535

Differential Revision: https://phabricator.services.mozilla.com/D197540
2024-01-03 14:36:41 +00:00
Anna Yeddi
6086fd330f Bug 1872739 - Provide an accessible name to Applications richlistbox's actionsMenu comboboxes in Settings UI. r=settings-reviewers,mossop
The [<menulist> with class `actionsMenu`](https://searchfox.org/mozilla-central/rev/0f39860036f9b6339e65d485aeb6b6be73d9dbda/browser/components/preferences/main.js#3737) that opens when a control under the `Action` header of the `Applications` richlistbox on `Settings` > `General` > `Files and Applications` is activated is not labelled. The combobox pattern is expected to provide an accessible name for the control even when the listbox opened has an accessible name.

We could refer to [the `#actionColumn` container](https://searchfox.org/mozilla-central/rev/0f39860036f9b6339e65d485aeb6b6be73d9dbda/browser/components/preferences/main.inc.xhtml#452-454) with `aria-labelledby` to ensure the combobox is labeled and the purpose of opened list of options is communicated to an assistive technology user.

Since some a11y_checks will be passing with this change, we are also removing the `fail-if` notations from the appropriate test files in the Settings UI manifest.

Differential Revision: https://phabricator.services.mozilla.com/D197535
2024-01-03 14:36:40 +00:00
Jordan Petridis
5dfa42970a Bug 1871863 - Port from GdkCursorType to gdk_cursor_new_from_name. r=rmader,stransky
adwaita-icon-theme, GNOME's and GTK's default icon theme dropped
legacy X cursors recently [1] which is expected to be released with
GNOME 46. When running firefox now some of the cursors are unable to be
created and end up blank with a handful of gtk warnings.

The reason for this, is due to Firefox using the old GdkCursorType
api which doesn't guarantee the cursors requested will exist.
This is mostly legacy code from the gtk2 backend.
gdk_cursor_new_from_name (from gtk3 and onwards) can create all
the cursors firefox wants (and it's also using the same CSS3/4
conventions that firefox does intenrally).

GdkCursorType has also been dropped in GTK 4 and this patch should
help with porting the code too.

[1] https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/merge_requests/61

Differential Revision: https://phabricator.services.mozilla.com/D197272
2024-01-03 14:14:27 +00:00
Updatebot
9a1ab8cf71 Bug 1872797 - Update PDF.js to 231c79800b4e0bb5b705353a98c7e8c8cff70393 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D197561
2024-01-03 13:28:53 +00:00
Eemeli Aro
34a838d92d Bug 1869512 - Update unic-langid and unic-langid-impl to 0.9.4. r=nordzilla,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D196155
2024-01-03 12:42:04 +00:00
Timothy Nikkel
058628fc1a Bug 1872564. Optimize DisplayPortUtils::MaybeCreateDisplayPortInFirstScrollFrameEncountered by checking for leaf frames. r=layout-reviewers,emilio
On 20 runs of speedometer3 this makes MaybeCreateDisplayPortInFirstScrollFrameEncountered 30% faster.

Differential Revision: https://phabricator.services.mozilla.com/D197468
2024-01-03 12:24:42 +00:00
Kagami Sascha Rosylight
5dcd73e3a4 Bug 1872510 - Add SamsungColorEmoji to font.name-list.emoji for Android r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D197525
2024-01-03 12:06:08 +00:00
Christian Holler
b2c04d7a4f Bug 1872834 - Add missing null check to FilePickerParent::RecvClose. r=canadahonk
Differential Revision: https://phabricator.services.mozilla.com/D197571
2024-01-03 11:52:56 +00:00
Tom Schuster
b158ada37d Bug 1871581 - Add missing (but implicitly used) ExtContentPolicy::TYPE_WEB_IDENTITY. r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D197190
2024-01-03 10:54:12 +00:00
Ziran Sun
ed8c7e5344 Bug 1869472 - Make "Custom" variants use the same code path as others in AnimationValue::eq. r=zrhoffman,emilio
Differential Revision: https://phabricator.services.mozilla.com/D196993
2024-01-03 10:07:28 +00:00
Cristian Tuns
be4999cd86 Backed out changeset 395cc57551ec (bug 1872545) for causing build bustages in rust.mk CLOSED TREE 2024-01-03 05:14:31 -05:00
Nicolas Silva
23b86e3def Bug 1872658 - Update wgpu to revision 46757372cc02d6608124502104a0c225e1744fd7. r=webgpu-reviewers,supply-chain-reviewers,teoxoy
Changelog:

 * #4865 fix present mode for wgl
   By xiaopengli89 in https://github.com/gfx-rs/wgpu/pull/4865
 * #4873 Bump ctor from 0.2.5 to 0.2.6
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4873
 * #4874 Bump syn from 2.0.40 to 2.0.41
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4874
 * #4869 [naga wgsl-out] Include the `f` suffix on `f32` literals.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4869
 * #4850 [naga wgsl-in] Support abstract operands to binary operators.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4850
 * #4850 [naga wgsl-in] Support abstract operands to binary operators.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4850
 * #4850 [naga wgsl-in] Support abstract operands to binary operators.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4850
 * #4850 [naga wgsl-in] Support abstract operands to binary operators.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4850
 * #4850 [naga wgsl-in] Support abstract operands to binary operators.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4850
 * #4870 [naga wgsl] Let unary operators accept and produce abstract types.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4870
 * #4867 Reintroduce buffer snatching Part 1
   By nical in https://github.com/gfx-rs/wgpu/pull/4867
 * #4882 Bump zerocopy from 0.7.26 to 0.7.31
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4882
 * #4878 Buffer snatching part 2 - Refactor create_buffer
   By nical in https://github.com/gfx-rs/wgpu/pull/4878
 * #4815 Add `wgpu` crate features for backends
   By daxpedda in https://github.com/gfx-rs/wgpu/pull/4815
 * #4887 Allow clippy::pattern_type_mismatch
   By nical in https://github.com/gfx-rs/wgpu/pull/4887
 * #4886 Document wgpu & wgpu-core features
   By Wumpf in https://github.com/gfx-rs/wgpu/pull/4886
 * #4826 validation: More detailed on incompatible BGL
   By scoopr in https://github.com/gfx-rs/wgpu/pull/4826
 * #4888 Web: add support for more `RawWindowHandle` variants
   By daxpedda in https://github.com/gfx-rs/wgpu/pull/4888
 * #4890 Bump thiserror from 1.0.50 to 1.0.51
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4890
 * #4880 Simplify `ResourceMaps`
   By nical in https://github.com/gfx-rs/wgpu/pull/4880
 * #4891 Make the naga version in trunk as high as the latest published one
   By nical in https://github.com/gfx-rs/wgpu/pull/4891
 * #4893 Avoid allocating memory every time we might log a label
   By nical in https://github.com/gfx-rs/wgpu/pull/4893
 * #4894 Remove some locks in BindGroup
   By nical in https://github.com/gfx-rs/wgpu/pull/4894
 * #4862 Ensure that DeviceLostCallbackC is always called exactly once
   By bradwerth in https://github.com/gfx-rs/wgpu/pull/4862
 * #4900 Support Device fence sharing with dx12 on Windows
   By sotaroikeda in https://github.com/gfx-rs/wgpu/pull/4900
 * #4903 Bump tokio from 1.35.0 to 1.35.1
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4903
 * #4895 Check that raw buffers and raw bind groups are valid
   By nical in https://github.com/gfx-rs/wgpu/pull/4895
 * #4901 fix: docs
   By miaobuao in https://github.com/gfx-rs/wgpu/pull/4901
 * #4892 Simplify some code around buffer unmapping
   By nical in https://github.com/gfx-rs/wgpu/pull/4892
 * #4896 Buffer snatching
   By nical in https://github.com/gfx-rs/wgpu/pull/4896
 * #4851 Eagerly release GPU resources when we lose the device.
   By bradwerth in https://github.com/gfx-rs/wgpu/pull/4851
 * #4906 Use nightly for docs
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4906
 * #4908 Bump syn from 2.0.41 to 2.0.42
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4908
 * #4909 Bump profiling from 1.0.12 to 1.0.13
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4909
 * #4910 Bump anyhow from 1.0.75 to 1.0.76
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4910
 * #4913 Remove id32 Feature
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4913
 * #4914 Add BGL Deduplication Index Test
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4914
 * #4921 Fix typo "layout pipeline layout" -> "pipeline layout"
   By HactarCE in https://github.com/gfx-rs/wgpu/pull/4921
 * #4922 Bump winit from 0.29.4 to 0.29.5
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4922
 * #4924 Inline `document-features` usage, remove dep.
   By ErichDonGubler in https://github.com/gfx-rs/wgpu/pull/4924
 * #4871 Speed up Naga's `cargo xtask validate wgsl` from 12s to 0.8s
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4871
 * #4871 Speed up Naga's `cargo xtask validate wgsl` from 12s to 0.8s
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4871
 * #4871 Speed up Naga's `cargo xtask validate wgsl` from 12s to 0.8s
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4871
 * #4930 Bump winit from 0.29.5 to 0.29.6
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4930
 * #4929 Bump web-time from 0.2.3 to 0.2.4
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4929
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4902 [naga xtask] Run validation jobs in parallel, using jobserver.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4902
 * #4940 Align `wgpu_types::CompositeAlphaMode` serde serializations to spec
   By littledivy in https://github.com/gfx-rs/wgpu/pull/4940
 * #4936 Bump anyhow from 1.0.76 to 1.0.77
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4936
 * #4933 Bump thiserror from 1.0.51 to 1.0.52
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4933
 * #4932 Bump syn from 2.0.42 to 2.0.43
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4932

Differential Revision: https://phabricator.services.mozilla.com/D197519
2024-01-03 09:33:06 +00:00
Henrik Skupin
8f9fb79951 Bug 1824713 - [geckodriver] Update changeset for the 0.34.0 release. r=webdriver-reviewers,jdescottes DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D197184
2024-01-03 08:35:35 +00:00
Mirko Brodesser
24c75300c2 Bug 1872655: clean up fetchpriority tests' metadata. r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D197485
2024-01-03 08:16:19 +00:00
Mozilla Releng Treescript
b6ceae9128 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
cak -> 2efdd4547e4c9996db0c8e3d0f3ad77471da895a
es-MX -> a67a9d92f41fd286c0c6c177595385977b8214cd
he -> ae8fd0ef6e5b48bec350eaff91b1da8a9c8fe4f6
lo -> 2b895dfd94a2c058e48ab833a7b097b4b0e72d92
2024-01-03 07:04:22 +00:00
Byron Campen
1036184057 Bug 1872495: Work around frequent timeouts by adding video elements to the document. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D197448
2024-01-02 22:56:59 +00:00
Anna Yeddi
de465f6eae Bug 1872731 - Add an exception from a11y_checks for a click on a web content in Core: Document Object Model. r=smaug
The `dom/tests/browser/browser_focus_steal_from_chrome_during_mousedown.js` sends [a click outside on a web content](https://searchfox.org/mozilla-central/rev/0f39860036f9b6339e65d485aeb6b6be73d9dbda/dom/tests/browser/browser_focus_steal_from_chrome_during_mousedown.js#28-30).

We do not want to test arbitrary web content, since we do not support remote documents like in-content elements with a11y_checks of browser mochitests at the moment, thus we add an exception from the a11y_checks for this tests via `setEnv` and remove the `fail-if` notation from its test manifest.

Differential Revision: https://phabricator.services.mozilla.com/D197533
2024-01-02 22:05:57 +00:00
Anna Yeddi
a28e446112 Bug 1872727 - Add an exception from a11y_checks for a click that dismisses a doorhanger in Core: Document Object Model. r=smaug
The `dom/tests/browser/browser_bug1008941_dismissGeolocationHanger.js` sends [a click outside of the Geolocation doorhanger to dismiss it](https://searchfox.org/mozilla-central/rev/0f39860036f9b6339e65d485aeb6b6be73d9dbda/dom/tests/browser/browser_bug1008941_dismissGeolocationHanger.js#24-25) using a mouse while the other way like `Esc` key is available for assistive technology users, thus this test can be ignored.

Since this test is expected to be passing the a11y_checks, we are also removing the `fail-if` notation from its manifest.

Differential Revision: https://phabricator.services.mozilla.com/D197532
2024-01-02 22:05:57 +00:00
Anna Yeddi
319427b9cf Bug 1872719 - Add exceptions from a11y_checks for dom/events/test/clipboard/browser_navigator_clipboard_read.js tests clicking web content in Dom:Events. r=edgar
We do not want to test arbitrary web content, since we do not support remote documents like in-content elements with a11y_checks of browser mochitests at the moment, thus we add an exception from the a11y_checks for these tests via `setEnv`.

Note: the `fail-if` notation was removed from the `dom/events/test/clipboard/browser_navigator_clipboard_read.js` test manifest in the part 1 of the patch for the bug 1869322, in D196999.

Differential Revision: https://phabricator.services.mozilla.com/D197522
2024-01-02 21:28:58 +00:00
Anna Yeddi
c0ab4585d7 Bug 1871491 - Add a check for combobox container of moz-input-box and options within the URL bar autocomplete list in AccessibilityUtils. r=Jamie,search-reviewers,credential-management-reviewers,sgalich,Standard8
Adding an additional check similar to [the isKeyboardFocusableBrowserToolbarButton check](https://searchfox.org/mozilla-central/source/testing/mochitest/tests/SimpleTest/AccessibilityUtils.js#228-238) that could pass the `assertLabelled` rule for following URL Bar-specific controls, since these controls are either left unlabeled or are being labeled after the Fluent l10n is completed deliberately:
1. [Combobox container of the Search Input](https://searchfox.org/mozilla-central/rev/b580e3f77470b2337bc8ae032b58a85c11e66aba/browser/base/content/navigator-toolbox.inc.xhtml#314-318) with id `moz-input-box` - we intentionally leave this element unlabeled, because its child is a search input (properly labeled) that is the target and main control of this component and we want to avoid duplication in the label announcement when a user focuses the input. This causes an a11y failure `Interactive elements must be labeled: id: , tagName: moz-input-box, className: urlbar-input-box`
1. [Options within an autocomplete listbox](https://searchfox.org/mozilla-central/rev/b580e3f77470b2337bc8ae032b58a85c11e66aba/browser/components/urlbar/UrlbarSearchOneOffs.sys.mjs#141-151) with class `urlbarView-row-inner` - we know each of these option is accessible, but it disappears as soon as it is clicked and the a11y-checks do not have time to test the label, because the Fluent localization is not yet completed by then. This causes an a11y warning `Unlabeled element removed before l10n finished`
1. [Additional Searchbar](https://searchfox.org/mozilla-central/rev/b580e3f77470b2337bc8ae032b58a85c11e66aba/browser/base/content/navigator-toolbox.inc.xhtml#699) with id `searchbar` that triggers `Interactive elements must be labeled` failure. To activate this Search bar next to the URL Bar: `about:preferences` > `Search` > `Search Bar` > select `Add search bar in toolbar`.

Since the `browser/components/urlbar/tests/browser/browser_view_selectionByMouse.js` and six other tests will be passing the a11y_checks without warnings now and two tests will pass this specific check, we are updating appropriate test manifests to remove or update `fail-if` conditions as well.

Differential Revision: https://phabricator.services.mozilla.com/D197113
2024-01-02 21:10:57 +00:00
Gregory Pappas
d0d39e7126 Bug 1870498 - Let WebExtension content scripts access getCoalescedEvents in non-secure contexts r=smaug,robwu
Differential Revision: https://phabricator.services.mozilla.com/D197255
2024-01-02 20:50:27 +00:00
Kelly Cochrane
762f24e00a Bug 1872560 - Remove fail-if condition for Fx View history test r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D197538
2024-01-02 20:37:58 +00:00
Lee Salzman
8a291077ea Bug 1872646 - Only use DrawTargetWebgl::BeginFrame when actually mutating a canvas. r=aosmond
It's wasteful to call DrawTargetWebgl::BeginFrame if we're locking in a read-only mode. It may
also mess up DrawTargetWebgl's internal profiling if we count a read-only use as an actual frame.

Differential Revision: https://phabricator.services.mozilla.com/D197483
2024-01-02 19:35:04 +00:00
Mozilla Releng Treescript
4cb20fdfac no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
tg -> 7dbd2a19d7e045f06e5bb832c4cb900b5b1c601a
tr -> c852ae434f97069b9f94a16678f8241955bf628f
vi -> 74db4a742b7b776daa2f19de1a372d3c9fe0f107
2024-01-02 19:04:41 +00:00
Kagami Sascha Rosylight
27a356813c Bug 1870622 - Update libjxl to 1d1006ce9dbe4224c1299992b57f28a4f62df9b7 r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D197505
2024-01-02 18:05:20 +00:00
Nikki Sharpley
aedf6383fe Bug 1869605 - Remove all legacy Firefox View related tests. r=sfoster,fxview-reviewers
This patch removes all tests covering the old Firefox View whilst preserving those that cover Next.
- Removed tests that have been replaced/amended for the new incarnation of View can be found in browser/components/firefoxview/tests/browser/firefoxview-next/.
- Test coverage that still requires porting over to the new incarnation is documented in bug 1869643.
- `browser_sma_open_firefoxview.js` also removed as referenced in meta bug 1850501.
- Skip feature callout tests as tests reference legacy view elements which are removed in bug 1869833. Feature callout to be removed in bug 1870296
- Remove `browser_sma_click_element.js` as tests reference legacy view elements which are removed in bug 1869833

Ideally this patch will be landed alongside patches that:
- update the view pref
- update the about redirector
- remove all legacy Firefox View files and assets

Differential Revision: https://phabricator.services.mozilla.com/D196080
2024-01-02 18:01:22 +00:00
Mark Banner
4a96e178e3 Bug 1872673 - Remove 'console' export from Console.sys.mjs, use alternative logging where required. r=mossop,devtools-reviewers,nchevobbe
Depends on D197502

Differential Revision: https://phabricator.services.mozilla.com/D197503
2024-01-02 17:38:55 +00:00
Mark Banner
0b3c310c66 Bug 1872672 - Replace Log.sys.mjs usage in MockRegistrar with console.error logging. r=mossop
As no log appender was previously registered, the error message would never have been logged.

Depends on D197501

Differential Revision: https://phabricator.services.mozilla.com/D197502
2024-01-02 17:38:55 +00:00
Mark Banner
2f5d0c78dc Bug 1872672 - Replace Log.sys.mjs usage in BrowserGlue with console.createInstance. r=mossop
Depends on D197500

Differential Revision: https://phabricator.services.mozilla.com/D197501
2024-01-02 17:38:54 +00:00
Mark Banner
15f800186d Bug 1872672 - Remove 'Log' global from browser.js. r=mossop
Depends on D197499

Differential Revision: https://phabricator.services.mozilla.com/D197500
2024-01-02 17:38:54 +00:00
Mark Banner
8cbfbf3096 Bug 1828159 - Add documentation about logging to Firefox source docs. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D197499
2024-01-02 17:38:53 +00:00
Henrik Skupin
d07c30bd8c Bug 1872662 - [devtools] Remove backward-compatibility code. r=devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197495
2024-01-02 17:35:07 +00:00
Jari Jalkanen
a5a93df5e7 Bug 1860486 - Use larger timeout for IDB object store clear on Android. r=dom-storage-reviewers,janv
Depends on D195204

Differential Revision: https://phabricator.services.mozilla.com/D197192
2024-01-02 16:52:16 +00:00
Jari Jalkanen
618c6c0a75 Bug 1860486 - Fix IDB object store clear() performance regression. r=dom-storage-reviewers,janv
Depends on D196579

Differential Revision: https://phabricator.services.mozilla.com/D195204
2024-01-02 16:52:16 +00:00
Jari Jalkanen
da4b4f9ddd Bug 1860486 - Test IDB object store clear() performance regression. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D196579
2024-01-02 16:52:15 +00:00
Chun-Min Chang
ddf22c8e75 Bug 1870401 - Add duration tests r=media-playback-reviewers,alwu
These tests ensure the durations of the produced encoded data is greater
than zero.

The ffmpeg video encoder used to produce zero duration due to rounding
issues. The recommended time unit is *1/framerate* second, whie the time
unit in the tests (and in WebCodecs) are *microseond*. In the current
mechanism (ToTicksAtRate [1]), converting *X* microsecond, where *X* is
positive, into *Y* in *1/framerate* second doesn't guarantee *Y* is
positive as well. *Y* can be zero sometimes.

To work aroud this issue, ffmpeg video encoder currently set the time
unit to microsecond as well so there is no need to do the conversion.
These added tests are used to make sure no regressions will be
introduced when we are ready to take care of the rounding calculations.

Below are the details about the rounding problem:
-----------------------------------------------------------------------
In the test, the framerate is 30 frames/second, which means each
encoding iteration is 1/30 second. If we encode one frame per iteration,
the duration should be 1/30 second as well, which is roughly 33333
microseonds set in the test.

If ffmpeg video encoder set the time unit to *1/framerate* second, as
ffmpeg suggested, then we would need to convert 33333 microsecond into
*X* in *1/framerate* second. Since one microseond is (framerate/1000000)
in *1/framerate* second, *X* is (framerate * 33333)/1000000 =
999990/1000000. This calculation is actually what
`TimeUnit::ToTicksAtRate` does, when we need to convert the time from
one unit into another.

However, in praticem the *X* would be `0` because `ToTicksAtRate` always
round down the calculated results. That is, a 33333 microsecond duration
become zero duration at the end of the conversion.

[1] https://searchfox.org/mozilla-central/rev/593c49fa812ceb4be45fcea7c9e90d15f59edb70/dom/media/TimeUnits.cpp#92

Differential Revision: https://phabricator.services.mozilla.com/D197356
2024-01-02 16:34:16 +00:00