0
Commit Graph

113603 Commits

Author SHA1 Message Date
ce885fc18a Gardening: Disable BlobStorageBrowserTest.BlobCombinations test
Disable a flaky BlobStorageBrowserTest.BlobCombinations test on Linux.

Bug: 370751354
Change-Id: I1904e3ba03866475c5d93b12e600bc5f6caa4504
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5903319
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Owners-Override: Hayato Ito <hayato@chromium.org>
Auto-Submit: Hayato Ito <hayato@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Hayato Ito <hayato@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362900}
2024-10-02 08:40:05 +00:00
d2144341c5 WebAuthn: Remove CaBLE over AOA support from Desktop
Bug: 348204152
Change-Id: I2c1b766c2064a051d8bfe7813879598e547d59e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5894910
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Commit-Queue: Adem Derinel <derinel@google.com>
Reviewed-by: Victor Vianna <victorvianna@google.com>
Reviewed-by: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362899}
2024-10-02 08:39:46 +00:00
296159965d Prerender: Disable prerendering when V8 optimizer is disabled
This CL disables prerendering when the V8 optimizer is disabled by the
site settings to avoid crashing. See also the explanation in the
buganizer for details of the issue.

Bug: 40076091
Change-Id: Id9a61e5df74f724ac40215f3e86f6a5738058228
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5899672
Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Lingqi Chi <lingqi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362869}
2024-10-02 06:48:11 +00:00
9c0b14e423 Encapsulate ContentUriUtils functions into base::File
Handle opening content-URIs and getting info (stat) within File.

This relieves callers from needing to check FilePath::IsContentUri() and
calling OpenContentUri().

We must store path within File for content-URIs so it is available if
File::GetInfo() is ever called.

This CL should be a nop for existing callers of ContentUriUtils that are
updated to use File directly.

Bug: 40101963
Change-Id: Icecc4d7ac6c5cd20f8e3f706b56c77c99c219e60
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5859577
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362856}
2024-10-02 05:34:41 +00:00
26f86c6b36 [CCT Prefetch] Prepare a holdback group for CCT prefetch triggers
This CL introduces the plumbings to override the holdback status from
embedder prefetch triggers (mostly for CCT prefetch at the moment).

In the normal process of calculating holdback status,
CheckAndSetPrefetchHoldbackStatus::CheckAndSetPrefetchHoldbackStatus()
calls associated container's
PreloadingAttemptImpl::ShouldHoldback(), which sets its attempt's
`holdback_status_` to either kAllowed or kHoldback only if the status
isn't set by then.
This CL introduces
PrefetchContainer::SetOverriddenHoldbackStatusIfNecessary(), intended to
be called before ShouldHoldback() in the process of
CheckAndSetPrefetchHoldbackStatus(), so that we can set the overridden
holdback status value (which is given from embedder and stored in the
container) in advance.

Fixed: 335331246
Bug: 40288091
Change-Id: Id3a3b9a95ad85d609afa2f8e5df7af0c8723f222
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5848508
Reviewed-by: Huanpo Lin <robertlin@chromium.org>
Reviewed-by: Domenic Denicola <domenic@chromium.org>
Commit-Queue: Taiyo Mizuhashi <taiyo@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362833}
2024-10-02 03:58:46 +00:00
c640242894 Implement sandbox for OnDeviceTranslation service on Linux
This CL implements sandboxing for OnDeviceTranslation service on Linux.

We allow `membarrier` syscall and reading
"/sys/devices/system/cpu/possible" inside the sandboxed
OnDeviceTranslation service process.

Note: The sandboxed OnDeviceTranslation service will crash until
https://crbug.com/369491267 is resolved.

Bug: 340778819
Change-Id: I289294f35d55bb5dad6bcc0fba422b4077ae2ae7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5884817
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Matthew Denton <mpdenton@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362827}
2024-10-02 03:40:14 +00:00
9eedb0d48f PMProcessPriorityPolicy: Take into account pending views
The PMProcessPriorityPolicy experiment, which replaces the existing
priority logic for renderers, is causing an increase in navigation
hangs. This is likely due to it having no equivalent for
boost_for_pending_views.

This CL is a quick-and-dirty fix to check if this theory is true,
and I will either revert this change or migrate the
boost_for_pending_views functionality to the performance manager's
voting system.

Change-Id: I89fb89066b795f1df86bd48d5a6d6c1686c29f55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5899470
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Patrick Monette <pmonette@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362821}
2024-10-02 03:07:51 +00:00
3e799ed8bd [AX Mac] BrowserAccessibilityCocoaBrowserTest cleanup
Spin off crrev.com/c/5841311. Reuse ui::FindAXUIElement for
BrowserAccessibilityCocoaBrowserTest.

Bug: 363275809
Change-Id: I922ce93522294e5f94b5b28bac8e4d536d595da5
AX-Relnotes: n/a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5891287
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Alexander Surkov <asurkov@igalia.com>
Reviewed-by: Jayson Adams <shrike@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362808}
2024-10-02 01:52:48 +00:00
0429c95377 Fix trace event name for WebContentsImpl::OnRenderWidgetHostDestroyed.
This fixes a minor copy/paste error from
https://chromium-review.googlesource.com/c/chromium/src/+/2674244.

Bug: 40299241
Change-Id: Iadaa7439f8938b3aa6326b73f1682cbf338c58af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5902291
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Auto-Submit: Charlie Reis <creis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362796}
2024-10-02 01:12:03 +00:00
2b892bc0f2 Use base:🍎:CFDataToSpan and base:🍎:NSDataToSpan
Bug: 40285824
Change-Id: I954d6da096044ba38b498a741e6b1568601219b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5898248
Owners-Override: Mark Mentovai <mark@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362702}
2024-10-01 22:13:55 +00:00
803109d61f Wire up trusted KVv2 scoring signals in seller worklet
Add trusted scoring signals KVv2 support in bidder worklet and tests.

Bug: 337917489
Change-Id: I99d90c810e37cb6cace57b00c6f1eeae966a1403
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5897162
Commit-Queue: Tianyang Xu <xtlsheep@google.com>
Reviewed-by: danakj <danakj@chromium.org>
Reviewed-by: Russ Hamilton <behamilton@google.com>
Cr-Commit-Position: refs/heads/main@{#1362639}
2024-10-01 20:17:26 +00:00
b539c3b14f Fix Headless browser_tests failures with CADisplayLink enabled
Use base::MessagePumpType::NS_RUNLOOP instead of
base::MessagePumpType::DEFAULT for Headless main_thread_task_executor
on the CrGpuMain thread. CADisplayLink will not work without
NS_RUNLOOP.

Regressions are reported in CL5894417: Revert "Enable CADisplayLink in fieldtrial_testing_config." | https://chromium-review.googlesource.com/c/chromium/src/+/5894417

Bug: 345275139
Change-Id: I3821bb336ce9b86b5e41441211a303ac4402662f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5898112
Reviewed-by: ccameron chromium <ccameron@chromium.org>
Commit-Queue: Maggie Chen <magchen@chromium.org>
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362633}
2024-10-01 20:08:37 +00:00
d48f745d7a IDB: Encapsulate WriteToIndexedDBForTesting LevelDB use in BackingStore
Avoid this small test-only direct LevelDB usage in BucketContext.
Minor cleanup.

Bug: 365076682
Test: Automated
Change-Id: Ie2fe402e1866aff2cdd5a0365d8d993b4894524d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5902074
Commit-Queue: Mike Wasserman <msw@chromium.org>
Auto-Submit: Mike Wasserman <msw@chromium.org>
Reviewed-by: Evan Stade <estade@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362610}
2024-10-01 19:37:48 +00:00
3a9318f108 Android: Suppress and/or fix a batch of minor Error Prone violations
Bug: 40661145
Change-Id: Ia8484fb974df88090c55cc3033012f4373c16151
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5898036
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362577}
2024-10-01 18:50:22 +00:00
eafa5f8917 [a11y] Serialize scroll changes with location changes in the fast pipeline.
In the old code, when a node scrolled, it was marked dirty and therefore triggered a full serialization. However, because scroll offsets can change many times per second, the new code leverages the very lightweight location change serialization path as follows:
1. AXObjectCacheImpl is notified of a scrolled node in HandleScrollPositionChanged()
2. InvalidateBoundingBox is called for the scrolled node to mark at as pending checks.
3. In ProcessDeferrerAccessibilityEvents(), SerializeLocationChanges is called which now does additional checks on scroll values and serialize scroll values along with location changes if they changed.

-----------------------

Improvements on running perf-tests of scrolling (location-changes-*):
- RenderAccessibilityImpl::SendPendingAccessibilityEvents
  - From around 70ms to 0ms. This is because full serialization no longer used.
- BrowserAccessibilityManager::OnAccessibilityEvents
  - From 5ms to 0ms
- GetUpdatesAndEventsForSerialization
  - From 6-7ms to 0ms
Total Decrease: 81ms

- BrowserAccessibilityManager::OnLocationChanges
  - Since location updates now include scrolling, this increased from 0ms to 0.5ms
- SerializeLocationChanges
  - From 0ms to 2ms
Total Increase: 2.5ms

Thus, we can say that net improvement/decrease is 96.9% of original time.

NOTE: the perf results are copied from the older CL which was reverted but the logic is the same.


Change-Id: Ida319814aa92136ea52c546cf581d7e09798d86c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5878051
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Ahmed Elwasefi (Ahmad45123) <a.m.elwasefi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362563}
2024-10-01 18:30:17 +00:00
58aa4f08a2 [a11y] Send location changes with full serialization when possible.
This reduces some flaky tests when a race condition happens and a full serialization occurs that needed info from the location updates.
If we're sending a full serialization anyways it actually makes sense to use one serialization than two seperate ones anyways.. Less overhead.

Change-Id: Ie64acd34e6da92344b423dc013ba40497e5d17d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5878322
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Commit-Queue: Ahmed Elwasefi (Ahmad45123) <a.m.elwasefi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362560}
2024-10-01 18:28:17 +00:00
196e5aaee0 Reland "[DNT] Defer the dialogs"
This is a reland of commit 9d7ad8f58d

Failure reason: the tests are not triggering transitions in gesture
navigation mode. See https://crsrc.org/c/chrome/android/java/src/org/chromium/chrome/browser/gesturenav/GestureNavigationUtils.java;drc=f522344e45882da4c7f7cb1b3a0a7bd747d654bb;l=35

The test failed with version R but gesture mode back swipe handling API
are only introduce in U and U+:
https://ci.chromium.org/ui/p/chrome/builders/ci/android-arm-tests/27625/overview.

The fix is diff of PS1 and onward.

Original change's description:
> [DNT] Defer the dialogs
>
> When a transition starts, we suspend the tab-level dialogs. These
> dialogs include alert, permissions, and do not include BeforeUnload.
>
> When an animated navigation commits, we immediately resume the dialogs
> before the the invoke animation finishes playing. If the navigation is
> cancelled or the navigation never starts, we also resume.
>
> Fixed: 362301376, 40896070
> Change-Id: Id9ab1f8a088586c66936d21c029d2d9c8971982e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5823843
> Commit-Queue: William Liu <liuwilliam@chromium.org>
> Reviewed-by: Theresa Sullivan <twellington@chromium.org>
> Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1358810}

Change-Id: If47743ca49d7163e6edac0d0a9c1544fdaccf03e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5895768
Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
Reviewed-by: Theresa Sullivan <twellington@chromium.org>
Commit-Queue: William Liu <liuwilliam@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362558}
2024-10-01 18:27:09 +00:00
79a665e74b [a11y] Changed location changes to a new type ui::AXLocationAndScrollUpdates.
The reason for this change is to allow, in a future CL, to serialize scroll changes alongside location changes. This CL starts by introducing a new type replacing the vector of AXLocationChanges and also includes all the plumbing and renames.

The CL doesn't add any new logic at all just yet. This CL and its children are a replica of the changes here but in a more organized way: https://chromium-review.googlesource.com/c/chromium/src/+/5757305

Change-Id: I2c269cd2b3d0e0b6f0d862eb00d78f2ce8a68ca9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5872830
Commit-Queue: Ahmed Elwasefi (Ahmad45123) <a.m.elwasefi@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Reviewed-by: Erik Chen <erikchen@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Elly FJ <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362554}
2024-10-01 18:24:47 +00:00
0ddd21a9ab Engage kVideoEffects sandbox even when ENABLE_VIDEO_EFFECTS is false
Follow-up CL to address CR feedback, thread at:
https://chromium-review.googlesource.com/c/chromium/src/+/5891169/comment/2954108a_e841622c/

Without this CL, when ENABLE_VIDEO_EFFECTS flag is set to false on
Linux, the pre-sandbox hook would not be run, therefore sandbox would
not get engaged for kVideoEffects sandbox type. This should never
happen since `ENABLE_VIDEO_EFFECTS == (IS_WIN || IS_LINUX || IS_MAC)`,
but to make sure that future changes don't accidentally make it
possible, we should make the pre-sandbox hook run irrespectively of
ENABLE_VIDEO_EFFECTS buildflag.

Bug: 361128453
Change-Id: I6a40c294d8a57458d464a6556057f12092b18f52
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5898146
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Bryant Chandler <bryantchandler@chromium.org>
Commit-Queue: Piotr Bialecki <bialpio@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362553}
2024-10-01 18:24:28 +00:00
57d13fe006 RFHM::CreateSpeculativeRenderFrame checks SiteInstanceGroup
This function checks if a proxy is needed by comparing SiteInstances.
Now that proxies are per SiteInstanceGroup, change the check to compare
SiteInstanceGroups.

Test: No behaviour change
Bug: 40269084
Change-Id: Ib63caa7051ee2f5a58d8ae7ef0de2d9690df1e24
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5652100
Commit-Queue: Sharon Yang <yangsharon@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362547}
2024-10-01 18:20:55 +00:00
ed1684ad3d Remove stale expected_color expectations
Autogenerated CL from running:

//content/test/gpu/unexpected_pass_finder.py --project chrome-unexpected-pass-data --include-internal-builders --remove-stale-expectations --narrow-semi-stale-expectation-scope --num-samples 300 --suite expected_color --jobs 4

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Bug: 40877266
Change-Id: Id6495fc557a521c16d83602c06372c2f8a2f5b72
Fixed: 330132405
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5851604
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: chrome-automated-expectation@chops-service-accounts.iam.gserviceaccount.com <chrome-automated-expectation@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1362528}
2024-10-01 18:09:41 +00:00
4a3c98662e Prefetch: Refactor PrefetchService::CollectPotentiallyMatchingPrefetchContainers() (Part 1)
This CL splits `MatchType::kOther` into `MatchType::kNoVarySearchHint`
and `MatchType::kOther`. Also, it factors out a function
`CollectPotentialMatchPrefetchContainers` for readability.

Bug: 353489607, 343867153
Change-Id: I7075990991084d910a1f62c72e70f1f44965d14d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5826435
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Ken Okada <kenoss@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362523}
2024-10-01 18:07:00 +00:00
85c7672a47 Suppress Error Prone warnings about existing finalize() overrides
These did not seem trivial to remove, so suppressing in order to enable
the Error Prone check that warns against new ones being added.

Bug: 40286193
Change-Id: I5c0804372e758c0f55f03509f0aa47ce2e0723a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5899573
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Peter Wen <wnwen@chromium.org>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362494}
2024-10-01 17:49:40 +00:00
bc4192c68f make FrameSerialize::SerializeFrame async
SerializeFrame now returns serialized resources in a callback.
A subsequent change will take advantage of this and fetch some
resources asynchronously.

This change should be a no-op.

Bug: 363289333
Change-Id: If00c8b47add50e384921c29e2a88a167b5b4a058
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5899715
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Dan H <harringtond@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362478}
2024-10-01 16:12:33 +00:00
c246a9421c Use typed promises in the generated bindings
Bug: 329702363
Change-Id: I584b2aea7755e8992a23e6d4675667e2dfbfc1e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5381805
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Commit-Queue: Nate Chapin <japhet@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362473}
2024-10-01 16:06:15 +00:00
b9b406332b Prefetch: Add PrefetchContainer::ShouldWaitForNoVarySearchHeader()
This is a part of refactoring of
`PrefetchService::CollectPotentiallyMatchingPrefetchContainers()`.

This CL adds a predicate
`PrefetchContainer::ShouldWaitForNoVarySearchHeader()`.

Behavioral change: This CL changes the condition to set
`PrefetchServingMetricsContainer` to `PrefetchContainer`. Before this
CL, it's not set to the one that is `kShouldBlockUntilHeadReceived` and
has matching NVS hint. After this CL, it's set to the one. Note that the
one that is `kShouldBlockUntilHeadReceived` and matches URL exactly, is
also a target to set. So, this CL just remedies the unevenness. Note
also that the next CL [1] shows the naturality of the fix.

[1] https://crrev.com/c/5826435


Bug: 353489607, 343867153
Change-Id: Ia9b0d980ff0b58160d438fc60b3b9bbe842d1fe0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5823815
Reviewed-by: Lingqi Chi <lingqi@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Ken Okada <kenoss@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362457}
2024-10-01 15:43:24 +00:00
5c3d353960 Remove the <selectlist> prototype implementation
The new customizable-<select> path forward is to do this:

  <select style="appearance: base-select">

rather than this:

  <selectlist>

The <selectlist> prototype served us very well, and was the vehicle
with which we developed a lot of the concepts for customizable-
<select>, but it is no longer the direction we're going in standards.

Note: this CL includes a DEPS update to pull in the removal of
"SELECT_LIST" from the patterns.json file. I tried to do that
separately but there are dependencies:
https://chromium-review.googlesource.com/c/chromium/src/+/5868389

Fixed: 335458492,351971330
Change-Id: I372ce18f1bc408f8163b15ca8fa0b065cd7a3ca2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5855076
Reviewed-by: Christoph Schwering <schwering@google.com>
Reviewed-by: Dominic Battré <battre@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Mason Freed <masonf@chromium.org>
Reviewed-by: Sreeja Kamishetty <sreejakshetty@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362436}
2024-10-01 15:20:13 +00:00
0ecbddc934 [DNT] Destroy the animator when the WebContents is destroyed
Java could call TabAndroid::DestroyWebContents() on a visible
WebContents with its NativeView, layer and compositor still attached.

Fixed: 370494381
Change-Id: Ic8b290106a03710bdaa3d42be679896c4f5b4bbe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5900113
Commit-Queue: William Liu <liuwilliam@chromium.org>
Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
Reviewed-by: Mark Pearson <mpearson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362408}
2024-10-01 14:28:10 +00:00
fa10522dff Disable ScrollingEventLatencyTrace that makes ASan unhappy.
The test is just disabled, the issue needs to be investigated
and the test enabled again.

Bug: 370658912
Change-Id: Ib09d8773d2ff4d4e91a919103b6e36a01bd93ad5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5899322
Reviewed-by: Dmitry Vykochko <vykochko@google.com>
Reviewed-by: Vidhan Jain <vidhanj@google.com>
Commit-Queue: Dmitry Vykochko <vykochko@google.com>
Owners-Override: Dmitry Vykochko <vykochko@google.com>
Cr-Commit-Position: refs/heads/main@{#1362311}
2024-10-01 10:37:46 +00:00
cf333fc2ab [MO] Add ADVANCED_MEMORY_SAFETY_CHECKS() to content::NavigationThrottle
Add `ADVANCED_MEMORY_SAFETY_CHECKS()` to:
- `content::NavigationThrottle`.

This enforces additional memory safety checks by overloading operator
new/delete. The feature is behind a feature flag disabled by default.

Since this object can be indirectly deleted by many different code
paths, there's a risk of encountering a Use-after-Free if `this` is
accessed after the underlying object has been destroyed.

Bug: 1505316
Change-Id: Ie1eb54c9f2578893eb8c69261e35bc7a5ee2d3fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5883678
Commit-Queue: Mikihito Matsuura <mikt@google.com>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Auto-Submit: Mikihito Matsuura <mikt@google.com>
Cr-Commit-Position: refs/heads/main@{#1362310}
2024-10-01 10:37:10 +00:00
7bd61fb946 Measure dropped attribution messages
The attribution measurement API relies on making a parallel request to a
measurement server while handling an A tag navigation.
In some instances, especially in WebView, this navigation ends up
opening a separate app on Android, putting the browser or
WebView-embedding app in the background. When this happens, the renderer
might call the data host, but the call will not be delivered.

This CL introduces a histogram that logs the number of calls in Blink
and in the browser, to measure any discrepancy.

Change-Id: I698cc89d9fc0d413dc7e1388e9656de439fde958
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5872860
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Peter Pakkenberg <pbirk@chromium.org>
Reviewed-by: John Delaney <johnidel@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362300}
2024-10-01 10:12:53 +00:00
811a4b2a48 [MO] Add ADVANCED_MEMORY_SAFETY_CHECKS() to content::NavigationHandle
Add `ADVANCED_MEMORY_SAFETY_CHECKS()` to:
- `content::NavigationHandle`.

This enforces additional memory safety checks by overloading operator
new/delete. The feature is behind a feature flag disabled by default.

Since this object can be indirectly deleted by many different code
paths, there's a risk of encountering a Use-after-Free if `this` is
accessed after the underlying object has been destroyed.

Bug: 1505316
Change-Id: I04271144024bf757e48b3892a72e894c8b77062e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5871718
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Mikihito Matsuura <mikt@google.com>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362290}
2024-10-01 10:02:22 +00:00
5272967f63 [MO] Add ADVANCED_MEMORY_SAFETY_CHECKS() to c::NavigationThrottleRunner
Add `ADVANCED_MEMORY_SAFETY_CHECKS()` to:
- `content::NavigationThrottleRunner`.

This enforces additional memory safety checks by overloading operator
new/delete. The feature is behind a feature flag disabled by default.

Since this object can be indirectly deleted by many different code
paths, there's a risk of encountering a Use-after-Free if `this` is
accessed after the underlying object has been destroyed.

Bug: 1505316
Change-Id: I3c43e97b478716f2d0ba9de65e0b7b2bfa565180
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5871626
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Mikihito Matsuura <mikt@google.com>
Cr-Commit-Position: refs/heads/main@{#1362289}
2024-10-01 10:01:43 +00:00
b61e26d32c [SCK] Enable ScreenCaptureKitScreen by default
Please note that this CL is a no-op together with
https://chromium-review.googlesource.com/c/chromium/src/+/5898156

The benefit of the two CLs together is that it makes it possible
to disable ScreenCaptureKitScreen using a Finch configuration.

Bug: 370452601
Change-Id: I33184188dd1576a3b68762c816614a189bf83e8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5898692
Reviewed-by: Markus Handell <handellm@google.com>
Commit-Queue: Johannes Kron <kron@chromium.org>
Reviewed-by: Olga Sharonova <olka@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362252}
2024-10-01 09:01:14 +00:00
b0cdedd041 [SCK] Condition native picker creation on UseSCContentSharingPicker
Bug: 370452601
Change-Id: I36effd5f8c341dfa6fa703d5988e70b38695f73b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5898156
Commit-Queue: Johannes Kron <kron@chromium.org>
Reviewed-by: Tove Petersson <tovep@chromium.org>
Reviewed-by: Palak Agarwal <agpalak@chromium.org>
Reviewed-by: Olga Sharonova <olka@chromium.org>
Reviewed-by: Markus Handell <handellm@google.com>
Cr-Commit-Position: refs/heads/main@{#1362251}
2024-10-01 09:00:16 +00:00
01b7a8b03e Fix Navigation.IsProcessBackgrounded.{Timing} histograms
Navigation.IsProcessBackgrounded.{Timing} has not been recorded if the
navigation is not the boosting target. This CL fixes this bug.

Updates on ShouldBoostRenderProcessForLoading() function are purely
refactoring purposes.

OBSOLETE_HISTOGRAMS=Patterned histogram Navigation.IsProcessBackgrounded.{Timing} is replaced by Navigation.IsProcessBackgrounded2.{Timing}

Bug: 351953350
Change-Id: I44941524869a57ef497e3db39f08c8ba535e4839
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5897737
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Minoru Chikamune <chikamune@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362209}
2024-10-01 06:31:55 +00:00
13ac07c9fe Add histograms to investigate slow commits with RenderDocument
The histograms added in crrev.com/c/5848569 etc shows some regression
in RenderFrameImpl::CommitNavigation.

This CL adds timing histograms and traces to more functions called
during or close to commit, to investigate further. This CL also fixes
some histogram names that were wrong.

Bug: 936696
Change-Id: Ia75ab8e129be1cc2c03015911486228c08e03bdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5898096
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362196}
2024-10-01 05:24:46 +00:00
ce7c10aa1b Disable misc custom eslint rules.
Details:
* Removing components/.eslintrc.js had no effect.
* content/browser/resources/.eslintrc.js was hoisted into toplevel
  .eslintrc.js
* tools/typescript/definitions/.eslintrc.js was unnecessary since
  linting is unnecessary for auto-generated files.

Bug: 369766161, 368085620
Change-Id: I43586614ddc9ed9f6deb12e435c0be4d567f8dbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5896508
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362150}
2024-10-01 02:04:53 +00:00
aa73625437 IDB: Remove some uses of auto, for improved legibility.
The style guide advises against use of `auto` when the type is
non-obvious.

Bug: none
Change-Id: I748622c3420329b6288be291524ea5a8b438ba75
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5901094
Commit-Queue: Evan Stade <estade@chromium.org>
Reviewed-by: Mike Wasserman <msw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362127}
2024-10-01 00:58:18 +00:00
0d42483e7b FLEDGE: Add an UMA metric to monitor use of PA monitoring metrics
NO_IFTTT=Adding it for the first time

Bug: 361262468
Change-Id: I088a5a8af250519bba6c7471ea45b29ea534a34d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5891939
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Orr Bernstein <orrb@google.com>
Commit-Queue: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362092}
2024-09-30 23:50:53 +00:00
54360bec74 [locks] Template the LockManager class on LockGroupIdType
This allows lock requests to be identified by types beyond just storage
bucket IDs. This generalization supports use cases like the shared
storage web locks proposal ([1]), which requires its own lock scope
(i.e. per-origin) without integrating with storage buckets or the quota
database. The term "bucket" has been replaced with the more generic
"lock_group" throughout the code.

[1] https://github.com/WICG/shared-storage/pull/199

Bug: 368816425
Change-Id: Iaabd48c4fc5e64d302b2efdadba5cac6f99ebe3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5879028
Reviewed-by: Ayu Ishii <ayui@chromium.org>
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362083}
2024-09-30 23:17:39 +00:00
cddf7465e8 PA: add metric Ads.InterestGroup.Auction.NumOwnerOriginsCachedForPreconnect
Add a metric to help us gain more insight into how well
FledgeUsePreconnectCache is doing. This will also be useful for a
future study starting processes at the start of auctions, which
will take advantage of the same cache.

Bug: 353480639
Change-Id: Icf1331fddf7d7d6c23c42871d712eca2f6233e8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5897973
Commit-Queue: Abigail Katcoff <abigailkatcoff@chromium.org>
Reviewed-by: Orr Bernstein <orrb@google.com>
Reviewed-by: Russ Hamilton <behamilton@google.com>
Cr-Commit-Position: refs/heads/main@{#1362081}
2024-09-30 23:13:39 +00:00
20a6e680cf Remove /proc/cpuinfo parsing from base::CPU
This was only used on Android for an expired Android.ArmCpuPart metric.
It also required blocking calls to /proc/cpuinfo.

This removes caching of /proc/cpuinfo from the startup path. This code
path also happened before crashpad initialization and unfortunately hit
NOTREACHEDs causing silent crashing in the wild as those turned fatal.

Instead of moving this after crashpad initialization it seems it could
be useful to remove reading /proc/cpuinfo altogether unless we need this
metric (in which case we need to version bump it instead).

Bug: 40580068, 368077955
Change-Id: Ib3c8fbbba11c0a440abf5a6991fb554a0ced56a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5892817
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Auto-Submit: Peter Boström <pbos@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362045}
2024-09-30 22:10:11 +00:00
58553e9ec2 Cleanup obsolete condition in IsNavigationSameSite.
The usage of last_succesful_url in IsNavigationSameSite should not be
necessary anymore as the SiteInstance selection logic should not need
to rely on the last_successful_url at this time. This CL removes the
conditional check and updates a test which captures the desired behavior
of a very specific navigation case.

Change-Id: I63368f91f768f62101d18244b0c806f4cdae7780
Bug: 40248630
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4073945
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Nasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362037}
2024-09-30 21:55:01 +00:00
3815da7c30 PrivateAggregation: Remove stale TODO about flushing writes
Bug: 40226452
Change-Id: Ib4b175eba17898500b7856092a613a85b77323c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5900535
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Alex Turner <alexmt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362023}
2024-09-30 21:29:18 +00:00
cfeb82e607 PA KVv2: Implement compression group parsing.
For the Protected Audience KVv2 trusted signals API, the caching
implementation passes data to the Javascript process for entire
compression groups at a time. This CL adds a method to completely parse
a single compression group to trusted_signals_kvv2_helper.cc.

Unlike other methods, this API does not currently take a list of
interest groups or keys to extract, so that parsed data can be used
to handle requests that are received after the process has already
received and parsed the response body (we may try and improve this
later).

Bug: 333445540
Change-Id: I5b8fc1687ccda382dba63d95cbb057072558eb00
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5883079
Reviewed-by: Russ Hamilton <behamilton@google.com>
Commit-Queue: mmenke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1361976}
2024-09-30 20:01:06 +00:00
a4811ae97e Wire up trusted scoring signals KVv2 worklet call flow
Add trusted scoring signals KVv2 support in
TrustedSignalsRequestManager.

Bug: 337917489
Change-Id: I546ba152e2c2fa08bbb48531fd2bfdf22cef39fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5895872
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: Tianyang Xu <xtlsheep@google.com>
Cr-Commit-Position: refs/heads/main@{#1361964}
2024-09-30 19:33:31 +00:00
6f89e18570 Add @JniType in OverlayPanelContent and ContextualSearchSceneLayer
Bug: 326465150
Change-Id: I5467d10b07386c37700654ba4e95dcfbe5302bba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5891686
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1361942}
2024-09-30 18:58:55 +00:00
9c7e4439d9 Implement sandbox policy for Video Effects Service on Linux
Changes:
- Introduce pre-sandbox hook for VES that preloads required shared
  library.
- Make VES use the unsandboxed zygote.

Originally authored by mfoltz@ at https://crrev.com/c/5880160.

Bug: 361128453
Change-Id: I69c2bb284c72eb1fb7719b39574f155277fdff2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5891169
Reviewed-by: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Matthew Denton <mpdenton@chromium.org>
Reviewed-by: Clark DuVall <cduvall@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Commit-Queue: Piotr Bialecki <bialpio@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1361926}
2024-09-30 18:40:01 +00:00
df974d4d2b Introduce RenderWidgetHostInputEventRouter in InputManager.
This CL introduces RenderWidgetHostInputEventRouter class to Viz which
would be used for Viz hit testing on VizCompositorThread with
InputVizard. This class is RefCounted to allow deleting it when no
CompositorFrameSinks are attached to a particular WebContents on Viz.
Additionally, this CL also introduces VizRenderInputRouterDelegate, an
initial(empty) implementation of RenderInputRouterDelegate interface
which will be fleshed out in subsequent CLs. Added tests to test the
lifecycle of RWHIER and VizRenderInputRouterDelegate on Viz.

Design Doc:
https://docs.google.com/document/d/1tRPUd11fuPcXxb2ep_kGYPahgv0OOlV7DvsGkbom7VA/preview?tab=t.0#heading=h.jfx7uyd6rv1u

Bug: b:364216540
Change-Id: If4cdec4f57796362d6505dc3ee8678a197ed8adb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5828875
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Aman Verma <amanvr@google.com>
Cr-Commit-Position: refs/heads/main@{#1361904}
2024-09-30 18:12:49 +00:00