874836 Commits

Author SHA1 Message Date
Stephanie Cunnane
c99288182e Bug 1881408 - Extend probe expiration dates: browser.searchinit.secure_opensearch_*. r=search-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D202487
2024-02-27 22:16:50 +00:00
Geoff Lankow
0505067e1c Bug 1882245 - Remove remnant of extensions.webextensions.background-delayed-startup pref. r=extension-reviewers,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D202795
2024-02-27 21:35:52 +00:00
Ryan Hunt
82067f477f Bug 1876148 - wasm: Validate accepts feature options. r=yury
WebAssembly.validate can take feature options, like enabling
js-string-builtins. This is useful for feature detection.

The test is extended to use it.

Differential Revision: https://phabricator.services.mozilla.com/D199391
2024-02-27 21:21:06 +00:00
Ryan Hunt
983487232a Bug 1876148 - wasm: js-string-builtin arguments are unsigned. r=yury
This is difficult to test because all strings are limited to less than
2GiB of characters, and negative indices are not valid, so any difference
between unsigned and signed will trap either way.

The one case I can think of, I added a test for.

Differential Revision: https://phabricator.services.mozilla.com/D199390
2024-02-27 21:21:05 +00:00
Ryan Hunt
de901e21e0 Bug 1876148 - wasm: Update names for latest js-string-builtin changes. r=yury
Differential Revision: https://phabricator.services.mozilla.com/D199389
2024-02-27 21:21:05 +00:00
Ryan Hunt
d7e2c21e44 Bug 1876148 - wasm: Add js-string-builtin cast and test builtins. r=yury
These were missing in the initial implementation.

Differential Revision: https://phabricator.services.mozilla.com/D199388
2024-02-27 21:21:04 +00:00
Ryan Hunt
a6d8b5362c Bug 1876148 - wasm: Let builtin module funcs reference type definitions in signature. r=yury
We need to be able to have a type signature such as:
  (func (param (ref (array i16))))
In our builtin methods to support JS-string-builtins.

This commit:
  * Adds wasm::StaticTypeDefs for process-lifetime wasm::TypeDef*
  * Adds wasm::BuiltinModuleFuncs for process-lifetime BuiltinModuleFunc
  * Change GenerateBuiltinModules.py to accept type syntax
    - For generating SymbolicAddressSignature, we just need a MIRType
    - For BuiltinModuleFunc, we generate a ValType
  * The signature for JS-string-builtin methods that need types are fixed

Differential Revision: https://phabricator.services.mozilla.com/D199387
2024-02-27 21:21:04 +00:00
Mike Hommey
2f7038b9d9 Bug 1882202 - Upgrade the cc crate to 1.0.88. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D202771
2024-02-27 21:11:25 +00:00
Jan Varga
f909cd37c4 Bug 1878841 - Add testing for stopping of connection idle maintenance; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D201060
2024-02-27 20:59:25 +00:00
Jan Varga
9c4ddf5bba Bug 1878841 - Add support for pausing IndexedDB connection thread during connection idle maintenance; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D200780
2024-02-27 20:59:25 +00:00
Jan Varga
5f747014f2 Bug 1878841 - Fix madeProgress check in DatabaseConnection::ReclaimFreePagesWhileIdle; r=dom-storage-reviewers,jari
The warn only check is supposed to mach the debug only assertion, but it
is actually not in line with the assertion causing a lot of warnings during
test_connection_idle_maintenance.js execution.

Differential Revision: https://phabricator.services.mozilla.com/D200770
2024-02-27 20:59:24 +00:00
Jan Varga
6c72f4d223 Bug 1878841 - Add basic testing for connection idle maintenance; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D200765
2024-02-27 20:59:24 +00:00
Natalia Csoregi
4f66bbfc30 Backed out changeset febfcfaa0b38 (bug 1881381) for causing cppunit failures on TestPrintf.exe CLOSED TREE 2024-02-28 00:25:13 +02:00
Natalia Csoregi
1fd32d1a3e Backed out 3 changesets (bug 1877678, bug 1849175) for causing failures on browser_opentabs_recency.js CLOSED TREE
Backed out changeset 67fd66802500 (bug 1849175)
Backed out changeset da9aa1960b63 (bug 1877678)
Backed out changeset 8d9e1646bd6e (bug 1877678)
2024-02-28 00:22:14 +02:00
Kelly Cochrane
805b8667a7 Bug 1849175 - Add pinned tabs to Open Tabs in Firefox View r=desktop-theme-reviewers,fxview-reviewers,fluent-reviewers,flod,sclements,nsharpley,dao
Differential Revision: https://phabricator.services.mozilla.com/D201652
2024-02-27 20:30:59 +00:00
Sebastian Hengst
6791dded8b Bug 1881324 - add machine learning docs to TOC. r=gregtatum
“Just put it in the tree” - ancient Mozilla proverb https://mozillamemes.tumblr.com/post/80709695564/just-put-it-in-the-tree-ancient-mozilla

Differential Revision: https://phabricator.services.mozilla.com/D202341
2024-02-27 20:30:32 +00:00
Kershaw Chang
0ae844707c Bug 1881334 - Make node resolve localhost to 127.0.0.1, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D202802
2024-02-27 20:06:16 +00:00
Kershaw Chang
c9f6fe1015 Bug 1853497 - Avoid racing on static global __res_state, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D201945
2024-02-27 20:04:46 +00:00
Mike Hommey
25047ab2fd Bug 1881381 - Switch build to VS 2022. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D202364
2024-02-27 20:04:42 +00:00
Anna Yeddi
0e18b86767 Bug 1879191 - Update AccessibilityUtils to include XUL:buttons that are removed before the l10n is completed in the label checks exceptions. r=Jamie
Add an exception to AccessibilityUtils during label checks to determine if an accessible is a XUL:button on a prompt popup. We know this button is accessible, but it disappears as soon as it is clicked during tests and the a11y-checks do not have time to test the label, because the Fluent localization is not yet completed by then. Thus, we need to special case the label check for these controls.

The test affected: `browser/components/urlbar/tests/browser/browser_add_search_engine.js`

Differential Revision: https://phabricator.services.mozilla.com/D201028
2024-02-27 19:50:06 +00:00
Anna Yeddi
265e929dea Bug 1878771 - Update AccessibilityUtils to include show-all, a few image buttons on the about:config page and the Close button on moz-message-bar that are removed before the l10n is completed in the label checks exceptions. r=Jamie
These buttons are dissappearing as soon as they are clicked during tests, and their accessible dies before the Fluent localization is completed. We want to exclude these groups of nodes from the label check.

Differential Revision: https://phabricator.services.mozilla.com/D200745
2024-02-27 19:50:06 +00:00
Anna Yeddi
499c153f2e Bug 1878395 - Move label exception checks closer to their failing blocks of AccessibilityUtils. r=Jamie
This would make these exceptions more specific. After moving the `isUnlabeledUrlBarOption()` and `isUnlabeledMenuitem()` checks in the try-catch block, it won't be enough for the accessible to exist but have no name; the accessible must actually disappear after having no name. Most of the time, this will make no practical difference because clicking a URL bar option or menu item pretty much always makes it disappear. But the AccessibilityUtils would be more explicit about its exceptions.

We also explicitly including in the checks `<richlistitem>` and `<menuitem>` from the Url Bar and Search Bar autocomplete dialogs to be excluded from the label check via the `isUnlabeledMenuitem`

Differential Revision: https://phabricator.services.mozilla.com/D200744
2024-02-27 19:50:05 +00:00
Dave Townsend
13cfe8a536 Bug 1882099: Only call _mouseenter and _mouseleave when entering or leaving the tab. r=tabbrowser-reviewers,dao
It's not clear that there is any user-visible bug here but it is causing unnecessary work and can
cause debugging to be harder than it needs to be.

Differential Revision: https://phabricator.services.mozilla.com/D202790
2024-02-27 19:35:54 +00:00
Drew Willcoxon
fe431b897d Bug 1880667 - Vertically center-align urlbar tips. r=dao,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D202785
2024-02-27 19:27:58 +00:00
Erich Gubler
bbae4b3687 Bug 1879989: build(webgpu): update wgpu to 23392c5228ce81ae3a9772cf93da933be2d5961c r=webgpu-reviewers,supply-chain-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D201659
2024-02-27 19:24:42 +00:00
Sebastian Hengst
aa9c51926b Bug 1881666 - disable webnn tests on Windows debug and Android opt. CLOSED TREE DONTBUILD
Each of these tests runs for 3 to 4 minutes which causes the task to hit the run time limit
before it can every task.
2024-02-27 21:08:38 +01:00
Emilio Cobos Álvarez
d90370e004 Bug 1882033 - Set the override-redirect and skip-taskbar hints for alerts. r=stransky
This prevents some WMs from stealing focus, see
https://github.com/qtile/qtile/issues/4662

Differential Revision: https://phabricator.services.mozilla.com/D202701
2024-02-27 19:03:36 +00:00
Mozilla Releng Treescript
7887f9e12a no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
cy -> 6f6b7bf94c7badfdd4f06dedea0ddd02a78bad46
dsb -> 346fb5e511e0f80d96dd41da02e4d21a11be3441
el -> c9110786f338da5baff887f2fe9dbfa129dacaf5
es-AR -> b0ddbb0cb42da785778c85fafaf691cd8f3063e0
fr -> 115c831d45c0d55b0c03995c62187a44a4a65375
hsb -> 581c498554d126c82971ca0bde960bf1dcbb1be0
hu -> 85ac1671a794a2822d8c54ec50a26f5e4e5e884d
ja -> 31a2db37123052ee5dad395a78891191771eb767
ja-JP-mac -> 7a6543462e3c44b0d749c96e41385c3aa7a8fa35
kk -> e4f96b9b0813734c7739e49ca6cb83cedb4b1574
ko -> d69f160805ce09b26784271520d4bb8ec49b5c4a
nb-NO -> c20aef48034777032ee637cdd82d2d060285a461
nn-NO -> 7719614fdb7f682c217995437528a62cfd809f3b
ru -> 7d72e8189b130af4babc9bcf4a52bb9898a0b90b
sl -> 3e307bfd897c44931bd6be011d7b2d4b4402078d
2024-02-27 19:02:08 +00:00
Shane Hughes
f197e62f41 Bug 1881106 - Move ModalOverlay.test.jsx to newtab directory. r=omc-reviewers,negin
Differential Revision: https://phabricator.services.mozilla.com/D202255
2024-02-27 18:52:20 +00:00
Frédéric Wang
acef313f3d Bug 1839313 - Add "fetchpriority" attribute to <img> element. r=smaug
This patch adds fetchpriority support for the `<img>` element, also
exposing the corresponding attribute in the WebIDL. As in D197493, we
try and minimize the change and rely on a mapping configurable under a
preference to ease future experiments. We use initial mapping
PRIORITY_LOW/PRIORITY_HIGH/PRIORITY_LOW for fetchpriority=low/high/auto
and allow further adjustments in the image code.

Internal fetchpriority mapping is covered by the following tests:
- `image-initial-load.h2.html` (typos fixed here)
- `image-dynamic-load.h2.html`

DOM tests are covered by the following tests (pref enabled to make them
pass):
- `idlharness.https.html`
- `attr-img-fetchpriority.html`

Differential Revision: https://phabricator.services.mozilla.com/D202222
2024-02-27 18:49:08 +00:00
alwu
be4226fa61 Bug 1882342 - each location of codec support should only store the support list from its location, instead of a full support list. r=media-playback-reviewers,azebrowski
Having the correct support list helps us select the correct remote
process for decoding.

Differential Revision: https://phabricator.services.mozilla.com/D202851
2024-02-27 18:42:49 +00:00
Sam Foster
a4902fe703 Bug 1877678 - Improve window switching in the opentabs cards tests. r=fxview-reviewers,sclements
* Adds a new switchToWindow helper and calls it in openFirefoxViewTab to ensure we wait until the window is active
* Fix some fallout from this change in the browser_opentabs_recency.js test

Differential Revision: https://phabricator.services.mozilla.com/D201861
2024-02-27 18:26:18 +00:00
Sam Foster
79fd8f8709 Bug 1877678 - Split out the open tabs 'more' tests into their own file. r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D202486
2024-02-27 18:26:18 +00:00
Harshit Sohaney
0503dbd0d1 Bug 1882275 - Added a pref flip to enable the clear history dialog when testing in beta and release. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D202857
2024-02-27 18:26:01 +00:00
David Shin
eef91f2a3f Bug 1856640: Ensure layout flush for as-of-yet reflowed frames when querying computed style of elements potentially matching container query. r=firefox-style-system-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D202619
2024-02-27 17:48:07 +00:00
Paul Zuehlcke
7bb48fae72 Bug 1882340 - Remove cycle collection bits from BounceTrackingRecord. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D202848
2024-02-27 17:47:10 +00:00
Iulian Moraru
0783fb05a1 Backed out 6 changesets (bug 1880192) for causing build bustages on MozPromise.h. CLOSED TREE
Backed out changeset b73f06a9fdb1 (bug 1880192)
Backed out changeset ee04f994bad8 (bug 1880192)
Backed out changeset 8c7a686c8691 (bug 1880192)
Backed out changeset 15e93c260557 (bug 1880192)
Backed out changeset b5f62ac62087 (bug 1880192)
Backed out changeset ff2d8eae2a68 (bug 1880192)
2024-02-27 20:41:39 +02:00
Iulian Moraru
8cc44430a4 Backed out 4 changesets (bug 1878841) for causing xpcshell failures on test_connection_idle_maintenance.js.
Backed out changeset 6dd4ac119065 (bug 1878841)
Backed out changeset 4001ea4b11b0 (bug 1878841)
Backed out changeset 40a429fa8f49 (bug 1878841)
Backed out changeset f22be1e1752b (bug 1878841)
2024-02-27 20:40:48 +02:00
Harshit Sohaney
11834a50d8 Bug 1879533 - Fixing telemetry async intermittent by awaiting for data size loading after collecting telemetry. r=pbz
We are possibly facing intermittent failures with the telemetry tests for the clear history dialog because we currently report the telemetry after waiting for the data sizes to load. This could mean that there are cases where the telemetry has not been done reporting and the test runs.

Differential Revision: https://phabricator.services.mozilla.com/D201989
2024-02-27 17:30:37 +00:00
Alexandra Borovova
ad503df677 Bug 1854581 - [wdspec] Add gecko specific tests for "storage.deleteCookies" command. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D201990
2024-02-27 17:26:17 +00:00
Alexandra Borovova
c21eee487e Bug 1854581 - [wdspec] Add tests for "storage.deleteCookies" command. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D200937
2024-02-27 17:26:17 +00:00
Alexandra Borovova
bc996e9e35 Bug 1854581 - [wpt] Add "storage.deleteCookies" command to bidi test client. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D200936
2024-02-27 17:26:16 +00:00
Alexandra Borovova
cbd246264a Bug 1854581 - [bidi] Implement "storage.deleteCookies" command. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D200935
2024-02-27 17:26:16 +00:00
Ray Kraesig
1abb9944e0 Bug 1880192 - [5/5] MozPromise.h: inline single-use implementation function r=xpcom-reviewers,emilio
Remove non-rvalue-reference overload of InvokeAsync, added 7 years ago
and not once used.

Differential Revision: https://phabricator.services.mozilla.com/D201788
2024-02-27 17:20:11 +00:00
Ray Kraesig
88a43e6b93 Bug 1880192 - [4/5] Remove IsRefcountedSmartPointer r=xpcom-reviewers,nika
Following the previous patch, `IsRefcountedSmartPointer` is no longer
needed in ThreadUtils.h. Replace the one remaining use in MozPromise.h
with a more precise version tailored to that use-site.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D201787
2024-02-27 17:20:11 +00:00
Ray Kraesig
39a92971f5 Bug 1880192 - [3.5/5] ThreadUtils.h: remove little-used storage cases r=xpcom-reviewers,necko-reviewers,jesup,nika
`const T&&` parameters don't have associated storage semantics defined
for them. Previously they would end up as `StoreCopyPassByRRef`, which
might even have been intentional. Forbid them, and change the one use
case invoking it to a non-reference (becoming StoreCopyPassByConstLRef).

Additionally, there are four optional storage classes that are never
automatically selected. Two of these are never used, and a third is only
used mistakenly (...ByLRef where only ...ByConstLRef is needed). Adjust
the third's use-sites, and remove all three.

The last, `StoreCopyPassByPtr`, has more of an argument to be kept: it's
simpler to use (and, arguably, to understand) than its lambda-function
equivalent when wrapping an XPCOM method that takes an [in]-pointer
argument -- but it has only one use site in the entire codebase. Replace
and remove it, as well.

No functional changes. All deleted cases remain possible via lambda
functions fed to NS_NewRunnableFunction.

Differential Revision: https://phabricator.services.mozilla.com/D202173
2024-02-27 17:20:11 +00:00
Ray Kraesig
a019dc11cf Bug 1880192 - [3/5] ThreadUtils.h: remove std::conditional use r=xpcom-reviewers,nika
Using `std::conditional` unconditionally instantiates both of its
type-arguments, regardless of the value of its boolean argument. This
means that the entire tree of auxiliary metafunction-types were being
instantiated by any use of ParameterStorage -- i.e., at least once per
use of NewRunnableMethod, plus one for each explicit parameter the
method took.

Use partial specialization both to significantly simplify the selection
code (replacing most explicit tests), ensuring that only O(log n))
templates are instantiated, rather than O(n).

As verified by the unchanged TestThreadUtils.cpp, no functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D201786
2024-02-27 17:20:10 +00:00
Ray Kraesig
3f1d0b7b44 Bug 1880192 - [2/5] ThreadUtils.h: some C++17 modernizations r=xpcom-reviewers,emilio
Remove some type-level indirections from the SmartPointer template-
metaprogramming helpers.

Additionally, replace some nearby uses of `typedef` with `using`, as
suggested by clang-tidy.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D201785
2024-02-27 17:20:10 +00:00
Ray Kraesig
1345b183fc Bug 1880192 - [1/5] MozPromise.h: some C++17 modernizations r=xpcom-reviewers,emilio
Remove some type-level indirections from template-metaprogramming
helpers.

Additionally, replace some nearby uses of `typedef` with `using`, as
suggested by clang-tidy.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D201784
2024-02-27 17:20:09 +00:00
Jan Varga
a682328930 Bug 1878841 - Add testing for stopping of connection idle maintenance; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D201060
2024-02-27 17:18:15 +00:00