0
Commit Graph

1282161 Commits

Author SHA1 Message Date
c61b68aecf Floatify printing code and APIs.
We were passing offsets and sizes as integers. Use floats instead. In
some parts of the code, sizes and offsets are in CSS pixels, in other
parts they are in device pixels, and in some other parts they are in
points. There are reasons for this, although it's currently a bit more
convoluted than it has to be.

Converting between them was done carefully with integer arithmetic and
some special rounding code. This has worked mostly fine, but is fragile.
I'm working on a CL that straightens out the conversions, to use CSS
pixels instead of points in the Blink APIs (since that's what Blink uses
internally). This would however mean that, if we were to keep on using
integers, rounding errors that used to occur when printing HTML with
Blink would be fixed, but, at the same time, we'd introduce new rounding
errors when printing with a plug-in (when opening a PDF and printing
it), since that part of the code wants things in points.

So use floats to avoid this. This also allows for removal of
PrintParamsWithFloatingSize. Although floats have precision issues for
large integer values, this shouldn't be a problem here, since all the
values changed are about page sizes, or offsets into a page (margins,
unprintable area, etc.). Floats have 23 bits for the integer part, so
as long as we stay (way) below a million pixels / points / whatever,
we're good. It would easily become a problem if we start using floats
for offsets into documents, though, as documents can become very tall.

This CL isn't expected to make much of a behavior difference on its
own. We'll still round down sizes to the nearest integer when entering
Blink HTML layout, since we cannot reliably print fractional page sizes
anyway. Furthermore, the way LocalFrame::ResizePageRectsKeepingRatio()
is used to magically convert from points to pixels is inaccurate, and
still causes the symptoms described in crbug.com/1444579

But it should now be more straight-forward to fix such issues without
introducing new ones.

Change-Id: I5fc5afeb14e5470faf970c9f7c94d0fad243ce3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4604506
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160870}
2023-06-21 21:28:43 +00:00
9c087d9626 Roll Perfetto from d6ff58d5ae32 to 45920fd5a785 (1 revision)
d6ff58d5ae..45920fd5a7

2023-06-21 hjd@google.com Merge "ui: s/npm/pnpm"

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/perfetto-chromium-autoroll
Please CC perfetto-bugs@google.com,primiano@chromium.org on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chromium.try:linux-perfetto-rel
Bug: None
Tbr: perfetto-bugs@google.com
Change-Id: I06bf3094b2ddcb3f1d3bc0147fff2538f859c796
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4634108
Bot-Commit: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1160869}
2023-06-21 21:24:54 +00:00
6691323d8f Roll Chrome Win64 PGO Profile
Roll Chrome Win64 PGO profile from chrome-win64-main-1687359506-a12bb923db02ee38cf89c446b4e3889aeb065327.profdata to chrome-win64-main-1687370140-992200431b0d23ccd582ad9ee09459e34adf0907.profdata

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/pgo-win64-chromium
Please CC chrome-brapp-engprod@google.com,pgo-profile-sheriffs@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium main branch: https://bugs.chromium.org/p/chromium/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chrome.try:win64-chrome
Tbr: pgo-profile-sheriffs@google.com
Change-Id: I10ddb5e0bfd65ea6dbc4b25e7b714a8476d4bdb8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4632135
Bot-Commit: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1160868}
2023-06-21 21:24:31 +00:00
96b950168c [Extensions] Limit the number of alarms an extension can create.
This CL introduces a limit of 500 alarms per extension. The number
was chosen based on data collected from the stable channel for all
platforms. This limit covers at least 99.98% of all clients.

Bug: 1400582
Change-Id: I2c22231f1770ca6bb7bc46b56119331c23e977d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4583941
Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
Commit-Queue: David Bertoni <dbertoni@chromium.org>
Reviewed-by: Kelvin Jiang <kelvinjiang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160867}
2023-06-21 21:22:51 +00:00
d59f6a7689 [CSC] Handle opening URLs from context menu.
Bug: 1457012, b/279775363
Change-Id: I1f251d591d07ac8f29d16f097e402596041c2d42
Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome,mac-chrome,linux-chrome,win-chrome,win64-chrome
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4630427
Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
Commit-Queue: Bryan Nguyen <nguyenbryan@google.com>
Reviewed-by: Ali Stanfield <stanfield@google.com>
Cr-Commit-Position: refs/heads/main@{#1160866}
2023-06-21 21:20:56 +00:00
3ef2aa4d50 Roll devtools-internal from e56df6a0e21e to 4baea2b8905b (2 revisions)
e56df6a0e2..4baea2b890

Also rolling transitive DEPS:
  b99a76f0d4..b43be8bf15

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://skia-autoroll.corp.goog/r/devtools-internal-chromium
Please CC devtools-waterfall-sheriff-onduty@grotations.appspotmail.com,liviurau@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome
Bug: None
Tbr: devtools-waterfall-sheriff-onduty@grotations.appspotmail.com
Change-Id: Ia2f88f12696ab7ac29f8c25fdcf8ab3dff152596
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633808
Commit-Queue: chromium-internal-autoroll <chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com>
Bot-Commit: chromium-internal-autoroll <chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1160865}
2023-06-21 21:18:22 +00:00
7a341ce81c Printer settings: Update strings and add screenshots
http://screen/7ckMwQ6fZEPKHDE

Bug: b:278621575
Change-Id: I1255c87724280b845dbd17bd6d3720de99b48aa2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4630468
Reviewed-by: Wes Okuhara <wesokuhara@google.com>
Reviewed-by: Ashley Prasad <ashleydp@google.com>
Commit-Queue: Gavin Williams <gavinwill@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160864}
2023-06-21 21:16:49 +00:00
d6d40aa416 Roll Fuchsia SDK from 13.20230621.0.1 to 13.20230621.2.1
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-sdk-chromium-autoroll
Please CC chrome-fuchsia-gardener@grotations.appspotmail.com,cr-fuchsia@chromium.org on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chromium.try:fuchsia-arm64-rel;luci.chrome.try:fuchsia-internal-images-roller
Tbr: chrome-fuchsia-gardener@grotations.appspotmail.com
Disable-Retries: true
Change-Id: I7e2e28f99447ed8d41d628d1520863dd1f7c83f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4632616
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1160863}
2023-06-21 21:15:53 +00:00
408a40cb7a Android: Add ResettersForTesting.register() to //base
Used Android Studio's "Structured Replace" to add it to all
setForTesting methods that contained a single assignment. Then
went through all spots to reset to "null/false" vs |oldValue|.

Removed calls to modified set*ForTesting(null/false) methods using
grep/sed/python then removed empty @After methods.

* Also cleans up some calls that had both @VisibleForTesting and
  ForTest suffix (annotation is incorrect in this case).
* Also renamed a few test-only variables to have "ForTesting" suffix.

Updated tests that broke as a result. Things that broke:
* When setForTesting() was being called in @BeforeClass
* When a value was set as a result of normal logic, and then
  setForTesting(null) was called to reset it (which then returned it to
  it's non-null value).

Bug: 1416224
Change-Id: Id07066389f4ec0d69ebf4e3e1e6caca356cc36d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4626902
Reviewed-by: Tommy Nyquist <nyquist@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1160862}
2023-06-21 21:12:00 +00:00
c880f90e67 Remove ServerPushDelegate and derived classes.
Server push is unused in HTTP/2 (it has been disabled a long time ago)
and in QUIC (Google QUIC has been disabled altogether a long time ago,
and IETF QUIC never supported server push), so all removed code is
unused.

Bug: 1426477
Change-Id: Icc4a97060c661007c2f137fa89c5e30f867b786e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4632342
Commit-Queue: Bence Béky <bnc@chromium.org>
Commit-Queue: Ryan Hamilton <rch@chromium.org>
Reviewed-by: Ryan Hamilton <rch@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160861}
2023-06-21 21:11:53 +00:00
1d335168d2 Roll clank/internal/apps from a4b3ec31d3c6 to c9a39d3550de (1 revision)
a4b3ec31d3..c9a39d3550

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://skia-autoroll.corp.goog/r/clank-apps-chromium-autoroll
Please CC chrome-brapp-engprod@google.com,wissemgamra@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: chromium:1445802
Tbr: wissemgamra@google.com
No-Try: true
Change-Id: If4f12bf643971911f921c12c84d08abca60262db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4634228
Commit-Queue: chromium-internal-autoroll <chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com>
Bot-Commit: chromium-internal-autoroll <chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1160860}
2023-06-21 21:10:42 +00:00
19de1fe46a [Gardener] Disable flaky test CustomTabActivityTest#testActionButton
Test is being flaky again after being re-enabled a few days ago: https://ci.chromium.org/ui/test/chrome%3Aci/org.chromium.chrome.browser.customtabs.CustomTabActivityTest%23testActionButton?q=VHASH%3A9aeff0c2e0fd11b3

Bug: 1456994
Change-Id: If53f86d7f007d147af5d1c7b75eadaee8f093571
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4634322
Commit-Queue: Wissem Gamra <wiss@chromium.org>
Reviewed-by: Jeffrey Cohen <jeffreycohen@chromium.org>
Owners-Override: Wissem Gamra <wiss@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160859}
2023-06-21 21:09:21 +00:00
d053b61e12 win: Don't create PWA shortcuts in taskbar dir
CreatePlatformShortcuts was creating a shortcut in the taskbar
directory, and also pinning, when supported. Pinning a shortcut to the
taskbar does this implicitly, so we should not be doing this. For
tests, this is mostly harmless, since the quick launch dir is
overridden. For Chrome, it's potentially harmful.

The CL makes sure that in_quick_launch_bar is false, in the
ShortcutLocations CreatePlatformShortcuts passes to GetShortcutPaths.

This was discovered while trying to make sure that tests don't pin
shortcuts to the taskbar.

Bug: 1454110
Change-Id: I6555f36bf5340c8c630c3156ff369128a21298bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4629879
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Commit-Queue: David Bienvenu <davidbienvenu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160858}
2023-06-21 21:08:17 +00:00
775ab71c48 [webauthn] Synced GPM passkeys on conditional UI
Display synced GPM passkeys on webauthn's conditional UI. Credentials
are shown for users who have opted in to syncing them. Credentials may
also show up on the platform authenticator credential picker. This is
okay as we'll update that UI surface before launching the feature.

For now, credentials are rendered with the subtext "Use lock screen". A
follow-up will change this to display the device name.

Tapping a GPM passkey dispatches to a sync paired phone. At the moment,
this is the first applicable phone on the list. A follow-up will have
Chrome remember the last used phone instead.

Finally, with the feature enabled IsConditionalMediationAvailable will
always return true on all desktop platforms since they are all capable
of showing GPM passkeys.

This feature is guarded by the WebAuthenticationListSyncedPasskeys flag
and requires SyncWebauthnCredentials to be enabled as well.

Bug: 1428655
Change-Id: I7297935f905f443eae4b4b0621128c2bc47f0966
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4621635
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Commit-Queue: Nina Satragno <nsatragno@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160857}
2023-06-21 21:07:16 +00:00
bdc63cb93b Move ColorProviderKey into its own header and make aliases
There are too many callers to migrate all at once, creating alises
in ColorProviderManager to facilitate the migration.

Many includes of color_provider_manager.h just need one of the types and
not the manager itself. Separate the Key types and declaration into its
own compilation units.

This allows targets to set ColorProviderKey values without depending
on the entirety of ui/color.

Bug: b:286952053
Change-Id: I6a5561d9c12e74f1c843de0fee262357094459eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4629411
Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org>
Auto-Submit: Sean Kau <skau@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160856}
2023-06-21 21:07:06 +00:00
7ad8e47979 Add attribution browsertests for enrollment
Bug: 1454840
Change-Id: I4f5b40afb6c3cf52a8744ff0c761857fa81db10d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4627739
Commit-Queue: John Delaney <johnidel@chromium.org>
Reviewed-by: John Delaney <johnidel@chromium.org>
Commit-Queue: Anthony Garant <anthonygarant@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160855}
2023-06-21 21:05:47 +00:00
38442d78e6 [iOS] Extend expiry of two histograms
This extends the following histograms:
 -IOS.FinishedURLMatchesCurrentItem
 -IOS.SafeBrowsing.RedirectedRequestResponseHostsMatch

Bug: 1451415
Change-Id: Ie6a489dd446804101bd9106357ce778b7b9110d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4624852
Reviewed-by: Joemer Ramos <joemerramos@chromium.org>
Auto-Submit: Ali Juma <ajuma@chromium.org>
Commit-Queue: Joemer Ramos <joemerramos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160854}
2023-06-21 21:03:14 +00:00
f382c579dd [Private Network Access] Add new CORS error for permission prompt
Bug: 1338439
Change-Id: Ia00ac9930bd66790ece1e26f85bdb0fdbb13375e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4614471
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Auto-Submit: Yifan Luo <lyf@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Yifan Luo <lyf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160853}
2023-06-21 21:01:22 +00:00
0c4c267aab Remove LessChattyNetworkService feature since it's now enabled by default and launched.
Bug: 1425174
Change-Id: I7a79c299388fd42cebb3231624117ad7e3d02c18
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4632509
Commit-Queue: Scott Violet <sky@chromium.org>
Auto-Submit: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160852}
2023-06-21 21:00:44 +00:00
87209b4a67 [floss] Add BtifStatus::Timeout for socket listening
BUG=b:286684158

Change-Id: Ibf704aef747dc53cfb808a554248ff393b2bb333
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4621728
Reviewed-by: Katherine Lai <laikatherine@chromium.org>
Commit-Queue: Jesse Melhuish <melhuishj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160851}
2023-06-21 20:59:03 +00:00
c9b7ffd6c2 Android U: Deleting line in test asserting we aren't targeting U
Bug: 1445802
Change-Id: I58a01445353b06b5102e2e76cd687a14830a659c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4632062
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160850}
2023-06-21 20:58:48 +00:00
348fcdf497 Re-enable IntegrationTest.LegacyProcessLauncher
The new CIPD build r1160797 includes crrev/c/4611227 `Fix Updater
uninstall may not uninstall other versions`, which fixes the flakiness
for `IntegrationTest.LegacyProcessLauncher`.

Fixed: 1453749
Change-Id: Ia3c43949ffe80a1a195cb10dc0c0fe8347615e60
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633903
Auto-Submit: S Ganesh <ganesh@chromium.org>
Commit-Queue: S Ganesh <ganesh@chromium.org>
Commit-Queue: Xiaoling Bao <xiaolingbao@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Xiaoling Bao <xiaolingbao@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160849}
2023-06-21 20:56:59 +00:00
14be95847a [dpwa] Modify an action and add CUJs for P1 "PWA General Functionalities" manual tests.
This CL switches to incognitio mode, navigate to a pwa site and make
sure there is no installation icon.

CheckInstallIcon(Not)Shown is updated because the web contents from
incognito mode would result in an empty app banner manager.

Bug: b/287739278
Change-Id: Ie1a650276a355fa1d421278258fc7689abc1575c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4630550
Commit-Queue: Clifford Cheng <cliffordcheng@chromium.org>
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160848}
2023-06-21 20:55:33 +00:00
945fd0e69c Deprecation of metric GPU.GPUInitializationTime.V3
This CL is removing the GPUInitializationTime.V3 which is replaced by
GPUInitializationTime.V4.

Ownership is transfered to magchen@ and zmo@; previous owners of the
V3 version.

R=zmo@chromium.org

Bug: 1350257
Change-Id: I95eaad45be2385f8788de46d8dbe65d0efe50919
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4627990
Commit-Queue: Etienne Bergeron <etienneb@chromium.org>
Commit-Queue: Zhenyao Mo <zmo@chromium.org>
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Auto-Submit: Etienne Bergeron <etienneb@chromium.org>
Reviewed-by: Maggie Chen <magchen@chromium.org>
Commit-Queue: Maggie Chen <magchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160847}
2023-06-21 20:54:02 +00:00
e3b46cc84e Update arrow of nudges that are anchored to shelf
Set the arrow based on the current shelf alignment of the display the
nudge lives in. Also update the arrow if the shelf alignment changes.

This is done by setting a nudge data param `anchored_to_shelf` to true.

Updated existing usages of nudges that are anchored to the shelf (VC and
PhoneHub nudges) so they adopt this new behavior.

Example screenshots
left shelf: https://screenshot.googleplex.com/7Rar7Gsb2aJ6BQN
right shelf: https://screenshot.googleplex.com/9fNM5EowWRUCg7E

Bug: b:287687331, b:280497218
Change-Id: I2cffff647c2cdbbd8a773996dd1a78a49f13e487
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4623012
Reviewed-by: Alex Newcomer <newcomer@chromium.org>
Commit-Queue: Kevin Radtke <kradtke@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160846}
2023-06-21 20:51:13 +00:00
91d285042c Roll Catapult from cef5cf05b241 to 0a6274bcc8b3 (1 revision)
https://chromium.googlesource.com/catapult.git/+log/cef5cf05b241..0a6274bcc8b3

2023-06-21 ashwinpv@google.com Add the script to stop older versions of service in app engine.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/catapult-autoroll
Please CC chrome-speed-operations@google.com,dberris@chromium.org,jbudorick@chromium.org,johnchen@chromium.org,pasthana@google.com,sullivan@chromium.org,wenbinzhang@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Bug: None
Tbr: pasthana@google.com
Change-Id: I7de68212df60a3aa445dee89a21fabb1a3eaba49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4632124
Bot-Commit: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1160845}
2023-06-21 20:50:12 +00:00
995a1c2731 Update fontKerning and fontVariants to accept enums
Currently both fontKerning and fontVariants accept case insensitive strings as inputs; whereas the specs require the inputs as enum and case sensitive. Update the code to reflect that.

Bug: 1456482, 1448662

Change-Id: I947cfdf5d696377ac0a176d38b01202c6f74074d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4629808
Reviewed-by: Justin Novosad <junov@chromium.org>
Commit-Queue: Yi Xu <yiyix@google.com>
Cr-Commit-Position: refs/heads/main@{#1160844}
2023-06-21 20:49:13 +00:00
30a8e8c335 Implement the from-font value for font-size-adjust
The 'from-font' value is newly added to CSS Font Module Level 5 [1],
which allows the browser to automatically determine a font-size-adjust
value based on the primary font. This change implements it.

[1] https://www.w3.org/TR/css-fonts-5/#valdef-font-size-adjust-from-font

We tweak font-size-adjust-013.html to make Windows happy. The platform
got a one-pixel mismatch of width and height due to subpixel rendering.

Test:
external/wpt/css/css-fonts/font-size-adjust-013.html
external/wpt/css/css-fonts/parsing/font-size-adjust-computed.html
external/wpt/css/css-fonts/parsing/font-size-adjust-valid.html

Bug: 1219875
Change-Id: I79b401689c1afdbdb581112fe0778ca4a520a441
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4542920
Commit-Queue: ChangSeok Oh <changseok.oh@bytedance.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160843}
2023-06-21 20:49:04 +00:00
40a60b1086 Simplify Lacros version skew filters
Now that all version skew tests use Ash >= 114, the migration to the new
testing protocol is complete. Thus, we can remove the per-channel
version skew filters again and go back to the previous, simpler setup.

Bug: 1353089, 1429632
Change-Id: Ie3b236d8fcebc5a8bb8923324b0d39bd6858ebba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4607448
Reviewed-by: Sven Zheng <svenzheng@chromium.org>
Auto-Submit: Max Ihlenfeldt <max@igalia.com>
Commit-Queue: Sven Zheng <svenzheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160842}
2023-06-21 20:48:06 +00:00
5ceed9e72d Browser test for GetClassificationAPI.
This is browser test for GetClassificationAPI for default model. This
ensures that with the new changes API is working as intended.

Change-Id: Id6f1a17c83b690bb5600ec93fc2e2170505aed84
Bug: 1428719
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4604379
Reviewed-by: Siddhartha S <ssid@chromium.org>
Commit-Queue: Ritika Gupta <ritikagup@google.com>
Cr-Commit-Position: refs/heads/main@{#1160841}
2023-06-21 20:47:57 +00:00
490580248c Roll Skia from c2e4249ce71a to 7e3f263ebe68 (3 revisions)
https://skia.googlesource.com/skia.git/+log/c2e4249ce71a..7e3f263ebe68

2023-06-21 jvanverth@google.com [graphite] Add Vulkan Windows Debug test job
2023-06-21 herb@google.com Reland "De-SkScalar SkRect"
2023-06-21 johnstiles@google.com Remove SkVM JIT.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-autoroll
Please CC fmalita@google.com,skiabot@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux-blink-rel;luci.chromium.try:linux-chromeos-compile-dbg;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Cq-Do-Not-Cancel-Tryjobs: true
Bug: None
Tbr: fmalita@google.com
Change-Id: I31bcdebf1eba73a5e315c8324166ba6dadf95fc5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633443
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1160840}
2023-06-21 20:46:38 +00:00
8c6c7e4bb3 [Side Panel Journeys] GM3 updates for Side Panel Journeys
Update background, corner radii, related searches carousel, and other
design elements to match GM3 specs. Also adds the color change interface
so the UI updates when the customize chrome colors change. Scrollbar
to be updated in follow up CL.

Screenshot: http://screenshot/AoXddgpkLxpUkCG

Bug: 1454582
Change-Id: I904b0ea9f63d6ee5317462e191e284af4c490e21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4610556
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: John Lee <johntlee@chromium.org>
Reviewed-by: Brendon Tiszka <tiszka@chromium.org>
Commit-Queue: Marlon Facey <mfacey@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160839}
2023-06-21 20:45:53 +00:00
61816ebd68 Add new specs for release blocker tests
Below spec will represent release blocker tests for green release:
- 'release_blocker': if true any failure will block canary release.
- 'bug_component': should not be empty if a test suite is
  release_blocker. Thus gardener could file bug to notify the owners.

Proposal doc: go/chrome-green-release-tests

BUG=1455536
TEST=generate_buildbot_json_unittest.py

Change-Id: I629de3b5f98f34f09679e0b9c443acb4829905a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4621604
Commit-Queue: Xinan Lin <linxinan@chromium.org>
Reviewed-by: Sven Zheng <svenzheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160838}
2023-06-21 20:45:30 +00:00
acbd5c7a10 [Permissions Policy] Remove kCSPWildcardsInPermissionsPolicies flag
This was enabled by default in M116 so we can remove in M117.
https://chromium-review.googlesource.com/c/chromium/src/+/4574761

Bug: 1418009
Change-Id: I8c3769b7f8ec528086a8b5d66e008663924cc737
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4628808
Commit-Queue: Ian Clelland <iclelland@chromium.org>
Reviewed-by: Joe Mason <joenotcharles@google.com>
Auto-Submit: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160837}
2023-06-21 20:44:48 +00:00
af8f8762a9 Reland "Disable Lacros SxS and Primary."
This reverts commit 50243d1305.

Reason for revert: Test already disabled

Original change's description:
> Revert "Disable Lacros SxS and Primary."
>
> This reverts commit f0f97ed835.
>
> Reason for revert: Tentatively reverted. See crbug.com/1456760#c4
>
> Original change's description:
> > Disable Lacros SxS and Primary.
> >
> > BUG=1448575
> > TEST=Tryjob
> >
> > Change-Id: Ibb560132a1ab8bce4c27df58486e1e0bb7a9522c
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4599287
> > Reviewed-by: Stefan Kuhne <skuhne@chromium.org>
> > Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1159930}
>
> BUG=1448575,1456760
>
> Change-Id: I9ed6edb4543db18f1e92b804b1934d9267401b3e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633453
> Reviewed-by: Stefan Kuhne <skuhne@chromium.org>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1160774}

BUG=1448575,1456760

Change-Id: If1955010db92e750328e0bbdc3e3b4ca992cce1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633733
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160836}
2023-06-21 20:44:19 +00:00
63117a3fae Extensions: background.js: Join two lines into a single one
Context: crrev.com/c/4609480

Bug: None
Change-Id: Iece37677d851acea8c1861013a0e0710bd1cc32d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633897
Commit-Queue: Devlin Cronin <rdevlin.cronin@chromium.org>
Commit-Queue: Solomon Kinard <solomonkinard@chromium.org>
Auto-Submit: Solomon Kinard <solomonkinard@chromium.org>
Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160835}
2023-06-21 20:41:40 +00:00
f3ae501b21 sharing: purge & update histogram metadata
This change:
* updates the owners on Sharing.AnyShareStartedDesktop
* removes Sharing.ScreenshotsAndroid.IsEditorDismissedOnStart
* removes Sharing.ShareTargetUpdate.DynamicUpdateResult
* removes Sharing.ShareTargetUpdate.ResourceBundleResult
* removes Sharing.SharingHubAndroid.TimeToSaveScreenshotImageBeforeShare
* updates the owners on Sharing.SharingHubAndroid.TimeToShare

Fixed: b/284993009
Change-Id: I36965849527d2a6a153329821bb2c387c441ac85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4634158
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-by: Wissem Gamra <wiss@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160834}
2023-06-21 20:41:34 +00:00
36e0f02f2d QsRevamp: Keep track of the current open bubble in StatusAreaWidget
We want to keep track the current open bubble in StatusAreaWidget by
storing a pointer of TrayBubbleView (will be used in crrev/c/4615691).
This will also remove the need of using ScopedTrayBubbleCounter in this
class.

Bug: b:4594540
Change-Id: Id51e5eddc1f37af3b215cc6588dd16b782735720
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4627736
Reviewed-by: Alex Newcomer <newcomer@chromium.org>
Commit-Queue: Andre Le <leandre@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160833}
2023-06-21 20:34:12 +00:00
e8b9e1ef2f Fix Netflix not going fullscreen on some monitors.
AdjustTargetForFullScreenLetterboxing does not handle the case where the  swap chain is larger than the screen size, this change detects that case and disables the optimization.

In this case overlay_onscreen_rect is 1920x1080,
swap_chain_size 1920x1080 and monitor size is 1366 x 768.
clipped_onscreen_rect is 1365 x 768.

Change-Id: I35bd425b5d5242555b7ed52b9e0396ed896fb1d8
Bug: 1456494
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4624835
Commit-Queue: Sushanth Rajasankar <Sushraja@microsoft.com>
Reviewed-by: Maggie Chen <magchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160832}
2023-06-21 20:32:59 +00:00
9840c711fa Draw bottom left origin texture quad correctly with graphite
This CL is a temporary workaround for flipped WebGL content issue. This
workaround will be removed when bottom left origin image is supported by
graphite.

Bug: 1449764
Change-Id: Iffe046cc50628ffee8014b356fd5d742d490fba4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4632917
Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160831}
2023-06-21 20:31:24 +00:00
72a81e8153 [omnibox] Update testing config for fuzzy provider minimum input length
This CL updates field trial testing config with parameters matching the
group expected to launch for OmniboxFuzzyUrlSuggestions on mobile.

Bug: 1286859
Change-Id: I6288cffdcc3612f60bd5a2f4fde148a3969e6527
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4634017
Reviewed-by: manuk hovanesian <manukh@chromium.org>
Commit-Queue: Orin Jaworski <orinj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160830}
2023-06-21 20:28:28 +00:00
e9203ea01e webauthn: enable new hybrid UI.
Bug: 1444776
Change-Id: Ic2da69ea81e3e48ad8613613ff23e0f9eb17a0d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633958
Commit-Queue: Martin Kreichgauer <martinkr@google.com>
Auto-Submit: Adam Langley <agl@chromium.org>
Quick-Run: Adam Langley <agl@chromium.org>
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Cr-Commit-Position: refs/heads/main@{#1160829}
2023-06-21 20:28:13 +00:00
bc6d4e5ef5 [code health] Remove 4 WebAuthentication.ChromeOS.U2FClient histograms
This CL removes these expired histograms:
- WebAuthentication.ChromeOS.U2FClient.IsU2fEnabledDuration
- WebAuthentication.ChromeOS.U2FClient.IsUvpaaDuration
- WebAuthentication.ChromeOS.U2FClient.IsUvpaaStatus
- WebAuthentication.ChromeOS.U2FClient.IsU2fEnabledStatus

Fixed: 1447191
Change-Id: I5cbd20ee094fa110a604a9f1bfc3b06c1a4415b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4621864
Commit-Queue: Orin Jaworski <orinj@chromium.org>
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Commit-Queue: Martin Kreichgauer <martinkr@google.com>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160828}
2023-06-21 20:26:29 +00:00
c70ba714fc Reland "[text-fragment] Attempt search for dynamic content"
Reland note: iframes.sub.html was timing out because it contains several
sub-tests, each of which now wait 2s which, in total, exhausted the 6s
timeout. Reland marks this test as timeout=long to use the extended
timeout. Previously landed CL is first patchset.

Text fragments currently perform up to two searches, one when document
parsing completes and a second attempt when document load completes (if
load wasn't completed at parse complete time). However, pages, often
load content after document load, when content is "dynamically loaded".
One popular example is Mobile Wikipedia, which adds `hidden=until-found`
on collapsed sections in idle tasks after load. This meant
text-fragments couldn't target pages like these.

This CL attempts to make text fragments work on dynamically loaded pages
by performing a third attempt, if needed. If all directives haven't
matched at load time, a delayed task is scheduled for 500ms that will
request attachment on unmatched directives. TextFragmentAnchor listens
for relevant changes in the DOM and reschedules this task each time a
change is made. At 3000ms it gives up and performs the search to avoid
waiting forever.

At a high level, this CL tries to separate the state tracking of actions
performed for the first matching directive from the state tracking for
running multiple searches. This is done by introducing a new iteration_
enum tracking the latter.

Bug: 963045
Change-Id: Ied3f9c610c348eeeca23ace50864f0cc2ff2b233
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4629864
Commit-Queue: Vladimir Levin <vmpstr@chromium.org>
Commit-Queue: David Bokan <bokan@chromium.org>
Reviewed-by: Vladimir Levin <vmpstr@chromium.org>
Auto-Submit: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160827}
2023-06-21 20:24:53 +00:00
69843ac609 webauthn: also skip single-account selector sheet on macOS in clamshell mode for uv=required
We skip it when biometrics are available, but if uv=required in
clamshell mode then we'll have to collect the local password anyway, so
can skip it there too.

Bug: 1456536
Change-Id: I68a243f998a7ae85669e425f35bc74262e9fbd02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4630430
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Auto-Submit: Adam Langley <agl@chromium.org>
Commit-Queue: Martin Kreichgauer <martinkr@google.com>
Quick-Run: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160826}
2023-06-21 20:22:21 +00:00
59230fe44b [GM3][Panorama] Show full color swatch always except for custom color
* Update to always show the full swatch for Chrome Refresh 2023 for all
  of the chrome colors and default color.
* Custom color always shows just one color in Chrome Refresh so always
  have backgroundColorHidden be true when the flag is on.

Screenshots:

Upload Image (background image w/ default color)
Flag Enabled: http://screenshot/ikC3HgdqqZ6suGF
Flag Disabled: http://screenshot/6hbSgHZHkS7Vitp

Collection Image (background image w/ main color)
Flag Enabled: http://screenshot/BrESnB33dXFj5HR
Flag Disabled: http://screenshot/9w7qo8Jc2TLQBQ6

Classic Chrome
Flag Enabled: http://screenshot/3qWMJqZAgp9u24o
Flag Disabled: http://screenshot/5tjEiYgLLwJMuRF

Bug: 1430277
Change-Id: Iee531b2963a5a3ff734983d956fc8675b7a9d372
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4629501
Commit-Queue: Riley Tatum <rtatum@google.com>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160825}
2023-06-21 20:18:57 +00:00
4d5b98196c [Extensions] Update schemas to the new returns async format
This CL updates the following schemas to update them to the new format
for defining asynchronous returns.
 - serial
 - hid (sans receive, which has a multi-param callback)
 - browser
 - app.window
 - fileSystem (sans chooseEntry, which has a multi-param callback, and
   restoreEntry, which has a setUpdateArgumentsPostValidate hook that
   can call the callback early)
 - syncFileSystem

Note: These are mostly deprecated and restricted APIs, but are being
modified for consistency.

Bug: 328932
Change-Id: Ifaa94be4622efd4d3f6f1226f33c33735dd32874
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4599193
Commit-Queue: Tim <tjudkins@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160824}
2023-06-21 20:18:08 +00:00
7828986b78 Roll src-internal from 6244aa9c3fd2 to 741de036d653 (7 revisions)
6244aa9c3f..741de036d6

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://skia-autoroll.corp.goog/r/src-internal-chromium-autoroll
Please CC chrome-browser-infra-team,hoodjoshua@google.com,xiaochengh@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome
Bug: chromium:1412588
Tbr: hoodjoshua@google.com,xiaochengh@google.com
Change-Id: I08ea89df3c44e276f1cdc2441a39f04491e89768
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633858
Bot-Commit: chromium-internal-autoroll <chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com>
Commit-Queue: chromium-internal-autoroll <chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1160823}
2023-06-21 20:17:50 +00:00
3471baa60d Skip test_env_unittest and xvfb_unittest in PRESUBMIT
These two unittests were added to 3 CQ builders in
https://crrev.com/c/4515018 as swarmed script tests. That was done to
allow us to stop them being invoked via PRESUBMIT, since the tests
took ~10s. That can be a long time if you're making a simple
//testing/buildbot/ change.

So this finally moves them out of PRESUBMIT invocations. This means
upload times for testing changes should be faster. But a change that
regresses the test will only see the test regression in the CQ
rather than local presubmits. We assume this trade-off is worth it.

See how the CQ failed in https://crrev.com/c/4632504 where a test
failure was introduced.

Bug: None
Change-Id: Ia871696d6e4b3243deac0ff0891644b3a5356e98
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633730
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Erik Staab <estaab@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160822}
2023-06-21 20:16:55 +00:00
39c64cdfce Fix focus test on Lacros.
Fixes FolderUploadConfirmationViewTest.InitiallyFocusesCancel on Lacros
by checking the stored focus view instead of the focused view. On
Lacros browser_tests, the containing window doesn't have focus so the
focus manager will report no view has focus. Checking the stored focus
will use the current focused view if there is one, and tell us the view
that will get focus when it returns which is what this test needs.

Change-Id: I1ef447c1604af8c26c29019216d2e275f0caed34
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4629189
Reviewed-by: Allen Bauer <kylixrd@chromium.org>
Commit-Queue: Brett Wilson <brettw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160821}
2023-06-21 20:16:13 +00:00