0
Commit Graph

114905 Commits

Author SHA1 Message Date
cd4c24d550 [MPArch guest view] Fix loading extension resources inside a guest view
- Ensure that the view type is correct for guest views, this previously
was computed from the WebContents but we should use the RenderFrameHost
for this.
- Provide an API to get the owner RenderFrameHost before attachment.

Bug: 40202416
Change-Id: I351313f06cd7a221e9c9bae0e3c155e827b3be51
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6053978
Reviewed-by: Greg Thompson <grt@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: David Bertoni <dbertoni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390990}
2024-12-03 15:02:16 +00:00
af40a0bbde Remove orphis@chromium.org from OWNERS file
Bug: None
Change-Id: I4270f937da13b1d6f752ad07f6eb339bad06b5cc
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6063650
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Commit-Queue: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390989}
2024-12-03 15:01:19 +00:00
d65050fb52 [DC] Parameterize the request type sent via RequestDispatcher
This is a mechanical CL in the cross-device digital credentials flow.

Before this CL:
The request type in the request sent via the tunnel was hard-coded to
be `credential.get`.

After this CL:
A new struct CrossDeviceRequestInfo is introduced to capture all the
information of the cross-device digital credentials request including
the the request type.
This allows the calling sites to send different types of requests.

This is in preparation for supporting credential.create requests.


Bug: 378330032
Change-Id: I1f3e618cfc336be931561f31f51e71039cc3351f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6055571
Reviewed-by: Alexander Timin <altimin@chromium.org>
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390982}
2024-12-03 14:38:57 +00:00
b550c350a6 Revert "Enable 5 Protected Audience and Fenced Frame features in Mode A/B"
This reverts commit 7f52df769d.

Reason for revert: suspected culprit for b/381980101 and b/381977849

Bug: 381980101, 381977849

Original change's description:
> Enable 5 Protected Audience and Fenced Frame features in Mode A/B
>
> With the end of the Chrome-facilitated testing period, enable these features
> in Modes A and B to provide a more consistent developer experience and
> decrease the need for feature detection:
>  * PA Real Time Reporting
>  * PA multi-bid support
>  * PA deprecatedReplaceInURN via auction config
>  * PA multiple bidding contexts optimization
>  * FF allow cross-origin subframes to send reportEvent() beacons
>
> This was announced here:
>  https://groups.google.com/a/chromium.org/g/blink-dev/c/WgGGPElrG9o
>
> Change-Id: I7d26fb1ea908837557bf60cc8762245c409d0160
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6049396
> Auto-Submit: Paul Jensen <pauljensen@chromium.org>
> Reviewed-by: Shivani Sharma <shivanisha@chromium.org>
> Reviewed-by: Nasko Oskov <nasko@chromium.org>
> Commit-Queue: Nasko Oskov <nasko@chromium.org>
> Reviewed-by: Maks Orlovich <morlovich@chromium.org>
> Reviewed-by: Kent Tamura <tkent@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1390666}

Change-Id: I4cf77749fb95b8de9cdc412c674f7edb9c481edd
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6062886
Auto-Submit: Florian Jacky <fjacky@chromium.org>
Reviewed-by: Balazs Engedy <engedy@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Florian Jacky <fjacky@chromium.org>
Commit-Queue: Balazs Engedy <engedy@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390874}
2024-12-03 09:17:33 +00:00
38f6395d7e [Signature-based SRI] Add to chrome://flags
This CL adds a flag to `chrome://flags` for testing in order to simplify
the process of setting both the network- and blink-side flags.

Bug: 375224898
Change-Id: If5158529a0e78d91ae591073a3cd5b24bda78c28
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6062784
Reviewed-by: Yoav Weiss (@Shopify) <yoavweiss@chromium.org>
Commit-Queue: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390867}
2024-12-03 09:10:48 +00:00
f834fea295 [2/n] Implement RenderInputRouterDelegateImpl: Adds PeakGpuMemoryTracker
implementation on Viz.

This CL implements PeakGpuMemoryTracker interface in Viz allowing it to
track peak memory of GPU service for scrolling scenarios with
InputVizard.
Following are some of the high level implementation details:
* Starting/stopping tracking peak memory on Viz includes posting a task
to main thread (GpuMain), from VizCompositor thread where the tracking
is implemented.
* PeakGpuMemoryTrackerImpl's |sequence_num_| captures even numbers in
browser whereas odd numbers in Viz to avoid collisions while tracking.
* Adds tests for the PeakGpuMemoryTracker implementation in Viz.

Bug: b:365541296
Change-Id: I5ac23a39511a45f149e3117a0d9af9c0bc4c4a1a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5972645
Reviewed-by: Alexander Timin <altimin@chromium.org>
Commit-Queue: Aman Verma <amanvr@google.com>
Reviewed-by: Stephen Nusko <nuskos@chromium.org>
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390842}
2024-12-03 08:09:50 +00:00
f7a3dff21f Introduce ServiceWorkerMainResourceLoader::Fallback()
To make the diff smaller in
https://chromium-review.googlesource.com/c/chromium/src/+/5274112.

This shouldn't change the overall behavior.

Bug: 40251638
Change-Id: I0944033980366a667e8a2be78e3aaa2786df394f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6026676
Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
Reviewed-by: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Reviewed-by: Keita Suzuki <suzukikeita@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390787}
2024-12-03 03:58:46 +00:00
146131fff5 Use the same URL for CalculateStorageKeyForUpdateUrls and UpdateUrls
For consistency.
This shouldn't affect the behavior because anyway the original and
stripped URLs should points to the same origin.

Bug: 368025734
Change-Id: I5956737289873cee4485cfe54d40d2cf48483774
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5914193
Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Reviewed-by: Keita Suzuki <suzukikeita@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390786}
2024-12-03 03:54:47 +00:00
17f053ad53 [shared storage] Add SharedStorageSet/Append/Delete/Clear IDL Interface
Implement the constructor for `SharedStorageSetMethod`, etc. The
error handling logic mirrors the existing sharedStorage.set(), etc.
To allow code reuse, the sharedStorage.set(), etc. methods
now creates the object and early return on exceptions.

Note that even though we no longer explicitly call resolver->Reject()
for sharedStorage.set(), etc., Chrome still converts thrown
exceptions to rejected promises (to adhere to the specification [1]),
so the end result is the same.

This prepares for the implementation of the
`sharedStorage.batchUpdate(methods)` method, as part of the Web Lock
integration proposal:
- https://github.com/WICG/shared-storage/pull/199
- https://github.com/WICG/shared-storage/pull/205

[1] https://w3ctag.github.io/promises-guide/#always-return-promises

Bug: 373899210
Change-Id: Ie4edfedbe755afeb3db5ca557fd74482bac96138
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054694
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Reviewed-by: Cammie Smith Barnes <cammie@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390779}
2024-12-03 03:25:50 +00:00
f7660dfcf4 Handle RWHV scale override for Android
This CL makes RWHVA handle scale override. Scale override is used
during tab casting, and it modifies ScreenInfo. RWHVB takes this
into account by using GetDeviceScaleFactor, but the current code
for Android uses GetDipScale() and GetPhysicalBackingSize which does
not include the override scale.

When override scale is set the expected behaviour is to scale the
buffer down (or up) to fit the size it would normally be shown at.

Bug: 352186941
Test: CQ, manual testing
Change-Id: I607e6958ddc06d7e746ee437d39c8ee9770ebbdb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6056709
Reviewed-by: Jinsuk Kim <jinsukkim@chromium.org>
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Commit-Queue: Eliot Courtney <edcourtney@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390739}
2024-12-03 01:28:11 +00:00
d2876a2bbd Avoid type conversion in ForEachRenderFrameHost().
These are documented as invoking on an RFHI*, but were named like "RFH"
and frequently passed RFH*. Rename and change signatures to all align.

This avoids some problems with experimental Bind changes I was doing.

Bug: 40176578
Change-Id: I8b8f5e943ce89226f9af471563aaf134bd0feeba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6058761
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390724}
2024-12-03 01:12:55 +00:00
1ce36df599 PrerenderFallback: Emit CDP events for prefetch ahead of prerender in Network domain
Before this CL, CDP events for prefetch are emitted from
Prefetcher, which implements SpeculationHostDevToolsObserver. Prefetch
ahead of prerender is managed by PrerendererImpl and some CDP events
in Network domain are not emitted.

This CL removes SpeculationHostDevToolsObserver and makes
PrefetchContainer directly emit. Note that

- CDP events are emitted only if the prefetch was triggered by Spec
  Rules.
- CDP events are emitted only if the initiator document is alive.

By this removal, CDP events of Network domain are emitted for prefetch
ahead of prerender.

No behavioral changes if kPrerender2FallbackPrefetchSpecRules disabled.

Fixed: 342537094, 348139748
Change-Id: Ica11ce4ea62b4044d2503934ffd283b623ccdf91
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5632873
Commit-Queue: Ken Okada <kenoss@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Lingqi Chi <lingqi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390718}
2024-12-03 01:04:35 +00:00
7f52df769d Enable 5 Protected Audience and Fenced Frame features in Mode A/B
With the end of the Chrome-facilitated testing period, enable these features
in Modes A and B to provide a more consistent developer experience and
decrease the need for feature detection:
 * PA Real Time Reporting
 * PA multi-bid support
 * PA deprecatedReplaceInURN via auction config
 * PA multiple bidding contexts optimization
 * FF allow cross-origin subframes to send reportEvent() beacons

This was announced here:
 https://groups.google.com/a/chromium.org/g/blink-dev/c/WgGGPElrG9o

Change-Id: I7d26fb1ea908837557bf60cc8762245c409d0160
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6049396
Auto-Submit: Paul Jensen <pauljensen@chromium.org>
Reviewed-by: Shivani Sharma <shivanisha@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Nasko Oskov <nasko@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390666}
2024-12-02 23:18:19 +00:00
08cef51ae0 Shared Storage: Plumb worklet creation method to browser
Currently, addModule and createWorklet use the same code path in the
browser and are (mostly) indistinguishable there. In this CL, we send
an extra bit via mojom from the renderer to the browser so that
SharedStorageWorkletHost can definitively distinguish between worklets
that have been created using addModule and those created via
createWorklet. This is in preparation for updating our reports to
DevTools to distinguish between calls to addModule and calls to
createWorklet.

Bug: 381899615
Change-Id: Ice20558f1456fe860d698287c7445a07096de2f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6064024
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Yao Xiao <yaoxia@chromium.org>
Auto-Submit: Cammie Smith Barnes <cammie@chromium.org>
Commit-Queue: Cammie Smith Barnes <cammie@chromium.org>
Reviewed-by: Giovanni Ortuno Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390665}
2024-12-02 23:17:28 +00:00
6d8e1bf634 [dPWA][SystemMediaControls] Refactor web_app_system_media_controls code to its own folder.
This change moves system media controls related files into a SMC
subfolder for clarity and to facilitate adding documentation.

It updates OWNERS for aforementioned system media controls files too.

Bug: 40275333
Change-Id: I568bd9f1042d0698453e1a67e37cbe2583ebc1a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5876044
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Lia Hiscock <liahiscock@microsoft.com>
Reviewed-by: Tommy Steimel <steimel@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Stanley Hon <stahon@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1390663}
2024-12-02 23:15:07 +00:00
8064c75bd2 [FontDataService] Add "control without spare renderer" bucket.
Previous results were affected by the "spare renderer" only being enabled in the control bucket. For V2, add a control bucket that does
not have a spare renderer. This is solely during the finch experiment.
This bucket will not exist after experiment is complete.

More information below:
https://docs.google.com/document/d/1O_3KNjdsttvITew6s0kxf2yQIPHd3xn-Paxtzsw84js/edit?usp=sharing&resourcekey=0-rH79JbKKsFCUxmGpekwG2g

Bug: 335680565
Change-Id: I2d4a85b282d6c57cf0b9e90bc48198a72b42f41e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6064559
Commit-Queue: David Yeung <dayeung@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390591}
2024-12-02 21:30:26 +00:00
a35131209d [shared storage] Add SharedStorageLockManager::SharedStorageBatchUpdate() API
This prepares for the batchUpdate() Web API change.

Explainer PR(s):
- https://github.com/WICG/shared-storage/pull/199
- https://github.com/WICG/shared-storage/pull/205

How:
 - The SharedStorageBatchUpdate method first acquires the batch-level
   lock if requested (`with_lock` is present). Then, under the
   batch-level lock, it handles each method with any necessary
   individual lock. Finally, it releases the batch-level lock and
   invokes `callback`.
 - Note that the batch lock is released as soon as all methods are
   posted to the database, whereas the callback is invoked only after
   the database responses are available. This aligns with the
   established pattern for `SharedStorageUpdate` (i.e., we only
   have a single database task queue, so releasing the lock "sooner"
   still produces the correct behavior, and has better performance).

Bug: 373899210
Change-Id: Iaf2c1ea50ac11c3dd57624ee44004c35ccf5ecbb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6055330
Reviewed-by: Cammie Smith Barnes <cammie@chromium.org>
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390564}
2024-12-02 20:55:11 +00:00
c705ed7ca8 [FedCM] Records IdP collision due to multiple API calls at the same time
Since multiple `get` calls is not yet supported, if one IdP invokes the
API while another request from different IdPs is in-flight, the new API
call will be rejected. We should measure how often this may happen.

UKM review: https://docs.google.com/document/d/1KO4SpwK8TX3QiZBKPFo6kOAiUsmECnNYN8BGsNLrxKc/edit?disco=AAABZJX8mxw

Bug: 381270275
Change-Id: Ieb20d8c449595836ceeeed8156b535fe56dbef20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6055332
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: Sun Yueru <yrsun@chromium.org>
Commit-Queue: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390550}
2024-12-02 20:31:47 +00:00
d2c79bcd6d Revert "Add new API to delete all WebStorage in WebView"
This reverts commit 393033a0c6.

Reason for revert: breaking ci bots https://ci.chromium.org/ui/p/chromium/builders/ci/Android%20WebView%20O%20(dbg)/26010/overview

Original change's description:
> Add new API to delete all WebStorage in WebView
>
> The current implementation only deletes the types of storage available
> when the API was introduced.
>
> This change introduces a new set of APIs that will delete all storage
> data. These methods will be exposed through the AndroidX library for
> apps to use.
>
> The existing implementation is renamed to indicate that it is used by
> the Android framework.
>
> Bug: 373558938
> Change-Id: Iac61b2403fad73a3170904613e784915278185de
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5934451
> Reviewed-by: Nate Fischer <ntfschr@chromium.org>
> Commit-Queue: Peter Pakkenberg <pbirk@chromium.org>
> Reviewed-by: Christian Dullweber <dullweber@chromium.org>
> Reviewed-by: Adam Walls <avvall@chromium.org>
> Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1390255}

Bug: 373558938
Change-Id: I14fba91922ab2fb53da3db622d4e7f541599b25e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6064225
Reviewed-by: Peilin Wang <peilinwang@google.com>
Owners-Override: Peilin Wang <peilinwang@google.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: Peilin Wang <peilinwang@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1390519}
2024-12-02 19:44:41 +00:00
a46bd534d1 Implement StylusHandwritingCallbackSinkWin
New class StylusHandwritingCallbackSinkWin implements
ITfHandwritingSink interface from shellhandwriting.h.

Shell Handwriting API will call ::FocusHandwritingTarget() requesting to
set focus to the most likely text control. To handle
ITfHandwritingSink::FocusHandwritingTarget, the browser will request
that focus be updated in the renderer based on the RECT from
ITfFocusHandwritingTargetArgs::GetPointerTargetInfo, which will be
handled via mojom::blink::FrameWidget::OnStartStylusWriting. Focus will
only be set on content eligible for handwriting. If focus cannot be set
on content eligible for handwriting with the RECT provided by
GetPointerTargetInfo, then focus will fallback to the eligible element
that was initially tapped.

::OnFocusedHandled()/::OnFocusFailed() notifies the Shell Handwriting
API whether the focus was set or not. If the browser fails to set the
focus, the handwriting will be abandoned and Shell Handwriting will
stop processing incoming pointer input events.

Also, the change improves handwriting controller browser tests by
utilizing new mocks of handwriting-related interfaces. This enables
testing the controller without the mocking the controller instance.

Bug: 355578906
Change-Id: I86e637ced9fbc679f11e65c66053ba7d54321577
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5882132
Commit-Queue: Yaroslav Shalivskyy <yshalivskyy@microsoft.com>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390517}
2024-12-02 19:42:53 +00:00
0c1d6f213a Fix header styling for chrome://traces-internals.
Fixes issue where header colour would not apply correctly in dark mode.

Clean up unused css classes.

Change-Id: Ie01004c144f2064458241228b92bb98056813c6e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6063401
Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org>
Commit-Queue: Alex Attar <aattar@google.com>
Cr-Commit-Position: refs/heads/main@{#1390502}
2024-12-02 19:25:40 +00:00
688a47362b Revert "[memory] Move process memory info to base"
This reverts commit 6a0ed21330.

Reason for revert:
Speculatively reverting due to Linux MSan bot failures on
RenderFrameHostManagerTest.RenderViewInitAfterNewProxyAndProcessKill

First failing build
https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20MSan%20Tests/52273/overview

Original change's description:
> [memory] Move process memory info to base
>
> This will be re-used in a follow-up in SystemMetricsSampler.
> This should also replaced copied code in blink::MemoryUsageMonitor.
>
> This changes Linux's FillOSMemoryDump from GetResidentAndSharedPagesFromStatmFile() (proc/pid/statm) to ReadProcFileToTrimmedStringPairs() (proc/pid/status)
>
> This drops supports for pre MAC_OS_X_VERSION_10_11 missing
> phys_footprint: https://issues.chromium.org/issues/40669926
>
> Change-Id: I2002e69abbe852e82d0d1cb37017e77602538d6b
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6039432
> Reviewed-by: Primiano Tucci <primiano@chromium.org>
> Reviewed-by: Gabriel Charette <gab@chromium.org>
> Owners-Override: Gabriel Charette <gab@chromium.org>
> Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1390345}

Change-Id: I352a3dc8e876eee98ee39cf68555dad2938169f5
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6063460
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Thomas Lukaszewicz <tluk@chromium.org>
Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390473}
2024-12-02 18:41:56 +00:00
c8cce9cebb Protected Audience: Prepare contexts on seller worklet
While we download trusted scoring signals, we can use that time
to prepare seller contexts. This change is similar to
https://chromium-review.googlesource.com/c/chromium/src/+/5995411
which prepared bidder contexts, but unlike in the bidder
worklet, we don't need to do any estimation of the number
of contexts we'll need, because there is no filtering step.

Bug: 381063093
Change-Id: I7be1488a83e56345e1ba106c9a6dfd917433dd66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6051062
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: Abigail Katcoff <abigailkatcoff@chromium.org>
Reviewed-by: Orr Bernstein <orrb@google.com>
Cr-Commit-Position: refs/heads/main@{#1390417}
2024-12-02 17:27:40 +00:00
c21cf30774 [accessibility] AccessibilityReset also for frames in the BF cache
Speculative fix for a Chrome OS crash whereby an extension may get a
tree update for which it hasn't previously received a full tree. The
hypothesis is that this could have been due to AccessibilityReset being
skipped for frames in the BF cache.

Bug: 368660753
Change-Id: Id2561a178075897992e7da74ad4510863bcae3be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054366
Reviewed-by: David Tseng <dtseng@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390395}
2024-12-02 17:05:58 +00:00
7fc76166e1 Parse the iframe sandbox attribute value allow-same-site-none-cookies
Add support for parsing the value from the iframe attribute, will be moved to the set of supported tokens when the feature is enabled by default

Bug: 372894175
Change-Id: I8d00d0dffe24b3cdaf7edd8b1bc16df457aab9d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6036145
Commit-Queue: Anusha Muley <anushamuley@google.com>
Reviewed-by: Dylan Cutler <dylancutler@google.com>
Reviewed-by: Fernando Serboncini <fserb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390370}
2024-12-02 16:36:53 +00:00
32485d06da Removes needless copy of AXNodeData while iterating through update nodes in AXMainNodeAnnotator.
Bug: 378890693
Change-Id: Idf30aa077415fba9c5e640ae98ba6b4190852ca5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6064000
Commit-Queue: Abigail Klein <abigailbklein@google.com>
Commit-Queue: Elly FJ <ellyjones@chromium.org>
Reviewed-by: Elly FJ <ellyjones@chromium.org>
Auto-Submit: Abigail Klein <abigailbklein@google.com>
Cr-Commit-Position: refs/heads/main@{#1390360}
2024-12-02 16:24:22 +00:00
6a0ed21330 [memory] Move process memory info to base
This will be re-used in a follow-up in SystemMetricsSampler.
This should also replaced copied code in blink::MemoryUsageMonitor.

This changes Linux's FillOSMemoryDump from GetResidentAndSharedPagesFromStatmFile() (proc/pid/statm) to ReadProcFileToTrimmedStringPairs() (proc/pid/status)

This drops supports for pre MAC_OS_X_VERSION_10_11 missing
phys_footprint: https://issues.chromium.org/issues/40669926

Change-Id: I2002e69abbe852e82d0d1cb37017e77602538d6b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6039432
Reviewed-by: Primiano Tucci <primiano@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Owners-Override: Gabriel Charette <gab@chromium.org>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390345}
2024-12-02 16:08:37 +00:00
c2f7012ac0 CookieInclusionStatus: Remove ctors which bypass invariants
These ctors set the exclusion reason and warning directly,
instead of using the dedicated setters which enforce
invariants on the sets of exclusion reasons and warnings.
It should not be possible to bypass the invariants, so we should
remove these ctors.

Change-Id: Ib60bf512e42a65fd76bd7701c7504878be8f580c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6051058
Reviewed-by: Dominic Farolino <dom@chromium.org>
Commit-Queue: Chris Fredrickson <cfredric@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Auto-Submit: Chris Fredrickson <cfredric@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1390323}
2024-12-02 15:38:10 +00:00
fb609e7c8a Allow _unfencedTop navigation in all fenced frames.
Previously, only "opaque ads" fenced frames could navigate the _unfencedTop target, but we should allow all fenced frames to
do so.

While writing the spec for `_unfencedTop`, we re-discovered this limitation, and it was unclear why it existed in the first place. I wrote the spec change to allow the new keyword in all fenced frame types, and this change updates the Chromium implementation to match.

Bug: 380896847
Change-Id: Id02563a3e217042f9c8ac136929f168a7c899d51
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6017449
Reviewed-by: Liam Brady <lbrady@google.com>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Commit-Queue: Andrew Verge <averge@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390314}
2024-12-02 15:14:22 +00:00
57e439af5b Disable kFocusRenderWidgetHostViewAndroidOnActionDown feature on
WebView.

This CL does the following:
* Disables feature kFocusRenderWidgetHostViewAndroidOnActionDown on
  WebView since it can switch focus when scrolled in cases with multiple
  views which can trigger HTML focus changes that aren't intended. See
  crbug.com/378779896, crbug.com/373672168 for more details.
* Moves kFocusRenderWidgetHostViewAndroidOnActionDown feature from
  //content/common to //content/public/common.

Bug: 381820236, b:340824076
Change-Id: If81f00507f7a099e30803bbb6caea4665011b2a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054735
Reviewed-by: Alex Mitra <alexmitra@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Commit-Queue: Aman Verma <amanvr@google.com>
Cr-Commit-Position: refs/heads/main@{#1390266}
2024-12-02 12:13:30 +00:00
b113b4843b [3/n: Implement RenderInputRouterDelegateImpl]: Simplify
RenderInputRouterDelegate interface.

This CL simplifies RenderInputRouterDelegate interface by removing the
`GetLastRenderFrameMetadata()` method. This method was solely used to
provide delegated ink hovering information to the
RenderWidgetHostInputEventRouter.

The `IsDelegatedInkHovering()` method now directly provides this
information, improving the interface's clarity and focus.

Bug: b:331419617
Change-Id: I48fb68a41143b3828a37598cc0f569e1b8de3654
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6058409
Commit-Queue: Aman Verma <amanvr@google.com>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Stephen Nusko <nuskos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390265}
2024-12-02 11:59:35 +00:00
393033a0c6 Add new API to delete all WebStorage in WebView
The current implementation only deletes the types of storage available
when the API was introduced.

This change introduces a new set of APIs that will delete all storage
data. These methods will be exposed through the AndroidX library for
apps to use.

The existing implementation is renamed to indicate that it is used by
the Android framework.

Bug: 373558938
Change-Id: Iac61b2403fad73a3170904613e784915278185de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5934451
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
Commit-Queue: Peter Pakkenberg <pbirk@chromium.org>
Reviewed-by: Christian Dullweber <dullweber@chromium.org>
Reviewed-by: Adam Walls <avvall@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390255}
2024-12-02 11:38:05 +00:00
e263daabd1 Remove usage of base::make_span(): content/
Replace with span() CTAD use, or more targeted helpers.

Bug: 341907909
Change-Id: I5c40ce02387df62d9c9769227271a3f6ef637a7a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6060230
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1390215}
2024-12-02 09:26:54 +00:00
2fd4b6efce Ship PrefetchFollowsNormalCacheSemantics
This removes the "5-minute rule" for prefetches, where they ignore
normal HTTP cache semantics for 5 minutes and instead stay cached in the
HTTP cache. This applies to <link rel=prefetch>, NoStatePrefetch (i.e.
<link rel=prerender>), and speculation rules prefetch.

Note that for speculation rules prefetch, because there is the separate
in-memory speculation rules prefetch cache, 2xx responses without
caching headers will still be stored in that in-memory cache. They just
won't be HTTP cached, in a way that was counter to the website's
expressed preferences.

Shipping this was approved back in May 2023, with an accompanying Finch
study to check for regressions [1]. However, we forgot to actually
change the default.

This is of new urgency now because of the impact on speculation rules
prefetch, which is is causing web developer pain. A web platform test is
included for the specific painful scenario, which fails before this
change and passes afterward.

Most of this CL consists of test updates: many of our tests relied on
not needing caching headers to make <link rel=prefetch> or
<link rel=prerender> work, and so do things like assume there will never
be a second request to those URLs. The general fix is to apply caching
headers to the resources in question, as that represents the intended
real-world usage of <link rel=prefetch>. (And, to a lesser extent, the
nonstandard and hopefully-one-day-removed <link rel=prerender>.)

Notably, the WPT prefetch-document.html was failing in all browsers
before this, including in Firefox which has a highly spec-conformant
implementation. It should now be passing.

PrerendererImplBrowserTestPrefetchAhead.PrefetchSuccessPrefetchMatchResolverTimeoutPrerenderFailure
was disabled, since it appears to never have been working as expected,
with the HTTP caching hiding the real problem. Issue 372851198 tracks
fixing that test.

Tests specifically for the 5-minute rule were deleted.

[1]: https://groups.google.com/a/chromium.org/g/blink-dev/c/Zdo71C0k9C0

Bug: 40232065, 381099745, 356624471, 372851198
Change-Id: I7d42c43efd89486587d8b7fc8ddd4412b31ef0bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6056830
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Reviewed-by: Adam Rice <ricea@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390213}
2024-12-02 09:00:14 +00:00
3e10a6dcbd [prerender] add field trial for EnableLazyLoadImageForInvisiblePage
Bug: 381110833
Change-Id: I04673771ad4806fb29e8b88b6d7e899ef705aaa2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6061355
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Lingqi Chi <lingqi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390198}
2024-12-02 07:31:19 +00:00
964296b719 Move InitializeServiceWorkerClient to interceptor
This CL moves `InitializeServiceWorkerClient()` from
`ServiceWorkerControlleeRequestHandler` to
`ServiceWorkerMainResourceLoaderInterceptor`, in order to:

- Collocate `CalculateStorageKeyForUpdateUrls` and `UpdateUrls`, and
- Centralize the logic needed for every redirect legs (even if there
  are no controlling ServiceWorker) to
  `ServiceWorkerMainResourceLoaderInterceptor`.

Bug: 368025734
Change-Id: I29ab7ecd31bcc519e19411a120896fb3d35c3566
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5871254
Reviewed-by: Keita Suzuki <suzukikeita@chromium.org>
Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
Reviewed-by: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390185}
2024-12-02 06:16:18 +00:00
88b1faf91f Remove SWControlleeRequestHandler::stripped_url_/storage_key_
Use the corresponding members of `ServiceWorkerClient` instead,
in order to decouple dependencies around
`ServiceWorkerControlleeRequestHandler`.

`service_worker_client_` null checks are added before accessing,
just in case it should become null.

Bug: 368025734
Change-Id: I008b9d86f636f549e7c99b6e917f805f307eea56
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5871256
Reviewed-by: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
Reviewed-by: Keita Suzuki <suzukikeita@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390184}
2024-12-02 06:15:20 +00:00
4351975eb8 Introduce ServiceWorkerClient::GetFrameTreeNodeTypeStringBeforeCommit
To move the logic accessing `FrameTreeNodeId` from
`ServiceWorkerMainResourceLoader::GetFrameTreeNodeTypeString()`
and remove a use of
`ServiceWorkerMainResourceLoader::frame_tree_node_id_`.

Bug: 368025734
Change-Id: I31c4dc5a21bf625636942a5b862375a075c84e87
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5871257
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
Reviewed-by: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Reviewed-by: Keita Suzuki <suzukikeita@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390183}
2024-12-02 06:14:33 +00:00
8a7923a2b8 Let RWH::InputEventObservers know which widget the input came on.
As per current design, a RenderWidgetHost input event observer which
listens to events from multiple widgets does not know which widget the
event came from. With this change we pass an extra arg to event
notification methods to provide this information.

In a follow up change we will be using this to make
TouchSelectionController an input event observer which would like to
see events in root widget coordinate system, and for this we would want
to provide RWH handle so that the event can be transformed to root
widget's coordinate system.

AX-Relnotes: n/a.

Bug: 366000885
Change-Id: Idc6c3fa9a19adc7e72b205b282e78e8c12370a9d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6040416
Commit-Queue: Kartar Singh <kartarsingh@google.com>
Reviewed-by: Victor Vianna <victorvianna@google.com>
Reviewed-by: Stephen Nusko <nuskos@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390170}
2024-12-02 04:40:15 +00:00
3c54a398f2 Add more detailed reasons for NoSparePresentReason::kNotYetCreated
The Canary data showed extraordinarily high proportion of kNotYetCreated
when a spare renderer is not present. The CL adds more detailed reasons
to understand the situation.

Bug: 377808943
Change-Id: I809dd467951db4482488a18167b47bfaeb077f79
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6049679
Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Jiacheng Guo <gjc@google.com>
Cr-Commit-Position: refs/heads/main@{#1390161}
2024-12-02 03:00:49 +00:00
bbab855e4a Prefetch: Update OWNERS
This CL adds kenoss@ and taiyo@ to prefetch OWNERS.

Bug: n/a
Change-Id: I5ecf4686bc238da2e306a418b15981a255ba4f55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6059241
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Reviewed-by: Lingqi Chi <lingqi@chromium.org>
Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390134}
2024-12-02 00:50:51 +00:00
8eba25cb99 Remove usage of base::make_span(): content/browser/ part 1
Replace with span() CTAD use, or more targeted helpers.

Bug: 341907909
Low-Coverage-Reason: LARGE_SCALE_REFACTOR no meaningful functional change
Change-Id: I2635aeabe0b7eb4e8411b4579d922fccb0283784
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6059467
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1389916}
2024-11-29 22:30:10 +00:00
5f6928c30b Remove usage of base::make_span(): content/browser/ part 2
Replace with span() CTAD use, or more targeted helpers.

Bug: 341907909
Change-Id: I702c8a532172bc9dfa3610cdb8c0dcf3730810c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6059285
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1389907}
2024-11-29 21:25:11 +00:00
55eb1e1c5c Revert "Clear touchscreen gesture target on GestureTapCancel+GestureEnd."
This reverts commit 8d86347f0c.

Reason for revert: GestureBegin/GestureEnd mismatches are causing the CHECK to fire, so abandoning this attempt at a fix.

Original change's description:
> Clear touchscreen gesture target on GestureTapCancel+GestureEnd.
>
> This CL modifies DispatchTouchscreenGestureEvent to clear the
> touchscreen gesture target pointer when it sees GestureTapCancel
> followed by a terminal GestureEnd (i.e. matching the first
> GestureBegin in a sequence). Such a sequence can happen, for
> example, after using a touchscreen longpress to activate a
> context menu, which takes over the gesture sequence and uses
> the events listed above to terminate the sequence for the
> renderer.
>
> If touchscreen_gesture_target_ isn't cleared, then it can
> cause subsequent bubbling of touchpad scroll sequences to be
> aborted, as the logic thinks the touchscreen sequence is
> still in progress.
>
> Bug: 346629231
> Change-Id: Ifa66448b52621234d07d0943aac03af3f6df5af0
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6038653
> Reviewed-by: Jonathan Ross <jonross@chromium.org>
> Reviewed-by: Robert Flack <flackr@chromium.org>
> Commit-Queue: James Maclean <wjmaclean@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1388875}

Bug: 346629231
Change-Id: I79dd40f7f9b0e2971597147acd640deb7661fa80
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6058653
Reviewed-by: James Maclean <wjmaclean@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1389893}
2024-11-29 20:15:49 +00:00
68de9cb3a4 [DC] Code Improvements to the DC get() flow.
This CL adds some code improvements that was inspired by the
implementation of the create() flow.

This CL should cause no behavioural changes.

Change-Id: I49a1f2f2635fa1e6ee5f45dc415df70f300061aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054139
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1389872}
2024-11-29 18:49:35 +00:00
bba66b4097 [WebAuthn] IDL and initial plumbing for challengeUrl
This adds a runtime flag, an IDL change and the mojom plumbing for
the challengeUrl field.

Bug: 381219428
Change-Id: I06338598c04a52a41f15bcfaa8fd139d6369a123
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054688
Reviewed-by: Rick Byers <rbyers@chromium.org>
Commit-Queue: Ken Buchanan <kenrb@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1389847}
2024-11-29 16:43:15 +00:00
5288b97b49 [MPArch guest view] Fix crash when frame tree node is not available
Test for nullness of the frame tree node

Bug: 381522510
Change-Id: Ib0697c78645da6e5660dca54752e2f0205cf1998
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6060035
Reviewed-by: Kevin McNee <mcnee@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1389846}
2024-11-29 16:36:25 +00:00
b082d33098 [Prerender] Add a feature to enable lazy loading image for invisible
pages.

Before this CL, all image with loading=lazy attribute will be loaded
if they are on invisible pages, including prerendering.
This is a trade-off between loading as many resources as possible for
invisible pages and saving as many resources are possible for invisible
pages as the viewport they are in is invisible.

The pros for the latter are: (credit to barrypollard@)
- saving users' network bandwidth.
- let the renderer processes focus on the most important work when they
  are invisible to reduce contention.
- saving website's resources as some prerender pages may never be shown
  to users.

Specification does not set restriction for UA, so we'd like to try
another path, to respect this attribute for prerendering pages and
all invisible pages.

This CL adds a three-valued feature parameter to allow us to
experiment and find the best behavior.

Bug: 381110833
Change-Id: I0899423d906b4b65b2d10545930e7218c3f2fc7a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6055522
Reviewed-by: Domenic Denicola <domenic@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Lingqi Chi <lingqi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1389836}
2024-11-29 16:24:28 +00:00
c246bcc072 Set custom Skia GrContextOptions for WebView on Android TV
This creates a new embedder delegate that allows the embedder to modify
the GrContextOptions passed to skia. Behind a flag that is disabled by
default, this CL disables mip map sharpening and sets MSAA sample count
to 0.

Bug: 364872963
Change-Id: Ifec3c530d0a9bf837b313b01ed7c41094446e483
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5982515
Reviewed-by: Peter Beverloo <peter@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Commit-Queue: Alex Mitra <alexmitra@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1389835}
2024-11-29 16:22:10 +00:00
bdc573c7d3 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: 372055518
Change-Id: I73e0f0eb4d62eba2d1627e592b2b71e45a968372
Fixed: 1494227
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6035675
Auto-Submit: chrome-automated-expectation@chops-service-accounts.iam.gserviceaccount.com <chrome-automated-expectation@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1389678}
2024-11-29 09:08:13 +00:00