Commit Graph

939311 Commits

Author SHA1 Message Date
Jeremy Swinarton
192fcb4ace Bug 1908422: Add closedGroups to SessionRestore for tab groups r=dao,sthompson,sessionstore-reviewers,tabbrowser-reviewers
This patch adds a `closedGroups` array to the SessionRestore state, and
adds functionality that ensures closed tab groups end up in the closed
groups array and that closed tab counts respect closed groups.

This does not update `undoClosedTab` or any related methods. Attempting
to restore a closed tab group will result in an error.

Differential Revision: https://phabricator.services.mozilla.com/D226397
2024-11-08 17:29:38 +00:00
Nicolas Chevobbe
fd103eccc3 Bug 1929508 - [devtools] Use --theme-selection-color instead of white in Tree.css. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D228153
2024-11-08 16:57:56 +00:00
Nicolas Chevobbe
f5bcd8d4e9 Bug 1929006 - [devtools] Delete unused devtools/client/accessibility/components/Button.js. r=devtools-reviewers,bomsy.
The components weren't used anywhere. We can also remove selectors and rules that were targetting
classes only used in this file.

Differential Revision: https://phabricator.services.mozilla.com/D227837
2024-11-08 16:57:55 +00:00
Aaditya Dhingra
63d043faa9 Bug 1926814 - Generate a report for ktlintFormat and allow linters to be run from other subdirectories. r=nalexander,android-reviewers,ohall
Generate and read ktlintFormat report instead of ktlint when running `./mach lint -l android-{fenix|focus|ac} --fix}` to accurately report the existing errors/warnings

Also fixes the issue where running AC linter from fenix directory would immediately output ✖ 0 problems (0 errors, 0 warnings, 0 fixed) without running the linter but the linter would run normally if run from root folder or AC subdirectory

Differential Revision: https://phabricator.services.mozilla.com/D226850
2024-11-08 16:49:33 +00:00
Aaditya Dhingra
aadf74fdb1 Bug 1894788 - Update focus-android Home.md and README.md r=android-reviewers,tthibaud,ohall DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D226682
2024-11-08 16:40:00 +00:00
Dan Robertson
351c97d129 Bug 1894122: Improve axis locking for touch scrolls. r=botond
For long touch scrolls that change direction, using the start point of
the touch scroll as the origin to calculate the angle of the scroll is
problematic for determine the axis that should be locked. Maintain a
list of recent touch gesture points and calculate the gesture angle from
the most recent touch gesture points.

Differential Revision: https://phabricator.services.mozilla.com/D219228
2024-11-08 16:36:34 +00:00
Dan Robertson
a76f58a20b Bug 1894122: Add a minimum size parameter to the RecentEventsBuffer. r=botond
Add a minimum size parameter to the RecentEventsBuffer, for the scenario
in which we would prefer data from stale events to that of the fallback.

Differential Revision: https://phabricator.services.mozilla.com/D220141
2024-11-08 16:36:34 +00:00
Alexandru Marc
b01267fd45 Backed out changeset 0308bd7e5911 (bug 1930152) for causing lint failures. CLOSED TREE 2024-11-08 18:57:34 +02:00
Emily McMinn
444ea214af Bug 1904945 - Add Staff Picks callout to moz-central r=omc-reviewers,hanna_a
Differential Revision: https://phabricator.services.mozilla.com/D226345
2024-11-08 16:24:08 +00:00
Nazım Can Altınova
6b56209ae2 Bug 1925510 - Disable the profiler gtests on 32-bit platforms r=aabh,profiler-reviewers
It looks like the profiler gtests became more flaky over time on 32-bit
platforms and they are starting to fail due to OOM errors. We don't really
need to test them, so let's disable them all together.

Differential Revision: https://phabricator.services.mozilla.com/D227803
2024-11-08 16:19:54 +00:00
Ryan VanderMeulen
8b013d79f3 Bug 1914084 - Add @RewriteQueriesToDropUnusedColumns annotation to getCrashesWithoutReportsSince(). r=boek,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228458
2024-11-08 16:15:39 +00:00
Emilio Cobos Álvarez
ecb1eeb9ed Bug 1926862 - Add transparency support to RenderCompositorANGLE. r=gfx-reviewers,nical
Bring back some of the code from
https://hg.mozilla.org/mozilla-central/rev/5942e11048ea to achieve this.

Partial present seems to work fine, so we can just keep it working.

Differential Revision: https://phabricator.services.mozilla.com/D226886
2024-11-08 16:09:40 +00:00
Nicolas Guichard
2059f55557 Bug 1453506 - Forward type-dependent news to template call locations. r=asuth
This provides a way to make type-dependent statements appear as-if they
were located at the template call site.

During the analysis of the template, this first registers all type-dependent
function call locations in ForwardedTemplateLocations (we don't have more
information at this point).

Then when analyzing the template instantiations, we link the actual
type-resolved statements to the template instantiation.

Then when emitting the analysis data for a template call, we also (recursively)
emit all the analysis data for the forwarded items at the call site.

Differential Revision: https://phabricator.services.mozilla.com/D228449
2024-11-08 16:04:31 +00:00
Cathy Lu
1f5f402adc Bug 1921885 - Add geckoview getWebCompatInfo API to GeckoEngineSession r=android-reviewers,rsainani
Differential Revision: https://phabricator.services.mozilla.com/D228396
2024-11-08 15:46:56 +00:00
az
ce9798e691 Bug 1905287 - Assert AudioInfo has at least as many channels as AudioData when a MediaDecodeTask finishes decoding to ensure sufficient buffer size is allocated. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D228383
2024-11-08 15:42:05 +00:00
Arturo Mejia
c3930bcfd7 Bug 1928679 - Remove deprecated delegate for webextension onInstallPrompt r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D227744
2024-11-08 15:35:37 +00:00
Nikki Sharpley
143b4e05ec Bug 1923752 - Remove new tab button from nav bar when vertical tabs enabled r=sidebar-reviewers,sfoster,Gijs,sclements
Differential Revision: https://phabricator.services.mozilla.com/D226960
2024-11-08 15:33:28 +00:00
Nikki Sharpley
ad8cc653ac Bug 1928116 - Update search synced tabs string for sidebar and firefox view r=sidebar-reviewers,fluent-reviewers,flod,fxview-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D228235
2024-11-08 15:28:03 +00:00
André Bargull
1ffad553aa Bug 1928407: Store segmenter string chars in a tagged pointer. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D228164
2024-11-08 15:18:11 +00:00
Malte Jürgens
b996a2a4c8 Bug 1816449 - Part 8: Allow HTTPS-First exceptions to be set through the RemotePermissionService r=pbz,permissions-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D222648
2024-11-08 15:08:33 +00:00
Malte Jürgens
c745eed775 Bug 1919558 - Part 7: Add test for remote permission service r=pbz,permissions-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D225049
2024-11-08 15:08:33 +00:00
Malte Jürgens
1ede5417ab Bug 1919558 - Part 6: Add RemotePermissionService to get default permissions from remote settings r=pbz,permissions-reviewers
This is adding the RemotePermissionService xpcom js service for the purpose of
importing default permission manager entries from remote settings. This service
will be initialized by the permission manager after it has read all its
permissions from disk and is fully initialized.

When being initialized, the service will at first get all the current default
remote permissions from the remote settings client, and add them as default
permissions through the `AddDefaultFromPrincipal` method added in D222650. An
event listener is then also set up to keep the default entries in the permission
manager in sync with remote settings.

All of this is guarded behind a whitelist in the the `ALLOWED_PERMISSION_VALUES`
variable, ensuring only specific permission types and values can be imported
through this mechanism.

Differential Revision: https://phabricator.services.mozilla.com/D222649
2024-11-08 15:08:33 +00:00
Malte Jürgens
a539a5f604 Bug 1919558 - Part 5: Add AddDefaultFromPrincipal method to permission manager r=pbz,permissions-reviewers
This method will later be used to import default permissions from remote
settings through the remote permission manager.

Differential Revision: https://phabricator.services.mozilla.com/D222650
2024-11-08 15:08:32 +00:00
Malte Jürgens
969c596f06 Bug 1919558 - Part 4: Allow default permissions to be modified through AddInternal in permission manager r=pbz,permissions-reviewers
Allow default permissions to be deleted by adding a new permission with same
origin and type, and value UNKNOWN_ACTION, analogous to how normal permissions
currently already get deleted. This can then later be used by the remote
permission service (D222649) to remove default permissions it previously added
if they have been removed in remote settings.

Also add brackets to make clang-tidy happy.

Differential Revision: https://phabricator.services.mozilla.com/D222651
2024-11-08 15:08:32 +00:00
Malte Jürgens
44efb0664f Bug 1919558 - Part 3: Move logic to restore default permission entries into AddInternal in permission manager r=pbz,permissions-reviewers
This makes sure default permissions are always restored when a previously
overriding user permission gets deleted with AddInternal.

Differential Revision: https://phabricator.services.mozilla.com/D222652
2024-11-08 15:08:31 +00:00
Malte Jürgens
10a2d3dc63 Bug 1919558 - Part 2: Separate out logic for importing DefaultEntry into own method in permission manager r=pbz,permissions-reviewers
This will allow us to call the same logic for a single default entry.

Differential Revision: https://phabricator.services.mozilla.com/D222653
2024-11-08 15:08:31 +00:00
Malte Jürgens
f0d879bb84 Bug 1919558 - Part 1: Convert host to origin before storing it as a DefaultEntry in the permission manager r=pbz,permissions-reviewers
This just simplifies the code for later use and should not change any behaviour
beside the following:

If `permissions.manager.defaultsUrl` is customized and contains a legacy `host`
entry, removes the history lookup to determine known origins for a given host.
Instead, only entries for http:// and https:// on the default ports will be
added. This is because with the changes in this patch,
`UpgradeHostToOriginAndInsert` is moved off the main thread, and a history
lookup is only allowed on the main thread.

Also rename `mDefaultEntries` to `mDefaultEntriesForImport` to better reflect
what this array is actually for: Storing the defaults so that they can be
(re-)imported into the permission manager, and not being the primary location
where the default permissions are stored.

Differential Revision: https://phabricator.services.mozilla.com/D222654
2024-11-08 15:08:31 +00:00
RebecaTudor
c4f9a97b03 Bug 1930152 - Add drawable assets for toolbar placement card r=android-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D228450
2024-11-08 14:50:06 +00:00
Yazan Al Macki
7a20125426 Bug 1928088 - Search button search engine icons should default to magnifying glass if no icon is provided for the search engine. r=daleharvey,urlbar-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D228109
2024-11-08 14:49:23 +00:00
Nikki Sharpley
81f02cb3f5 Bug 1916230 - Update tools and extensions buttons selected background to match toolbar buttons r=sidebar-reviewers,desktop-theme-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D228356
2024-11-08 14:39:55 +00:00
Nicolas Chevobbe
017c39770e Bug 1928134 - [devtools] Wait for the right resource in browser_inspector_fission_frame_navigation.js. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D228407
2024-11-08 14:36:29 +00:00
Alexandra Borovova
446391bf9b Bug 1929995 - Update test expectations for css/css-overflow/overflow-clip-margin-002.html. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D228457
2024-11-08 15:30:53 +00:00
Alexandru Marc
b9b24c461f Backed out changeset 134f15f0f56c (bug 1921885) for causing build bustages @ EngineSessionTest.kt . CLOSED TREE 2024-11-08 16:59:01 +02:00
Alexandru Marc
01db59aeab Backed out changeset 9e5edf53c876 (bug 1908422) for causing bc failures @ browser_tab_groups_a11y.js 2024-11-08 16:57:36 +02:00
Alexandru Marc
90569b70f3 Backed out changeset 71fdaa5d52a2 (bug 1929024) for causing codecs failures @ ClearOnShutdown.h 2024-11-08 16:54:25 +02:00
Nicolas Chevobbe
8d06bad117 Bug 1916669 - [devtools] Adapt Accordion headers in High Contrast Mode. r=devtools-reviewers,ochameau.
Adapt the color of the text and arrow, especially on hover.
This covers accordion in the rules view, the layout panel and the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D228149
2024-11-08 14:30:26 +00:00
Nicolas Chevobbe
65c193fd36 Bug 1916669 - [devtools] Don't use --theme-accordion-header-background on elements that are not accordion headers. r=devtools-reviewers,ochameau.
This adds a new variable with the same colors than the variable one that we can use as a drop-in replacement.
For some cases, we could reuse the existing --theme-body-emphasized-background.
The Debugger ResultList style could be simplified as it should always have either 'small' or 'big' class, which
were both setting a background color for selected item, overriding the declaration that was using --theme-accordion-header-background.

Differential Revision: https://phabricator.services.mozilla.com/D228148
2024-11-08 14:30:26 +00:00
Nicolas Chevobbe
7582c38052 Bug 1930099 - [devtools] Use --theme-icon-disabled-color for disabled debugger command bar button instead of tweaking opacity. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D228415
2024-11-08 14:02:56 +00:00
Jeremy Swinarton
976c5c6a23 Bug 1908422: Add closedGroups to SessionRestore for tab groups r=dao,sthompson,sessionstore-reviewers,tabbrowser-reviewers
This patch adds a `closedGroups` array to the SessionRestore state, and
adds functionality that ensures closed tab groups end up in the closed
groups array and that closed tab counts respect closed groups.

This does not update `undoClosedTab` or any related methods. Attempting
to restore a closed tab group will result in an error.

Differential Revision: https://phabricator.services.mozilla.com/D226397
2024-11-08 13:53:19 +00:00
Marco Bonardo
9c1682a8c1 Bug 1925496. r=jfkthame,adw
Differential Revision: https://phabricator.services.mozilla.com/D228315
2024-11-08 13:50:43 +00:00
Cathy Lu
fc1b757b80 Bug 1921885 - Add geckoview getWebCompatInfo API to GeckoEngineSession r=android-reviewers,rsainani
Differential Revision: https://phabricator.services.mozilla.com/D228396
2024-11-08 13:48:03 +00:00
moz-wptsync-bot
1b9c57d5c0 Bug 1929995 - [wpt-sync] Update web-platform-tests to e8a72984ccc7c002dc2fae8de3123467037dd04f, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: e8a72984ccc7c002dc2fae8de3123467037dd04f
wpt-type: landing
2024-11-08 13:49:48 +00:00
Sunggook Chue
2c54a8b219 Bug 1929943 [wpt PR 49033] - AudioWorkletGlobalScope has valid currentFrame during construction., a=testonly
Automatic update from web-platform-tests
AudioWorkletGlobalScope has valid currentFrame during construction.

AudioWorkletGlobalScope is created with 0 currentFrame count,
which make currentTime as 0 even though audio context has
non zero currentTime.

The fix is to pass the currentFrame info during creation through
AudioWorkletObjectProxy.

Bug: 372866278
Change-Id: I717744005588ebc571862367662b0ac2cdb947ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5958713
Commit-Queue: Sunggook Chue <sunggch@microsoft.com>
Reviewed-by: Michael Wilson <mjwilson@chromium.org>
Reviewed-by: Hongchan Choi <hongchan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1379851}

--

wpt-commits: e8a72984ccc7c002dc2fae8de3123467037dd04f
wpt-pr: 49033
2024-11-08 13:49:47 +00:00
Sammy Gill
d9cf877be6 Bug 1929957 [wpt PR 49036] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=282634, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=282634 (#49036)

--

wpt-commits: 1e4fb39d0f8adeef7ae994804f7cf7c1520d1a19
wpt-pr: 49036
2024-11-08 13:49:46 +00:00
Joey Arhar
7b462bdad1 Bug 1929919 [wpt PR 49029] - Fix nested <option> traversals, a=testonly
Automatic update from web-platform-tests
Fix nested <option> traversals

Multiple crashes were occurring due to inconsistencies between option
traversals. OptionList was not considering nested <option>s to be
associated with the select. However, HTMLOptionElement::InsertedInto and
HTMLOptionElement::OwnerSelectElement were considering nested <option>s
to be associated with selects.

This patch makes the traversals consistent by disallowing nested
<option>s from creating associations with <select> elements.

Fixed: 376786406
Change-Id: Ia6e4cc7d028033885b452efe03687638446350ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5990895
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1379764}

--

wpt-commits: db9eb64fa751348cc5dd43a890d0a257a9e1259d
wpt-pr: 49029
2024-11-08 13:49:45 +00:00
luci-bisection@appspot.gserviceaccount.com
0c06b20cbd Bug 1929929 [wpt PR 49031] - Revert "View transition layered capture: determine geometry based on box model", a=testonly
Automatic update from web-platform-tests
Revert "View transition layered capture: determine geometry based on box model"

This reverts commit 9bd85f446ff63c0e14c4c951e6c6d882e66ab2c7.

Reason for revert:
LUCI Bisection has identified this change as the culprit of a build failure. See the analysis: https://ci.chromium.org/ui/p/chromium/bisection/compile-analysis/b/8731914295759642129

Sample failed build: https://ci.chromium.org/b/8731914295759642129

If this is a false positive, please report it at http://b.corp.google.com/createIssue?component=1199205&description=Analysis%3A+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F5953705&format=PLAIN&priority=P3&title=Wrongly+blamed+https%3A%2F%2Fci.chromium.org%2Fui%2Fp%2Fchromium%2Fbisection%2Fcompile-analysis%2Fb%2F8731914295759642129&type=BUG

Original change's description:
> View transition layered capture: determine geometry based on box model
>
> Instead of capturing the border offset, we capture the following
> layout sizes to determine sizing, in addition to the border box:
> - padding box
> - content box
> - The box-sizing property
>
> - In layered capture mode, we use the content box size as the
>   reference box for positioning the snapshot, so that padding take
>   effect.
> - The ::view-transition-image-pair pseudo-element now has
>   position:relative so that it gets affected by padding. It has the
>   content box size.
> - The width/height of the group is determined by the box-sizing
>   property, and it receives the computed padding.
>
> Bug: 375395117
> Change-Id: I18fe5126fbfac58b0619043cc5521ea1f280e457
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5953705
> Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
> Reviewed-by: Philip Rogers <pdr@chromium.org>
> Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
> Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1379706}
>

Bug: 375395117
Change-Id: Ibb2eedd23b1010eb909a97589629905971c473fa
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6001797
Commit-Queue: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
Bot-Commit: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
Owners-Override: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1379736}

--

wpt-commits: 20be6ba55d854f518402c3f9f81c6b487c11b589
wpt-pr: 49031
2024-11-08 13:49:44 +00:00
moz-wptsync-bot
d903879306 Bug 1929899 [wpt PR 49027] - Update wpt metadata, a=testonly
wpt-pr: 49027
wpt-type: metadata
2024-11-08 13:49:43 +00:00
Noam Rosenthal
fefa2653d5 Bug 1929899 [wpt PR 49027] - View transition layered capture: determine geometry based on box model, a=testonly
Automatic update from web-platform-tests
View transition layered capture: determine geometry based on box model

Instead of capturing the border offset, we capture the following
layout sizes to determine sizing, in addition to the border box:
- padding box
- content box
- The box-sizing property

- In layered capture mode, we use the content box size as the
  reference box for positioning the snapshot, so that padding take
  effect.
- The ::view-transition-image-pair pseudo-element now has
  position:relative so that it gets affected by padding. It has the
  content box size.
- The width/height of the group is determined by the box-sizing
  property, and it receives the computed padding.

Bug: 375395117
Change-Id: I18fe5126fbfac58b0619043cc5521ea1f280e457
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5953705
Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1379706}

--

wpt-commits: 07dfce3f1885843deaa9a2ecd978317f7f25e9ab
wpt-pr: 49027
2024-11-08 13:49:43 +00:00
moz-wptsync-bot
aaecfe15b4 Bug 1929805 [wpt PR 49018] - Update wpt metadata, a=testonly
wpt-pr: 49018
wpt-type: metadata
2024-11-08 13:49:42 +00:00
Andreu Botella
28efeac36f Bug 1929805 [wpt PR 49018] - [line-clamp] [text-box-trim] Trim the last line before clamp inside nested blocks, a=testonly
Automatic update from web-platform-tests
[line-clamp] [text-box-trim] Trim the last line before clamp inside nested blocks

When `text-box-trim: trim-end` is used together with `line-clamp`, it
should trim the block-end leading of the last line before clamp, the
one with the ellipsis. This worked when that last line before clamp is
directly contained by the line-clamp container, but it doesn't when it
is inside a nested block element.

The reason for this is that, although for `InlineNode`s,
`ConstraintSpace::ShouldTextBoxTrimNodeEnd` is always set if the
parent `BlockNode` is as well; for `BlockNode`s, that flag is only set
for nodes that are the last in-flow child node of its parent.

This means that, for line-clamp, there is no flag to tell a child
`BlockNode` that it is fine to trim if there's a clamp point inside
it, even if it wouldn't be fine to trim in its last formatted line.
This patch therefore adds a `ShouldTextBoxTrimInsideWhenLineClamp`
field to `ConstraintSpace` to indicate this.

Bug: 40336192, 40254880
Change-Id: I1690ab296dd9686a09f4b9f06a7d86d8998d9446
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5987915
Commit-Queue: Andreu Botella <abotella@igalia.com>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1379720}

--

wpt-commits: 23f125f385523d1e5f9777ceba49b225848b81cc
wpt-pr: 49018
2024-11-08 13:49:41 +00:00