Commit graph

912807 commits

Author SHA1 Message Date
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
Denis Palmeiro
ff1ff3ee70 Bug 1887068: Add perfetto to about:license. r=sylvestre
Depends on D205663

Differential Revision: https://phabricator.services.mozilla.com/D206510
2024-04-15 15:34:05 +00:00
Denis Palmeiro
a37693bbe8 Bug 1887068: Add perfetto event traces for taskcontroller tasks and dom performance measurement markers. r=smaug
Depends on D205662

Differential Revision: https://phabricator.services.mozilla.com/D205663
2024-04-15 15:34:04 +00:00
Denis Palmeiro
91cc9e373c Bug 1887068: Add perfetto SDK and build with it when gecko profiling is enabled on Android. r=glandium,smaug,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D205662
2024-04-15 15:34:02 +00:00
Emilio Cobos Álvarez
711ddb2047 Bug 1891063 - Remove unused code for transparency. r=win-reviewers,rkraesig
Right now, we don't use top level transparent windows (they're
completely unused).

This removes some code that causes trouble when reintroducing them.

Depends on D207297

Differential Revision: https://phabricator.services.mozilla.com/D207298
2024-04-15 15:31:23 +00:00
Emilio Cobos Álvarez
3edce094f1 Bug 1891063 - Factor out some window style flags code. r=win-reviewers,rkraesig
No behavior change intended. I plan to use this to hide the titlebar
buttons when drawing to the titlebar (we currently draw on top of them).

But seems worth factoring out regardless.

Differential Revision: https://phabricator.services.mozilla.com/D207297
2024-04-15 15:31:23 +00:00
Benjamin VanderSloot
d0f8a1c146 Bug 1876504 - Also allow a same-origin initiated iframe to get storage access from its parent - r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D203313
2024-04-15 15:28:11 +00:00
Cosmin Sabou
271aab4b32 Backed out 3 changesets (bug 1890718) for failing sevaral UI related bc tests. CLOSED TREE
Backed out changeset 3d91014dfcef (bug 1890718)
Backed out changeset 8c09e2028ad9 (bug 1890718)
Backed out changeset ff91ebffa8ab (bug 1890718)
2024-04-15 21:11:48 +03:00
Cosmin Sabou
ddeb384472 Bug 1890746 - Adjust subtests on basic-auth.any.js after wpt-sync. a=test-only 2024-04-15 21:10:27 +03:00
Brad Werth
f603a05b15 Bug 1890939: Restrict matching of video-dynamic-range: high to macOS, via pref. r=gfx-reviewers,sotaro
Differential Revision: https://phabricator.services.mozilla.com/D207279
2024-04-15 15:06:14 +00:00
Julian Descottes
c23ab24dbd Bug 1845037 - [devtools] Revert DevTools screenshots to use the default downloads directory r=devtools-reviewers,ochameau
Revert the DevTools bits from Bug 1072345 to be consistent with the Screenshots feature from Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D207413
2024-04-15 15:05:57 +00:00
Joel Maher
6ebde68fe8 Bug 1888731 - Associate more wpt directories and adjust implementation status. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D207313
2024-04-15 15:02:54 +00:00
Mike Conley
fffcfa3406 Bug 1890591 - Add some utilities to BackupResource for copying files and Sqlite databases. r=backup-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D207155
2024-04-15 14:47:20 +00:00
Gijs Kruitbosch
f3a4c7b9ae Bug 1890718 - remove history pane inline command listeners, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D207121
2024-04-15 14:45:52 +00:00
Gijs Kruitbosch
712fa1e60f Bug 1890718 - remove hamburger menu mainview inline command listeners, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D207120
2024-04-15 14:45:51 +00:00
Gijs Kruitbosch
478948ca7c Bug 1890718 - driveby: remove outdated mentions of proton, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D207119
2024-04-15 14:45:51 +00:00
André Bargull
25fc89d3ac Bug 1890750 - Part 2: Rearrange function flags to improve immediate encoding on ARM64. r=iain
When `BASESCRIPT`, `SELFHOSTLAZY`, and `NATIVE_JIT_ENTRY` are placed into adjacent
flags, the immediate for `FunctionFlags::HasJitEntryFlags()` can be encoded directly
into the test-condition.

Before this change:
```
ldr     w16, [x12, #24]
mov     w17, #0x460
tst     w16, w17
b.eq    -> 1030f
```

The immediate `0x460` for `FunctionFlags::HasJitEntryFlags()` needs be moved into
a scratch register.

After this change:
```
ldr     w16, [x12, #24]
tst     w16, #0xe0
b.eq    -> 1030f
```

The immediate `0xe0` for `FunctionFlags::HasJitEntryFlags()` is encoded directly
into the test-condition.

Depends on D207135

Differential Revision: https://phabricator.services.mozilla.com/D207136
2024-04-15 14:40:43 +00:00
André Bargull
75865bebb2 Bug 1890750 - Part 1: Include NATIVE_JIT_ENTRY in FunctionFlags::HasJitEntryFlags() even when constructing. r=iain
Always include `NATIVE_JIT_ENTRY` to keep `MacroAssembler::branchIfFunctionHas{No,}JitEntry()`
consistent with `FunctionFlags::hasJitEntry()`.

Differential Revision: https://phabricator.services.mozilla.com/D207135
2024-04-15 14:40:42 +00:00
André Bargull
1928539e57 Bug 1890513: Directly invoke variadic native functions. r=jandem
CodeGenerator.cpp:
Split `emitCallNative` into two methods, so we can reuse it for `emitApplyNative`.
Also add some comments how `NativeExitFrameLayout` is constructed on the stack and
add an assertion that the native C++ function returned an object when constructing.
`emitCallNative` uses `setupAlignedABICall`, so we now need to align the Value
arguments, this happens through the new `emitAlignStackForApplyNative` method.

LIR-shared.h, Lowering.cpp:
The callee doesn't need to be stored which frees up one register, so we can
allocate an additional temp-register. This matches the approach taken for
`LCallNative`. The additional temp register is needed, because `emitCallNative`
requires four registers.

VMFunctions:
- Remove no longer used `InvokeNativeFunction`.

Differential Revision: https://phabricator.services.mozilla.com/D207005
2024-04-15 14:39:04 +00:00
Sylvestre Ledru
b50231ef5c Bug 1891375 - Update to sphinx 7.2.6 r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D206585
2024-04-15 14:35:48 +00:00
Greg Stoll
5c1a6a752b Bug 1878700 part 2 - show DLP icon in toolbar when content analysis is active r=handyman,desktop-theme-reviewers,fluent-reviewers,emilio,bolsson,Gijs
This also opens SUMO when the icon is clicked on. (the real page will be made as a part of bug 1882595)

Differential Revision: https://phabricator.services.mozilla.com/D203686
2024-04-15 14:25:53 +00:00
Greg Stoll
41747322ad Bug 1878700 part 1 - add DLP icon to toolbar only if contentanalysisactive is true r=desktop-theme-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D203685
2024-04-15 14:25:53 +00:00
Julien Wajsberg
032bde0787 Bug 1891209 - Add a "typeRoots" entry to tsconfig.json so that TypeScript doesn't use global types r=nchevobbe,devtools-reviewers
The global types are not ready for this and conflict with our usage.
In the future we'll want to merge them though.

Differential Revision: https://phabricator.services.mozilla.com/D207415
2024-04-15 14:09:58 +00:00
Henrik Skupin
3af52ce2e9 Bug 1884401 - [marionette] Use psutil on MacOS as custom process handler drop-in for mozrunner. r=webdriver-reviewers,spohl,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D204697
2024-04-15 14:09:42 +00:00
Updatebot
77f8c66362 Bug 1891301 - Update PDF.js to 2e945113302ec7568071667c0fc74bd2b18c918a r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D207358
2024-04-15 14:08:36 +00:00
Aron Cseh
a56e183ac5 Backed out changeset eb313b2b8b12 (bug 1890724) for causing wpt failures on color-computed-relative-color.html. CLOSED TREE 2024-04-15 19:41:48 +03:00
Iulian Moraru
4f2531fe2c Merge mozilla-central to autoland on a CLOSED TREE 2024-04-15 19:03:01 +03:00
Iulian Moraru
1ad5ea9b1f Merge autoland to mozilla-central. a=merge 2024-04-15 18:58:58 +03:00
Iulian Moraru
85d1b70420 Backed out changeset c9e37a7248ac (bug 1841841) for causing mass build bustages. CLOSED TREE 2024-04-15 17:57:36 +03:00
ffxbld
d28e49770e No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - r=release-managers,dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D207433
2024-04-15 14:01:38 +00:00
Kagami Sascha Rosylight
62512c3636 Bug 1841841 - Add notification tag WPT test and replace old ones r=hsingh
Differential Revision: https://phabricator.services.mozilla.com/D207179
2024-04-15 14:01:15 +00:00
Jonathan Kew
e7f6769ab5 Bug 1891446 - Adjust prefs in test manifests to keep letter-spacing tests green for now. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D207422
2024-04-15 13:54:52 +00:00
Jonathan Kew
7741c08c63 Bug 1891446 - Experimentally enable symmetrical letter-spacing in Nightly builds. r=layout-reviewers,emilio
This implements the behavior proposed in https://github.com/w3c/csswg-drafts/issues/10193.
Pending discussion of the issue there, and as input to that eventual debate, I'd like to
try enabling this behavior on Nightly to see how it goes in the wild.

This results in a bunch of failures on existing reftests, in an entirely predictable way,
because any text with letter-spacing gets offset slightly, and no longer matches with
references that assumed glyphs remain flush-left in their advance. If we do adopt the
symmetrical model across the web platform, corresponding test adjustments will be needed.

(We also get a few new passes, on tests involving letter-spacing + bidi, which is the case
where our legacy behavior is particularly poor, and the symmetrical model resolves the
issues.)

For the time being, with the pref change only on Nightly, I propose to just add pref
overrides in the manifests for the affected tests so that they stay green for both Nightly
and non-Nightly builds.

Differential Revision: https://phabricator.services.mozilla.com/D207421
2024-04-15 13:54:52 +00:00
Iulian Moraru
30d56fd696 Bug 1890746 - apply the rename of a subtest to minsize/maxsize percentages are relative to the unstretched size. r=aryx,sasha CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D207431
2024-04-15 13:28:19 +00:00
Sean Feng
92ef542dba Bug 1881097 - Ensure nsContentUtils::IsPointInSelection works for point in selection that crosses the boundary r=smaug
Ths patch introduces a new class called `CrossShadowBoundaryRange` to
make cross shadow boundary range related stuff can be isolated into a
single class.

It also tweaks a few functions along the call stack, the goal here
is to make sure nsContentUtils::IsPointInSelection can detect points
in ShadowDOM selection.

There's an additional change to `SelectionUtils.sys.mjs` to make sure
the correct context menu items are displayed when the current selection
crosses the boundary.

Differential Revision: https://phabricator.services.mozilla.com/D204080
2024-04-15 13:09:08 +00:00
Erik Nordin
588a6aef11 Bug 1870314 - Add SelectTranslationsPanel try another source language r=translations-reviewers,gregtatum
Adds the functionality to try another source language from the
unsupported language error state in the SelectTranslationsPanel.

Differential Revision: https://phabricator.services.mozilla.com/D207200
2024-04-15 13:04:39 +00:00
Erik Nordin
98490170e8 Bug 1870314 - Add SelectTranslationsPanel unsupported-language content r=translations-reviewers,fluent-reviewers,gregtatum,bolsson
Adds the elements for showing the unsupported language error
in the SelectTranslationsPanel.

Differential Revision: https://phabricator.services.mozilla.com/D207199
2024-04-15 13:04:39 +00:00
Erik Nordin
17a3827652 Bug 1870314 - Remove SelectTranslationsPanel open-to-idle tests r=translations-reviewers,gregtatum
Removes test cases that open the panel to an idle state by
opening to an unsupported language, to instead make room for
the real "unsupported language" tests for the functionality
added in this patch stack.

Differential Revision: https://phabricator.services.mozilla.com/D207098
2024-04-15 13:04:39 +00:00
Erik Nordin
f7fa83bcdd Bug 1870314 - Refactor Translations Panel L10nId Assertions r=translations-reviewers,gregtatum
Refactors L10nId assertions in the Translations Panel
tests to use more shared code.

Differential Revision: https://phabricator.services.mozilla.com/D207292
2024-04-15 13:04:38 +00:00
Erik Nordin
9823e21846 Bug 1890404 - Allow SelectTranslationsPanel Same Language r=translations-reviewers,gregtatum
Allows the SelectTranslationsPanel to have the same
from-language and to-language selected, in which case
the source text will be passed through unaltered as
the same-language translation.

Differential Revision: https://phabricator.services.mozilla.com/D207029
2024-04-15 13:04:38 +00:00
Erik Nordin
f126e9855a Bug 1890404 - Refactor Translations Test Assertions r=translations-reviewers,gregtatum
Refactors some of the SelectTranslationsPanel test
assertions to explicitly wait for the panel to fire
an event upon changing state.

Differential Revision: https://phabricator.services.mozilla.com/D207028
2024-04-15 13:04:37 +00:00
Erik Nordin
8cab3da2ae Bug 1890404 - Add PassthroughTranslator Implementation r=translations-reviewers,gregtatum
Adds the ability for the Translator abstraction to be
a PassthroughTranslator in the case where the source
language and the target language are the same and the
consumer wants the behavior of passing the source text
directly through as a same-language translation.

Differential Revision: https://phabricator.services.mozilla.com/D207027
2024-04-15 13:04:37 +00:00