0
Commit Graph

114039 Commits

Author SHA1 Message Date
3aef1d167c [DNT] Fix NavigationController raw_ptr during WebContents destruction
GetNavigationEntryScreenshotCache() asserts the frame tree is primary.
However during WebContents destruction, the frame tree is reset before
the animator, so the navigation controller (owned by the FrameTree) back
pointer is a UAF.

This CL adds a shortcut to destroy the animator as the "first" thing
during the WebContents's destruction. Then the animator can still
perform the clean up tasks while the navigation controller is still
valid.

Bug: 373898450
Change-Id: I0d793d536ca99700cf7f8c324f562131f2a480c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5948024
Commit-Queue: William Liu <liuwilliam@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372744}
2024-10-23 16:05:44 +00:00
ba04ed009c Add interest group browser tests for Trusted KVv2 signals
Add same origin and cross origin for both trusted KVv2 bidding and scoring signals.

Bug: 337917489
Change-Id: Ic01927e432575ed1b5c4578d1807819cf2b5e5f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5930645
Commit-Queue: Tianyang Xu <xtlsheep@google.com>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372731}
2024-10-23 15:44:46 +00:00
e2d214e066 Prepare AuctionProcessTests for more parameterization.
In particular, switch to using GetWorkletType() instead of GetParam()
in preparation for adding a second parameter.

Also rename GetParamInverse() to GetOtherWorkletType() and
GetPendingRequestsOfParamType() to GetPendingRequestsOfWorkletType().
Merge GetActiveProcesses() and GetActiveProcessesOfParamType() to a
single GetActiveProcessesOfWorkletType() method that takes an optional
worklet type.

Bug: 374253381
Change-Id: I3e9eeaf5dfa523542217f5bd148dbde548bac072
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5953094
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: mmenke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372725}
2024-10-23 15:40:31 +00:00
dc45830c78 Remove unused APIs from ShellManager
Remove unused Layer attachment/detachment APIs from the Shell management
system. This includes:
- Removing forward declaration of cc::Layer
- Removing ShellAttachLayer() and ShellRemoveLayer() functions

These APIs are no longer needed as layer management is now handled
elsewhere in the system.

Bug: None
Change-Id: I7e161d7dbb70100b6e40c254b710d4f5adfbaf09
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5952671
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Abhijeet Kandalkar <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1372722}
2024-10-23 15:34:56 +00:00
b117363c8e Creates RenderInputRouterSupport with CompositorFrameSink's creation for input
handling on Viz.

This CL does the following:
* Hooks up creation of appropriate RenderInputRouterSupport* class to mirror
RenderWidgetHostViewInput interface implementation in Viz for a FrameSinkId.
This information is stored in FrameSinkMetadata structure.
* Adds traversal methods, namely Get(Parent|Root)RenderInputRouterSupport to
InputManager, allowing getting parent/root RenderInputRouterSupportBase* class
from a child frame. Added tests for the traversals.
* Refactors RenderWidgetHostViewInput interface and implements some additional
methods for the same interface in RenderInputRouterSupportBase.

Doc Link:
https://docs.google.com/document/d/1tRPUd11fuPcXxb2ep_kGYPahgv0OOlV7DvsGkbom7VA/

Bug: b:367695776, b:373888054
Change-Id: Ia61f1848abc0598f7f385a6b4d1202109ca3fa71
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5941108
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Commit-Queue: Aman Verma <amanvr@google.com>
Cr-Commit-Position: refs/heads/main@{#1372706}
2024-10-23 15:15:59 +00:00
9e29e38e73 Migrate AuctionProcessTests to TEST_P()
A couple of them were still using TEST_F, which works in parameterized
tests as long as you don't call GetParam(), but we'll soon be calling
GetParam() in all tests, whe we add a second parameter to control the
base AuctionProcessManager being tested.

Bug: 374253381
Change-Id: Ie04e820460bdd078f6ef7de1cac33a99b5f8aeea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5954132
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: mmenke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372695}
2024-10-23 14:56:24 +00:00
5a878f82ed DevTools: remove AttachClientWithoutWakeLock
AttachClientWithoutWakeLock was added in crrev.com/c/2360070
but does not appear to be used anymore.

Bug: 161674018
Change-Id: I0fbee2a736ef0e4ddc97d489505508b4f3ef3476
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5954266
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372646}
2024-10-23 12:56:45 +00:00
e14429a8f2 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 --jobs 4

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Bug: 329138770, 371949935
Change-Id: I00c692c2e22988127e9970186bd78264e4173591
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5955372
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@{#1372548}
2024-10-23 08:02:21 +00:00
d5a8a4e9a7 Remove stale screenshot_sync 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 screenshot_sync --jobs 4

Affected bugs for CL description:

R=rubber-stamper@appspot.gserviceaccount.com

Bug: 324934210
Change-Id: I7c5cbedfb9ff01117917d984253c950d24933e97
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5956107
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@{#1372542}
2024-10-23 07:50:04 +00:00
154e9fdc94 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: 1175371, 1490427
Change-Id: I4d91cc4d96bac9a82b6b0d276b20dfba774a2e94
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5955953
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@{#1372534}
2024-10-23 07:27:36 +00:00
2853276b2f Update some content/browser keyboard event handling
Apparently, blink handles key down and raw key down events the same way.
Some pieces of content/browser apparently should use blink-like logic but they do not.
This change tries to address it by adding missing key down handling.
Also it includes a necessary change outside of content/browser.

Bug: 40881497
Change-Id: Ic22435674d7054034a3a12d1d5b017248f5508c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5928666
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Mariusz Domżał <mdomzal@google.com>
Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372533}
2024-10-23 07:21:34 +00:00
30226f35ec Move some classes into the on_device_translation namespace
This CL moves following classes into the "on_device_translation"
namespace.
 - OnDeviceTranslationServiceController
 - TranslationManagerImpl
 - Translator

This CL should not introduce any behavior change.

Bug: 374631433
Change-Id: I58a469953abea7a585825a0fe6fc5afcf89420c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5953006
Reviewed-by: Alex Gough <ajgo@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372530}
2024-10-23 07:09:42 +00:00
83318f5747 Build display_media_access_handler for Android
This is CL 2/? for Android media picking.

Bug: 352186941
Test: CQ
Change-Id: If2801bb3ec1e773d70cc9eb3fb8471194a8c7314
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5919605
Reviewed-by: Jordan Bayles <jophba@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Commit-Queue: Eliot Courtney <edcourtney@chromium.org>
Reviewed-by: Mark Foltz <mfoltz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372525}
2024-10-23 06:38:27 +00:00
d024421bbe [FedCM] Pass filtered out accounts to UI behind a flag
The filtered out accounts are not filtered in the case where the user
just logged in to the IDP and there are no new unfiltered accounts. This
includes the case where all accounts are filtered out. On desktop, the
HoverButton is disabled, but the UI still needs to be updated. On
Android, the UI is not updated at all, but it is behind the flag.
Followups will implement proper disabled accounts UI on both.

Bug: 40945672
Change-Id: Ie436542d12b87b17c461102edfedad85066ecf83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5867640
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Auto-Submit: Nicolás Peña <npm@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372517}
2024-10-23 06:14:45 +00:00
96972b373a Disable flaky test: RenderThreadImplBrowserDeathTest.TransferSharedLastForegroundTime
Run History: https://ci.chromium.org/ui/test/chromium/ninja%3A%2F%2Fcontent%2Ftest%3Acontent_browsertests%2FRenderThreadImplBrowserDeathTest.TransferSharedLastForegroundTime

Bug: 375065072
Change-Id: Ib2a373f92b49793bc5d63d4675a8f2bf3541bced
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5953526
Owners-Override: Minoru Chikamune <chikamune@google.com>
Commit-Queue: Minoru Chikamune <chikamune@google.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Minoru Chikamune <chikamune@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372515}
2024-10-23 06:01:57 +00:00
e9def0e3f5 PreloadingConfig: update default sampling rates
Bug: b/287509693
Change-Id: I7f51c5a4c3a3b8cad16a36eaff6452f279c3a857
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5952668
Commit-Queue: Lingqi Chi <lingqi@chromium.org>
Auto-Submit: Domenic Denicola <domenic@chromium.org>
Reviewed-by: Lingqi Chi <lingqi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372506}
2024-10-23 04:42:59 +00:00
0e8f81e43e content: Use last committed entry during cache eviction
Bug: 375051688
Change-Id: Ie684b68feb6ee0dc89cc34d3230bf1089720fc2f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5955570
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Auto-Submit: Khushal Sagar <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372487}
2024-10-23 03:38:10 +00:00
5c538543d1 Disable flaky test: RenderThreadImplBrowserDeathTest.TransferSharedLastForegroundTime
Run History: https://ci.chromium.org/ui/test/chromium/ninja%3A%2F%2Fcontent%2Ftest%3Acontent_browsertests%2FRenderThreadImplBrowserDeathTest.TransferSharedLastForegroundTime

Bug: 375065072
Change-Id: Ib0cebb98bd7448fa5f032872434b167410fcfb73
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5953364
Owners-Override: Minoru Chikamune <chikamune@google.com>
Commit-Queue: Minoru Chikamune <chikamune@google.com>
Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372478}
2024-10-23 03:03:27 +00:00
f690cb404c Fix an issue that downloads_by_guid_ map can contain nullptr
The issue is caused by an [] accessor.
This CL fixes the issue and DCHECK all places we reference items
in downloads_by_guid_

Change-Id: Ibf30111ef969d5e6d35f4a31dbcb1a0898267348
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5955567
Reviewed-by: Siddhartha S <ssid@chromium.org>
Commit-Queue: Min Qin <qinmin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372425}
2024-10-23 00:28:53 +00:00
3cb576d7b8 Use an unentitled helper for the GPU process when possible
When SwiftShader is not enabled for the GPU process, the GPU process has
no need for the `com.apple.security.cs.allow-jit` entitlement. It can be
run using a normal, unentitled helper app instead.

Bug: 374064153
Change-Id: Ia67e21d99b5fafddc8ddd16275e9b216e7053370
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5952835
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Auto-Submit: Mark Rowe <markrowe@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372375}
2024-10-22 22:15:51 +00:00
a7a50474fa s/dailyUpdateUrl/updateURL/ in a few places
The older name is deprecated but still supported.

Bug:40258627,40264073

Change-Id: I33603eaf2d9a873d22dbb2aae95089e0680b6383
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5953028
Reviewed-by: mmenke <mmenke@chromium.org>
Auto-Submit: Caleb Raitto <caraitto@chromium.org>
Commit-Queue: mmenke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372357}
2024-10-22 21:59:31 +00:00
62bfc6514a TTS Engine Extension: Emit OnLanguageStatusRequest to extensions.
The approved API proposal:
https://docs.google.com/document/d/16C6iMB9lsnAZDKc6Ea2Ep-jZj23SOUgI5n62W-FI9gk/

Here is the relevant design doc: go/read-aloud-eng-design-phase3

AX-Relnotes: Reading mode for non-ChromeOS desktop Chrome browsers
emits an event that will cause it to receive a notification with the
status of a higher quality voice. Previously, this was a a no-op.

Bug: 360395015
Change-Id: I1562fc51219a890716bf795ac933383702c821d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925910
Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
Reviewed-by: Xiang Xiao <xiangxiao@google.com>
Commit-Queue: Eitan Goldberger <eitang@google.com>
Cr-Commit-Position: refs/heads/main@{#1372325}
2024-10-22 21:21:41 +00:00
51eb828535 Transfer scenario shared memory handles in DocumentCoordinationUnit
Following a suggestion by Nasko in https://crrev.com/c/5867574, this
handles performance scenario shared memory completely in the blink and
components/performance_manager layers, getting rid of a shim through
content/ and chrome/.

This will unblock a followup CL to attach the browser-side
StructuredSharedMemory region to ProcessNode instead of
RenderProcessHost, which is blocked by the content/ shim accessing it
synchronously on the UI thread. The cost is an extra IPC roundtrip on
process startup.

Includes a partial revert of https://crrev.com/c/5867574 that returns
mojom::Renderer::TransferSharedMemoryRegions to TransferSharedLastForegroundTime.

Bug: 365586676
Change-Id: I681a3c941661ebba7c10b7abaf54aa5c4e430a9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5949866
Commit-Queue: Joe Mason <joenotcharles@google.com>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Auto-Submit: Joe Mason <joenotcharles@google.com>
Cr-Commit-Position: refs/heads/main@{#1372300}
2024-10-22 20:51:49 +00:00
12a036755e Enforce Noopener on Cross-Site Blob URL Navigations
To align Chrome with WebKit behavior, Chromium will enforce noopener
on navigations to Blob URLs where the corresponding site is
cross-site to the top-level site performing the window.open.
This ensures that a null handle is returned when `window.open` is
performed regardless of if the navigation succeeded.

Design Doc:
https://docs.google.com/document/d/1Xk73RLlLgfVw1p2tYBGqlP7ROQxaMh6kxfusSMm9exM/edit?usp=sharing

Bug: 361751872
Change-Id: I62316cf979629f5be26bbec708c76057f1e2ad80
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5887349
Commit-Queue: Janice Liu <janiceliu@chromium.org>
Reviewed-by: Andrew Williams <awillia@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Auto-Submit: Janice Liu <janiceliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372255}
2024-10-22 19:51:41 +00:00
7e675b750b Merge IsConnectedToXXX functions into one IsCapabilityActive function
This CL:
a. Move DeviceConnectionType into WebContents and rename it to CapabilityType
b. Merge all IsConnectedToXXX() functions into a single IsCapabilityActive() function
c. Rename OnDeviceConnectionTypesChanged() method to OnCapabilityTypesChanged().

Bug: 372836924
Change-Id: Ib8be8821dff459c3788aeeb0fc4921f3996ec069
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5938280
Reviewed-by: Patrick Monette <pmonette@chromium.org>
Commit-Queue: Yifan Luo <lyf@chromium.org>
Reviewed-by: Matt Reynolds <mattreynolds@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372240}
2024-10-22 19:19:07 +00:00
8e5d3d5f9c [Geolocation LHS] Add geolocation to web content observer
To show geolocation usage in the left-hand indicator. We need to expose
it to PageSpecifiedContentSetting.

In this CL, this usage information is exposed with the same method as
HID/bluetooth with the web contents observer.

Change-Id: I730547e07955cd07913c49e92abd6ce01bbde05d
Bug: 372836924
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5920698
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Elias Klim <elklm@chromium.org>
Reviewed-by: Matt Reynolds <mattreynolds@chromium.org>
Commit-Queue: Yifan Luo <lyf@chromium.org>
Reviewed-by: Francois Pierre Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372239}
2024-10-22 19:18:16 +00:00
f31debc4a7 Avoid copy constructing interstitial_html for ThrottleCheckResult
Avoid up to two duplications by moving into the constructor arg, and
them moving from the constructor arg into the member variable.

Change-Id: I2607e9efdf7cb8ae6b279ee06809d861a3c510bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5930497
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Nathan Parker <nparker@chromium.org>
Reviewed-by: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372221}
2024-10-22 18:55:14 +00:00
622b01b42e [DNT] Added a feature flag to guard dump without crash statements
Dump without crashes can be noisy in stable. This flag will enable us to
turn it off and on in different versions of Chrome avoiding extra noises
while being informed about them happening.


Bug: 374365779, 373617224
Change-Id: Iee0536c303a571f962b1816667d2fbc67da8ff46
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5950247
Reviewed-by: William Liu <liuwilliam@chromium.org>
Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
Commit-Queue: Baran Erfani <baranerf@google.com>
Cr-Commit-Position: refs/heads/main@{#1372216}
2024-10-22 18:51:14 +00:00
88fa590116 Reland "[HitTestOpaqueness] Enable by default"
This reverts commit fffe2c8c47.

Reason for revert: We have fixed all known HitTestOpaqueness bugs
on M132 and M131, so we enable HitTestOpaqueness it by default
again.

The original CL (Revert "[HitTestOpaqueness] Enable by default")
has been merged into M130 (but not M131). We have also landed a kill
switch to disable HitTestOpaqueness on M130 via finch.

Original change's description:
> Revert "[HitTestOpaqueness] Enable by default"
>
> This reverts commit a56e352a2b.
>
> Reason for revert: There are several bugs, some fixed on ToT
> (crbug.com/348520453, crbug.com/367166494), some
> still need investigation (crbug.com/372722559). We need to unlaunch
> the feature and restart the experiment after all bugs are fixed.
>
> Original change's description:
> > [HitTestOpaqueness] Enable by default
> >
> > Also change status of FastNonCompositedScrollHitTest to stable to make
> > it merely depend on the status of RasterInducingScroll, to simplify
> > dependencies.
> >
> > Bug: 40062957, 40256365, 329115115
> > Change-Id: Ia675bf7a2e833f26f3c113bda12735317d218a07
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5824528
> > Reviewed-by: Philip Rogers <pdr@chromium.org>
> > Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
> > Reviewed-by: Jonathan Ross <jonross@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1348709}
>
> Bug: 40062957, 40256365, 329115115
> Change-Id: Ibeeeed2eda9365c850c174ca0854bba9ba77855a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5941138
> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
> Reviewed-by: Philip Rogers <pdr@chromium.org>
> Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
> Reviewed-by: Jonathan Ross <jonross@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1370123}

Bug: 40062957, 40256365, 329115115
Change-Id: I5545ded5322d6c0552868a28f12664eb6f1ee543
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5954707
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372207}
2024-10-22 18:40:30 +00:00
dfd71fcedd Suppress unsafe buffers warnings from the latest version of Clang
Bug: 374320451
Change-Id: Ie5e961ab00cb84f9094253bf715ca1e6e3d411db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5949519
Reviewed-by: danakj <danakj@chromium.org>
Owners-Override: danakj <danakj@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372197}
2024-10-22 18:31:45 +00:00
e307cce88c media: Remove MediaLicense* code and usage
This CL deletes a lot of the MediaLicense* code and usages of it from
the codebase.

OBSOLETE_HISTOGRAMS=No longer using the MediaLicense* code.

Bug: 40272342
Change-Id: I46a2d8bf53ca684467255b6e21e3cd7e1441c4c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5904345
Commit-Queue: Vikram Pasupathy <vpasupathy@chromium.org>
Reviewed-by: Evan Liu <evliu@google.com>
Reviewed-by: Evan Stade <estade@chromium.org>
Reviewed-by: John Rummell <jrummell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372190}
2024-10-22 18:24:24 +00:00
d9666f0ac5 Add RemoveRendererProcessLimit to testing config.
This CL adds the RemoveRendererProcessLimit field to the testing
configuration. This is a follow up to:
https://chromium-review.googlesource.com/c/chromium/src/+/5875002.

Bug: 369342694

Change-Id: I21a8d2728b355022e28a67e8191b292d90c02a10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5916629
Reviewed-by: Francois Pierre Doray <fdoray@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Alex Attar <aattar@google.com>
Cr-Commit-Position: refs/heads/main@{#1372164}
2024-10-22 17:51:15 +00:00
46a082dbc1 Skip waiting for attestations loading for Attribution Reporting API
OBSOLETE_HISTOGRAMS=No longer needed

Based on the metrics collected, only a very small percentage of
registrations are queued during the period of attestations loading.
Therefore, there should be very little impact on the live traffic,
regardless of the default behavior of the attestations API.

Currently the attestations API defaults allow if attestations are
not available yet. Therefore, there is no data loss on the live
traffic, as well as the pending reports that get sent on browser
startup.

This cl skips waiting for attestations loading, which aligns with other
privacy sandbox APIs and simplifies the implementation.

In a follow up, we may consider always defaulting allow pending
reports if attestations are not available yet to remove the dependency
on the attestations API.

Bug: 374790908, 374325234, 40267739
Change-Id: Ie3664cb4f405d3a29ee9059de7bfd1a112b30a11
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5950404
Reviewed-by: Andrew Paseltiner <apaseltiner@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Nan Lin <linnan@chromium.org>
Reviewed-by: John Delaney <johnidel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372156}
2024-10-22 17:42:51 +00:00
31e84a6459 Merge DedicatedStyleTestAuctionProcessManager into parent class.
Also migrate it to use WeakPtrs to WorkletProcesses, to make it safer.

At this point, DedicatedStyleAuctionProcessManagerTest could be merged
into AuctionProcessManagerTest, but it's convenient to keep them
separate for now, since the current crop of AuctionProcessManagerTests
should work for InRenderer and Dedicated test cases, while the
DedicatedStyleAuctionProcessManagerTests do not. I have plans for that,
but not ready for them quite yet.

Bug: 374253381
Change-Id: I825136424efb9993e650f216014049a8804b9607
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5952626
Commit-Queue: mmenke <mmenke@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372151}
2024-10-22 17:33:53 +00:00
596ddd5fe2 Propagate switch that disables VEA to renderer
Bug: 374683344
Change-Id: Ia126b283ca5300d74a70f4f13d2d836727114567
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5947007
Auto-Submit: Wojciech Dzierżanowski <wdzierzanowski@opera.com>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Nasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372149}
2024-10-22 17:27:40 +00:00
097916145a Ignore native platform mouse events in web tests.
For web tests this stops WindowEventDispatcher::SynthesizeMouseMoveEvent
from sending the renderer a mousemove, which it normally does on startup
and whenever we swap in a new RenderWidgetHostView.

The benefits of this change are:

- Eliminating potential flakiness by making the web tests more order-
  agnostic.  Tests can behave differently with the mouse at (0,0) versus
  the position-unknown state which is restored in between test runs by
  EventHandler::ResetLastMousePositionForWebTest.  This also helps to
  de-risk upcoming web test isolation changes (go/web-test-isolation).

- Aligning Windows and Linux behavior with Mac.  AppKit sends a native
  mousemove to a new on-screen RWHV, similar to what Aura synthesizes.
  But AppKit does NOT send these mousemoves to headless web tests.

Bug: 374783343
Change-Id: I6b1d7234410cd6fa799954845bb5b50f5a2b82ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5808379
Commit-Queue: Steve Kobes <skobes@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372147}
2024-10-22 17:26:30 +00:00
7e7777e843 Reland "[views_ax] Adding a histogram to measure a11y Windows API performance"
This is a reland of commit 02529b84f5

Original change's description:
> [views_ax] Adding a histogram to measure a11y Windows API performance
>
> This CL adds a histogram to measure the perf of Windows accessibility
> API calls. It differentiates between when its called by a View or by
> web contents. This is so that when the ViewsAX project is done, we can
> compare the performance of before and after.
>
> To determine whether the API is being called on a View or not,
> we check if we have an associated node. If we don't, then it is
> definitely a View. Currently if we have an associated node then
> it is not a View, however, in the future we will have AXNodes
> in Views, which is why I added an extra check in the macro for
> when this is the case.
>
> Bug: 325137417
> Change-Id: I022c606a6073512fe0edf6d2e2b69755880d4bdd
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5368828
> Reviewed-by: Jacques Newman <janewman@microsoft.com>
> Commit-Queue: Javier Contreras <javiercon@microsoft.com>
> Reviewed-by: Benjamin Beaudry <benjamin.beaudry@microsoft.com>
> Reviewed-by: Evan Liu <evliu@google.com>
> Cr-Commit-Position: refs/heads/main@{#1273695}

Bug: 325137417
Change-Id: I80e85c88aed3bb0c803ef3c6dba1960f4aeeb310
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5915945
Reviewed-by: Evan Liu <evliu@google.com>
Commit-Queue: Sejal Anand <sejalanand@microsoft.com>
Reviewed-by: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372143}
2024-10-22 17:23:56 +00:00
2f272a7ffb [shared storage] Introduce SharedStorageModifierMethod union Mojo type
What:
- Introduce SharedStorageSet(/Append/Delete/Clear)Method and a union
  type SharedStorageModifierMethod. Consolidate the existing modifier
  methods into a single
  `SharedStorageUpdate(SharedStorageModifierMethod)` method.
- No behavior change.

Why:
- Enable Batch Updates: This prepares for the upcoming support for the
  JavaScript API, batchUpdate(sequence<SharedStorageModifierMethod>),
  allowing websites to perform multiple modifications in a single
  operation. Explainer: https://github.com/WICG/shared-storage/pull/199
- Improved Maintainability: This simplifies the Mojo interface and
  reduces future maintenance overhead.

Bug: 373899210
Change-Id: I3b516b577fb170cca19bd7f9afa1c019f53e0f45
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5949646
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372139}
2024-10-22 17:20:15 +00:00
173da83851 Rework AuctionProcessManager process creation.
In particular, have both production subclasses use a virtual method to
actually launch the process and create the service, after creating the
WorkletProcess. This will help with writing tests that want to test
production behavior of both subclasses, since some tests need to muck
with the WorkletProcess. There are also a lot of parameters to
the WorkletProcess constructor now, and this will help prevent mocks
from messing them up.

Bug: 374253381
Change-Id: I843e20cb0214cf2fb021b72833ff285a9cf24123
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5950026
Commit-Queue: mmenke <mmenke@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372133}
2024-10-22 17:11:04 +00:00
5611d29ec7 Protected Audience: Request buyer worklets before seller worklets
Request worklets for buyers (including top-level and those in component auctions) before sellers (top-level and component). This change will
allow us to make the most of starting un-bound anticipatory
processes at the start of auctions because we may have fewer ready
processes than we have buyers+sellers.

Bug: 365528726
Change-Id: I9408432dbbec43b25fcad3d44401fc047aca14ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5939354
Reviewed-by: mmenke <mmenke@chromium.org>
Commit-Queue: Abigail Katcoff <abigailkatcoff@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372086}
2024-10-22 16:13:11 +00:00
fa4e483067 Delete obsolete ChromeOS passkeys code
This removes code implementing the native ChromeOS authenticator for GPM
passkeys. ChromeOS has since launched support for GPM passkeys using the
enclave authenticator, so this code is now obsolete.

Change-Id: Ie179188900c6f5471ea7525a0aa03f47a669d5df
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5939975
Reviewed-by: Ryan Sultanem <rsult@google.com>
Reviewed-by: Mohamed Amir Yosef <mamir@chromium.org>
Commit-Queue: Martin Kreichgauer <martinkr@google.com>
Reviewed-by: Adam Langley <agl@chromium.org>
Reviewed-by: Maksim Moskvitin <mmoskvitin@google.com>
Cr-Commit-Position: refs/heads/main@{#1372082}
2024-10-22 16:10:38 +00:00
41188d4167 DocumentSubresourceFilter: Switch to RequestDestination.
This patch refactors DocumentSubresourceFilter to use network::mojom::RequestDestination instead of blink::mojom::RequestContextType.
Update subsequent dependencies and tests.

Bug: 373206908
Change-Id: I1c64cdf5ccf1737ec0c1860cfef8a34e60d639e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5933188
Reviewed-by: John Delaney <johnidel@chromium.org>
Commit-Queue: John Kim <johnykim@google.com>
Reviewed-by: Martin Verde <thesalsa@google.com>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372059}
2024-10-22 15:29:09 +00:00
413fe50b51 Adds RenderInputRouterSupportChildFrame implementation in Viz.
This CL does the following:
* Implements RenderWidgetHostViewInput interface as
RenderInputRouterSupportChildFrame mirroring
RenderWidgetHostViewChildFrame class in browser for handling input on
Viz with InputVizard. This CL just adds the skeleton of
RenderInputRouterSupportChildFrame class's implementation with bunch of
TODO's which are being tracked with bugs and will be added later in the
upcoming CL's.
* This CL also introduces ChildFrameInputHelper class to share code
between RenderWidgetHostViewChildFrame (in Browser) and
RenderInputRouterSupportChildFrame (in Viz).

Doc Link:
https://docs.google.com/document/d/1tRPUd11fuPcXxb2ep_kGYPahgv0OOlV7DvsGkbom7VA/

Bug: b:367695776
Change-Id: Idcd1efa39e6a1a20850201a662c3ecdeb1d482d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5937819
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Commit-Queue: Aman Verma <amanvr@google.com>
Cr-Commit-Position: refs/heads/main@{#1372046}
2024-10-22 15:09:57 +00:00
0897103116 Fenced frames: Disable Open Link in New Tab/New Window/Incognito
Window context menu options when network is revoked.

Fenced frames(FF) can disable network access by invoking FF API:
window.fence.disableUntrustedNetwork().

After the network access is revoked, FF will get access to cross-site
data, for example, via shared storage get API.

The principle is no network request can be made using URLs in a
network-disabled FF, including user triggered main-frame navigations.
This is because the URL can leak cross-site data, for example, by
appending the cross-site data to the URL.

This CL disables Open Link in New Tab/New Window/Incognito Window
context menu options when FF network is revoked.

Bug: 364825899, 364904745, 364825898
Change-Id: Ic066e0899578a0acb5222b0069205e01c42b811a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5934756
Reviewed-by: Erik Chen <erikchen@chromium.org>
Commit-Queue: Xiaochen Zhou <xiaochenzh@chromium.org>
Reviewed-by: Liam Brady <lbrady@google.com>
Cr-Commit-Position: refs/heads/main@{#1371993}
2024-10-22 13:28:12 +00:00
307af94df9 Expand Android accessibility histogram for inline text boxes
This CL expands upon the previously added histogram for tracking the
usage of inline text boxes on Android. There are two primary ways in
which the inline text boxes can be requested, and this CL breaks the
histogram into two patterns so that we can track the call sites
separately. We also add a histogram to track whether or not the
requests from an AT are duplicates and do not need to be fulfilled.
We also remove a few lines from a test to eliminate flakes.

OBSOLETE_HISTOGRAM[Accessibility.Android.InlineTextBoxes.Bundle]=Replaced by patterned histogram with .{CallLocation} appended.

AX-Relnotes: N/A
Bug: 372718628
Change-Id: I266ebb9ec6b14fec706525d28aca3a146e93fac0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5949586
Reviewed-by: Akihiro Ota <akihiroota@chromium.org>
Auto-Submit: Mark Schillaci <mschillaci@google.com>
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Cr-Commit-Position: refs/heads/main@{#1371978}
2024-10-22 12:55:24 +00:00
8ebe71ef46 Prerender: Simplify PrerenderAttributes ctor
In most cases, initiator*'s value can be calculated directly from RFHI.
The only exception is `initiator_web_contents`.
So, this CL passes RFHI directly to the ctor, and let the ctor to
calculate the values.

This CL is a preparation for the following CLs to add more information to PrerenderAttributes.

Bug: 40246462, 40240492
Change-Id: I2317192de0024126f44c1d947cabb3bfffd4417e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943847
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Lingqi Chi <lingqi@chromium.org>
Reviewed-by: Taiyo Mizuhashi <taiyo@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1371876}
2024-10-22 07:08:39 +00:00
1f4768b057 use std::optional base::GetFileSize() in misc. files
Bug: 371234479
Change-Id: If81a7b96fc7081f0fffb274622055e493abb52c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5938237
Commit-Queue: Helmut Januschka <helmut@januschka.com>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1371862}
2024-10-22 05:53:18 +00:00
d0445afbcc Video: Update Qualcomm GPU framerate and resolution exceptions
Windows MediaFoundation report `max_macroblocks_per_second` equals
1944000 on Qualcomm Adreno 690 GPU, which technically should support
3840x2160 up to 60fps or 1920x1080 up to 240fps resolution and
framerate. However, the actual result is, it does support 3840x2160
up to 60fps, but only supports 1920x1080 up to 238fps instead of
240fps.

Update the exception comment and condition so we know better about
this issue, we can't really do much to solve this.

Bug: 373648897
Bug: 365813271
Change-Id: Idad6f460bbfcec960015fb569833ff5d8901d033
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5941334
Reviewed-by: Eugene Zemtsov <eugene@chromium.org>
Commit-Queue: Sida Zhu <zhusida@bytedance.com>
Cr-Commit-Position: refs/heads/main@{#1371838}
2024-10-22 04:28:16 +00:00
02bd3579f6 [Surface Capture] Factor out the device scale override (HiDPI) logic.
This CL factors out the computation of the device scale override from
the rest of the WebContentsFrameTracker, to simplify the WCFT and
allow he HiDPI heuristics to be improved without making it more
complicated.

Change-Id: I474309ccba1d82ea7d850112b4a4ca46b44e015f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5932824
Reviewed-by: Jordan Bayles <jophba@chromium.org>
Commit-Queue: Mark Foltz <mfoltz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1371808}
2024-10-22 02:13:07 +00:00
fdf9f37f9c WebUI: Remove Polymer version of cr_elements/icons.html iconset.
The Polymer version is no longer used anywhere and iron-iconset-svg has
already been removed from Desktop builds, since crrev.com/c/5869465.
Therefore there is no longer a need to generate the Lit version from
the Polymer one during the build.

Bug: 40943652
Change-Id: Icc8b36c17b7a26da3cf0e51f41e71551604f7b54
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5949028
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1371806}
2024-10-22 02:03:43 +00:00