0
Commit Graph

106810 Commits

Author SHA1 Message Date
60f62ef86f Deactivate touch selection when active client is invalidated.
Hide touch selection handles and menu after if the active client managed
by TouchSelectionControllerClientAura is invalidated. This is to prevent
stray handles and menu staying around after the active client is
destroyed (e.g. after reloading a web page where the active client
corresponds to an iframe).

Bug: b:312312220
Change-Id: I49c828d5d97d3e7347440a4a8643c82933158934
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5055932
Reviewed-by: Robert Flack <flackr@chromium.org>
Commit-Queue: Michelle Chen <michellegc@google.com>
Cr-Commit-Position: refs/heads/main@{#1229117}
2023-11-27 00:12:36 +00:00
85af4f3eee 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 --jobs 4

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Bug: 1446435
Change-Id: I8ea330609cb78484b0f25acb0ff9dafb9e1a3031
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5060434
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@{#1229046}
2023-11-26 08:04:24 +00:00
a21045d4fd Remove stale WebGL 2 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 webgl2_conformance --jobs 4

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Bug: 1446435, 1473838
Change-Id: I454f80e271b4b574fbd4d2204fba61bc39f25e4e
Fixed: 1464417
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5059933
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@{#1228942}
2023-11-25 07:39:36 +00:00
0a212cf3cb [X11] Change AtomCache from a singleton to owned by Connection
This is required for Connection to create PropertyCaches.  This is
because of a call cycle Connection::Get() -> Connection::Connection()
-> AtomCache::Get() -> Connection::Get() which will hang because
Connection is being constructed.

R=sky,lambroslambrou

Bug: 739898
Change-Id: I8b67b4a68e07c15aab26a3ef16728ac187a57bdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5052035
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Lambros Lambrou <lambroslambrou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228929}
2023-11-25 04:31:48 +00:00
f0416e2b4d Mv camera enumeration to video capture service
Doc: go/mv-camera-enumeration

We define a new class VideoCaptureDevicesChangedObserver that
establishes a mojo connection between the video capture service and
the browser process and receives OnDeviceChanged events from
video_capture::DevicesChangedNotifier.

These changes are exposed under the feature
'kCameraMonitoringInVideoCaptureService' which will gradually be
rolled out following the finch process.

Bug: 1448798
Change-Id: I60048b3a2cc8f7b844bc823002f12419dde79f4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5002121
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Palak Agarwal <agpalak@chromium.org>
Reviewed-by: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228892}
2023-11-24 21:33:54 +00:00
784611b9d4 Remove XrRuntimeManager::ForEachRuntime.
This was going to be migrated to use base::FunctionRef, but as there are
no callers, just delete it instead.

Change-Id: I2a7c68aaea9b56a395572b73ca2c48ccfd73827e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5051068
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228880}
2023-11-24 21:10:55 +00:00
9c3851af60 [content] Replace the mailbox used in PPB_Graphics3D_Impl
As part of the ClientSharedImage refactorization, this CL replaces
the mailbox member in PPB_Graphics3D_Impl::ColorBuffer with
ClientSharedImage, and adds other necessary code changes to support
this replacement.

Bug: 1494911, 1499992
Change-Id: Ie6800b427f70179dbf7cfabacdf49174377a551d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5056072
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Commit-Queue: Mingjing Zhang <mjzhang@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228872}
2023-11-24 20:13:21 +00:00
8e581fa649 [Service Worker] Use actual storage key in NotifyStartedCaching
Update ServiceWorkerScriptCacheMap::NotifyStartedCaching to use
the actualy storage key instead of creating a first-party storage
key from the worker scope.

I looked but couldn't find an easy way to test this. This seems
relatively minor, though, and likely not worth the effort.

Fixed: 1501023
Change-Id: I34e1a34850d40e65649e753447103ed509a0e663
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5057529
Commit-Queue: Andrew Williams <awillia@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228863}
2023-11-24 19:12:55 +00:00
4de89598ad TestTraceProcessor: test & fixes
Minor fixes and improvements to TestTraceProcessor:
- Add a test that SQL window functions are supported (== that we are
  linking against the correct version of SQLite).
- Make stdlib module overriding work by stripping .sql suffixes from
  filenames.
- Add --ttp-save-trace switch to allow saving the trace and make
  debugging easier.

Change-Id: I130cd95e378bd702d4f07dad6cf44e6cb60dd692
Cq-Do-Not-Cancel-Tryjobs: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054370
Reviewed-by: Rasika Navarange <rasikan@google.com>
Commit-Queue: Alexander Timin <altimin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228853}
2023-11-24 18:11:28 +00:00
7c7ee8ccd3 Remove obsolete -dontwarn for adservices
It was needed when compiling against pre-U SDKs.

Bug: 1426964
Change-Id: I9eefa37d8366310b817d070b3bb7bb879a989af8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054478
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Sam Maier <smaier@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228835}
2023-11-24 16:52:01 +00:00
b3ee4f9107 [FedCM] Remove random rejection from disconnect()
Bug: 1473134
Change-Id: I379bbda55063a7b10d9d932b9113cebee945c8b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054510
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228830}
2023-11-24 16:38:34 +00:00
eb8d184f1b [base] Remove base::Erase()/base::EraseIf() overloads for std::multimap
They're now replaced with C++20 std::erase()/std::erase_if().

Change-Id: I3f6b53e50fb9f69d5b03207fd357b8222c43cd86
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054086
Owners-Override: Kyle Charbonneau <kylechar@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Kyle Charbonneau <kylechar@chromium.org>
Commit-Queue: Andrew Rayskiy <greengrape@google.com>
Cr-Commit-Position: refs/heads/main@{#1228828}
2023-11-24 16:30:15 +00:00
b76e62b849 actions_parser_fuzzer: Cap input size
Change the content_input_actions_parser_fuzzer to ignore huge
inputs, in order to avoid spurious timeout and OOM clusterfuzz
reports.

The exact constant is chosen semi-arbitrarily: we set it at 100 KB;
for reference, the OOM report happened on a 686 KB input.

Fixed: 1497681
Change-Id: Ic501be24c60a8a27f2b4d0317fe73913f80c673f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5057760
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Auto-Submit: Maksim Ivanov <emaxx@chromium.org>
Commit-Queue: Maksim Ivanov <emaxx@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228816}
2023-11-24 16:01:15 +00:00
82a48601b5 Remove unused histogram Event.Touch.FilteredAtPassthroughQueue
Bug: 1499381
Change-Id: I7174cc3deabdfb99403831b904e9b79d4b27f04a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054057
Reviewed-by: David Bokan <bokan@chromium.org>
Reviewed-by: Luc Nguyen <lucnguyen@google.com>
Commit-Queue: Alexandra Reimers <areimers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228807}
2023-11-24 15:47:23 +00:00
3c658f3e7f Change the argument types of FallbackCallback in NavigationLoaderInterceptor
This CL adds a structure and changes the arguments of FallbackCallback
in `NavigationLoaderInterceptor` to the newly created structure.
The added structure currently has only one field, `load_timing_info`, but we plan to add other fields to update response headers other than
load timing.

This is the preliminary change to fix the bug on DevTools support for SW
Static Routing API.

Bug: 1502443
Change-Id: I742f9277586a29aa7cea2d1f79adcc867193390b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5051307
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org>
Commit-Queue: Takashi Nakayama <tnak@chromium.org>
Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
Reviewed-by: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228776}
2023-11-24 14:26:44 +00:00
0a71a940dd Disable flaky test in SitePerProcessSSLBrowserTest
See crbug/1488371#c26 for context.

Bug: 1488371
Change-Id: I586a4cd591b263038d3fe3a21ef738a8123be307
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054095
Auto-Submit: James Lee <ljjlee@google.com>
Commit-Queue: Anthi Orfanou <anthie@google.com>
Owners-Override: James Lee <ljjlee@google.com>
Commit-Queue: James Lee <ljjlee@google.com>
Reviewed-by: Anthi Orfanou <anthie@google.com>
Cr-Commit-Position: refs/heads/main@{#1228771}
2023-11-24 14:05:15 +00:00
f4ceb1463b Avoid redundant map lookups in VideoCaptureHost
Avoid consecutively applying base::Contains() and
then std::map::operator[] to the same map.
Use std::map::find() and reuse the lookup's result.

Bug: 1504994
Change-Id: I04a335e2bf9fd4438a1ecc95ba12d425af1f3858
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5056913
Reviewed-by: Tove Petersson <tovep@chromium.org>
Auto-Submit: Elad Alon <eladalon@chromium.org>
Commit-Queue: Tove Petersson <tovep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228770}
2023-11-24 14:04:55 +00:00
4ad7243588 Disable flaky tests in InterestGroupBrowserTest on Android
See crbug/1502155#c10 for context.

Bug: 1502155
Change-Id: Id27989cd3c61455431b8a78a0f18a276f71975b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5057778
Auto-Submit: James Lee <ljjlee@google.com>
Commit-Queue: Boris Sazonov <bsazonov@chromium.org>
Owners-Override: James Lee <ljjlee@google.com>
Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
Commit-Queue: James Lee <ljjlee@google.com>
Cr-Commit-Position: refs/heads/main@{#1228723}
2023-11-24 11:09:26 +00:00
f504f34b9e Update BackForwardCacheBrowserUnloadHandlerTest.UnloadHandlerPresent to expect BFCaching when unload is deprecated
We can now bfcache pages with unload handlers when unload is deprecated

Bug: 1488371
Change-Id: I838fd4e44e8645306c18f6ca08beb22f3e2a1839
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5051283
Reviewed-by: Fergal Daly <fergal@chromium.org>
Auto-Submit: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Fergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228700}
2023-11-24 09:28:49 +00:00
3bea1c2074 [bfcache] Use pagehide instead of unload in RenderFrameHostManagerUnlaodBrowserTest
This CL starts using pagehide instead of unload as it happens as the same timing as unload.

Bug: 1488371
Change-Id: Ide22554e385fd66ed48df43b5812dd654a09bf71
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5056451
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Auto-Submit: Yuzu Saijo <yuzus@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Fergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228696}
2023-11-24 09:12:57 +00:00
091051efe2 Prerender: Deprecate kRetriggerPreloadingOnBFCacheRestoration
kRetriggerPreloadingOnBFCacheRestoration was enabled by default in M117.
This CL removes it.

Bug: 1449163
Change-Id: I0d578aee9309a7c1100261a55a6814dbb709bc59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054717
Commit-Queue: Taiyo Mizuhashi <taiyo@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Huanpo Lin <robertlin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228681}
2023-11-24 07:48:58 +00:00
5cf67c4f1e Reland "[bfcache] Enable BFCache for pages with MediaDevicesDispatcherHost"
This is a reland of commit 6667207527
We reland the original CL without any change since the test that was failing seems to have no relation with the CL, and it has been disabled by Bug: 1504558 and addressed separately.

Original change's description:
> [bfcache] Enable BFCache for pages with MediaDevicesDispatcherHost
>
> This CL makes kMediaDevicesDispatcherHost no longer a blocker for BFCache. This means that pages that have used the media devices API can be cached when they don't access any MediaStreamTrack. This feature is disabled by default by the newly added feature flag `EnableBackForwardCacheForPagesWithMediaDevicesDispatcherHost`
>
> Bug: 1502395
> Change-Id: I36f71242d03955fd566f9bb800f6413fc788bd61
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5029613
> Reviewed-by: Mingyu Lei <leimy@chromium.org>
> Commit-Queue: Kurumi Muto <mkurumi@google.com>
> Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1227870}

Bug: 1502395
Change-Id: I644f16c0e24965f88e036d664b907eb64f66596f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054729
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Yuzu Saijo <yuzus@chromium.org>
Commit-Queue: Kurumi Muto <mkurumi@google.com>
Cr-Commit-Position: refs/heads/main@{#1228666}
2023-11-24 06:43:52 +00:00
9e6ad9f5f0 [FedCM] Add query parameters to IDP login URL
Under the domain hint flag, we add the login hint and the domain hint
as query parameters, if they exist.

Bug: 1440178
Change-Id: I96cb3558904dbbf972b940709aecd9cabb662de5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5053387
Reviewed-by: Yi Gu <yigu@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Auto-Submit: Nicolás Peña <npm@chromium.org>
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228658}
2023-11-24 05:55:25 +00:00
bcb83ef3c8 [Gardening] Disable 2 flaky InterestGroupBrowserTest tests on chromeos
Frequently failing, see for example linux-chromeos-rel bot:
https://ci.chromium.org/ui/p/chromium/builders/ci/linux-chromeos-rel/71241/overview
https://ci.chromium.org/ui/p/chromium/builders/ci/linux-chromeos-rel/71239/overview

Bug: 1502296
Change-Id: I7f5a28b755e1e0d5b04678efccf81236f2605ad3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5056351
Owners-Override: Jeremie Boulic <jboulic@chromium.org>
Commit-Queue: Jeremie Boulic <jboulic@chromium.org>
Reviewed-by: Jeremie Boulic <jboulic@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Auto-Submit: Jeremie Boulic <jboulic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228628}
2023-11-24 02:10:16 +00:00
d14f531fa5 [base] Remove base::Erase()/base::EraseIf() overloads for std::set
They're now replaced with C++20 std::erase()/std::erase_if().

Bug: 1414639
Change-Id: Idbcc92f52a148279dc0186f6d87855c7c4c143a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5057330
Reviewed-by: Kyle Charbonneau <kylechar@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Owners-Override: Kyle Charbonneau <kylechar@chromium.org>
Commit-Queue: Andrew Rayskiy <greengrape@google.com>
Cr-Commit-Position: refs/heads/main@{#1228579}
2023-11-23 21:44:25 +00:00
e408b9fd80 Mark Pixel_WebGLSadCanvas as Failure for Lacros FYI Release
Still too flaky to be consistently green

Bug: 1495176
Change-Id: I2a1e16c240118612791127b9663313d7a3f564b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054526
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: Kramer Ge <fangzhoug@chromium.org>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1228559}
2023-11-23 20:39:51 +00:00
2e60c65407 Cleanup ContextCreationAttribs
color_space was unused.
enable_swap_timestamps_if_supported has meaning only when SurfaceHandle
isn't null, but only set at the call-site which hardcodes
kNullSurfaceHandle.

Bug: 1445523
Change-Id: I580b444d99198ca316384ed5016bc237358e53a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5026933
Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: Brendon Tiszka <tiszka@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Peng Huang <penghuang@chromium.org>
Reviewed-by: Bo Liu <boliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228558}
2023-11-23 20:30:54 +00:00
d4176432c1 [RWS] Store local-set-aliases separately; detect shadowing properly
This allows Chrome to properly detect when a ccTLD alias in the
command-line-provided set should be hidden, because the site it
refers to has been shadowed by some site in an enterprise policy set.

This implementation is not fully generalized; it special-cases the
manually-provided set instead of modifying FirstPartySetsContextConfig
more generally to include this information. This is fine for now since
we never need to compute a new config that's layered on top of another
config from a different enterprise policy.

Fixed: 1503736
Change-Id: I3943bddf4a5bcfb266db431e644e1e7100a528b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5046372
Reviewed-by: Shuran Huang <shuuran@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Auto-Submit: Chris Fredrickson <cfredric@chromium.org>
Commit-Queue: Ken Buchanan <kenrb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228552}
2023-11-23 20:05:17 +00:00
d50d7d806a LSC: Reformat //content/**/*.java with google-java-format
See: https://docs.google.com/document/d/1XKHDXIlUP4p9tWQQnImCPhoKbXEgX-otdwEjX8G6SpQ/edit

Bug: 1491626
No-Presubmit: true
Change-Id: I6c08fbed0efb6a2c7c96a0044647d2701296ae12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054408
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228551}
2023-11-23 20:04:45 +00:00
0d5bc6e3e9 Remove MockNotificationObserver
This is not being used.

Bug: 268984
Change-Id: Ic1cebcd9932109adc2ee21d86c713a229ee3787e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5055106
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Kevin McNee <mcnee@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228489}
2023-11-23 16:28:30 +00:00
7cebe4c43e Fixed the misalignment of the date time picker in landscape mode
Bug: 307942540
Change-Id: I30bb20e528a6265ac5749fd7cc6bd93766a9c33b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5028324
Reviewed-by: Sinan Sahin <sinansahin@google.com>
Reviewed-by: Alex Mitra <alexmitra@chromium.org>
Commit-Queue: Doğancan Emek <dogancanemek@google.com>
Cr-Commit-Position: refs/heads/main@{#1228479}
2023-11-23 15:51:00 +00:00
9b3273bb41 [FedCM] Allow well-known file fetch failures behind a flag
Currently behind the FedCmWithoutWellKnownEnforcement flag we require a
successful well-known fetch and allow the `configURL` not to be part of
the `provider_urls` list.

Given that
  1. we ignore the content of the well-known file behind the flag
  2. IdPs may not want to deploy well-known file under the root of their
  eTLD+1 during early testing

this patch allows fetch failure of the well-known file behind the flag.

Change-Id: Ie80b55704a0a4d62af82ce31fb1551eb6c9f9f5e
Bug: 1458588
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054521
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228437}
2023-11-23 14:40:38 +00:00
280ea2af3d [DevTools] Handle invalid parameters to Network.setRequestInterception.
Fixed: chromium:1500377
Change-Id: I31490583dd9f5debb01fdee14dc859814c261cb4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5053744
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228405}
2023-11-23 12:58:12 +00:00
3e7069f11b 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 --jobs 4

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Bug: 1287280
Change-Id: I9870e999d26bf089ae5815de6bb1cee483d28ac5
Fixed: 1456755
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5056746
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: chrome-automated-expectation@chops-service-accounts.iam.gserviceaccount.com <chrome-automated-expectation@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1228314}
2023-11-23 07:28:54 +00:00
f3d542806e [Fuchsia] Remove sync_performance_tests when optimize_for_size
It seems like a weird decision to have a dedicated build target
performance_web_engine_test_suite and also includes
sync_performance_test which is in //chrome/test. But this change should
bring https://ci.chromium.org/ui/p/chrome/builders/luci.chrome.ci/fuchsia-builder-perf-arm64
back to green.

Bug: 1490426, 1310086, 1309686
Change-Id: If4d7ddfa72a40c36688c897ce61a73cdda0ae947
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5051606
Commit-Queue: Zijie He <zijiehe@google.com>
Reviewed-by: Haiyang Pan <hypan@google.com>
Cr-Commit-Position: refs/heads/main@{#1228303}
2023-11-23 06:11:03 +00:00
5cd191daa9 Use base::FunctionRef for BrowserPluginGuestManager.
The callbacks are always invoked synchronously, so using
base::FunctionRef allows the callers to use capturing lambdas and write
simpler code.

Change-Id: I2b4269670862fa75d5ce62053fbe92e85b7f7cb8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5051069
Reviewed-by: Bo Liu <boliu@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Owners-Override: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228240}
2023-11-23 00:58:14 +00:00
c73fed387b Revert "Add tests to validate SameSite=None cookie behavior"
This reverts commit 5a718d6443.

Reason for revert: This is causing multiple failures, for instance in https://ci.chromium.org/ui/p/chromium/builders/ci/fuchsia-arm64-cast-receiver-rel, 

Original change's description:
> Add tests to validate SameSite=None cookie behavior
>
> First test covers case when third party cookie blocking is enabled,
> fetch calls to cross-site top level domains should not send cookies. Even when SameSite=None.
>
> Second test covers case when a cross-site redirect occurs which
> should send SameSite=None cookies.
>
> Change-Id: If536d35973fcbd79bfe0b004cf36aacae76e9fee
> Bug: 1500988
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5017058
> Reviewed-by: Chris Fredrickson <cfredric@chromium.org>
> Auto-Submit: Aaron Selya <selya@google.com>
> Commit-Queue: Chris Fredrickson <cfredric@chromium.org>
> Reviewed-by: Dylan Cutler <dylancutler@google.com>
> Cr-Commit-Position: refs/heads/main@{#1228051}

Bug: 1500988
Change-Id: If4a29ac19b03bc5c9f15279705ca208f9847bc25
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5053505
Commit-Queue: S Ganesh <ganesh@chromium.org>
Owners-Override: S Ganesh <ganesh@chromium.org>
Auto-Submit: S Ganesh <ganesh@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1228210}
2023-11-22 21:38:21 +00:00
3c059405ef Add breadcrumbs for URLLoader::OnComplete() w/o response received
This adds CHECK()s and a DumpWithoutCrashing() to help isolate cases
where NavigationURLLoaderImpl::OnComplete() may be called with a
successful status and without a prior call to ResponseReceived.
See issue for additional context.

Bug: 1475018
Change-Id: I853affdfbb41ebacdc615c08a369f864ebae3093
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5041959
Reviewed-by: Peter Kvitek <kvitekp@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228154}
2023-11-22 20:03:38 +00:00
b8ced9cb9e FSA: Add separate flag for FSA BFCache changes
Currently the BFCache changes are enabled by the same flag that the
locking scheme feature is. This separates them so that we can kill just
the BFCache changes if needed.

Is enabled by default but the changes are only enabled if both the
BFCache flag and the locking scheme flag are enabled. That way by
default the BFCache changes are controlled by the locking scheme flag.

Bug: 1382215, 1241174
Change-Id: Ibe88c3f87f9564eeb3e80e11c1b00487d306277c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5050409
Reviewed-by: Daseul Lee <dslee@chromium.org>
Commit-Queue: Daseul Lee <dslee@chromium.org>
Auto-Submit: Nathan Memmott <memmott@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228092}
2023-11-22 18:14:14 +00:00
87f8ab1b7a [FedCM] Rename revoke to disconnect
The feature has not shipped yet so it is OK to rename metrics.

DanglingUntriaged-notes: this CL is just a rename...

Bug: 1473134
Change-Id: I8616fd8b68ab2255897f0cb8b1486d9e17eac5cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5049262
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
Reviewed-by: Brendon Tiszka <tiszka@chromium.org>
Reviewed-by: Steve Kobes <skobes@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228089}
2023-11-22 18:10:39 +00:00
d544a72f71 [codehealth] Remove NOTIFICATION_LOAD_STOP
NotificationService, your list of allies grows thin.</elrond>

Bug: 1174764, 170921
Change-Id: Iab33953ffbfdcc9ff075df9d861a81f36f3f4216
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5051448
Reviewed-by: Alexander Timin <altimin@chromium.org>
Commit-Queue: Frank Liberato <liberato@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228085}
2023-11-22 18:02:45 +00:00
5a718d6443 Add tests to validate SameSite=None cookie behavior
First test covers case when third party cookie blocking is enabled,
fetch calls to cross-site top level domains should not send cookies. Even when SameSite=None.

Second test covers case when a cross-site redirect occurs which
should send SameSite=None cookies.

Change-Id: If536d35973fcbd79bfe0b004cf36aacae76e9fee
Bug: 1500988
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5017058
Reviewed-by: Chris Fredrickson <cfredric@chromium.org>
Auto-Submit: Aaron Selya <selya@google.com>
Commit-Queue: Chris Fredrickson <cfredric@chromium.org>
Reviewed-by: Dylan Cutler <dylancutler@google.com>
Cr-Commit-Position: refs/heads/main@{#1228051}
2023-11-22 17:05:09 +00:00
b2caa121c7 Disabling YieldingParserDumpAccessibilityTreeTest.AccessibilityCSSDisplayContents
The test is flaky on mac13-arm64-rel-tests(https://ci.chromium.org/ui/p/chromium/builders/ci/mac13-arm64-rel-tests)

Failing build: https://ci.chromium.org/ui/b/8763726246305921905


Bug: 1367886
Change-Id: Ic4cf322385d976065f4e04bfd8431d0ef5050b10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5053758
Auto-Submit: Viktor Semeniuk <vsemeniuk@google.com>
Commit-Queue: Andrii Natiahlyi <natiahlyi@google.com>
Owners-Override: Viktor Semeniuk <vsemeniuk@google.com>
Reviewed-by: Andrii Natiahlyi <natiahlyi@google.com>
Cr-Commit-Position: refs/heads/main@{#1228044}
2023-11-22 16:58:19 +00:00
c42b98cb68 Remove partial support for proxy chains in PAC strings
For the moment, the plan is to not support proxy chains in PAC strings.
This CL rewrites a bunch of uses of `{ProxyInfo,ProxyList}.ToPacString`
to use `ToDebugString` (which *can* represent a chain), and removes
TODO's for supporting parsing PAC strings into chains.

Three spots that call ToPacString to return the result of proxy
resolution externally are updated to fail if that result contains a
multi-proxy chain.

Bug: 1491092
Change-Id: I30cdef9d3293312b0c52218f0e0baba639bcb76d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5034180
Reviewed-by: Adam Rice <ricea@chromium.org>
Reviewed-by: Roland Bock <rbock@google.com>
Commit-Queue: Dustin Mitchell <djmitche@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228039}
2023-11-22 16:53:19 +00:00
ae81070454 Use SiteInstanceGroup in RenderFrameHostManager::CollectOpenerFrameTrees
Eventually, only a SiteInstanceGroup will be available in this method,
so replace uses of SiteInstance with SiteInstanceGroup.

Test: Update RenderFrameHostManagerTest
Bug: 1261963
Change-Id: Iaccfb2020be40303f6f64c30c7c7b39951c5b3be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5050262
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Sharon Yang <yangsharon@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228030}
2023-11-22 16:24:50 +00:00
088d46f5b3 Disabling BackForwardCacheMetricsTest.AllFeaturesCovered on fuchsia
Bug: 1504558
Change-Id: Iba35e33e65ea0f280e637f116426cb0d4d94d41c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5053740
Commit-Queue: Viktor Semeniuk <vsemeniuk@google.com>
Auto-Submit: Viktor Semeniuk <vsemeniuk@google.com>
Reviewed-by: Andrii Natiahlyi <natiahlyi@google.com>
Owners-Override: Viktor Semeniuk <vsemeniuk@google.com>
Commit-Queue: Andrii Natiahlyi <natiahlyi@google.com>
Cr-Commit-Position: refs/heads/main@{#1228023}
2023-11-22 16:17:19 +00:00
a8db68dd50 FLEDGE: Increase JS timeout for integration tests.
It seems that some bots are sometimes just very slow.

Fixed: 1504520
Bug: 1502155
Change-Id: I9e95dad69115e565243f7b38c4c6648a5427d870
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054297
Reviewed-by: Matt Menke <mmenke@chromium.org>
Commit-Queue: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228012}
2023-11-22 15:56:26 +00:00
0dda5e9e79 Add an enabled-by-default flag for iframe support of adAuctionHeaders.
The iframe support for adAuctionHeaders is still guarded by the
`kFledgeNegativeTargeting` flag, and this remains the flag that controls
the enablement of the `adAuctionHeaders` attribute on the iframe element.
However, we add a separate `kEnableIFrameAdAuctionHeaders` flag that can
be disabled to remove iframe navigation handling of the ad auction
response headers. When `kEnableIFrameAdAuctionHeaders` is disabled, the `Ad-Auction-Signals` and `Ad-Auction-Additional-Bid` response headers are still cleared for iframes that specify the `adAuctionHeaders` attribute, but this has no user-visible impact because iframe navigation offers no programmatic access to the response headers.

Change-Id: Ic79b902e06bf5c0c1aa8db40bfc9087893050bf3
Bug: 1464874
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5049484
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: Orr Bernstein <orrb@google.com>
Cr-Commit-Position: refs/heads/main@{#1228007}
2023-11-22 15:46:37 +00:00
be08b98b11 [base] Remove base::Erase()/base::EraseIf() overloads for std::list
They're now replaced with C++20 std::erase()/std::erase_if().

Bug: 1414639
Change-Id: I2f38a845f132bb4115563547f3669f79b7b6c7ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5049925
Commit-Queue: Andrew Rayskiy <greengrape@google.com>
Reviewed-by: Kyle Charbonneau <kylechar@chromium.org>
Owners-Override: Kyle Charbonneau <kylechar@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1228003}
2023-11-22 15:39:56 +00:00
a67bdef76b Add user-action metrics for screen is locked/unlocked
These metrics are valuable when debugging Chrome crashes.

Bug: 1498274
Change-Id: Id793477ec4e756a6e991e3fee6e4d06a405a5596
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5054278
Reviewed-by: Alexander Timin <altimin@chromium.org>
Commit-Queue: Johannes Kron <kron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1227992}
2023-11-22 15:16:51 +00:00