0
Commit Graph

115584 Commits

Author SHA1 Message Date
ddcf18f3b0 [MPArch Guest View] Support Media Access permissions
- Create Guest variants of the Media Access queries on the
GuestPageHolder::Delegate.
- Pass RenderFrameHost into SupportsStreamType.
- Look up the RenderFrameHost from the request object.

Bug: 40202416
Change-Id: Iac31b817892d7222c041b1a78a3e905de2a2f9b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6157121
Reviewed-by: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Robbie McElrath <rmcelrath@chromium.org>
Reviewed-by: Kevin McNee <mcnee@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405643}
2025-01-13 11:39:36 -08:00
27d71ed5d2 Ignore last_input_event for AttributionSuitableContext comparison
Currently last input event, which is time-sensitive, is considered for
AttributionSuitableContext comparison.

The last input event is needed for navigation-tied OS source
registrations. Due to time-sensitivity, the last input event may vary
for registrations associated with the same navigation, therefore
possibly leading to inequivalent contexts for those registrations.

This cl ignores last_input_event for AttributionSuitableContext
comparison, and the last input event for the first registration of the
navigation will be used for all subsequent registrations for the
corresponding navigation.


Bug: 386277791
Change-Id: I46b1de8d31790edae0d0e97c231c90f35d456068
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6169262
Commit-Queue: Nan Lin <linnan@chromium.org>
Reviewed-by: Andrew Paseltiner <apaseltiner@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405640}
2025-01-13 11:38:11 -08:00
8b4b8bda97 StylusHandwritingWin fix coordinate space bug (Widget DIP vs Physical)
- WebFrameWidgetImpl::OnStartStylusWriting
  Add a missing coordinate-space transformation from DIP widget space
  to Blink Space. This fixes a hit testing issue when using different
  device display scaling.

- TSFTextStore::GetACPFromPoint
  RenderWidgetHostViewAura::GetProximateCharacterIndexFromPoint
  Instead of converting each proximate bounding box from a (cached)
  DIP widget space rect to a physical screen rect, converting the
  single API point from physical screen space to DIP widget space.

Renaming a bunch of stylus handwriting specific function arguments to
reflect which coordinate space they expect for point and rect inputs.

Bug: 355578906
Change-Id: I719bbcfa1057187391abbbb24429d0b118204c01
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6128720
Reviewed-by: Dana Fried <dfried@chromium.org>
Commit-Queue: Adam Ettenberger <Adam.Ettenberger@microsoft.com>
Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405629}
2025-01-13 11:31:22 -08:00
b0e8496bf1 More std::ranges porting: content/
Bug: 386918226
Change-Id: Ia34acc40c6b7832b970f77d010ce705a28359966
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6163827
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405614}
2025-01-13 10:46:03 -08:00
cfcaa59075 Add a flag for multi seller getInterestGroupAdAuctionData().
The feature flag is defaulted to off.

Bug: 389486659

Change-Id: I346caa4e5a639cea69309b5a9848f10754c216ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6169653
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Qingxin Wu <qingxinwu@google.com>
Reviewed-by: Russ Hamilton <behamilton@google.com>
Cr-Commit-Position: refs/heads/main@{#1405580}
2025-01-13 10:08:33 -08:00
7dbd6a91b9 [A11y] Add actions for elements with button or link children
Option and menuitem elements can have button or link children. Surface
these children as implicit actions so that they are more discoverable.

https://chromestatus.com/feature/5161589307867136

https://github.com/w3c/aria/issues/1440
https://github.com/w3c/aria/pull/1805

Bug: 369781734
Change-Id: Ia9b9d78b13dc2f2bd3a48d09b6d6db28c7026f01
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6147720
Commit-Queue: Jocelyn Tran <jocelyntran@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405567}
2025-01-13 09:38:28 -08:00
da38be18f7 No screenshot when doing a back transition in gesture mode
While in gesture mode, there is no way to do a forward transition
animation, then taking a screenshot is wasteful.

This change focuses on cross document navigation.

Bug: 384026829
Change-Id: I0aaee3643e57f208b54cffab9fef0e79fe2ae8bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6165524
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Aldo Culquicondor <acondor@chromium.org>
Auto-Submit: Aldo Culquicondor <acondor@chromium.org>
Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405532}
2025-01-13 08:16:23 -08:00
1470c9737d Remove gpu_compositing from ToClosestSkColorType
The are few callsites that can pass gpu_compositing = false, they are
renambed to ToClosestSkColorTypeDeprecated, so we can work on
eliminating them.

Hardcoding to N32 was needed only for SharedBitmaps.

Bug: 383575394
Change-Id: Idf22d09ece603b54ae2c8a485f21f1390267a354
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6089238
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405518}
2025-01-13 07:49:44 -08:00
43e39ebe03 Remove unused network_diagnostics.mojom-lite.js from CrOS builds.
The component that used these was migrated to JS module Mojo bindings at
crrev.com/c/3902119.

Bug: 40169715
Change-Id: I5615d65567635f83ab79323feb89c46cf8200572
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6168369
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Denis Kuznetsov <antrim@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405469}
2025-01-13 05:30:21 -08:00
e85a0caeb8 Video: Refactor RenderMediaClient to retrieve encoder profile synchronously
On some platforms, the cost of retrieving the VEA supported profile
is too high. For example, on Windows, the Media Foundation VEA's
call to `GetSupportedProfiles()` will approximately take 850
milliseconds and cause the GPU process's memory usage to increase
by 50MB. Due to this excessive overhead, we have no choice but to
switch to an on-demand and synchronous approach to get the VEA
configs.

As a result, when `MediaRecorder.isTypeSupported()` that
checks for a non-builtin codec is called or when a MediaRecorder
instance is created for the first time, there will be a synchronous
stutter of approximately 1 second in extreme cases (e.g. Windows).

Since we don't retrieve the profile immediately after starting the
render process, this CL can at least solve the current problem of
additional GPU process memory usage and cpu cost.

Meanwhile, this CL also changes how `media::IsEncoderSupportedVideoType()`
calls RenderClient delegate. The actual profile acquisition operation
of `RenderClient->IsEncoderSupportedVideoType()` is adjusted to be
executed based on the specific video type. In this way, it can be
ensured that when a codec is a built-in codec (e.g. vp8/vp9, h.264 &
av1 on non-android platform), the result can be directly returned
without having to make a blocking call to the function of
`RenderClient->IsEncoderSupportedVideoType()`.

Bug: 377100050
Bug: 40276507
Change-Id: Ib76e3b2a4c162a39b6d8db026b8f8dc8a55688f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6151780
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Sida Zhu <zhusida@bytedance.com>
Cr-Commit-Position: refs/heads/main@{#1405133}
2025-01-10 20:19:20 -08:00
be8629fa76 Reland: "[WebAuthn] Make challengeUrl work on desktop"
This relands the reverted CL:
https://chromium-review.googlesource.com/c/chromium/src/+/6090253

This fixes an issue where clientDataHash wasn't getting assigned for
empty clientDataJSON values.

Bug: 381219428
Change-Id: Ic8699e6b120664d3bbbac1daed12b9f44f03d2cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164595
Commit-Queue: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405126}
2025-01-10 19:37:16 -08:00
b69c605e00 Add typemap for jstime
Change-Id: I2a5c66ccba76796e55676bb74daa03fad6db9251
Bug: 40615900
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6153938
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Commit-Queue: Fred Shih <ffred@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Jing Wang <jiwan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405101}
2025-01-10 17:02:38 -08:00
ce4e11e181 Skip about:gpu capturing for cast-streaming-shell
Skips retrieving about:gpu information in GPU tests when running with
the Fuchsia cast-streaming-shell browser since the page does not exist
for that browser type.

Bug: 376498163
Change-Id: Ibf6f9775ebe6be16fd9e49fee612577ccabba749
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6165861
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Zijie He <zijiehe@google.com>
Reviewed-by: Zijie He <zijiehe@google.com>
Cr-Commit-Position: refs/heads/main@{#1405081}
2025-01-10 16:16:54 -08:00
9cf22ff045 Android: Dismiss text magnifier on RWHVA change
Due to stale states and early returns, `handleDragStopped()` was not
called after certain cross-process navigations. This meant text
magnifier did not always dismiss when renderer process changed.
See bug for more details.

To fix this, we call `handleDragStopped()` when
`SPC::UpdateRenderProcessConnection()` is called to dismiss the text
magnifier. This ensures dismissal after renderer process changes.

Fixed: 384033062
Change-Id: I158529d40dba86f21b275c7031531797498635dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6093444
Reviewed-by: Jinsuk Kim <jinsukkim@chromium.org>
Commit-Queue: Alesandro Ortiz <alesandro@alesandroortiz.com>
Reviewed-by: Bo Liu <boliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405064}
2025-01-10 15:46:09 -08:00
f7b2d74540 Remove WeakReference from WebContentsObserver.
The GC root issue should be solved by the WebContentsInternal as
well as the WeakReference to the AwContents held by the Webview
created Observer.

Bug: None
Change-Id: Ic1b90d0d61da7f9214e623239304650d65c4fb5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6165785
Reviewed-by: Bo Liu <boliu@chromium.org>
Commit-Queue: Ted Choc <tedchoc@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1405053}
2025-01-10 15:27:04 -08:00
7c3c607322 Make DipsNavigationFlowDetector browsertests runnable in content/
Follow-on CL to crrev.com/c/6121689 moving DIPS code from chrome/ to content/.

Some tests were newly flaky, so I fixed the ones that I could fix quickly, and disabled the ones that I couldn't find an immediate fix for. Note that this is still a net reduction in untested production code from before this CL, as the code is live but the tests aren't being run.

Bug: 40883201
Change-Id: I96531e249bc2d521d638f87ad0d2b0dbe45262d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6138066
Auto-Submit: Svend Larsen <svend@chromium.org>
Reviewed-by: Ryan Tarpine <rtarpine@chromium.org>
Commit-Queue: Svend Larsen <svend@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404993}
2025-01-10 13:45:29 -08:00
72e51c3f73 [A11y] Allow setting of selection offset past end of text
An offset equal to the length of text means its past the end of the
text. For example, it should be possible to select an entire text node
of "abc" by providing offsets of 0 to 3.

Bug: 40822761
Change-Id: I46ff2ce1bbdeb139c624e4e7f94db60baf08f8ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6163880
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404989}
2025-01-10 13:31:34 -08:00
1f581d15ec Android: Fix incorrect @Nullable in SpeechRecognitionImplJni
Bug: 388315307
Change-Id: Ibbfa057b0222965528cad07180f893d8e1719df0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164809
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Marke Hallowell <wry@chromium.org>
Reviewed-by: Marke Hallowell <wry@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404961}
2025-01-10 12:44:35 -08:00
a133621128 PA: Parameterize minimum prepared contexts per bidder thread
This will help reduce wasted contexts until we implement a better
heuristic for the number of contexts.

Bug: 378135925
Change-Id: I0a4e410582117a1063acebfb52b768a565191f1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6163726
Reviewed-by: Russ Hamilton <behamilton@google.com>
Commit-Queue: Abigail Katcoff <abigailkatcoff@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404918}
2025-01-10 11:22:44 -08:00
d4da5ab853 Remove FedCmIdpSigninStatus feature flag and runtime flag
Bug: 381211734
Change-Id: I72b2ecad19a605b16050bb1a98dd7dca1fe3b166
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6111321
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: suresh potti <sureshpotti@microsoft.com>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404849}
2025-01-10 09:27:01 -08:00
12c8b82075 [scheduler] Make GetSilentSinkTaskRunner USER_BLOCKING
Bug: 350779986
Change-Id: I6ddc21b361f77002f586ec0ee5ab4813d1e0eadb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164111
Reviewed-by: Olga Sharonova <olka@chromium.org>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404821}
2025-01-10 08:35:51 -08:00
d339ad8057 [Protected Audiences] Remove ChosenAd() in InterestGroupAuctionReporter.
InterestGroupAuction already has logic to find the chosen ad, and keeps
a raw pointer to it, so can pass that in to the reporter. The main
motivation here is to avoid the algorithms diverging in case we ever
add extra logic here (e.g., maybe another field that matches, or maybe
smarter disambiguation when two ads have the same URL but different
sizes, or somesuch).

Also remove an unnecessary std::move() in WinningBidInfo's constructor,
since it takes its only argument as a const ref.

Bug: None
Change-Id: I87f8a0b97f1ef5453471b3e5588652ddd47e3e06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6159050
Commit-Queue: mmenke <mmenke@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404816}
2025-01-10 08:14:41 -08:00
6797d4e5e1 Rename HistogramBase::Sample to Sample32 in content.
Add size to type name so the size is known without needing to lookup
the typedef.
Continuation of https://chromium-review.googlesource.com/c/chromium/src/+/6163590

Changed occurrences under chromium/content

Bug: 40899968
Change-Id: I18af5c2d8d86656d0afc3a6094ab1aa5cb1b2f4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164150
Reviewed-by: Balazs Engedy <engedy@chromium.org>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Reviewed-by: David Bokan <bokan@chromium.org>
Reviewed-by: Eric Seckler <eseckler@chromium.org>
Reviewed-by: Jinsuk Kim <jinsukkim@chromium.org>
Reviewed-by: Ryan Tarpine <rtarpine@chromium.org>
Reviewed-by: Roman Arora <romanarora@chromium.org>
Reviewed-by: Bo Liu <boliu@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Luc Nguyen <lucnguyen@google.com>
Commit-Queue: Ramon Cano Aparicio <rcanoaparicio@google.com>
Cr-Commit-Position: refs/heads/main@{#1404808}
2025-01-10 08:09:02 -08:00
2a9e23a830 Test that joinAdInterestGroup ignores runtime-disabled fields on IGs.
Adds a test (though this will eventually be removed when this feature is
cleaned up) that shows that a runtime-disabled field (in this case
`selectableBuyerAndSellerReportingIds`) is ignored when joining an
interest group, but the rest of the interest group is joined
successfully.

Change-Id: Iba469868a3814811289b754ef41b8085ecc893d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6163884
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: Orr Bernstein <orrb@google.com>
Cr-Commit-Position: refs/heads/main@{#1404796}
2025-01-10 07:54:41 -08:00
4870f07a41 Fix GPU UPF unittest
Fixes a GPU unexpected pass finder unittest that broke after
crrev.com/c/6160995.

Bug: 382526984
Change-Id: I97702103e93aab1d611124bae0b74c44356dfd02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164613
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404771}
2025-01-10 07:21:59 -08:00
e290cdf118 PA: metrics for whether filtered/unfiltered IGs previously bid
We want to know if past bids are predictive of an interest group's
being filtered. If they are, we can use past bids in heuristics to
determine the number of threads and contexts to create for an owner.

Bug: 388877000
Change-Id: Ie94e2edd3d0776ffc8df8e1e17a3e42f14c39b72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164048
Commit-Queue: Abigail Katcoff <abigailkatcoff@chromium.org>
Reviewed-by: Orr Bernstein <orrb@google.com>
Cr-Commit-Position: refs/heads/main@{#1404770}
2025-01-10 07:20:19 -08:00
3717692b20 Restart browser after context loss pixel tests
Updates the GPU pixel tests which force a context loss to restart the
browser afterwards as a tentative fix for flakes in subsequent tests.

This requires two related changes:

1. A new post-test hook is defined that GpuIntegrationTest calls
  since restarting the browser in the test method breaks the
  expected crash checks that GpuIntegrationTest performs.
2. Adding support for specifying platform-specific expected crashes.
   This allows us to work around Fuchsia-specific weirdness related
   to how expected crashes are checked that has been uncovered due
   to changing when the browser is restarted as part of .

Bug: 382422293
Change-Id: I3a4a7cb75247776f7836bfcadb7a639893a03cf9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6160817
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404724}
2025-01-10 05:10:28 -08:00
c62e3c02cf Add mojo binding for the language detection in workers
The CL adds mojo binding for the language detection in workers. This
will fix the test failures in the corresponding WPT tests.
The CL also updates the WPT test to run in all types of workers.

Bug: 368206184, 388961572
Change-Id: I45f0632bd7df1ed403f88b398494019ea7a35679
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6148112
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Tsuyoshi Horo <horo@chromium.org>
Commit-Queue: Jiacheng Guo <gjc@google.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404644}
2025-01-10 00:37:57 -08:00
89a9a1c6ee Pass DIP scale from Browser to Viz for MotionEvents creation.
We had been using a dummy value of 1 for creating MotionEvent objects in
Viz. In this change we are passing the device scale factor as part of
touch transfer state. This does add an assumption that the device scale
factor remains constant during a touch sequence. Making this assumpiton
seems safe since user would have not normally be able to change it mid
touch sequence, even if they do it results in activity restart and a
touch cancel which terminates touch sequence as stated below.

Doing a simple test where I change device scale factor mid sequence
using this command: `$ adb shell wm density <value>`.
- This results in activity restart and a touch cancel is generated which
  terminates the sequence.
- However one touch move did get the updated device scale factor before
  touch cancel was received.

Bug: 370506271
Change-Id: Ie98ce7096c8edf9fb059374ef5c867dc3fcfb082
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6151755
Commit-Queue: Kartar Singh <kartarsingh@google.com>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404588}
2025-01-09 21:08:16 -08:00
aebd51f7d4 Setup Viz to Renderer mojo connections for input handling.
Browser was already brokering a connection between Viz and Browser for
RenderInputRouterClient interface. In this change we are setting up
following connections between Viz and Renderer using
RenderInputRouterClient interface:
- WidgetInputHandler: To send input events to Renderer.
- InputTargetClient: For asynchronous hit testing.

Following connections are not established between Viz and Renderer:
- FrameWidgetInputHandler: IME, text selection will not be handled by
  Viz.
- WidgetInputHandlerHost: Browser will continue to act as only host.

Bug: 370506271, 382291983
Change-Id: Ia168aa86ca560f259cc0b2b0fd90295df7e96d90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6073148
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Kartar Singh <kartarsingh@google.com>
Reviewed-by: Antonio Sartori <antoniosartori@chromium.org>
Reviewed-by: Stephen Nusko <nuskos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404587}
2025-01-09 21:07:59 -08:00
48e5509aec Revert "[WebAuthn] Make challengeUrl work on desktop"
This reverts commit 53310dd7e0.

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

Sample build with failed test: https://ci.chromium.org/b/8726173297802392465
Affected test(s):
[ninja://content/test:content_unittests/AuthenticatorImplTest.AppIdExcludeExtension](https://ci.chromium.org/ui/test/chromium/ninja:%2F%2Fcontent%2Ftest:content_unittests%2FAuthenticatorImplTest.AppIdExcludeExtension?q=VHash%3Afc06801f1fa91dab)

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

Original change's description:
> [WebAuthn] Make challengeUrl work on desktop
>
> This makes challengeUrl work on desktop Chrome, matching the behaviour
> described in the current explainer:
> https://github.com/w3c/webauthn/wiki/Explainer:-WebAuthn-challengeURL
>
> This is only enabled when the experimental web platform features flag is
> turned on.
>
> Bug: 381219428
> Change-Id: I041dfd3297c34b8a87f620abbedfdea7a4896218
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6090253
> Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
> Commit-Queue: Ken Buchanan <kenrb@chromium.org>
> Reviewed-by: Adam Langley <agl@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1404464}
>

Bug: 381219428
Change-Id: Idbe79fad13f5500a8e51d3749678ede1df5aff86
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6165113
Owners-Override: Adam Rice <ricea@google.com>
Commit-Queue: Adam Rice <ricea@chromium.org>
Reviewed-by: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404569}
2025-01-09 19:39:20 -08:00
175deb773b Remove unused includes in //net/filter/source_stream.h
Bug: 40318405
Change-Id: Ic595d5f375f40d782856a0ed1df1fa57b51b5491
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6156465
Commit-Queue: David Sanders <dsanders11@ucsbalum.com>
Owners-Override: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404558}
2025-01-09 18:47:38 -08:00
9bba7ea899 [shared storage] Bugfix: validate that 'withLock' cannot be reserved name
The initial implementation failed to check for reserved name (i.e.,in
https://w3c.github.io/web-locks/#resource-name: "Resource names
starting with U+002D HYPHEN-MINUS (-) are reserved; requesting these
will cause an exception."). Thus, we check the name at mojom
requester site, as well as during serialization.

Fuchsia-Binary-Size: Size increase is unavoidable.
Bug: 373899210,385341236
Change-Id: I208d03d74a9ce89ef74eb39784d9e6bef0d5ecff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6109617
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Reviewed-by: Giovanni Ortuno Urquidi <ortuno@chromium.org>
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404554}
2025-01-09 18:29:09 -08:00
e3c04b4fcb Revert "Add crash keys to investigate crbug.com/1239311."
This reverts commit f12454e2fc.

Reason for revert: Remove crash keys since we have already received the crash dumps

Original change's description:
> Add crash keys to investigate crbug.com/1239311.
>
> The container_host_ and registration_ are actually configured in this code.  Let me add DwC for allowing us to investigate the issue
> more easily.
>
> Bug: 372879072
> Change-Id: I3c3c904bc98199c4a98797708dbd694173c0f69b
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5973026
> Reviewed-by: Minoru Chikamune <chikamune@chromium.org>
> Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
> Commit-Queue: Yoshisato Yanagisawa <yyanagisawa@google.com>
> Cr-Commit-Position: refs/heads/main@{#1375685}

Bug: 372879072
Change-Id: I6d300ea241d8eb4c792546d12dbedb1bee584a63
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6166260
Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
Reviewed-by: Minoru Chikamune <chikamune@chromium.org>
Commit-Queue: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Reviewed-by: Keita Suzuki <suzukikeita@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404522}
2025-01-09 17:09:55 -08:00
5cb117b1b3 Remove warning in SpeechRecognizerImpl
This CL removes a warning in SpeechRecognizerImpl that is no longer
accurate. If the Web Speech API is used with a MediaStreamTrack,
there will be no input audio parameters. Audio parameters from the
MediaStreamTrack may be set after speech recognition starts.

Change-Id: I620d8252f5b0ec31edea67c57d8e686ca80b3fbd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164609
Commit-Queue: Evan Liu <evliu@google.com>
Reviewed-by: Yiren Wang <yrw@chromium.org>
Auto-Submit: Evan Liu <evliu@google.com>
Commit-Queue: Yiren Wang <yrw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404504}
2025-01-09 16:32:26 -08:00
c664d96797 [Fuchsia] Disable flaky WebGL tests
Disable the rest of the uniform array tests which is flaky on astro due to OOM.

https://ci.chromium.org/ui/p/chrome/builders/ci/fuchsia-webgl-astro/1508/test-results?sortby=&groupby=

Change-Id: Ie481aca1478f34c4abe4cb35f539de00cfc7d845
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6165765
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Zijie He <zijiehe@google.com>
Cr-Commit-Position: refs/heads/main@{#1404500}
2025-01-09 16:27:21 -08:00
f16762139b Update Storage Owners
This change updates storage code areas to new storage owners.

Change-Id: If00d3a225a98a821e8da4ad58f622ce3ecc3f47f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6158152
Reviewed-by: Fergal Daly <fergal@chromium.org>
Commit-Queue: Ayu Ishii <ayui@chromium.org>
Reviewed-by: Austin Sullivan <asully@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404489}
2025-01-09 16:03:43 -08:00
a79cff130a [CodeHealth] Remove AudioBus::channel() usage (part 2)
This CL removes some uses of AudioBus::channel(), in favor of the safer
AudioBus::channel_span().

Bug: 373960632
Change-Id: I8160c49e13b53811fce8183388d248084bfe8df9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6107362
Commit-Queue: Thomas Guilbert <tguilbert@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Auto-Submit: Thomas Guilbert <tguilbert@chromium.org>
Commit-Queue: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Mark Foltz <mfoltz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404470}
2025-01-09 15:25:14 -08:00
53310dd7e0 [WebAuthn] Make challengeUrl work on desktop
This makes challengeUrl work on desktop Chrome, matching the behaviour
described in the current explainer:
https://github.com/w3c/webauthn/wiki/Explainer:-WebAuthn-challengeURL

This is only enabled when the experimental web platform features flag is
turned on.

Bug: 381219428
Change-Id: I041dfd3297c34b8a87f620abbedfdea7a4896218
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6090253
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404464}
2025-01-09 15:16:20 -08:00
d1bbf7751c Deduplicate permissions policy getter
RFHI's permissions_policy() and GetPermissionsPolicy() are doing the
same thing, keeping the latter as that's exposed on the RFH as well.

Bug: 382291442
Change-Id: I846764815f6adb72c6906c59d6d6810e02a5d611
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164805
Reviewed-by: Bo Liu <boliu@chromium.org>
Commit-Queue: Sandor «Alex» Major <sandormajor@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404447}
2025-01-09 14:49:30 -08:00
5604b1c4b0 MPArch GuestView: Implement extensionoptions
This mainly consists of implementing onpreferredsizechanged as the
extensions page doesn't show the options dialog until it receives that
event.

The tests for extensionoptions are parameterized to run with both
the existing inner WebContents implementation and MPArch.

Since the extension settings are loaded in a tab, events from the guest
will be observed by TabHelpers, whereas with the existing
implementation, only observers which explicitly observed guest
WebContents would get the events. StorageAccessAPITabHelper needs to
account for this.

Bug: 40202416
Change-Id: Ic3a4e23ddce53dc3f069cf2e8d18d389a4464fc1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6160064
Reviewed-by: Emilia Paz <emiliapaz@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Shuran Huang <shuuran@chromium.org>
Commit-Queue: Kevin McNee <mcnee@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404437}
2025-01-09 14:30:40 -08:00
195c75dd21 Reland "Apply resampling and filtering to back transition gesture"
This is a reland of commit 11fd863068

Some browser tests failed in larger screens due to precision. This
change adds more precision to the input for expected values and
increases the float tolerance for pixel translation comparisons.

Tested:
- TestLivePageTransformBackNavigation/LTR https://ci.chromium.org/ui/inv/u-acondor-2025-01-08-15-55-00-521b4d6171e75910
- TestScreenshotTransformScrimColorForwardNavigation/LTR https://ci.chromium.org/ui/inv/u-acondor-2025-01-08-16-10-00-8067a3c29582dd58

Original change's description:
> Apply resampling and filtering to back transition gesture
>
> To improve the smoothness of the gesture.
>
> This moves the code to set up translations to OnAnimate, which has a
> reference timestamp for the vsync.
>
> Because this adds lag, it exposed a bug in the cancel spring where the
> direction of the initial velocity was wrong, leading to an excessive
> rebound on the left edge.
>
> Bug: 383163623, 40945408
> Change-Id: I1f0ebab932aa2477bb686e3cc277cdbf8575247b
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6064026
> Reviewed-by: Jonathan Ross <jonross@chromium.org>
> Reviewed-by: William Liu <liuwilliam@chromium.org>
> Commit-Queue: Aldo Culquicondor <acondor@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1403106}

Bug: 383163623, 40945408
Change-Id: I36aeab441355d14f9d8d3f270bd9b3f48582dd20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6157438
Commit-Queue: Aldo Culquicondor <acondor@chromium.org>
Reviewed-by: William Liu <liuwilliam@chromium.org>
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404435}
2025-01-09 14:22:33 -08:00
f61674a72b Exclude Cookie with non-ascii value in Cookie name or value
Guarded by net::feature flag DisallowNonAsciiCookies,
when a cookie's name or value contains a non-ascii value,
this cookie will be excluded. This feature is disabled by
default.

Bug: 40061459
Change-Id: Ib853b730568065a5a73d699a1cac51c548c72a40
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6123584
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Reviewed-by: Steven Bingler <bingler@chromium.org>
Commit-Queue: Amarjot Gill <amarjotgill@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404400}
2025-01-09 13:17:48 -08:00
e5094ec61a Reland "Capture about:gpu as an artifact"
This is a reland of commit fb5f6b4447

Changes from original CL:

* Made the new code a no-op when running in Webview since
  chrome://gpu does not exist in that browser

Original change's description:
> Capture about:gpu as an artifact
>
> Updates the GPU Telemetry-based tests to capture a plaintext version of
> about:gpu / chrome://gpu as a test artifact. The information is only
> retrieved when the browser is restarted with different args, so no
> additional work is done for almost every browser start.
>
> There was no significant difference in runtime with this applied when
> running a subset of the WebGPU CTS suite with ResultDB enabled.
>
> Bug: 376498163
> Change-Id: I574a48463f4824587fc8e5d077ebaba55b467094
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5984535
> Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
> Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
> Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1403696}

Bug: 376498163
Change-Id: I957031a27cfee64df85525da0a38a335173828ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164140
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404389}
2025-01-09 13:05:19 -08:00
85cecc9e8b Move ShouldDeleteInteractionRecords and delete DipsDelegate.
Move ShouldDeleteInteractionRecords() from DipsDelegate to
ContentBrowserClient, renaming it ShouldDipsDeleteInteractionRecords().

Now that there are no methods left on DipsDelegate, delete it (and
ChromeDipsDelegate).

Bug: 387281262
Change-Id: I020b806a1526a46095425a0a637ec273ca50b4f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6142815
Commit-Queue: Ryan Tarpine <rtarpine@chromium.org>
Reviewed-by: Joshua Hood <jdh@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404371}
2025-01-09 12:27:06 -08:00
2dabb2ae88 [A11y] Address crash when a11y action closes document
Fixed: 380216731
Change-Id: Iaa3042dfde79c36dc1b2d31ddb8220726d40c638
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164465
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404363}
2025-01-09 12:05:44 -08:00
36693c57ff webcodecs: Test that VideoEncoder can encode frames from mixed sources
Making sure that we don't accidental new code paths assuming
that if the first frame had certain pixel format or storage type, then
then all consequent frame will have the same pixel format and storage type.

Bug: 40162806
Change-Id: I1696839dff8e954be66e5a75a907d608903af41f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6161556
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Eugene Zemtsov <eugene@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404344}
2025-01-09 11:36:37 -08:00
de4c764fa9 [Protected Audience] Remove unused field from WinningBidInfo.
Information was being copied into WinningBidInfo::ad_components, but it
was not being used.

Bug: None
Change-Id: I27ace0c84473474849a4834f97a2c2ff354538bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6158110
Auto-Submit: mmenke <mmenke@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404341}
2025-01-09 11:33:39 -08:00
0a7e112538 Move logic to convert PRF inputs to salts into the PRFInput class
This CL moves the logic to make PRF salts into the PRFInput class.
This will allow the code to hash PRF values into salts to be
reusable across platforms.

Bug: 355045497
Change-Id: I1ec4668b77ad6622744a221cc891dc1522371b50
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6163871
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Commit-Queue: Alexis Hétu <sugoi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404336}
2025-01-09 11:28:11 -08:00
5d5d7e759b Fix race between deletion and setup in controllers
A fuzzer exposed a very real issue here where the following sequence is
possible:

 - [1]VideoCaptureHost::Start
     - creates entry in `controllers_`
     - async ConnectClient call with good params
 - VideoCaptureHost::DeleteVideoCaptureController
     - deletes entry in `controllers_`
 - [2]VideoCaptureHost::Start
     - creates entry in `controllers_`
     - async ConnectClient call with bad parameters
 - [1]VideoCaptureHost::OnControllersAdded
     - sets entry in `controllers_` to VideoCaptureController object
     - causes controller to hold raw pointer to VideoCaptureHost object
 - [2]VideoCaptureHost::OnControllersAdded
     - deletes entry in `controllers_`
 - VideoCaptureHost::~VideoCaptureHost
     - `controllers_` is now empty, so VideoCaptureController is not
       notified about the destruction of this object
 - VideoCaptureController::StopSession
     - uses the raw pointer to VideoCaptureHost after free

There are a few possible fixes:
 - DeleteVideoCaptureController could be changed so that if the
   controller attempting to be deleted is not yet initialized,
   then it does not erase it. Since that initialization will
   finish at some point, it does not leak in some uninitialized
   state forever. This is what I opted for, but it does mean that
   Start->Delete->Start pattern will essentially drop the second
   start, which might not be ideal.

 - disallow VideoCaptureHost::Start while another is in progress. This
   would be slightly more difficult, as some extra map would have to
   track that progress, and the end result of Start->Delete->Start is to
   just have nothing started at all, which might be more correct
   however.

 - Attach a unique token to each Start sequence, which would then
   stop the initialization process if it's been deleted preemptively.
   This is again a bit more code, and I'm not sure what the right answer
   is for the final state after Start->Delete->Start.

Bug: 385466113
Change-Id: I984beed247dba2298bb45517a34ba284de8902c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6161534
Commit-Queue: Ted (Chromium) Meyer <tmathmeyer@chromium.org>
Reviewed-by: Mark Foltz <mfoltz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1404315}
2025-01-09 11:07:05 -08:00