0
Commit Graph

116579 Commits

Author SHA1 Message Date
8714ad0579 Move Permissions Policy features files from Blink to the Network service
The network service is going to need access to the "storage-access"
Permissions Policy. This is the next step of moving some of the
Permissions Policy logic out of Blink to maintain a single
implementation of https://w3c.github.io/webappsec-permissions-policy
across Chromium.

Bug: 382291442
Change-Id: Iae0e1c7e8ca1f5ed34377e6a09caef5fdffdf917
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6284965
Reviewed-by: Rick Byers <rbyers@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Owners-Override: Rick Byers <rbyers@chromium.org>
Commit-Queue: Sandor «Alex» Major <sandormajor@chromium.org>
Reviewed-by: Ari Chivukula <arichiv@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425385}
2025-02-26 13:31:43 -08:00
107cf9d604 [A11y] Orca detection, histogram and crash key
Knowing when a screen reader is running will help ensure that
Auto Disable heuristics do not cause a11y to be turned off for
those users.

Bug: none
Change-Id: Iffc3320d4c3c8cdf083b7dda9cbfbe9bcd305b6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6306503
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: Mark Schillaci <mschillaci@google.com>
Reviewed-by: Tzarial <zork@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425363}
2025-02-26 13:10:11 -08:00
55ce699e88 Fork grpc instead of importing it as a submodule
Note to reviewers: don't review third_party/grpc/sources/, review
the rest and verify that update.sh is a no-op locally.

Rolling gRPC to a more recent revision in https://crrev.com/c/6276328
will require Chromium to apply some patches. This CL forks gRPC to
add the basis for that. For now we still use the same pinned gRPC
revision, so there should be no behavior change.

The fork strategy is the same used for abseil and mediapipe, i.e. the
files are checked into the src/ repository. To roll, update.sh
downloads the new revision and applies the patches in the patches/
directory (there are none in this CL yet). The script avoids checking
unnecessary files into the repo such as tests and non-C++ files.
generate_gn.sh does depend on non-C++ files, so it's updated to depend
on a fresh clone of the repo (at the same revision).

The removed submodule used to live in third_party/grpc/src. Sadly, this
CL cannot apply cleanly if the fork uses the same path, so it lives
in third_party/grpc/source instead. Includes and BUILD.gn are updated
accordingly.

NO_IFTTT=False positives inside the forked repo.

Bug: 40285204
Change-Id: I3bc2ac38cacdbb8b3527984a47f331dabe6f0aa7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6269394
Reviewed-by: Nico Weber <thakis@chromium.org>
Owners-Override: Nico Weber <thakis@chromium.org>
Commit-Queue: Victor Vianna <victorvianna@google.com>
Reviewed-by: Vigen Issahhanjan <vigeni@google.com>
Cr-Commit-Position: refs/heads/main@{#1425352}
2025-02-26 12:51:43 -08:00
23d052556d Move client hints-permissions policy mapping to the network service
Permissions policy code will be moved out of blink. Since it depends on
this mapping that also lived in blink, it needs to be moved first.

Bug: 382291442
Change-Id: I794cfb11f6c9b80ac1e688668b54fc6d5ab3fc9a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6301778
Reviewed-by: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Commit-Queue: Sandor «Alex» Major <sandormajor@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425339}
2025-02-26 12:28:59 -08:00
a85774cd42 Reland "Reland "Reland "Modify B&A key fetcher code to retain the full key ID"""
This is a reland of commit 61333e40ef

Fixes two more places where the logic was incorrect when DCHECKs were disabled.

Original change's description:
> Reland "Reland "Modify B&A key fetcher code to retain the full key ID""
>
> This is a reland of commit 9f44fe6906
>
> Original change's description:
> > Reland "Modify B&A key fetcher code to retain the full key ID"
> >
> > This is a reland of commit 5624b16cc2
> >
> > Original change's description:
> > > Modify B&A key fetcher code to retain the full key ID
> > >
> > > Changes the B&A key fetcher code so that it stores the full key
> > > identifier instead of the first two bytes parsed as a hexadecimal
> > > number. This will be needed to support features like Private Model
> > > Training that include the full key ID as part of the message.
> > >
> > > This CL also does some refactoring in order to support per-adtech
> > > keys/origin scoped keys as described in
> > > https://github.com/WICG/turtledove/issues/1334.
> > >
> > > NO_IFTTT=Just moving the enums.
> > >
> > > Bug: 390160246
> > > Change-Id: I62ded0175dbbc559363685ada995c91ef2d9d2dc
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6265963
> > > Reviewed-by: Orr Bernstein <orrb@google.com>
> > > Commit-Queue: Russ Hamilton <behamilton@google.com>
> > > Auto-Submit: Russ Hamilton <behamilton@google.com>
> > > Cr-Commit-Position: refs/heads/main@{#1423990}
> >
> > Bug: 390160246
> > Change-Id: I968311418baf9b487654f294f065f893a5b217ac
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299239
> > Commit-Queue: Russ Hamilton <behamilton@google.com>
> > Reviewed-by: Orr Bernstein <orrb@google.com>
> > Cr-Commit-Position: refs/heads/main@{#1424577}
>
> Bug: 390160246
> Change-Id: I9f885c1fd667e094dd2cdf17eb21237fda1057e3
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6297865
> Reviewed-by: Orr Bernstein <orrb@google.com>
> Commit-Queue: Russ Hamilton <behamilton@google.com>
> Cr-Commit-Position: refs/heads/main@{#1424802}

Bug: 390160246,399215594
Change-Id: If054e460a0d6991aa5f56bd3d28048fc234b5329
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6305962
Reviewed-by: Orr Bernstein <orrb@google.com>
Commit-Queue: Russ Hamilton <behamilton@google.com>
Cr-Commit-Position: refs/heads/main@{#1425308}
2025-02-26 11:44:57 -08:00
2a39a4e38e [tracing] Fix process type for cloned sessions.
When a session is cloned, OnStop isn't called and thus
process descriptor doesn't have process type if it was set
after the tracing session started.
This brings back logic similar to https://chromium-review.googlesource.com/c/chromium/src/+/6163823
with a few difference:
- process type is updated (whereas only the process name was previously set)
- The descriptor is written by TrackNameRecorder
- process labels are kept and emitted in TrackNameRecorder

Change-Id: I65907390d8da74a34359cd2ff5d054a2d20d1be5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298800
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425303}
2025-02-26 11:42:16 -08:00
bef81e94eb js injection: Remove unused methods
I couldn't find a reference to these methods and we seem to
compile fine without them so removing.

It seems like this was no longer necessary once we removed the
legacy GIN java bridge.

Bug: 40815663
Change-Id: Idb7528fb1bec09ccee5b44fa375280eaee650647
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6304462
Auto-Submit: Rupert Wiser <bewise@chromium.org>
Commit-Queue: Richard (Torne) Coles <torne@chromium.org>
Reviewed-by: Richard (Torne) Coles <torne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425287}
2025-02-26 10:58:43 -08:00
e9b048cafa nested vt: Enable the fuzzy comparator for a test on all platforms.
Some platforms seem to have small noise (< 3 total in all channels).

The intent of the test is still valid in that it verifies first frame
capture to be correct.

Change-Id: Iffdc832ca96a3ab3eadb91aa867367d5af384cf2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299814
Commit-Queue: Vladimir Levin <vmpstr@chromium.org>
Reviewed-by: Zijie He <zijiehe@google.com>
Cr-Commit-Position: refs/heads/main@{#1425279}
2025-02-26 10:50:33 -08:00
d48307bd1f Move Permissions Policy related fenced frame enums to network service
Permissions Policy code is being moved so the network service. It
depends on these constants so moving this first.

Bug: 382291442
Change-Id: Ic9fcb8c1c187f4be497c70da366e43aad140b0da
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6300764
Reviewed-by: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: Sandor «Alex» Major <sandormajor@chromium.org>
Owners-Override: Rick Byers <rbyers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425230}
2025-02-26 09:57:48 -08:00
f9a7bc8fc2 [Protected Audiences] Pass FrameTreeNodeIds to KVv2 cache path.
And key the cache on these IDs. These will be used to add events for
cache-managed network requests to devtools for the frame.

The ID is added unconditionally as part of the FetchKey, which
makes it so different frames can't share KVv2 cache entries, but I hope
to relax that constraint in the future (Could remove it from the key
on fetch complete, or only populate it when multiple frames request
related resources, or both, etc).

Bug: 379843989
Change-Id: I3e18b49341b928057cbfd855fc3dabb5dd0cb706
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6300675
Commit-Queue: mmenke <mmenke@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425192}
2025-02-26 08:59:07 -08:00
a86ea21ef7 [PEPC] Fix CHECK failure in payment_handler_permission_context.cc
This CL addresses a crash in payment_handler_permission_context.cc,
which was reported by lib fuzzer. The crash occurs when the browser
receives a PEPC request for an unsupported type (likely due to auto
generated mojo inputs). To prevent this, the CL adds checks to ensure
that the browser only handles PEPC requests of supported types.

Bug: 398356454
Change-Id: I8d9de086486066876b5d8d07674ec94dd791b51e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298138
Commit-Queue: Yifan Luo <lyf@chromium.org>
Reviewed-by: Thomas Nguyen <tungnh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425158}
2025-02-26 08:02:29 -08:00
45af150748 [tracing] Improve support for local scenario configs
- command line --enable-background-tracing support base64 encoded
- Config file in chrome://traces-internals overwrites existing scenarios

Change-Id: I649db7a173b00d9a96fc5d48e3b5c751a625b9bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6301771
Reviewed-by: Etienne Bergeron <etienneb@chromium.org>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425154}
2025-02-26 07:57:05 -08:00
859690d472 [Blob URL] Update PartitioningBlobURLIssue DevTools Issue, Add kCrossPartitionSameOriginBlobURLFetch UseCounter
Both the PartitioningBlobURLIssue DevTools Issue and
kCrossPartitionSameOriginBlobURLFetch UseCounter should only be
triggered when cross-partition, same origin BlobURLs are fetched.
Previously, both were getting triggered in cross origin fetching as
well.

Bug: 372883697
Change-Id: I90221dde05205d260abfc20acf8903f123ee4c59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6282545
Auto-Submit: Janice Liu <janiceliu@chromium.org>
Commit-Queue: Janice Liu <janiceliu@chromium.org>
Reviewed-by: Sun Yueru <yrsun@chromium.org>
Reviewed-by: Andrew Williams <awillia@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425152}
2025-02-26 07:52:51 -08:00
7becd1f07c [CfM-only] Set the default state of the SharedArrayBuffers flag to enabled
This makes SharedArrayBuffers available to all client regardless of the Cross origin isolation of the site  (unless the feature is manually disabled). This will allow interop clients on Google Meet Hardware that currently rely on the SharedArrayBuffers origin trial to continue using SharedArrayBuffers after that trial expires.

This change acts as an override specifically for Google Meet Hardware (PLATFORM_CFM is specific to Google Meet Hardware). This works around the problem that the SharedArrayBuffers origin trial has expired in the past and may expire in the future.

go/x-on-meet-coop covers this in more detail.

(cherry picked from commit 1d216a4169)

Bug: 303207594
Change-Id: I2524f11939c60b77e00485e3961dacc0ea95970d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5390890
Reviewed-by: Kyle Williams <kdgwill@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Owners-Override: Richard Yeh <rcy@google.com>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Commit-Queue: Felix Plymouth <fplymouth@google.com>
Cr-Original-Commit-Position: refs/branch-heads/6099_225@{#23}
Cr-Original-Branched-From: 6d3cc0dac5057925e096b1329680124b19f35842-refs/branch-heads/6099@{#1762}
Cr-Original-Branched-From: e6ee4500f7d6549a9ac1354f8d056da49ef406be-refs/heads/main@{#1217362}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6287530
Auto-Submit: Richard Yeh <rcy@google.com>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Richard Yeh <rcy@google.com>
Cr-Commit-Position: refs/heads/main@{#1425149}
2025-02-26 07:50:30 -08:00
e8c18ab1c8 Update root node id during node creation in Android accessibility
This CL removes a check that prevents the mCurrentRootId from updating
during the creation of AccessibilityNodeInfo objects.

With the current behavior, in some cases Android-side code is not
receiving a signal that the page was navigated, and so the root ID is
not being updated. When the root ID is stale, then we provide a stale
AccessibilityNodeInfo tree to downstream clients/AT. With this change
we always fetch a fresh root ID during node creation to eliminate the
possibility of a stale tree, at the cost of one extra JNI trip (which
is minimal/trivial). This will keep the mCurrentRootId up-to-date with
the native browser-side AXTree. This can be considered a stopgap
solution to a P1 bug, and caching can be revisited in the future, but
a cache of this value may not be needed in general.

AX-Relnotes: N/A
Bug: 396447488
Change-Id: I134d2313c68c04973aefdaee82bd181ba1a47293
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6302633
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Cr-Commit-Position: refs/heads/main@{#1425146}
2025-02-26 07:46:05 -08:00
d8efb74074 Reland "[tracing] Prevent upload if a trace is still starting"
This is a reland of commit 2e3ae3efbb

Reason for revert: Tests are failing: tracing_scenario.cc
crbug.com/398917303
Fix: disable nested scenarios in DisableNestedScenarios

Original change's description:
> [tracing] Prevent upload if a trace is still starting
>
> This should prevent creating empty traces.
> Drive-by: drop optional `name` field in unittests
>
> Bug: 40257548
> Change-Id: I135cad44263788381e2bdff732ee77835f3ef1d0
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6285689
> Reviewed-by: Etienne Bergeron <etienneb@chromium.org>
> Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1423975}

Bug: 40257548
Change-Id: I8236ebd70e2c9ed96cd744bd3d5ae4c8064213e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299922
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Reviewed-by: Etienne Bergeron <etienneb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425132}
2025-02-26 07:13:30 -08:00
6779fdafb5 Fix client bounce metrics in prerendered pages
`RenderFrameHost::GetPageUkmSourceId()` returns the UKM source ID for
the prerendering activation even after page activation, which is not
associated with any URL.

This cl uses `AttributionHost::GetPageUkmSourceId()` which keeps track
of the UKM source ID of the most recently navigated primary page to
ensure that metrics are properly associated with the primary page URL.

Change-Id: Id710b8829aef7133743ca6dde88d08bbb33b3f4c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6305599
Reviewed-by: Andrew Paseltiner <apaseltiner@chromium.org>
Commit-Queue: Nan Lin <linnan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425128}
2025-02-26 07:06:31 -08:00
1d553d02a3 Fix GPU BMF invalid operation
Fixes a case where decimal.InvalidOperation can be hit in the GPU bad
machine finder if a configuration has a 100% task failure rate.

Fixed: 399153013
Change-Id: I12dcabb7eadf7e56d35b004d42f91ebd09f952a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6300259
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425104}
2025-02-26 06:18:13 -08:00
6d33678193 Update SCContentSharingPicker UMA to v2 to only log the first update
Replace Media.ScreenCaptureKit.SCContentSharingPicker with
Media.ScreenCaptureKit.SCContentSharingPicker2 to only log the first
call to each PickerObserver.

The intention of this histogram is to log a record each time
SCContentSharingPicker is shown and which callback is called on
PickerObserver as a response to that. However, the callbacks may be
called multiple times, so only the first of these calls should be
recorded.

OBSOLETE_HISTOGRAM[Media.ScreenCaptureKit.SCContentSharingPicker]=Replaced by Media.ScreenCaptureKit.SCContentSharingPicker2

Bug: 393153135
Change-Id: I6d31a346a11591c04092b07aeafc79ed8b627d72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298229
Reviewed-by: Johannes Kron <kron@chromium.org>
Commit-Queue: Tove Petersson <tovep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425059}
2025-02-26 03:42:13 -08:00
6883586d4b [InputVizard] Handle pointer downs coming on Browser
With SPLIT_TOUCH deprecated in Android the pointer downs come on Browser
process, even when transferTouchGesture had been called on the first
touch down of the sequence. The subsequent pointer downs after the
transfer come in as an ACTION_DOWN on Browser and there's no blessed way
to tell this apart from an ACTION_DOWN which happened as a result of
the first touch down in the Chrome window.

The behavior changes in this CL:
- Ignore the state transfers coming on browser corresponding to pointer
  downs being transferred. Earlier we were CHECK failing if we had
  lingering state transfer in the queue.
- InputTransferHandler listens to TouchEnd notifications to tell if
  there's an active touch sequence on Viz.
- Add `browser_would_have_handled` flag to touch transfer state, so that
  Viz can return back any sequence that was transferred to Viz due to a
  late arriving TouchEnd notification.

Bug: 395596230
Change-Id: Ie640ff5fa41420228a5fe0d4108ee76d414c0985
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6276541
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Kartar Singh <kartarsingh@google.com>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425046}
2025-02-26 02:54:48 -08:00
ed7125ae5f [accessibility] Smart pointer for AXPlatformNode
Introduce AXPlatformNode::Pointer, a type of std::unique_ptr<> for
owners of platform nodes. The node's `Destroy()` method is called to
initiate destruction. Migrate all owners of platform nodes to using this
new smart pointer rather than raw_ptr<> and manual calls to instances'
`Destroy()` method.

Also fixes memory leaks in various AccessibilityBridgeFuchsiaTest tests,
which were missing calls to `Destroy()`.

AX-Relnotes: n/a.
Bug: none
Change-Id: I3b7ab5e14726c098350a41126ee0bc26ce1aeef7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298029
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Kinuko Yasuda <kinuko@chromium.org>
Auto-Submit: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425038}
2025-02-26 02:35:52 -08:00
2d21daa8bf Move kUseMobileUserAgent to //components/embedder_support
This is part of the process of making user_agent_utils.{cc,h} stop
depending on //content.

The flag has been moved to the main "embedder_support" target, which
does not depend on any other target and has other command-line
switches.

Bug: 389970327
Change-Id: Ib646ada998e8ea2eb23be2b9420d8049aa8f0bac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6242721
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Raphael Kubo da Costa <kubo@igalia.com>
Reviewed-by: Bo Liu <boliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425012}
2025-02-26 00:59:09 -08:00
edcb05836f Reland "Update HTTP request headers, body, and referrer policy on CORS redirect"
This is a reland of commit 17d4c9271b.
Previously the feature was disabled by default and not explicitly
enabled in FencedFrameReportEventBrowserTest, resulting in test failure.
In this change the feature is now enabled by default.

Original change's description: This change updates the request on CORS
redirect by removing the "request-body-headers" and body if the method
has changed, and also updates the referrer policy, following 4.4 HTTP
Redirect Fetch of the spec
(https://fetch.spec.whatwg.org/#http-redirect-fetch). Chrome status
entry: https://chromestatus.com/feature/5129859522887680.

Bug: 40686262
Change-Id: I5bd8c739d95d24c4abe757d58de5257c1611e0f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6291661
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Viktoria Zlatinova <vizlatin@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1425004}
2025-02-26 00:20:49 -08:00
be5b4fb52f Remove stale WebGL 1 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 webgl1_conformance

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Bug: 1490427
Change-Id: Ie6acc038cdfde30d9a6e3c711fbde4e14c9adcdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6303289
Auto-Submit: chrome-automated-expectation@chops-service-accounts.iam.gserviceaccount.com <chrome-automated-expectation@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1424992}
2025-02-25 23:52:35 -08:00
eccd587bf0 Remove stale trace_test 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 trace_test

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Bug: 1201009
Change-Id: I3cc0ca8ee357c94e5d3fbb98dbd9421885b13429
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299544
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: 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>
Cr-Commit-Position: refs/heads/main@{#1424984}
2025-02-25 23:27:04 -08:00
2069076bbc 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

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Bug: 377724727
Change-Id: I7ce0dd197565c4f093d1801c77be1b17e0209df4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6302584
Bot-Commit: 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>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1424983}
2025-02-25 23:26:05 -08:00
e79f87846c Remove stale context_lost 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 context_lost

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Bug: 384605105
Change-Id: I295df68b49cff9d8f41465e6706ca9ea494a1f87
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6302340
Bot-Commit: 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>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1424978}
2025-02-25 23:00:14 -08:00
b5b6a08629 Prompt API: add sampling param checking logic from availability()
This CL checks if the sampling param passed in the `availability()` is
valid using the `ResolveSamplingParamsOption()` method. The sampling
params will be checked from the renderer and the mojom interface is
modified so only the `expected_input_languages` will be passed to the
browser.

Change-Id: I17fb73624a13f2863cd4869bba3071ff1251f8cc
Bug: 390459309
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6277982
Commit-Queue: Mingyu Lei <leimy@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424931}
2025-02-25 19:23:22 -08:00
e5aa2112ed Quota: Cleanup usages of StorageType in QuotaManagerProxy
This change removes some usages of StorageType from
QuotaManagerProxy. All other StorageTypes except
StorageType::kTemporary have been deprecated. Therefore
no longer need to pass this value around. Further cleanup
to remove usages from
QuotaManagerProxy/QuotaManager/QuotaDatabase will follow.

Bug: 40211051
Change-Id: I0aa5413fc6ced600d25ad446ec0281fbd1181074
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6279419
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Reviewed-by: Ming-Ying Chung <mych@chromium.org>
Reviewed-by: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Commit-Queue: Ayu Ishii <ayui@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424923}
2025-02-25 18:43:20 -08:00
24fec1b963 PrefetchReusable: Update body_size_limit
This is a follow up CL of https://crrev.com/c/6286446.

This CL also updates a coefficient in a test as default allocation size
for ChromeOS is 4 times smaller and the test fails on ChromeOS.

Bug: 397882995
Change-Id: I82a8ec1071391d771e097bd88b9eda3345855b2b
Unresolved-Comment-Reason: Leaving non blocker todo
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6285149
Commit-Queue: Ken Okada <kenoss@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Auto-Submit: Ken Okada <kenoss@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424922}
2025-02-25 18:30:27 -08:00
a552da9525 Revert "Reland "Reland "Modify B&A key fetcher code to retain the full key ID"""
This reverts commit 61333e40ef.

Reason for revert: Breaks multiple content_browsertests and content_unittests (see b/399215594) for the failure list.


Original change's description:
> Reland "Reland "Modify B&A key fetcher code to retain the full key ID""
>
> This is a reland of commit 9f44fe6906
>
> Original change's description:
> > Reland "Modify B&A key fetcher code to retain the full key ID"
> >
> > This is a reland of commit 5624b16cc2
> >
> > Original change's description:
> > > Modify B&A key fetcher code to retain the full key ID
> > >
> > > Changes the B&A key fetcher code so that it stores the full key
> > > identifier instead of the first two bytes parsed as a hexadecimal
> > > number. This will be needed to support features like Private Model
> > > Training that include the full key ID as part of the message.
> > >
> > > This CL also does some refactoring in order to support per-adtech
> > > keys/origin scoped keys as described in
> > > https://github.com/WICG/turtledove/issues/1334.
> > >
> > > NO_IFTTT=Just moving the enums.
> > >
> > > Bug: 390160246
> > > Change-Id: I62ded0175dbbc559363685ada995c91ef2d9d2dc
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6265963
> > > Reviewed-by: Orr Bernstein <orrb@google.com>
> > > Commit-Queue: Russ Hamilton <behamilton@google.com>
> > > Auto-Submit: Russ Hamilton <behamilton@google.com>
> > > Cr-Commit-Position: refs/heads/main@{#1423990}
> >
> > Bug: 390160246
> > Change-Id: I968311418baf9b487654f294f065f893a5b217ac
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299239
> > Commit-Queue: Russ Hamilton <behamilton@google.com>
> > Reviewed-by: Orr Bernstein <orrb@google.com>
> > Cr-Commit-Position: refs/heads/main@{#1424577}
>
> Bug: 390160246
> Change-Id: I9f885c1fd667e094dd2cdf17eb21237fda1057e3
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6297865
> Reviewed-by: Orr Bernstein <orrb@google.com>
> Commit-Queue: Russ Hamilton <behamilton@google.com>
> Cr-Commit-Position: refs/heads/main@{#1424802}

Bug: 390160246
Change-Id: Ib3d6644251826caa3e2fca75f5fd50435c1c20d4
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6303281
Auto-Submit: Chan Li <chanli@chromium.org>
Owners-Override: Chan Li <chanli@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1424882}
2025-02-25 16:35:06 -08:00
1e9c4264d2 Remove incorrect dcheck
The DCHECK is being hit in production code paths so it's wrong. Removing
it for now to unblock local developers.

Bug: 40063369
Change-Id: I3a6251064de2725013158b47484bf546310843f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6301721
Reviewed-by: Charlie Reis <creis@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424880}
2025-02-25 16:32:58 -08:00
0592f530bf [A11y] Add UIA metric and crash key
Also make this area of the code easier to read.

Bug: none
Change-Id: I0bceb545802101edd418c5bdfcfdc2eeb432c8af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299076
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: Mark Schillaci <mschillaci@google.com>
Cr-Commit-Position: refs/heads/main@{#1424854}
2025-02-25 15:58:49 -08:00
f7993a1383 Prompt API: Implement an expedient multimodal vision prototype
Bypasses optimization guide to use on-device model service directly.
This short-term implementation expedites a time-sensitive dev trial.

Enables ai.languageModel.prompt({type: 'image', content: image}):
  i = document.getElementsByTagName('img');
  s = await window.ai.languageModel.create();
  r = await s.prompt(['describe this image',
                      {type: 'image', content: i[0]}]);

Pass prompt[Streaming]() input via on_device_model::mojom::Input.
Invokes on_device_model::mojom::Session::Execute directly, with flag.
Adds a basic unit test. TODO: Add basic WPTs.

A more correct approach is in development; see crrev.com/c/6231611.
Builds on crrev.com/c/6086800 and prior+parallel prototyping efforts.
Credit to cduvall@chromium.org for big fixes in crrev.com/c/6253876.

Caution: This VERY ROUGH WIP prototype has quirks and known issues!
- Only a subset of JS ImageBitmapSource input types are supported
- Lacks history integration, token counting, overflow handling, etc.
- Does not support concurrent requests, multiple images, some errors.

Test locally on a device compatible with existing Prompt-API usage:
1) Run a Chrome-branded build, with flags and a test user-data-dir
$ chrome --no-sandbox --user-data-dir=/tmp/foo --enable-features=OptimizationGuideOnDeviceModel:on_device_model_image_input/true --enable-blink-features=AIPromptAPIMultimodalInput
2) Trigger model download and init via `ai.languageModel.create()`
3) Verify chrome://component "Optimization Guide..." is up-to-date
4) Quit & replace Chrome's model with a compatible test model:
  $ mv tmp/foo/OptGuideOnDeviceModel/2024.9.25.2033/weights.bin tmp/foo/OptGuideOnDeviceModel/2024.9.25.2033/weights.bin.OLD
  $ cp ~/Downloads/vision_model.tflite tmp/foo/OptGuideOnDeviceModel/2024.9.25.2033/weights.bin
5) Restart Chrome; try multimodal prompt() inputs per Explainer:
   https://github.com/webmachinelearning/prompt-api

Bug: 385173789, 385173368
Change-Id: Ibc75d6777df6c31eed608bcfd9134458da4ce136
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6246232
Mega-CQ: Mike Wasserman <msw@chromium.org>
Reviewed-by: Steven Holte <holte@chromium.org>
Commit-Queue: Mike Wasserman <msw@chromium.org>
Reviewed-by: Brad Triebwasser <btriebw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424824}
2025-02-25 15:12:18 -08:00
e4754d1115 PA: use special NetworkIsolationPartition for seller signals
Update the IsolationInfo used by the URLLoaderFactoryProxy for seller
worklet trusted signals fetches so that we can use the HTTP cache.

Bug: 387318953
Change-Id: Ib4c590ee7f904a07b3d9b93c95340439c37b4201
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299353
Reviewed-by: mmenke <mmenke@chromium.org>
Commit-Queue: Abigail Katcoff <abigailkatcoff@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424814}
2025-02-25 14:54:42 -08:00
61333e40ef Reland "Reland "Modify B&A key fetcher code to retain the full key ID""
This is a reland of commit 9f44fe6906

Original change's description:
> Reland "Modify B&A key fetcher code to retain the full key ID"
>
> This is a reland of commit 5624b16cc2
>
> Original change's description:
> > Modify B&A key fetcher code to retain the full key ID
> >
> > Changes the B&A key fetcher code so that it stores the full key
> > identifier instead of the first two bytes parsed as a hexadecimal
> > number. This will be needed to support features like Private Model
> > Training that include the full key ID as part of the message.
> >
> > This CL also does some refactoring in order to support per-adtech
> > keys/origin scoped keys as described in
> > https://github.com/WICG/turtledove/issues/1334.
> >
> > NO_IFTTT=Just moving the enums.
> >
> > Bug: 390160246
> > Change-Id: I62ded0175dbbc559363685ada995c91ef2d9d2dc
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6265963
> > Reviewed-by: Orr Bernstein <orrb@google.com>
> > Commit-Queue: Russ Hamilton <behamilton@google.com>
> > Auto-Submit: Russ Hamilton <behamilton@google.com>
> > Cr-Commit-Position: refs/heads/main@{#1423990}
>
> Bug: 390160246
> Change-Id: I968311418baf9b487654f294f065f893a5b217ac
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299239
> Commit-Queue: Russ Hamilton <behamilton@google.com>
> Reviewed-by: Orr Bernstein <orrb@google.com>
> Cr-Commit-Position: refs/heads/main@{#1424577}

Bug: 390160246
Change-Id: I9f885c1fd667e094dd2cdf17eb21237fda1057e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6297865
Reviewed-by: Orr Bernstein <orrb@google.com>
Commit-Queue: Russ Hamilton <behamilton@google.com>
Cr-Commit-Position: refs/heads/main@{#1424802}
2025-02-25 14:22:19 -08:00
6cfa11df39 [tracing] Fix privacy filter toggle in chrome://traces-internals
Change-Id: Idd414a6fa631a01b19f13651f3d3b24253133312
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299602
Reviewed-by: Alex Attar <aattar@google.com>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424761}
2025-02-25 13:23:56 -08:00
7f5a9da0b4 Revert "[tracing] Prevent upload if a trace is still starting"
This reverts commit 2e3ae3efbb.

Reason for revert: Tests are failing: tracing_scenario.cc
b/398917303

Original change's description:
> [tracing] Prevent upload if a trace is still starting
>
> This should prevent creating empty traces.
> Drive-by: drop optional `name` field in unittests
>
> Bug: 40257548
> Change-Id: I135cad44263788381e2bdff732ee77835f3ef1d0
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6285689
> Reviewed-by: Etienne Bergeron <etienneb@chromium.org>
> Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1423975}

Bug: 40257548
Change-Id: I8edc44d6dcce0bfc322fb661e9b81139633b5c08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6297641
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424743}
2025-02-25 13:06:54 -08:00
928898ae1f Fix check-failure in Bidding and Auction Serializer
This failure occurs when a buyer's interest group information
serializes to the exact same size in bytes as the ceiling of
the average space remaining for each remaining buyer.

Fixed: 394896168
Change-Id: I67065d443c3ec9e72ac12661619c0f5adddae46d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299356
Auto-Submit: Russ Hamilton <behamilton@google.com>
Commit-Queue: Russ Hamilton <behamilton@google.com>
Reviewed-by: Caleb Raitto <caraitto@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424700}
2025-02-25 11:48:52 -08:00
ea52859dd0 Fix ColorSpace for MediaFoundation video frames.
Frames generally are not accessible by display compositor besides
sending it as overlay. Previous code was hardcoding color space during
overlay processing.

This would create mismatch between what's in VideoFrame, SharedImage and
in the overlay. To avoid this (and reduce dependency on is_stream_video)
we should just set correct color space when we create things.

Bug: 396584155
Change-Id: I6104a0fd9e37a3b74e2ded9a55b93269fe338b8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6268043
Reviewed-by: Michael Tang <tangm@microsoft.com>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Xiaohan Wang <xhwang@chromium.org>
Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424683}
2025-02-25 11:28:51 -08:00
0e12fb4104 [A11y] IsKnownScreenReaderAppActive() + VoiceOver histogram + crash key
1. Implement IsKnownScreenReaderAppActive() for Mac/Win.
This cannot be based on AXMode::kScreenReader because that
an inaccurate heuristic. We need something that can be updated
based on whether an actual screen reader app is currently running.
2. Add VoiceOver histogram + crash key (these already exist for Windows
screen readers).

IsKnownScreenReaderAppActive() is needed to vet the upcoming
refreshed auto-disable heuristic -- it will report whenever we are about
to auto disable a11y (when we think a11y is no longer used), but a
screen reader is still active, which indicates a flaw in the heuristic
logic.

Auto-disable refresh:
https://docs.google.com/document/d/1DlJn8PPE4towT0W4VknBqB04-SzFAz6yZ0graPc_xS8

To do in follow-ups, implement IsKnownScreenReaderAppActive() for:
* Talkback on Android
* ChromeVox on ChromeOS
* Orca on Linux

Note that these cannot be based on

Bug: none
Change-Id: I3c16dfbe8a5dd1f41b0f854c3a744dc4783b5cc5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299355
Reviewed-by: Jayson Adams <shrike@chromium.org>
Reviewed-by: Mark Schillaci <mschillaci@google.com>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424679}
2025-02-25 11:23:25 -08:00
95f0fbced9 [BTM] Make BtmShortVisitObserver use the opener URL as the previous URL.
If a page opens a new tab, consider that page to be the previous one,
not the empty GURL that new WebContentses start at.

Fixed: 399114479
Change-Id: I782d4cda320b904e794c7ea5b6065de4b86bccb8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6300680
Reviewed-by: Svend Larsen <svend@chromium.org>
Commit-Queue: Ryan Tarpine <rtarpine@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424668}
2025-02-25 11:05:04 -08:00
b6201cc724 Revert "Reland "Modify B&A key fetcher code to retain the full key ID""
This reverts commit 9f44fe6906.

Reason for revert: Suspect to break multiple content_browsertests, e.g. https://ci.chromium.org/ui/p/chromium/builders/ci/mac13-arm64-rel-tests/44103/overview

Original change's description:
> Reland "Modify B&A key fetcher code to retain the full key ID"
>
> This is a reland of commit 5624b16cc2
>
> Original change's description:
> > Modify B&A key fetcher code to retain the full key ID
> >
> > Changes the B&A key fetcher code so that it stores the full key
> > identifier instead of the first two bytes parsed as a hexadecimal
> > number. This will be needed to support features like Private Model
> > Training that include the full key ID as part of the message.
> >
> > This CL also does some refactoring in order to support per-adtech
> > keys/origin scoped keys as described in
> > https://github.com/WICG/turtledove/issues/1334.
> >
> > NO_IFTTT=Just moving the enums.
> >
> > Bug: 390160246
> > Change-Id: I62ded0175dbbc559363685ada995c91ef2d9d2dc
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6265963
> > Reviewed-by: Orr Bernstein <orrb@google.com>
> > Commit-Queue: Russ Hamilton <behamilton@google.com>
> > Auto-Submit: Russ Hamilton <behamilton@google.com>
> > Cr-Commit-Position: refs/heads/main@{#1423990}
>
> Bug: 390160246
> Change-Id: I968311418baf9b487654f294f065f893a5b217ac
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299239
> Commit-Queue: Russ Hamilton <behamilton@google.com>
> Reviewed-by: Orr Bernstein <orrb@google.com>
> Cr-Commit-Position: refs/heads/main@{#1424577}

Bug: 390160246
Change-Id: I72173bb1c576cc7ea6dd49306bfc9ab04273ac8e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6302100
Reviewed-by: Russ Hamilton <behamilton@google.com>
Commit-Queue: Russ Hamilton <behamilton@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: Chan Li <chanli@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424661}
2025-02-25 10:59:03 -08:00
98fc1edbcc DevTools: handle Page.reload on the browser side with RenderDocument
- when RenderDocument is on, do not fall through in Page.reload handler;
- instead, pass script_to_evaluate_on_load to InspectorPageAgent in new
    render frame at construction time via AttachDevToolsSession() method;
- handle breakpoint unpause and script termination by an out-of-band
    method of DevToolsSession.
- get rid of using InspectorAgentState for storing the script to
    evaluate on load, as the RenderDocument code path does not require
    this anymore;
- the latter also takes care of a security sensitive race between
    reload and navigation to a different URL, so
    PageReloadScriptInjection is going away too.

This resolves a race between the page reload initiated by PageHandler::reload() on the browser side and and a round-trip to renderer resulting from fall-through of PageHandler::reload() intended to set script to evaluate on load in the agent state cookie, which occurs with RenderDocument enabled.

Bug: 357977710
Change-Id: Ice796b829b56b514d38b787aea826d04d69f3c76
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6261689
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Reviewed-by: Lucas Radaelli <lucasradaelli@google.com>
Cr-Commit-Position: refs/heads/main@{#1424660}
2025-02-25 10:58:11 -08:00
ae0f4f30ac [testing] Update expectation for MediaFoundationD3D11VideoCapture on win
Suppress MediaFoundationD3D11VideoCapture trace test on windows to
unblock bots until the culprit is found that causes this test failure.

Bug: 398784712
Change-Id: If8838eebb430cd84079721c0e2f347b1ebd3d661
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6297825
Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424630}
2025-02-25 10:21:37 -08:00
9f44fe6906 Reland "Modify B&A key fetcher code to retain the full key ID"
This is a reland of commit 5624b16cc2

Original change's description:
> Modify B&A key fetcher code to retain the full key ID
>
> Changes the B&A key fetcher code so that it stores the full key
> identifier instead of the first two bytes parsed as a hexadecimal
> number. This will be needed to support features like Private Model
> Training that include the full key ID as part of the message.
>
> This CL also does some refactoring in order to support per-adtech
> keys/origin scoped keys as described in
> https://github.com/WICG/turtledove/issues/1334.
>
> NO_IFTTT=Just moving the enums.
>
> Bug: 390160246
> Change-Id: I62ded0175dbbc559363685ada995c91ef2d9d2dc
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6265963
> Reviewed-by: Orr Bernstein <orrb@google.com>
> Commit-Queue: Russ Hamilton <behamilton@google.com>
> Auto-Submit: Russ Hamilton <behamilton@google.com>
> Cr-Commit-Position: refs/heads/main@{#1423990}

Bug: 390160246
Change-Id: I968311418baf9b487654f294f065f893a5b217ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299239
Commit-Queue: Russ Hamilton <behamilton@google.com>
Reviewed-by: Orr Bernstein <orrb@google.com>
Cr-Commit-Position: refs/heads/main@{#1424577}
2025-02-25 08:51:56 -08:00
82e0225cd1 Prompt API: update sampling param validation logic
This CL makes the sampling param logic aligned with
https://github.com/webmachinelearning/prompt-api/?tab=readme-ov-file#configuration-of-per-session-parameters,
it also moves the logic to ai_utils so it can be tested separately and
reused in the future features.

Bug: 397308479
Change-Id: I0721a71f8fe257fa989529f11a123b0fbafaf0ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6278446
Commit-Queue: Mingyu Lei <leimy@chromium.org>
Reviewed-by: Fergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424564}
2025-02-25 08:23:27 -08:00
be48b9c38f Nested VT: Enable the feature by default and enable a test
This patch enables the ViewTransitionCaptureAndView feature as well
as one of the tests that tests this behavior.

Note that there is also over 300 VT WPTs, which also exercise the
capture phase.

This patch 5 out of 5 to implement the feature.

R=pdr@chromium.org

Bug: 358119267
Change-Id: Ief305a053eb180a81b53590437556a98264a1ce3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6258744
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Vladimir Levin <vmpstr@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424551}
2025-02-25 08:00:47 -08:00
ca1d7b4222 [DC] Replace the OWNER for Digital Credentials
Bug: None
Change-Id: I483b0f3b531156e38215ee91cc5501297a103546
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299919
Auto-Submit: Yi Gu <yigu@chromium.org>
Reviewed-by: Mohamed Amir Yosef <mamir@chromium.org>
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424544}
2025-02-25 07:53:43 -08:00
919ed0f519 Plumb AutoPipReason from AutoPip tab helper to WatchTimeRecorder
This change just plumbs the AutoPipReason from the auto picture in
picture tab helper to the WatchTimeRecorder. The reason will be used in
subsequent CLs to allow attributing watch time to the "AutoPip for media
playback" reason.

Bug: 394860526, 368058093
Change-Id: Ibaca8fc6446c6cf557b950b70bbf3e68a125c976
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6266667
Commit-Queue: Benjamin Keen <bkeen@google.com>
Reviewed-by: Ted (Chromium) Meyer <tmathmeyer@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1424538}
2025-02-25 07:47:20 -08:00