0
Commit Graph

116659 Commits

Author SHA1 Message Date
17c501232f [FedCM] Add account sign-up/sign-in state to metrics
After fetching accounts from IdP, knowing whether the API is for sign-up
or sign-in users can help us better understand user expectation and how
FedCM performs differently. e.g. CTR for sign-in users should be higher
than sign-up users but it should be quantifiable.

UKM review: https://docs.google.com/document/d/1hP0O1CcDgLk3RB_jlYOQtl9xQj9woFBcBpaJy4mFK9Q/edit?resourcekey=0-u4gaHookWBYkgngUxTiDxA&disco=AAABfDiVXoY

Bug: 397455375
Change-Id: Icf968e429f723b45f409661a2465a5cdc7ae1b1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6311101
Commit-Queue: Yi Gu <yigu@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: Sun Yueru <yrsun@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427257}
2025-03-03 11:00:29 -08:00
a5b49ce36b a11y: Support more roles as Collection and CollectionItem
This allows TalkBack to announce the position and size of current menu
button in Google Doc (e.g. 3 of 9).

Demo: http://go/scrcast/NTExNDI3NTc4OTAxMjk5MnwzM2YwYmRjYi04Mg

Bug: 398276553
Test: Verified locally
Change-Id: I937367cd15c1b4bcb02cc76e67bb330b915a5a0e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309505
Reviewed-by: Mark Schillaci <mschillaci@google.com>
Commit-Queue: Wenyu Zhang <zhangwenyu@google.com>
Cr-Commit-Position: refs/heads/main@{#1427256}
2025-03-03 10:59:57 -08:00
9573fc9ed3 [DC] Add mamir@ to webid owners for DC changes
Change-Id: I08e59b991064a6dd021460a0e94420e2083230e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6316766
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427247}
2025-03-03 10:54:31 -08:00
af253cbe88 [ios blink] Disable the OperationOnCorruptedOpenDatabase tests
Unused function error was being generated on some builds.

Change-Id: I1f0e366d77fa33356d57c24f36dc9b549c22f1bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6317486
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427234}
2025-03-03 10:47:13 -08:00
60804161fb Reland "Always slot select options into ::picker(select)"
Previous revert/reland commits:
commit 4ff6cec717
commit a163034492
commit 287b217280
commit eea02abfad

This patch makes the ::picker(select) popover element sometimes have a
computed style when it is display:none and makes slotting of the
<select> element consistent by only using one slot element.

The first attempt failed because always storing the computed style of
::picker(select) broke top layer animations features like
@starting-style. This patch addresses that by only storing the computed
style of ::picker(select) when the picker has appearance:auto or
appearance:none. appearance:auto/none <select>s need the computed styles
of their <option> elements for rendering.

Fixed: 364348901, 385675798
Change-Id: I651bba880470b91cf5c50c14204622a5c8d68c56
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6257116
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427208}
2025-03-03 10:32:06 -08:00
8260573a2f [HTTP Cache] Remove 2024 HTTP cache experiment code
This also removes the cache-clearing code that clears the cache when
enabling or disabling the
kSplitCacheByCrossSiteMainFrameNavigationBoolean feature... From
thinking more about this, since we found that navigations make up such a
relatively small percentage of what's cached, and since this change
doesn't result in cached entries that are guaranteed to never be used
again, I think the best way to launch this is to just enable it and let
any previous cross-site top-level navigations that don't get used age
off naturally.

Bug: 398784714
Change-Id: Ie1084654b329ad9d8bf3933a920fc27b7ca17124
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6302391
Reviewed-by: Adam Rice <ricea@chromium.org>
Commit-Queue: Andrew Williams <awillia@chromium.org>
Reviewed-by: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427206}
2025-03-03 10:30:55 -08:00
d481d48cca Add Andrew and Gio to BTM owners
Change-Id: I1544a29f437687e03d400d11ba893dd7dd14a2f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309120
Commit-Queue: Andrew Liu <liu@chromium.org>
Reviewed-by: Ryan Tarpine <rtarpine@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427192}
2025-03-03 10:22:39 -08:00
37d1ddcf53 Rename dips namespace to btm
This CL also does some trivial refactoring (i.e. variable and comment
renaming) in already-touched files.

Change-Id: Id6a40ec0121b9808599d9c95e550f47ba8600eb6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6314373
Commit-Queue: Andrew Liu <liu@chromium.org>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Reviewed-by: Ryan Tarpine <rtarpine@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427146}
2025-03-03 08:20:11 -08:00
353a2634a0 LNA: add new PrivateNetworkRequestPolicy for LNA
Add a new PrivateNetworkRequestPolicy that corresponds to blocking local
network access (LNA) requests if there is no permission from the user
for the LNA request.

The permission hasn't been implemented yet, so using the policy (which
is flag guarded) blocks the local network access request.

Note: there is mention of a separate permission related to the Private
Network Access (PNA) spec. This is a completely separate permission,
that will be removed when PNA is removed from the code base.
Unfortunately, we can't remove it for a few milestones, and so in the
meanwhile we are stuck with 2 different permissions in the code base
relating to PNA/LNA.

Change-Id: Iaac8b2ca983c1ee52d26fa178602853dc88327a4
Bug: 395895368
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6292479
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Hubert Chao <hchao@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Chris Thompson <cthomp@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427139}
2025-03-03 08:03:04 -08:00
ca77d58a51 [ios blink] Initialize the local time before entering sandbox
localtime_r fails if its first call is after the sandbox is
initialized. Ensure we call it before entering the sandbox.

Bug: 40254930
Change-Id: Ic2c5abf21d9e3a9593171c2de70c718d075ca779
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6312885
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427130}
2025-03-03 07:48:08 -08:00
55a562ddb9 Update both BTM README files
Modifications include...
- Replacement of references of DIPS to BTM
- Markdown rendering fixes
- Better usage of markdown formatting (e.g. headers)
- Grammar and clarity improvements

Change-Id: I9a9d392bb97131f3b392b6176671b8604f527b45
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6313539
Reviewed-by: Svend Larsen <svend@chromium.org>
Commit-Queue: Andrew Liu <liu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427127}
2025-03-03 07:43:40 -08:00
eb3610c473 [iOS Blink] Rename the data directory prefixed with dips to btm
https://crrev.com/c/6309330 renamed the directory name from
"dips" to "btm", but it missed renaming in
 content_test_bundle_data.filelist. This CL renames it as well.

Bug: 399868999
Change-Id: I059c85aba80abcb90811f2abcd384065eb6d593c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6312237
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427118}
2025-03-03 07:27:36 -08:00
24939cae8a [ios blink] Disable the OperationOnCorruptedOpenDatabase tests
The nested message loop on the IO thread does not unblock on
iOS so disable it for now.

Change-Id: I75b4c7a3896ab20d3fa498276f447c7070042777
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6314273
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427112}
2025-03-03 07:19:22 -08:00
f5a089b7b1 [tracing] Improve chrome data sources
This CL adds
- `kRequiresCallbacksUnderLock=false` to several chrome data sources: while true is the default for backward compatibility, these don't need it.
- Explicit Flush in BackgroundMetadataDataSource, to prevent data
loss; I'm investigating reasons why we often miss this event, this should help rule out data loss related to SMB scraping issue.

Change-Id: I37c386a85341797d69a18bf2452a59581f60cdcb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6305392
Reviewed-by: Mikhail Khokhlov <khokhlov@google.com>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427109}
2025-03-03 07:16:19 -08:00
87e7224272 [tracing] Fix scenarios preset init
Previous CL
https://chromium-review.googlesource.com/c/chromium/src/+/6301771
disabled all scenarios, which also affects field scenarios.
This CL instead disable a scenario only if it's being overwritten
by presets.

Change-Id: I14ed27e4366343ce99efc9b2cc758f89291402e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6310063
Reviewed-by: Mikhail Khokhlov <khokhlov@google.com>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427104}
2025-03-03 07:08:51 -08:00
b9baa9f253 Unify the process check in GetOrCreateProcess() when creating dumps
SiteInstance::HasProcess() is commonly used to decide whether a renderer
process shall be created for a process. The CL replaces the check with
the same HasProcess() function when calling DumpWithOutCrashing() in
GetOrCreateProcess().

Bug: 400202176
Change-Id: Ic8ec0612d97fcb4415468a4870969f164ce351d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6311735
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Jiacheng Guo <gjc@google.com>
Cr-Commit-Position: refs/heads/main@{#1426959}
2025-03-02 22:46:39 -08:00
64ec936b04 Add a metrics to show if NavigationURLLoader is the main path
This is a follow up of:
https://chromium-review.googlesource.com/c/chromium/src/+/6301690/comment/7e850da7_03f20d85/

To understand the ratio of cases that need to send the IPC to the
network service, let me add a metrics.

Bug: 394974691
Change-Id: I66faffea649461bb79cb8b5ddc92c20218125e52
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6304405
Reviewed-by: Minoru Chikamune <chikamune@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Auto-Submit: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426941}
2025-03-02 21:22:32 -08:00
020c6c2792 Implement onPageDOMContentLoadedEventFired & onFirstContentfulPaint
This implements parts of the new Page-related APIs proposed at
https://docs.google.com/document/d/1DDyPvVe7pyJXFpiI3Bk5EPDpoTM550kPt04s2_WTU-w/edit?tab=t.0 that was previously added in crrev.com/c/6290306:

- NavigationClient.onPageDOMContentLoadedEventFired()
- NavigationClient.onFirstContentfulPaint()

Bug: 359826084
Change-Id: I6ff296d105f2c268f2970fbb2b2f23c633b20e3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298907
Reviewed-by: Richard (Torne) Coles <torne@chromium.org>
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426924}
2025-03-02 19:48:28 -08:00
5032fca589 Implement AwNavigationClient.onPageDeleted
This makes AwWebContentsObserver also observe and notify page deletion
by signing up as a PageDeletionListener, registered on all pages that
have been the primary page.

Bug: 359826084
Change-Id: Id5a360aebf33b4c00ea80c3653e210620b405c74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6304280
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Richard (Torne) Coles <torne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426907}
2025-03-02 18:52:10 -08:00
65a5dc4d5e Add Page C++ <> Java bridge and NavigationClient functions
This introduces Page & PageProxy, along with adding the functions
that have Page as a param in the new navigation callbacks proposal:
https://docs.google.com/document/d/1DDyPvVe7pyJXFpiI3Bk5EPDpoTM550kPt04s2_WTU-w/edit?tab=t.0 that exists in the NavigationWebMessageSender
version, more specifically:
- NavigationClient.onPageDeleted()
- NavigationClient.onPageLoadEventFired()
- NavigationClient.onPageDOMContentLoadedEventFired()
- NavigationClient.onFirstContentfulPaint()

There's no real implementation yet for the functions except for
onPageLoadEventFired. This sets up the Page lifetime correctly
and adds the support lib plumbing as well.

Bug: 359826084
Change-Id: Icb5e99bb0d313249a4adc4b7e65dd2b32531ca84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6290306
Reviewed-by: Lijin Shen <lazzzis@google.com>
Reviewed-by: Richard (Torne) Coles <torne@chromium.org>
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426906}
2025-03-02 18:51:55 -08:00
82ba7ef43c Disable GetBoundsRectIframesForColorPicker test on Fuchsia
Bug: 399976873
Change-Id: I75fc80cfda65c910d2cf47f203465816127dd4eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6310144
Owners-Override: Tsuyoshi Horo <horo@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426884}
2025-03-02 16:47:13 -08:00
42c8320787 use base::ToString() where possible //content
Bug: 335797528
Change-Id: I50b5d409bbed663acb5526f714bc5c82ef89da9e
AX-Relnotes: n/a.
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6304962
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426762}
2025-03-01 17:13:12 -08:00
558cbcaf39 compute pressure: Add check to prevent double receiver binding
Only one PressureObserverManager can beconnected to the
PressureServiceBase.
To prevent wrong usage of PressureServiceBase from //Blink, we
added an extra check.

Bug: 398052996
Change-Id: I51662ad9f301015fa39f2c50367ba28e12128042
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309305
Commit-Queue: Arnaud Mandy <arnaud.mandy@intel.com>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426743}
2025-03-01 06:52:18 -08:00
c57d2df361 Make tvOS imply iOS in GN and C++/Objective-C++
Following recent conversations with relevant Chromium on iOS folks, it
was decided that it made more sense for now to reverse one of the
decisions from https://crrev.com/c/6197019 and stop making the tvOS and
iOS builds be completely independent of each other: having them be
completely separate would require too many changes in GN, .grd, .py and
C++/Objective-C++ files in the tree (and even more so if we started
renaming the _ios.{mm,cc,h} files to something more generic).

More succinctly, this means that IS_IOS_TVOS in C++ and
`target_platform` in GN are set if and only if IS_IOS and is_ios are set
too, and iOS files and code paths are built on tvOS by default (rather
than being opt-in).

This CL implements this reversal while also making a few more
adjustments:

* The `is_tvos` GN flag is now called `target_platform` and takes
  "iphoneos" (default), "tvos" or "watchos" as values at the moment. As
  mentioned, it is set only if `is_ios` is also true (i.e. the target
  toolchain is being used). Files used by multiple toolchains may need
  to check for `is_ios` as well before referencing it.
* The GN flag is no longer being set in the main BUILDCONFIG.gn file,
  but rather in one of the files in //build/config/apple. Build system
  files that need to check this variable need to explicitly import this
  file.
* `BUILDFLAG(IS_TVOS)` is now `BUILDFLAG(IS_IOS_TVOS)` in C++.

Bug: 391990604, 391914246, 397889862
Change-Id: I7862cf63074b8ff75b4b58c911212d4652cae113
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6306066
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Raphael Kubo da Costa <kubo@igalia.com>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426638}
2025-02-28 16:51:43 -08:00
42d25919b8 Remove oop-c no-oop-c tag support from GPU integration tests.
Now Chrome has fully shipped oop-c.

TEST=bots

Bug: 391648152
Change-Id: I16a763377fae2ff8dfcb298c91f2066d1458a060
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6313019
Commit-Queue: Zhenyao Mo <zmo@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426608}
2025-02-28 15:46:25 -08:00
fe88547e58 Add accessibility histogram to test how quickly the engine is used
It is unclear when the accessibility engine is being used in a given
session. We know that a large percentage of users end up with the
engine running, but not how long into their session this occurs. An
accurate measure of this value would better guide our existing metrics,
and would give us a reasonable cutoff for candidates of an ablation
experiment. With this CL we add a metric to track accessibility engine
usage time since browser initialization.

AX-Relnotes: N/A
Bug: 395095542
Change-Id: Ife8a788aa86b77bb4330d544d5e473d3545673e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309926
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426603}
2025-02-28 15:23:56 -08:00
84d7f46ee6 [Reduce Accept-Language] add feature flag for HTTP only
This CL introduce a feature flag to control the reduce Accept-Language
for HTTP header only. This helps us to roll-out the feature in different
phases. See more in go/ral-rollout-playbook.

Change-Id: I63ccc8d3c2a3b26a6f30cd9c783297ba8334eaae
Bug: 384488975,399689218
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309660
Commit-Queue: Victor Tan <victortan@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Clark DuVall <cduvall@chromium.org>
Reviewed-by: Andrew Williams <awillia@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426600}
2025-02-28 15:11:29 -08:00
673610447f Protected Audience: Eagerly compile only if we're not waiting on JS
We currently always eagerly compile our JS worklet scripts. However, in
the case that our bid/score tasks are ready by the time the JS
downloads, it's better to lazily compile the JS so that we can run
our tasks earlier.

Bug: 385384684
Change-Id: I0931b84244b856f7500271d5670a3df52127228a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6308953
Commit-Queue: Abigail Katcoff <abigailkatcoff@chromium.org>
Reviewed-by: Russ Hamilton <behamilton@google.com>
Cr-Commit-Position: refs/heads/main@{#1426597}
2025-02-28 15:07:16 -08:00
389716b783 Defer attribution reporting registrations from keepalive requests on prerendered pages
This only impacts keepalive requests when they're handled in the browser
process.

As prerendered pages are not visible to users yet, attribution reporting
registrations on prerendered pages should be deferred until activation.
This is the existing behavior when keepalive requests are handled in the
renderer process.

This cl introduces
`DocumentAssocidatedData::AddPostPrerenderingActivationStep()`, similar
to `blink::Document::AddPostPrerenderingActivationStep()`, to maintain a
queue of callbacks which will be invoked upon prerendered page
activation.

When the page is prerendering, the delegation of background registration
operations to `AttributionDataHostManager` will be added to the callback
queue for post-prerendering activation.

This cl also refactors the logic to invoke
`KeepAliveURLLoaderService::FactoryContext::OnDidCommitPrerenderedPageActivation()`.
When the navigation commits, a callback is added to the queue if the
page is prerendering.

The callbacks will be run for this RenderFrameHostImpl and all of its
descendants as all of them are activated. This fixes a bug that the UKM
source ID for the attribution context was not updated for subframes
within the prerendered page, and therefore no UKM metric was recorded.

Fixed: 395906295
Change-Id: Iede9a726571518a168175ef2c4c4e26957473157
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6293024
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Andrew Paseltiner <apaseltiner@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Nan Lin <linnan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426591}
2025-02-28 14:59:23 -08:00
178bde2f65 [tracing] Fix flow id plumbing through histogram
Following up on
https://chromium-review.googlesource.com/c/chromium/src/+/6233616

I realized that the callback is invoked as a task, so the thread local
event id  isn't plumbed correctly.
The solution I'm proposing here is to grab the event id directly in histogram impl (FindAndRunCallbacks), and forward it to callbacks, without changing the histogram API.
Drive-by: IWYU fixes.

Bug: 40257548
Change-Id: Ibf5ac1c4e96f0eff63b108d1acf3e550579f6ee5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6302393
Reviewed-by: Luc Nguyen <lucnguyen@google.com>
Reviewed-by: Etienne Bergeron <etienneb@chromium.org>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426581}
2025-02-28 14:45:16 -08:00
ad58ed0ff7 [Clear-Site-Data] Switch parsing issues from kError to kWarning
JS metrics are being skewed by parsing errors in the Clear-Site-Data
header. It's reasonable to bump these down to warnings since
they are basically notices that a header was ignored.

Bug: 399862589
Change-Id: I9298899d58e27d29b82275b50d01e240595faf76
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6311715
Auto-Submit: Ari Chivukula <arichiv@chromium.org>
Commit-Queue: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426550}
2025-02-28 13:55:29 -08:00
e1d2b89e75 Revert "[Partitioned Popins] Add RSA Support (1) test main-frame"
This reverts commit 49d8b69b6d.

Reason for revert:
New tests are failing in `linux-chromeos-chrome`.

First failed build:
https://ci.chromium.org/ui/p/chrome/builders/ci/linux-chromeos-chrome/49277/overview

Original change's description:
> [Partitioned Popins] Add RSA Support (1) test main-frame
>
> We should ensure RSA calls to enable access to first-party cookies from
> within a popin work. We will need other tests to verify the UX flow.
>
> This CL is part of a series:
> (1) test main-frame
> (2) test sub-frame
> (3) add WPTs
>
> Explainer: https://explainers-by-googlers.github.io/partitioned-popins/
> I2P: https://groups.google.com/a/chromium.org/g/blink-dev/c/ApU_zUmpQ2g/
>
> Bug: 340606651
> Change-Id: Iff5b209c09207b7d172f45654ea70aeb14f2f54a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5954128
> Commit-Queue: Balazs Engedy <engedy@chromium.org>
> Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
> Reviewed-by: Balazs Engedy <engedy@chromium.org>
> Reviewed-by: Sandor «Alex» Major <sandormajor@chromium.org>
> Auto-Submit: Ari Chivukula <arichiv@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1426421}

Bug: 340606651
Change-Id: I9fa318d11d0203ebd787bc2d545a3866352641d7
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6313909
Auto-Submit: Xiyuan Xia <xiyuan@chromium.org>
Owners-Override: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1426522}
2025-02-28 13:03:09 -08:00
11f9ea0b17 [media] Avoid SIInterface::Flush in texture wrappers
Now that the ClientSharedImage destructor calls DestroySharedImage
which in turn can ensure that the deferred destroy request is flushed,
clients don't need to call SharedImageInterface::Flush explicitly.

This change removes Flush call from StreamTextureWrapperImpl's
video frame release callback on Android and DCOMPTextureWrapperImpl's
video frame release callback on Windows.

Bug: 399387909
Change-Id: I81a5f59c7c0205c7b62510c4789e36866c46d4ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309670
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426514}
2025-02-28 12:30:04 -08:00
a9bdd13cde [BTM] Rename files/directories prefixed with "dips" to "btm".
Fixed: 399868999
Change-Id: Ibef87018728bad5e5deafbf4a76a25b6b08dba8d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309330
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Commit-Queue: Ryan Tarpine <rtarpine@chromium.org>
Reviewed-by: Ben Kelly <wanderview@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426513}
2025-02-28 12:29:34 -08:00
6ecd458052 Quota: Cleanup StorageType in QuotaManagerProxy
This change removes some usages of StorageType in QuotaManagerProxy.
After StorageType::kSyncable deprecation, all other storage types
except kTemporary are deprecated. So we no longer need to specify
StorageType. Further cleanup to remove usage from QuotaManager,
QuotaDatabase, etc. will follow.

Bug: 40211051
Change-Id: Iba5caa5aefcc346cbcf9e7aac3f05ab33ca53d61
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6306646
Reviewed-by: Bo Liu <boliu@chromium.org>
Commit-Queue: Ayu Ishii <ayui@chromium.org>
Reviewed-by: Tsuyoshi Horo <horo@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426466}
2025-02-28 11:05:45 -08:00
49d8b69b6d [Partitioned Popins] Add RSA Support (1) test main-frame
We should ensure RSA calls to enable access to first-party cookies from
within a popin work. We will need other tests to verify the UX flow.

This CL is part of a series:
(1) test main-frame
(2) test sub-frame
(3) add WPTs

Explainer: https://explainers-by-googlers.github.io/partitioned-popins/
I2P: https://groups.google.com/a/chromium.org/g/blink-dev/c/ApU_zUmpQ2g/

Bug: 340606651
Change-Id: Iff5b209c09207b7d172f45654ea70aeb14f2f54a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5954128
Commit-Queue: Balazs Engedy <engedy@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Balazs Engedy <engedy@chromium.org>
Reviewed-by: Sandor «Alex» Major <sandormajor@chromium.org>
Auto-Submit: Ari Chivukula <arichiv@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426421}
2025-02-28 10:07:16 -08:00
15f4107134 [DC] Support CTAP protocol response format in cross-device flow
CTAP protocol [*] defines the response format to be a json object
containing both a protocol and a data field. This CL adds the support
for the proper response and fallbacks to the old format in case some
mobile devices aren't migrated yet.

[*]
https://fidoalliance.org/specs/fido-v2.2-rd-20241003/fido-client-to-authenticator-protocol-v2.2-rd-20241003.html#sctn-feature-descriptions-jsonBasedMessages-response-props

Bug: 336329411
Change-Id: I5400f4182863c3c062d7b822c2b32baa1429ad10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309007
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426393}
2025-02-28 09:26:15 -08:00
07aa8b0689 Move PermissionsPolicy to the network service
The network service needs access to the permissions policy. Previous CLs
moved all the dependencies so it is now safe to move this class.

The following files need to include permissions_policy.h because
otherwise they want to have access into incomplete `PermissionsPolicy`:
* components/permissions/permission_uma_util.cc
* third_party/blink/common/manifest/manifest_util.cc
* third_party/blink/renderer/core/html/client_hints_util.cc
* third_party/blink/renderer/modules/payments/payment_app_service_worker_registration.cc
* third_party/blink/renderer/modules/payments/payment_instruments.cc

Bug: 382291442
Low-Coverage-Reason: LARGE_SCALE_REFACTOR
Change-Id: Ifcf52df3bc5c035e8f6a45df02cf93f304b748c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6310821
Auto-Submit: Sandor «Alex» Major <sandormajor@chromium.org>
Owners-Override: Rick Byers <rbyers@chromium.org>
Commit-Queue: Sandor «Alex» Major <sandormajor@chromium.org>
Reviewed-by: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426391}
2025-02-28 09:24:35 -08:00
ad0a4e7c51 [ios blink] Restrict jitless flag to renderer process
We do not need to send the jitless flag to other processes.

Change-Id: I7f443bbb2188f7bc6a0c2c2d381c2cdc09ddcf93
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309668
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426388}
2025-02-28 09:20:09 -08:00
88a98bd32b Use WebAudioLatencyHint directly in GetOutputBufferSize
As found in https://crrev.com/c/5241060, which was reverted, it's
cleaner to just use this directly instead of taking two arguments.

We can reland this part now, which will make the future fix smaller.

Also, by explicitly checking WebAudioLatencyHint::kLastValue we can make
sure the compiler will give an error if new enum values are added in the
future. Add another NOTREACHED for safety after the switch statement, to
handle non-enumerator values (allowed by C++).

Finally, make hardware_capabilities const.

Change-Id: I4432234bc09093ba11b75a6cc3958ca3c6c00a47
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309667
Reviewed-by: Alvin Ji <alvinji@chromium.org>
Commit-Queue: Michael Wilson <mjwilson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426329}
2025-02-28 08:07:12 -08:00
d42dd92467 Add a signal on Android accessibility when known screen reader is running
AX-Relnotes: N/A
Bug: N/A
Change-Id: I2a0b20caa5d999e454e4435902ebe2b9f90fabc4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309271
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426327}
2025-02-28 08:05:56 -08:00
6050ed9b1e [FedCM] Implement intrusion mitigation via cooldown finch experiment 2/2
This patch adds a new cooldown upon user ignoring the UI.

Bug: 398888508
Change-Id: I7ea6eccc00a03f50f2c838ad0deea76e7dd63471
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299895
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Thomas Nguyen <tungnh@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426317}
2025-02-28 07:56:43 -08:00
b308489135 Remove GPU_FEATURE_TYPE_CANVAS_OOP_RASTERIZATION.
TEST=bots,gpu_unittests

Bug: 391648152
Change-Id: Icac938390d6865e79e6e43a552d9aac5d9155a88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6306645
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Commit-Queue: Zhenyao Mo <zmo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426307}
2025-02-28 07:45:45 -08:00
26301a651c Remove flag FledgeReportingTimeout.
It has been enabled since 2024 June.

Change-Id: If43710cde2750d4bd21feb798b0245f084ac5520
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6310296
Reviewed-by: mmenke <mmenke@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Qingxin Wu <qingxinwu@google.com>
Cr-Commit-Position: refs/heads/main@{#1426304}
2025-02-28 07:42:45 -08:00
9b83bea9b4 Remove line_bounds from ImeCompositionRangeChanged
The line bounds are only used on Android and we no longer use this code
path on Android (as of https://crrev.com/c/5132102). We will need to
make the same change for composition character bounds. The reason these
are being removed separately is mostly for caution.

Bug: 40940885
Change-Id: I6ce8367a140f79600adda193af52a45e2f4d8468
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6207093
Reviewed-by: Robert Flack <flackr@chromium.org>
Commit-Queue: Alex Mitra <alexmitra@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Antonio Sartori <antoniosartori@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426268}
2025-02-28 06:14:04 -08:00
f65433fa2c Remove CursorAnchorInfoMojoPipe flag as it's enabled by default
This CL also makes ime_render_widget_host_ available on all platforms
and adds a method to check whether it has been set. This can be checked
to determine whether to use the CursorAnchorInfoMojoPipe path or not
(for cross platform compatibility).

Bug: 40940885
Change-Id: Iee2e0e2103bf5c9d4857b68aed079e6c60071f18
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6234054
Commit-Queue: Alex Mitra <alexmitra@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Reviewed-by: Jinsuk Kim <jinsukkim@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426260}
2025-02-28 05:55:58 -08:00
64efe73b8d Fixes check failure in PrerenderHostRegistry::CancelHostInternal.
The initiator WebContents is kept in PrerenderAttributes. This is
WeakPtr (not rawptr) as the attributes can outlive the WebContents.

Bug: 397818464
Change-Id: I70789d027106a3e60edc74708ed3705d87e6dbfc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6286546
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Taiyo Mizuhashi <taiyo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426177}
2025-02-28 01:04:35 -08:00
83219a0af9 Remove unnecessary debug strings when building RFHs
The debug string building requires a lot of std::string appends. The CL
removes these debug string for loading performance.

Bug: 399783247, 40065692
Change-Id: Ic8a4965a9546c0023daceb1cb334404f174aa98f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6312375
Commit-Queue: Jiacheng Guo <gjc@google.com>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426172}
2025-02-28 00:44:12 -08:00
f8c951bfa4 Avoid using last committed origin if it is not committed yet
Bug: 396502398
Change-Id: If697a35e6aaf40d2d3c6e9c6f1f4eda28691ec30
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6305225
Reviewed-by: Justin Lulejian <jlulejian@chromium.org>
Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
Commit-Queue: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426152}
2025-02-27 23:09:30 -08:00
ba3bc6fff8 Fix toolbar misalignment when switching tabs
Reset mNodeEditable when mTextInputMode is reset to keep ImeAdapterImpl and FormFieldFocusedSupplier in sync, preventing incorrect toolbar positioning.

Bug:397870171

Change-Id: I57b5e1ed0c20d99c21390c3b01a1f5a125a07fbc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6310435
Reviewed-by: Patrick Noland <pnoland@chromium.org>
Reviewed-by: Jinsuk Kim <jinsukkim@chromium.org>
Commit-Queue: Gang Wu <gangwu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426134}
2025-02-27 21:31:20 -08:00