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

912948 Коммитов

Автор SHA1 Сообщение Дата
André Bargull 725674a695 Bug 1874684 - Part 21: Rename SecondsAndNanoseconds::toTotalNanoseconds. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D198555
2024-04-15 18:27:25 +00:00
André Bargull 9399c401fe Bug 1874684 - Part 20: Tag stack classes with MOZ_STACK_CLASS. r=allstarschh
Differential Revision: https://phabricator.services.mozilla.com/D198554
2024-04-15 18:27:24 +00:00
André Bargull d0bcfa0410 Bug 1874684 - Part 19: Fix simplify bool-return warnings from clang-tidy. r=allstarschh
Differential Revision: https://phabricator.services.mozilla.com/D198553
2024-04-15 18:27:24 +00:00
André Bargull 075bb94b0e Bug 1874684 - Part 18: Fix narrowing warnings from clang-tidy. r=allstarschh
Differential Revision: https://phabricator.services.mozilla.com/D198552
2024-04-15 18:27:24 +00:00
André Bargull 0e014d0303 Bug 1874684 - Part 17: Fix uninitialised variable warnings from clang-tidy. r=allstarschh
Differential Revision: https://phabricator.services.mozilla.com/D198551
2024-04-15 18:27:23 +00:00
André Bargull 64f6d80bdc Bug 1874684 - Part 16: Fix "const auto" warnings from clang-tidy. r=allstarschh
Differential Revision: https://phabricator.services.mozilla.com/D198550
2024-04-15 18:27:23 +00:00
André Bargull fb66d8df7a Bug 1874684 - Part 15: Prefer int64_t in Add24HourDaysToNormalizedTimeDuration. r=sfink
Switch to `int64_t` to avoid some unnecessary `int64_t -> double -> int64_t` conversions.

Differential Revision: https://phabricator.services.mozilla.com/D198549
2024-04-15 18:27:23 +00:00
André Bargull 8c9d45d621 Bug 1874684 - Part 14: Return DateDuration from DifferenceDate. r=sfink
Similar to the previous part, prefer `DateDuration` to avoid unnecessary
`int64_t` -> `double` -> `int64_t` conversions.

Differential Revision: https://phabricator.services.mozilla.com/D198548
2024-04-15 18:27:22 +00:00
André Bargull e9325c941d Bug 1874684 - Part 13: Pass DateDuration to AddDate/CalendarDateAdd. r=sfink
Prefer `DateDuration` to avoid unnecessary `DateDuration -> Duration -> DateDuration` conversions.

Differential Revision: https://phabricator.services.mozilla.com/D198547
2024-04-15 18:27:22 +00:00
André Bargull e356dbdb23 Bug 1874684 - Part 12: Add separate structs for fractional duration units. r=sfink
This reduces the differences between the spec and the implementation, so
we have fewer steps which are annotated with "Not applicable in our implementation".

Differential Revision: https://phabricator.services.mozilla.com/D198546
2024-04-15 18:27:21 +00:00
André Bargull 22862cb345 Bug 1874684 - Part 11: Remove no longer needed BigInt code path in TemporalDurationToString. r=sfink
The value restrictions from the previous parts allow to remove the `BigInt` code
paths from TemporalDurationToString.

Differential Revision: https://phabricator.services.mozilla.com/D198545
2024-04-15 18:27:21 +00:00
André Bargull 5636d9f394 Bug 1874684 - Part 10: Replace BigInt with Int128 in RoundNumberToIncrement. r=mgaudet
Use `Int128` instead of `BigInt` in RoundNumberToIncrement to avoid duplicated
code for the `BigInt` code path.

Differential Revision: https://phabricator.services.mozilla.com/D198544
2024-04-15 18:27:20 +00:00
André Bargull d32aed0104 Bug 1874684 - Part 9: Prefer integer types for DateDuration. r=mgaudet
Similar to previous part, prefer `int64_t` rather than `double` for `DateDuration`.

Differential Revision: https://phabricator.services.mozilla.com/D198543
2024-04-15 18:27:20 +00:00
André Bargull 5a1716843d Bug 1874684 - Part 8: Prefer integer types for TimeDuration. r=mgaudet
The previous changes make it possible to switch most `TimeDuration` fields to
use `int64_t` instead of `double`.

Differential Revision: https://phabricator.services.mozilla.com/D198542
2024-04-15 18:27:20 +00:00
André Bargull 935262e659 Bug 1874684 - Part 7: Limit duration years, months, and weeks to <2³² each. r=mgaudet
Changes from:
- 1104cad8cc

Differential Revision: https://phabricator.services.mozilla.com/D198541
2024-04-15 18:27:19 +00:00
André Bargull 3c8e0cb1cc Bug 1874684 - Part 6: Limit day length calculations to safe integers. r=mgaudet
Changes from:
- 156c7644af

This also allows to change `NormalizedTimeAndDays::{time,dayLength}` to use
`int64_t` values instead of `NormalizedTimeDuration`.

Differential Revision: https://phabricator.services.mozilla.com/D198539
2024-04-15 18:27:19 +00:00
André Bargull 6df3467435 Bug 1874684 - Part 5: Directly convert to DurationObject this-value to Duration value. r=dminor
This matches other methods and makes the code a bit smaller.

Differential Revision: https://phabricator.services.mozilla.com/D198538
2024-04-15 18:27:18 +00:00
André Bargull 176d41eb89 Bug 1874684 - Part 4: Prefer const references instead of copying Instant values. r=dminor
Consistently use `const` references instead of sometimes copying Instant values.

Differential Revision: https://phabricator.services.mozilla.com/D198537
2024-04-15 18:27:18 +00:00
André Bargull e33acfaf8e Bug 1874684 - Part 3: Update spec step number references. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D198536
2024-04-15 18:27:18 +00:00
André Bargull 677db48d30 Bug 1874684 - Part 2: Limit time portion of durations to <2⁵³ seconds and Use normalized time duration in operations. r=dminor
Changes from the two commits:
- 45462c4aaa
- 7b924d4362

The "Use normalized time duration in operations" commit changes many operations
to use `NormalizedTimeDuration` instead of `Duration`. This is a massiv change,
but also allows to remove all `BigInt` code when extended precision was needed.

Differential Revision: https://phabricator.services.mozilla.com/D198535
2024-04-15 18:27:17 +00:00
André Bargull 6920618be1 Bug 1874684 - Part 1: Add Int128 and Uint128 types. r=dminor
Division operations in Temporal will soon be limited to int128 values. Introduce
Int128 and Uint128 to avoid `BigInt` allocations for these divisions.

Int128 and Uint128 are both implemented as a pair of `uint64_t` values. All
basic algorithmic operations are supported. Non-trivial operations were
implemented using the algorithms described in Hacker's Delight, except for
`Uint128::toDouble()` which was implemented by copying and then adjusting the
code for `BigInt::numberValue()`.

Differential Revision: https://phabricator.services.mozilla.com/D198534
2024-04-15 18:27:17 +00:00
Kelly Cochrane 880e45e3ae Bug 1877826 - Add support for external and support links in moz-page-nav r=desktop-theme-reviewers,reusable-components-reviewers,sfoster,hjones
Differential Revision: https://phabricator.services.mozilla.com/D207173
2024-04-15 18:15:54 +00:00
Emily McDonough 6ccfb42cf6 Bug 1833466 - Implement CSSMarginRule and the corresponding DOM API. r=webidl,firefox-style-system-reviewers,smaug,emilio
Differential Revision: https://phabricator.services.mozilla.com/D206804
2024-04-15 18:14:42 +00:00
Geoff Brown 27a6e1ea6f Bug 1890373 - Enable android-l10n-sync via cron on mozilla-beta r=hneiva,gabriel
Differential Revision: https://phabricator.services.mozilla.com/D206931
2024-04-15 18:07:57 +00:00
Emilio Cobos Álvarez 7a79e1e1d3 Bug 1891210 - Make line-clamp on blocks work in chrome contexts. r=dholbert
This flag is tested separately, I don't think this deserves its own
test, probably...

Differential Revision: https://phabricator.services.mozilla.com/D207342
2024-04-15 18:07:51 +00:00
Ben Dean-Kawamura c3fc8ade58 Bug 1890866 - Reorganize the UniFFI fixtures/examples. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D207208
2024-04-15 18:07:00 +00:00
Sandor Molnar f75e1e2283 Backed out changeset ad37a0c06526 (bug 1884401) for causing py3 unit test failures CLOSED TREE 2024-04-15 22:53:21 +03:00
Sandor Molnar 7c2048ff12 Backed out changeset 957de71a1cd0 (bug 1887824) for causing bc failures @ browser_all_files_referenced.js CLOSED TREE 2024-04-15 22:23:30 +03:00
Mozilla Releng Treescript 7ccc6187da no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
ca -> bfd1e38a3428750de8d7607e0d437703e94c4291
uk -> af221489b354b9c374abed3f179b7f8373159d90
2024-04-15 19:06:24 +00:00
Kagami Sascha Rosylight 8da18dbcfc Bug 1841841 - Add notification tag WPT test and replace old ones r=hsingh
Differential Revision: https://phabricator.services.mozilla.com/D207179
2024-04-15 18:03:46 +00:00
Benjamin VanderSloot 1e447389e4 Bug 1890758 - Remove privacy.partition.always_partition_third_party_non_cookie_storage from web-platform/user.js - r=twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D207143
2024-04-15 17:22:31 +00:00
Nicolas Chevobbe e6a3d588fb Bug 1887638 - [devtools] Expose CSS token value in InspectorCSSToken. r=emilio.
In some cases, it can be more useful to only get the token value than the whole
token text (e.g. for 'Function`, where the value is the function name, while
the text includes the opening parenthesis)
Refactor `test_lexer` to better test the tokens we get, including their value property.

Differential Revision: https://phabricator.services.mozilla.com/D207400
2024-04-15 17:14:43 +00:00
Nicolas Chevobbe f6bb5f8a6c Bug 1887638 - [devtools] Add InspectorCSSParser. r=emilio,devtools-reviewers,frontend-codestyle-reviewers,bomsy.
This new InspectorCSSParser makes use of the cssparser crate so DevTools end
up using the same code as the CSS engine.
At the moment, we can't get the token start and end offsets, so we create
a JS wrapper class to compute them in JS. This might be removed if we get
a way to retrieve utf16 position from the cssparser.
The existing lexer xpcshell test is modified so it can run against both js-based
and rust-based lexers.

Differential Revision: https://phabricator.services.mozilla.com/D202909
2024-04-15 17:14:42 +00:00
Gabriel Bustamante d238ca721d Bug 1886296 - Generate localized nightly linux64-aarch64 builds, upload them to the archive, and submit the locales to balrog r=releng-reviewers,bhearsum
Depends on D205267

Differential Revision: https://phabricator.services.mozilla.com/D205402
2024-04-15 16:58:21 +00:00
Gabriel Bustamante b2b68dde0f Bug 1884252 - Upload en-US linux64-aarch64 nightly builds to the Mozilla archive and submit the locale to balrog r=releng-reviewers,taskgraph-reviewers,jcristau
Depends on D206119

Differential Revision: https://phabricator.services.mozilla.com/D205267
2024-04-15 16:58:21 +00:00
dylan 70cc93ae5b Bug 1873944 - Also parse about and data urls with DefaultURI if starting with '/'. r=necko-reviewers,valentin,rpl
Differential Revision: https://phabricator.services.mozilla.com/D205062
2024-04-15 16:51:00 +00:00
Chris Peterson 63baa88260 Bug 1873273 - Report non-x86_64 CPUs (including 32-bit x86) as "x86_64" in Linux User-Agent. r=necko-reviewers,kershaw
This will match the behavior of ARM64 Linux (bug 1861847) and Chrome reporting their CPU architecture as "Linux x86_64": https://www.chromium.org/updates/ua-reduction/#sample-ua-strings-phase-5

Goals:

1. Reduce fingerprintable entropy exposed to web content. Few websites should need to distinguish 32-bit x86 Linux users from x86_64 Linux users. One of the few that did was Mozilla's own Firefox download page and it has now been updated to use distro packages instead of sniffing the UA string to offer Mozilla's architecture-specific installer binaries. (See bugs https://github.com/mozilla/bedrock/issues/12966 and https://github.com/mozilla/bedrock/issues/14012.)

2. Reduce risk of webcompat problems from websites not recognizing unexpected CPU architectures. (Example: in bug 1861847, YouTube treated ARM64 Linux as a mobile device)

This "freezeCpu" pref controls this UA string code path:

https://searchfox.org/mozilla-central/rev/1f27a4022f9f1269d897526c1c892a57743e650c/netwerk/protocol/http/nsHttpHandler.cpp#931-937

The UA string tests already check the "freezeCpu" pref to test for either "Linux x86_64" or the actual CPU architecture:

https://searchfox.org/mozilla-central/rev/f602853ba8d55ba157e2a74d9b571615f6ed97b8/browser/components/resistfingerprinting/test/browser/browser_navigator.js#41-47,51

Differential Revision: https://phabricator.services.mozilla.com/D207238
2024-04-15 16:49:29 +00:00
Chris Peterson e265c0ddb9 Bug 1833728 - Remove redundant 'android:shortcutLongLabel' strings. r=android-reviewers,gl
https://developer.android.com/guide/app-actions/action-schema says `android:shortcutLongLabel` is optional and we were setting `shortcutLongLabel` and `shortcutShortLabel` to the same string, so we can remove `shortcutLongLabel` and use `shortcutShortLabel` for both the shortcut name in the app's shortcut menu and on the home screen.

Differential Revision: https://phabricator.services.mozilla.com/D206981
2024-04-15 16:49:18 +00:00
Shane Hughes 80a3e841d0 Bug 1863384 - Implement offset_x and offset_y for panel feature callout. r=emcminn,omc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D207075
2024-04-15 16:40:50 +00:00
Thomas Wisniewski 070d855f37 Bug 1886757 - Ignore a trailing dot in a hostname for the network.dns.localdomains pref; r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D205415
2024-04-15 16:26:36 +00:00
Nikki Sharpley 0221667369 Bug 1882114 - Remove unused Firefox View prefs r=fxview-reviewers,kcochrane
These were accidentally added back in to the `profile.js` file in bug 1783521 but don't do anything.

Differential Revision: https://phabricator.services.mozilla.com/D207437
2024-04-15 16:21:52 +00:00
Tarek Ziadé 1bfb86845d Bug 1887824 - vendor Transformers.js - r=gregtatum,frontend-codestyle-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D205684
2024-04-15 16:13:23 +00:00
Emilio Cobos Álvarez cd7d835e04 Bug 1891354 - Clean up VibrancyManager a bit. r=sam,mac-reviewers,bradwerth
Make the tooltip menupopup view not go through VibrancyManager at all
(don't really need to).

Use an EnumeratedArray for storage rather than a hashmap.

Differential Revision: https://phabricator.services.mozilla.com/D207390
2024-04-15 15:55:44 +00:00
Emilio Cobos Álvarez 9d3a3d6b34 Bug 1891354 - Drive-by nsNativeThemeCocoa clean-ups. r=mac-reviewers,bradwerth
Remove redundant arg names and virtual keywords. Collapse switch clauses.

Differential Revision: https://phabricator.services.mozilla.com/D207388
2024-04-15 15:55:44 +00:00
Tomislav Jovanovic 4e98892442 Bug 1890144 - Update lib.gecko.xpcom.d.ts for Firefox 126, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D207062
2024-04-15 15:53:33 +00:00
Tomislav Jovanovic 06e01aae30 Bug 1890144 - Don't emit ts typedefs for TSNoncompat types r=xpcom-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D207061
2024-04-15 15:53:32 +00:00
Dimi 7b9c6effa0 Bug 1887007 - P4. Fix layout reftest and autocomplete composition test failures r=credential-management-reviewers,emilio,sgalich
This patch fixes:
1. Replace `markAsAutofillField` with `markAsAutoCompletableField` for
   layout reftest since the API name is changed
2. In AutoCompleteChild, ensuring `result` is an array because the parent
   might return `false` when there is no autocomplete popup.
3. Remove `attachFormFillControllerTo` and `detachFormFillControllerFrom` because
   setting the popup element to FormFillController is no longer required.

Differential Revision: https://phabricator.services.mozilla.com/D206994
2024-04-15 15:48:48 +00:00
Dimi f1d5451cec Bug 1887007 - P3. Move logic manager autocomplete search logic from LoginAutoComplete to AutoCompleteChild r=credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D206022
2024-04-15 15:48:48 +00:00
Dimi bd0a3cae14 Bug 1887007 - P2. Move form history autocomplete search logic from FormHisotryAutoComplete to AutoCompleteChild r=credential-management-reviewers,search-reviewers,mcheang,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D206021
2024-04-15 15:48:48 +00:00
Dimi c5078faae0 Bug 1887007 - P1. Move formautofill autocomplete seach logic from AutofillProfileAutoComplete to AutoCompleteChild r=credential-management-reviewers,sgalich
This commit makes two significant changes:

1. Refactors AutofillProfileAutoComplete Logic to AutoCompleteChild:

Migrates logic from AutofillProfileAutoComplete to AutoCompleteChild,
transitioning state management from a per-process to a per-frame basis.
This lays the groundwork for future support of autofill functionality
across iframes.

2. Implements the Concept of "Autocomplete Entry Providers":

Introduces a framework for autocomplete providers (e.g., FormAutofill, LoginManager, FormHistory)
to integrate with the autocomplete system through a set of APIs, including:
JSWindowActorChild:
  - string actorName()
  - bool shouldSearchForAutoComplete(element);
  - jsval getAutoCompleteSearchOption(element);
  - jsval recordToAutoCompleteResult(searchString, element, record);
JSWindowActorParent:
  - searchAutoCompleteEntries(searchString, options)

Besides implement the above API, autocomplete provider must use `markAsAutoCompletableField` in
AutoCompleteChild to register fields for autocomplete, enabling the FormFillController to
initiate autocomplete searches when users click on the input field.

Note: This patch only integrates FormAutofill, integrating FormHistory and
LoginManager will be in other patches.

Differential Revision: https://phabricator.services.mozilla.com/D205444
2024-04-15 15:48:47 +00:00