0
Commit Graph

116721 Commits

Author SHA1 Message Date
4f459e2860 [webauthn] signalUnknownCredential hides GPM creds
Have PublicKeyCredential.signalUnknownCredential hide passkeys in GPM
instead of deleting them. This is done by setting the `hidden` property
to `true`. Follow-up CLs will use this property to skip these passkeys
on sign in UI.

Since it will be possible for sites to unhide passkeys as well, guard
the execution of this method behind a quota tracker to prevent rogue
sites from overloading sync.

Hiding passkeys is not yet enabled by default.

See go/webauthn-signal-api-prd

Bug: 399683089
Change-Id: I047c7a342e7216247ff5b6dd4f09fae9a5d4e2c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6319004
Commit-Queue: Nina Satragno <nsatragno@chromium.org>
Reviewed-by: Mohamed Amir Yosef <mamir@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428576}
2025-03-05 14:13:24 -08:00
6e1c5b0227 Prompt API Multimodal: Align mojo structs with IDL and proto
Use mojom better aligned with JS API IDL and opt-guide proto.
(role + content structs, not an interleaved sequence like odms mojom)
This aims to support an optimization guide impl: crrev.com/c/6311589

Bug: 385173789, 385173368
Change-Id: I8fe21473289c494e2fe8d42e17412d2498263172
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6313078
Auto-Submit: Mike Wasserman <msw@chromium.org>
Reviewed-by: Daseul Lee <dslee@chromium.org>
Commit-Queue: Daseul Lee <dslee@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Reviewed-by: Brad Triebwasser <btriebw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428573}
2025-03-05 14:08:53 -08:00
0b509547c3 [A11y] Better error message for aria-hidden problems
Make sure that logs capturing the console error also get the
ancestor in the logs. When logging the elements, provide the
class name and id as well. Elements will look something like:
<div.myclass#some_id>, which will help authors find them.

Bug: none
Change-Id: I1e4acd6eaba417600bcf6a82343f90e8b2d13e04
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6330418
Reviewed-by: Mark Schillaci <mschillaci@google.com>
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Cr-Commit-Position: refs/heads/main@{#1428563}
2025-03-05 13:49:16 -08:00
3c0869e80e dual-use: Add comments to make it easier to remember what each method records
Bug: 343669716
Change-Id: Ieee34a3885297547647268839c0282b9dd949c2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6330237
Reviewed-by: Svend Larsen <svend@chromium.org>
Commit-Queue: Giovanni Ortuno Urquidi <ortuno@chromium.org>
Reviewed-by: Andrew Liu <liu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428558}
2025-03-05 13:42:57 -08:00
aa30721d4c [PWA] Suppress icon downloader errors for user installs in chrome:// url
This CL adds a flag to the ManifestIconDownloader to suppress warnings
for chrome:// urls that can be user installed, like the Password Manager
PWA. This is a preemptive move to ensure that chrome:// urls do not
write error logs to the console that potentially have the tendency to
overload the crash/ server (See linked bug for more information). The
flag is default initialized to false to prevent behavior from other
callsites from changing.

Also includes an automated test verifying this behavior.

Bug: 381069204
Change-Id: I83d405aa6a48dbf13331102962dd525ddc784dbe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6324609
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Dibyajyoti Pal <dibyapal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428544}
2025-03-05 13:24:27 -08:00
094a99cd18 [BTM] Improve TimeSinceLastInteraction metric.
Fetch the last interaction timestamp from the BTM database as soon as
the user navigates to a page, so it's not affected by user activity on
that page before the next navigation.

Unfortunately, this is complicated. We start fetching the timestamp when
one navigation finishes, and then want to populate the UKM builder
object when the next navigation finishes, but we might not have the
timestamp yet. And if the "visit" wasn't short or is otherwise
ineligible, we don't want to emit the metric at all.

To solve this, we define a `AsyncMetricsState` class that can store the
two pieces of state we need. To keep ownership simple, instances are
always owned by `BtmShortVisitObserver`, though this means that pending
visits just get dropped if the BtmShortVisitObserver is deleted (i.e.
the tab is closed) before we get the timestamps for them.

Bug: 400503247
Change-Id: I938b0773b8626f2388b4a10098ed2c2a430f874c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6328379
Commit-Queue: Ryan Tarpine <rtarpine@chromium.org>
Reviewed-by: Svend Larsen <svend@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428533}
2025-03-05 13:02:06 -08:00
1b49733234 Match Android event with Chrome event IMAGE_ANNOTATION_CHANGED
Currently we have Chrome events that never match with Android events.
This CL adds support to the following Chrome events:
IMAGE_ANNOTATION_CHANGED fires CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION

AX-Relnotes: N/A
Bug: 385139347
Change-Id: I57f42c61e309acf97e85caad00c32497ac989cdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6318179
Reviewed-by: Mark Schillaci <mschillaci@google.com>
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Ricky Yang <rickyyang@google.com>
Cr-Commit-Position: refs/heads/main@{#1428528}
2025-03-05 12:57:08 -08:00
ee782346ac [Protected Audience] Wire up devtools to KVv2 cache path.
This CL introduces an AuctionDownloader::NetworkEventsDelegate that
wires up almost all devtools hooks needed for PA network requires to
both appear in devtools, and to support devtools configurations that can
affect them.

The helper is only used by TrustedSignalsFetcher, for now. It also
provides a static helper method that's used by AuctionURLLoaderProxy,
to avoid having multiple copies of the logic.

Bug: 330322161
Change-Id: I56e7278fb8844968e16e2c67ddf45628f704b062
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6310822
Commit-Queue: mmenke <mmenke@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428506}
2025-03-05 12:33:11 -08:00
9aa95a9b6d Prefetch: Add a regression test that prefetch queue get stuck
This CL adds a regression test where PrefetchService::prefetch_queue_ is
not empty and PrefetchService::active_prefetch_ is std::nullopt, but no
additional prefetch is started.

Bug: 400233773, 390329781
Change-Id: Iaf4865c9aad60305d2c3c07da1c921a559c0e825
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6310958
Commit-Queue: Taiyo Mizuhashi <taiyo@chromium.org>
Reviewed-by: Ken Okada <kenoss@chromium.org>
Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428475}
2025-03-05 11:35:04 -08:00
685a07f156 Disabling GetBoundsRectIframesForColorPicker test on Fuchsia
The test `GetBoundsRectIframesForColorPicker` is consistently failing on
Fuchsia
https://ci.chromium.org/ui/p/chromium/builders/ci/fuchsia-x64-cast-receiver-rel/21196/overview.
This CL adds Fuchsia to the group of OS in which
`GetBoundsRectIframesForColorPicker` should not run. This test is
similar to `ControlsIdsForDateTimePopup` as both are checking that the
bounds of the popup area and both need to run in non-headless mode in
order to pass.

Bug: 399976873
Change-Id: If58cb6bda6d0151233974be5247445c66ae484fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6324603
Reviewed-by: Benjamin Beaudry <benjamin.beaudry@microsoft.com>
Commit-Queue: Ana Sollano Kim <ansollan@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1428469}
2025-03-05 11:30:28 -08:00
2337be8ab7 [Protected Audience] Centralize UA header override logic.
There were three copies of the code to get the User-Agent header
override given a FrameTreeNode. This CL adds a utility function to
handle that, in preparation to add yet another consumer.

Bug: None
Change-Id: Iccd406074ac5d75f1d57879d7d8585bbaf28290f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6329697
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: mmenke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428443}
2025-03-05 10:43:15 -08:00
784ba7033e user_agent_utils: Remove GetReducedUserAgent()
Its functionality is duplicated by GetUserAgent() these days, but we
could not use the latter while this component depended on //content.

Now that this is no longer an issue, remove the last call to
GetReducedUserAgent(), which also allows removing
GetMajorVersionNumber() from PrefetchServiceDelegate. All overrides had
the same implementation, and GetUserAgent() achieves the same thing
without requiring a version number to be passed.

Bug: 389970327
Change-Id: If7b7946d92eb78b9ff0983ded22699b968d1682e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6244462
Reviewed-by: Bo Liu <boliu@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Raphael Kubo da Costa <kubo@igalia.com>
Reviewed-by: Mike Taylor <miketaylr@chromium.org>
Reviewed-by: Max Curran <curranmax@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428427}
2025-03-05 10:21:51 -08:00
4eee907633 Replace equals with static comparator for InputCursorAnchorInfo structs
This is prerequisite to reverting https://crrev.com/c/6275565

Bug: 399297934
Change-Id: I475e8af93bd7c6b5123953f4b578192b34ac1e48
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6322027
Commit-Queue: Alex Mitra <alexmitra@chromium.org>
Reviewed-by: Jinsuk Kim <jinsukkim@chromium.org>
Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
Auto-Submit: Alex Mitra <alexmitra@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428414}
2025-03-05 10:08:08 -08:00
6a579fd936 btm: Merge content/browser/btm/BUILD.ng into content/test/BUILD.gn
This builds upon https://crrev.com/c/6312237 by completely doing away
with btm's own BUILD.gn. It existed only to define its unit tests, which
is not what other directories do in //content.

Doing so also allows us to get rid of the golden_dbs_bundle_data target,
which is likely a remnant of when this code was in //chrome. The content
layer uses a .filelist file to track files that need to be added to a
bundle, so we were originally setting those files in the
golden_dbs_bundle_data target as well as the content_test_bundle_data
one, which led to `gn gen` failures.

Instead of playing with the .filelist and the .globlist based on what is
specified in golden_dbs_bundle_data, switch to solely using the
.filelist all other code also does.

Bug: 399868999
Change-Id: I1af22d523cc42749d071ed8156e89a726ae07508
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6318359
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Raphael Kubo da Costa <kubo@igalia.com>
Reviewed-by: Ryan Tarpine <rtarpine@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428411}
2025-03-05 10:05:04 -08:00
f0ffa8f6c4 fuzzing: rewrite FirstPartySetFuzzer to avoid gRPC dependency
Since we cannot depend on the gRPC corpus anymore, it's a good idea to
start using FuzzTest so that we ensure the generated strings are valid
JSON.

Here, we're using a particular domain that'll both create valid and
invalid JSON. This actually mimics the old corpus, because at every
fuzzer start, we are feeding the string mutator with a valid JSON.
This helps go deeper with a simple string mutator, while still testing
for invalid cases.

Bug: 399449169
Change-Id: I2e81d87323728b933a28fd84de95cb86a63281e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6308902
Commit-Queue: Paul Semel <paulsemel@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428401}
2025-03-05 09:50:32 -08:00
2fc315fd20 Add support for https test server in android
Move https_test_server logic from InProcessBrowserTest to
BrowserTestBase to be used by android tests as well.

Change-Id: I4e7c05c3f7f233afc5b131d57b8c1050c1f3a35c
Bug: 41482548
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6315364
Reviewed-by: Chris Thompson <cthomp@chromium.org>
Reviewed-by: David Roger <droger@chromium.org>
Commit-Queue: Chris Thompson <cthomp@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428382}
2025-03-05 09:19:22 -08:00
4e0c37342e [Partitioned Popins] Skip recording popup heuristics for popins
We should not record storage access grants for popins as they count as
embedded content for the purpose of storage access grants.

Bug: 340606651
Change-Id: I461a5da705c0edc0db9e17be65654d4dc36ab822
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6325430
Auto-Submit: Ari Chivukula <arichiv@chromium.org>
Commit-Queue: Ryan Tarpine <rtarpine@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Ryan Tarpine <rtarpine@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428355}
2025-03-05 08:38:38 -08:00
f2b66a9dd9 [A11y] Consistent tree after aria-owns changes
This fixes https://kunskapsguiden.se and a number of other sites using
components that have an "interesting" mix of dynamic aria-hidden,
aria-owns and role changes. Simply loading the site in a debug
build shows the issue. It started crashing worse recently --
BlinkAXTreeSource::ChildAt() has a check that became fatal
starting in milestone 127.

Was not able to create a simplified test case.

Fixed: 377975067
Change-Id: I72cf3f731ab75284a76db142a6f470cb5ccc7f2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6320067
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: Alison Maher <almaher@microsoft.com>
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428349}
2025-03-05 08:31:11 -08:00
50a0f5cfa8 [GTK] Support Emacs bindings on GTK4
This change replaces the old vector‐based API
GetTextEditCommandsForEvent with a function that returns a single
ui::TextEditCommand. INVALID_COMMAND is returned when no valid command
applies. The command mapping no longer relies on heap-allocated data
(vector and string), so can now be a compile time constant.

The old code used a complex signal handling approach that simulated a
keypress in a fake window and widget to observe the resulting text edit
command. However, the only "key theme" GTK ever supported was emacs
bindings before key themes were removed in GTK4. This CL simplifies the
approach by directly mapping key events to edit commands. It also
enables emacs bindings on GTK4 and (eventually, when this code is moved
out of //ui/gtk since it no longer has any GTK dependencies) QT.

Change-Id: If4856d33aa8ec45f2e397aa517032ddc22b63def
Bug: None
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6314265
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428340}
2025-03-05 08:10:35 -08:00
6659fee2fc [DC] Support reading the protocol from lower layers of DC API
Chrome doesn't yet support multiple requests of multiple protocols in
the DC presentation API. Therefore, Chrome is forwarding only the first
request to the and caching the protocol of that request to attach back
to the response.

In order to support multiple-requests, Chrome should instead read the
protocol from the digital wallet response.

Unfortunately, digital wallets weren't adding the protocol in the
response to Chrome, and hence Chrome cannot always read the protocol
from that response.

This CL adds the infrastructure to return the response from the lowest
layers interacting with the Android platform API to upper layer. In the
upper layer, if a protocol is returned, it is preferred, otherwise, it
fallbacks to the request computed in Chrome.

This CL should be no-op since the lowest layers are hardcoded to return
an empty protocol and hence Chrome always fallbacks to the cached
protocol maintaining the same behaviour as today.

The long term plan is remove such backward compatibly logic when the
Android API are official and out of the alpha phase.

Low-Coverage-Reason: pure refactoring CL
Bug: 336329411
Change-Id: I20b57d78b19603e87a0582db93f523ca649772bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6285928
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428305}
2025-03-05 07:03:38 -08:00
f3be2c7f26 [Partition Key] Add cross site ancestor bit to devtools network handler.
Update the cookie dictionary in the devtools network handler to include
the cross-site ancestor bit in the partition key

Bug: 400944050
Change-Id: I81f1ad72302d7137f8d1fb02325c49d9d2bcfac0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6322669
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Aaron Selya <selya@google.com>
Cr-Commit-Position: refs/heads/main@{#1428302}
2025-03-05 06:57:21 -08:00
f0f0d8addd Revert "Enable BFCache for CCNS by default"
This reverts commit f9061125ef.

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/5740689414422528

Sample build with failed test: https://ci.chromium.org/b/8721337446925792561
Affected test(s):
[ninja://android_webview/test:webview_instrumentation_test_apk/org.chromium.android_webview.test.AwContentsClientShouldOverrideUrlLoadingTest#testReloadingUrlDoesNotBreakBackForwardList](https://ci.chromium.org/ui/test/chromium/ninja:%2F%2Fandroid_webview%2Ftest:webview_instrumentation_test_apk%2Forg.chromium.android_webview.test.AwContentsClientShouldOverrideUrlLoadingTest%23testReloadingUrlDoesNotBreakBackForwardList?q=VHash%3A05564aaacf7462e3)
[ninja://android_webview/test:webview_instrumentation_test_apk/org.chromium.android_webview.test.AwContentsClientShouldOverrideUrlLoadingTest#testReloadingUrlDoesNotBreakBackForwardList](https://ci.chromium.org/ui/test/chromium/ninja:%2F%2Fandroid_webview%2Ftest:webview_instrumentation_test_apk%2Forg.chromium.android_webview.test.AwContentsClientShouldOverrideUrlLoadingTest%23testReloadingUrlDoesNotBreakBackForwardList?q=VHash%3A81248e7bbc4ea61d)
[ninja://android_webview/test:webview_instrumentation_test_apk/org.chromium.android_webview.test.LoadUrlTest#testRendererNavigationAndGoBackWithExtraHeaders](https://ci.chromium.org/ui/test/chromium/ninja:%2F%2Fandroid_webview%2Ftest:webview_instrumentation_test_apk%2Forg.chromium.android_webview.test.LoadUrlTest%23testRendererNavigationAndGoBackWithExtraHeaders?q=VHash%3A05564aaacf7462e3)
[ninja://android_webview/test:webview_instrumentation_test_apk/org.chromium.android_webview.test.LoadUrlTest#testRendererNavigationAndGoBackWithExtraHeaders](https://ci.chromium.org/ui/test/chromium/ninja:%2F%2Fandroid_webview%2Ftest:webview_instrumentation_test_apk%2Forg.chromium.android_webview.test.LoadUrlTest%23testRendererNavigationAndGoBackWithExtraHeaders?q=VHash%3A81248e7bbc4ea61d)

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%2F5740689414422528&format=PLAIN&priority=P3&title=Wrongly+blamed+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F6309859&type=BUG

Original change's description:
> Enable BFCache for CCNS by default
>
> According to the ramp up plan, we will launch this feature on Mar 11.
>
> This CL also updates the back_forward_cache_no_store_browsertest.cc:
> - for the previous main frame/sub frame test
> (BackForwardCacheBrowserTestNoTestingConfig after
> http://crrev.com/c/4943313) will explicitly disable BFCache for CCNS
> since it's testing that behaviour.
>
> - for
> BackForwardCacheWithJsNetworkRequestReceivingCCNSResourceBrowserTest,
> update the logic and comment to make sure that the CCNS page will be
> evicted only when the same-origin JS network happens, and they will be
> reported together.
>
> This CL also rename the feature name for
> `kJsNetworkRequestReceivedCacheControlNoStoreResource` to
> `js-network-request-received-cache-control-no-store` so it's different
> from the name with CCNS itself. This makes the reason field in the not
> restore reason API more meaningful.
>
> Bug: 40189625
> Change-Id: I85692053a46a56b998b65164d7e4df3dfc118ec0
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309859
> Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
> Reviewed-by: Fergal Daly <fergal@chromium.org>
> Commit-Queue: Mingyu Lei <leimy@chromium.org>
> Reviewed-by: Kentaro Hara <haraken@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1427608}
>

Bug: 40189625
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: Ice26d66d90de284890f66a3ddf3f4e2a224803d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6323366
Reviewed-by: Mingyu Lei <leimy@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Owners-Override: Mingyu Lei <leimy@chromium.org>
Commit-Queue: Mingyu Lei <leimy@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428247}
2025-03-05 04:22:06 -08:00
1150a14933 Revert "Rebaseline android select appearance test"
This reverts commit 0196b934a3.

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/4843023482486784

Sample build with failed test: https://ci.chromium.org/b/8721283644172105873
Affected test(s):
[ninja://content/test:content_browsertests/FormControlsBrowserTest.Select](https://ci.chromium.org/ui/test/chromium/ninja:%2F%2Fcontent%2Ftest:content_browsertests%2FFormControlsBrowserTest.Select?q=VHash%3A215c410e49fc7886)

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%2F4843023482486784&format=PLAIN&priority=P3&title=Wrongly+blamed+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F6310887&type=BUG

Original change's description:
> Rebaseline android select appearance test
>
> It failed - this just rebaselines it.
>
> Fixed: 397829417
> Change-Id: I0707ad46217f2dfd7c244b29c36fe1bd477da68d
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6310887
> Auto-Submit: Mason Freed <masonf@chromium.org>
> Commit-Queue: Mason Freed <masonf@chromium.org>
> Reviewed-by: Traian Captan <tcaptan@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1428018}
>

No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: Ib37b446d5c2a71fde55348c91d0a145efbbf0db4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6324786
Owners-Override: Mingyu Lei <leimy@chromium.org>
Commit-Queue: Ashley Newson <ashleynewson@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Ashley Newson <ashleynewson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428220}
2025-03-05 02:56:20 -08:00
77d1236021 Remove stale pixel 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 pixel

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Fixed: 389654097, 395060191
Change-Id: I5a9c82491e63f90052d6042ccba7f6cfb9ab25c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6326362
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@{#1428166}
2025-03-04 23:47:37 -08:00
cb54d6bdd9 Boost RendererMain thread priority if an input scenario is detected
This feature is behind a flag kInputScenarioPriorityBoost for
experiments. If enabled, the default thread type of RendererMain will
be reduced to kDefault and boost to kDisplayCritical during typing.

Bug: 365586676
Change-Id: Icf235ea6a035b793f1b6aebb3b804d7ca56f0d08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6308410
Reviewed-by: Joe Mason <joenotcharles@google.com>
Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org>
Commit-Queue: Jiahe Zhang <jiahe.zhang@intel.com>
Cr-Commit-Position: refs/heads/main@{#1428165}
2025-03-04 23:41:20 -08:00
5a0ab1ac3d 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

Fixed: 395919013
Change-Id: I9adaa121f265c97c07cffbd417473f8667ebec41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6325836
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@{#1428163}
2025-03-04 23:35:24 -08:00
7cafef79b7 Finalize Navigation Confidence for Primary Main Frame only
Ensure the confidence is only updated for the primary main frame, and
not prerender/bfcached pages.

Bug: 400335353
Change-Id: I943b6a1162dc4e47829e62791710fcca946a085c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6324469
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Mike Jackson <mjackson@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1428148}
2025-03-04 22:01:28 -08:00
1847c40afe Prefetch: Remove staled comment of PrefetchService::owned_prefetches_
Today all `PrefetchContainer`s will be added to
PrefetchService::owned_prefetches_ once
PrefetchService::AddPrefetchContainer =>
PrefetchService::AddPrefetchContainerWithoutStartingPrefetch is called.

Bug: n/a
Change-Id: I4558bb431c32c2a71d9dfffadbfe28d0ba59fd7d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6312156
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428033}
2025-03-04 15:51:09 -08:00
0196b934a3 Rebaseline android select appearance test
It failed - this just rebaselines it.

Fixed: 397829417
Change-Id: I0707ad46217f2dfd7c244b29c36fe1bd477da68d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6310887
Auto-Submit: Mason Freed <masonf@chromium.org>
Commit-Queue: Mason Freed <masonf@chromium.org>
Reviewed-by: Traian Captan <tcaptan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428018}
2025-03-04 15:19:21 -08:00
e51e2f26ef Return scoped_refptr from PrefetchNetworkContext::GetURLLoaderFactory()
This CL makes `PrefetchNetworkContext::GetURLLoaderFactory()` return
`scoped_refptr<network::SharedURLLoaderFactory>` instead of a raw
pointer, to allow the factory plumbed across tasks asynchronously without passing raw pointers. After https://chromium-review.googlesource.com/c/chromium/src/+/6228199, the URLLoaderFactory can be used after asynchronous ServiceWorker check.

Alternatively, we could call `PrefetchNetworkContext::GetURLLoaderFactory()` when the factory is needed (after ServiceWorker check), but instead we first call `GetURLLoaderFactory()` and then plumb the `scoped_refptr<network::SharedURLLoaderFactory>` asynchronously, to decouple the user of the factory (in `PrefetchStreamingURLLoader`) from its original owner (`PrefetchNetworkContext`).
https://docs.google.com/document/d/1kbs8YJuh93F_K6JqW84YSsjVWcAeU41Mj9nwPr6IXRs/edit?tab=t.0#bookmark=id.kohs7htfumek

This (and the subsequent CL) might extend the lifetime of the returned
URLLoaderFactory a little, but probably it's OK because the
URLLoaderFactory still doesn't outlive `PrefetchStreamingURLLoader`.

Bug: 40947546
Change-Id: I51fc017c9723760fe43881710574dfea3a0dc129
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6177744
Reviewed-by: Ken Okada <kenoss@chromium.org>
Reviewed-by: Taiyo Mizuhashi <taiyo@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428015}
2025-03-04 15:14:38 -08:00
57c6b11bc6 Migrate views::Background factory methods to ColorVariant
Bug: b:400775304
Change-Id: I3b74afd8ad610beca5aa646b3d693ccfdc3a20b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6313744
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Zoraiz Naeem <zoraiznaeem@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427993}
2025-03-04 14:33:52 -08:00
32044f53aa Mark WebContents::GetLastCommittedURL() as const
Although this method has no side-effects, it was not marked as const,
likely due to a few dependencies lacking a const variant. This CL fixes
this issue. Other methods in WebContents might more easily be marked
const as a follow-up.

Bug: 400292280
Change-Id: Iaa656c27a24cc326cd5c8275e178ebc81bbe3de8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6321945
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Matthew Jones <mdjones@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427986}
2025-03-04 14:16:03 -08:00
08351ce7f8 Cleanup old code responsible for cache cleanup
Removal of unnecessary code for deleting the old cache data directory.

Bug: 40198348
Change-Id: Iedc433b50ae82249a6da99936983d84597252fd9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6317332
Commit-Queue: Chris Davis <chrdavis@microsoft.com>
Reviewed-by: Clark DuVall <cduvall@chromium.org>
Reviewed-by: Nikhil Nayunigari <nikhilcn@google.com>
Cr-Commit-Position: refs/heads/main@{#1427943}
2025-03-04 13:19:33 -08:00
725958375d Add acondor to navigation_transitions OWNERS
I self-nominate to the OWNERS file after multipel non-trivial
contributions to the feature.

Change-Id: I65eaa90468cac536660990d24172b387eb455e4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6324125
Commit-Queue: Aldo Culquicondor <acondor@chromium.org>
Reviewed-by: William Liu <liuwilliam@chromium.org>
Commit-Queue: William Liu <liuwilliam@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427938}
2025-03-04 13:05:49 -08:00
73dc1514d9 btm: Rename BtmRedirectInfo::url to BtmRedirectInfo::redirecting_url
Also adds a comment to clarify what the url represents.

Change-Id: I6d79f54f32c4fc6dbe486be95c509d261539ef29
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6318321
Commit-Queue: Giovanni Ortuno Urquidi <ortuno@chromium.org>
Reviewed-by: Andrew Liu <liu@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Ryan Tarpine <rtarpine@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427930}
2025-03-04 12:58:38 -08:00
d5bf4ba9cd [Mac Text Subs] Ignore out-of-order text substitutions
This cl forces the web contents to ignore any incoming text
correction that appies to an older version of the web contents's
text, avoiding a crash.

Bug: 372217922
Change-Id: Iaf502a04af58fba395cadc12652ddd6ccaed520c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299632
Commit-Queue: Jayson Adams <shrike@chromium.org>
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427904}
2025-03-04 12:08:36 -08:00
f6f09ba3e7 Reland "[Partitioned Popins] Add RSA Support (1) test main&sub-frame"
This reverts commit e1d2b89e75.

Reason for revert: Fixing issues with `linux-chromeos-chrome` related to default feature values.

The only changes in this CL are in tests, there were no discovered
issues in the production logic of the reverted CL.

This also merges in the following pure test CL:
https://chromium-review.googlesource.com/c/chromium/src/+/6309932

Original change's description:
> 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}

Bug: 340606651
Change-Id: Iaaa37af8476cd14ba2553cd094136d7fc48a219d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6313462
Auto-Submit: Ari Chivukula <arichiv@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>
Commit-Queue: Ari Chivukula <arichiv@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427896}
2025-03-04 12:01:34 -08:00
92ed141e44 [StaleSessionCookieCleanup] enable by default for M136+
Once the launch is approved we should roll this out by default
in M136+.

Bug: 40285083
Change-Id: I6dcd5ecb41417a7a689e4142b5d3a03773741df5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6278735
Commit-Queue: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427872}
2025-03-04 11:33:34 -08:00
c7e47f9a06 webauthn: Add ChromeWebAuthenticationDelegateBase for shared logic
This CL introduces `ChromeWebAuthenticationDelegateBase` to provide a
shared implementation for WebAuthn logic common to both Android and
Desktop platforms.

The implementation of `OriginMayUseRemoteDesktopClientOverride` has been
moved to the `ChromeWebAuthenticationDelegateBase` from
`ChromeWebAuthenticationDelegate`.

The `OriginMayUseRemoteDesktopClientOverride` method controls access to
the `RemoteDesktopClientOverride` feature, which is currently used only
on Desktop.  While a new flag-guarded policy is being introduced
(https://crbug.com/391132173), this change itself does not alter
WebAuthn behavior on Android. The existing corp-only policy remains
excluded from Android builds.

Bug: 391132173
Change-Id: Ibf44e3528f5ae620d360ee125dfd4266be10da1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6304723
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Andrii Natiahlyi <natiahlyi@google.com>
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Cr-Commit-Position: refs/heads/main@{#1427863}
2025-03-04 11:13:47 -08:00
91ab53df1b Correctly rename enable_oop_rasterization to enable_gpu_rasterization.
The name is misleading and may cause confusion.

TEST=gpu_unittests

Bug: 391648152
Change-Id: I811d32129c57a98865d55e4055579394b26fc9cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6319245
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Auto-Submit: Zhenyao Mo <zmo@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Elly FJ <ellyjones@chromium.org>
Reviewed-by: Fernando Serboncini <fserb@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Reviewed-by: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427850}
2025-03-04 11:00:38 -08:00
767f425929 Android: Add @NullMarked to components/browser_ui/contacts_picker
Bug: 389129271
Change-Id: I27fbadc30c03abb668318572a9cdb3d0f6a1c50f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6313739
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Owners-Override: Mohamed Heikal <mheikal@chromium.org>
Auto-Submit: Henrique Nakashima <hnakashima@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427846}
2025-03-04 10:57:29 -08:00
a79bb5c663 WebSQL: Cleanup unused switch
This change removes a unused switch to disable WebSQL.
WebSQL is also already deprecated as of Oct 2023 so this
should no longer enable WebSQL anyway.

Bug: 395838064
Change-Id: I6e31872dcd1fccfcf632db9c342e7b900759ae8f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6265825
Commit-Queue: Ayu Ishii <ayui@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427832}
2025-03-04 10:23:49 -08:00
1ba7d4ac18 Local Network Access(LNA): move LNA feature flag
Move LNA feature flag from content/public/common/content_features.h to
services/network/public/cpp/features.h, as it is needed in
third_party/blink/renderer/core/loader/mixed_content_checker.cc to flag
guard mixed content bypassing (similar to
https://crsrc.org/c/third_party/blink/renderer/core/loader/mixed_content_checker.cc;l=566-584;drc=e71cafaddfaa5850b906bf4c78b5289a2fa2d81a)

This flag will also be needed soon in services/network as we implement
the permission prompt for LNA.

Bug: 395895368
Change-Id: I03968bacb1571d41c3ddbe3854bd7524ae34bd23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6318047
Commit-Queue: Hubert Chao <hchao@chromium.org>
Reviewed-by: Chris Thompson <cthomp@chromium.org>
Reviewed-by: mmenke <mmenke@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427830}
2025-03-04 10:20:24 -08:00
ebd3a99d01 [FedCM] Update FedCM owners
Bug: None
Change-Id: Ic6988ebcc9039f265d131b21b19c34f9e497ba4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6321010
Reviewed-by: Zachary Tan <tanzachary@chromium.org>
Commit-Queue: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427778}
2025-03-04 09:15:41 -08:00
7b7b3bad72 Remove usages of feature that disabled ancestor chain bit
Following the successful deployment of the feature
kAncestorChainBitEnabledInPartitionedCookies being enabled by default
and metrics showing that there is no longer usage of users disabling it.
Usages of the flag are being removed and all code that utilized the
feature is being refactored to reflect a state in which the feature is
enabled.

OBSOLETE_HISTOGRAM[Cookie.FirstPartyPartitioned.HasCrossSiteAncestor]=
Feature that metric was tracking has been removed.

Bug: 328043119
Change-Id: Ifc0ccfba6cbac610c3c26370c0393b4a005fbbbb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6316346
Reviewed-by: Steven Bingler <bingler@chromium.org>
Reviewed-by: Dylan Cutler <dylancutler@google.com>
Auto-Submit: Aaron Selya <selya@google.com>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Commit-Queue: Aaron Selya <selya@google.com>
Reviewed-by: Bo Liu <boliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427719}
2025-03-04 07:31:54 -08:00
3c74eb4662 Remove kCapturedSurfaceControlTemporaryZoom
1. This flag has been default-on for long enough that it may now be
   safely removed from the codebase.
2. Existing tests are reanchored on a different fixture.
3. A minor expansion of test coverage is added, ensuring the
   side-effect is not experienced by newly opened (and navigated) tabs
   after the original one is closed.

Bug: 328589994
Change-Id: Ie295a473515ac3a20ee47e5596144615c7aa0ca0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6316730
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Elad Alon <eladalon@chromium.org>
Auto-Submit: Elad Alon <eladalon@chromium.org>
Reviewed-by: Tove Petersson <tovep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427678}
2025-03-04 05:52:18 -08:00
b742ad8b4f Merge //content/common/user_agent.cc into //components/embedder_support:user_agent
The code in //content was present since the WebKit days, and the split
between //content and //components was unclear.

Move everything into //components/embedder_support:user_agent to make it
easier for callers to determine which functions to use as well as for
ease of maintenance.

The functions from //content have been moved wholesale; some will be
removed or made internal in other CLs in the chain.

NO_IFTT=The functions in embedder_support are called only on Android,
        there is no need to update the code in //ios

Bug: 389970327
Change-Id: Ic87e0691f54e392374dcd060faba744ab0ebfedb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6244461
Commit-Queue: Colin Blundell <blundell@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427625}
2025-03-04 02:08:45 -08:00
f9061125ef Enable BFCache for CCNS by default
According to the ramp up plan, we will launch this feature on Mar 11.

This CL also updates the back_forward_cache_no_store_browsertest.cc:
- for the previous main frame/sub frame test
(BackForwardCacheBrowserTestNoTestingConfig after
http://crrev.com/c/4943313) will explicitly disable BFCache for CCNS
since it's testing that behaviour.

- for
BackForwardCacheWithJsNetworkRequestReceivingCCNSResourceBrowserTest,
update the logic and comment to make sure that the CCNS page will be
evicted only when the same-origin JS network happens, and they will be
reported together.

This CL also rename the feature name for
`kJsNetworkRequestReceivedCacheControlNoStoreResource` to
`js-network-request-received-cache-control-no-store` so it's different
from the name with CCNS itself. This makes the reason field in the not
restore reason API more meaningful.

Bug: 40189625
Change-Id: I85692053a46a56b998b65164d7e4df3dfc118ec0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309859
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Fergal Daly <fergal@chromium.org>
Commit-Queue: Mingyu Lei <leimy@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427608}
2025-03-04 01:28:03 -08:00
2aaa0e394a Integrate Device Bound Session Credentials with Origin Trial framework
This CL creates a blink RuntimeEnabledFeature for
DeviceBoundSessionCredentials and propagates its value to the network
stack so the `URLRequestHttpJob` can decide whether to respond to the
registration headers. This is done by adding a new boolean to
ResourceRequest, analogous to `shared_dictionary_writer_enabled`.

Fixed: 382327823
Change-Id: I47ab849a3cee1e5003bae2ce0ec454bcffe8e06a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6313742
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Ayu Ishii <ayui@chromium.org>
Reviewed-by: Fergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427547}
2025-03-03 20:45:13 -08:00
4c1d5e875a Remove flag kDragDropEmpty
Flag was enabled since M131 and can now be removed in M136.

Bug: 363930156
Change-Id: I73d0b82f355ef9da1f25cfeb07cbf93534c94349
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6169860
Reviewed-by: Theresa Sullivan <twellington@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1427546}
2025-03-03 20:44:14 -08:00