0
Commit Graph

4037 Commits

Author SHA1 Message Date
Cole Horvitz
546af9f8f2 WebUI: Set optimize=optimize_webui by default in build_webui.
Now that minify_js exists to minify JS files in build_webui which
are not bundled, it makes sense to do this by default when
optimize_webui=true. This also modifies the minify_js.py script
to include the --module flag in Terser, to accommodate ChromeOS.

This change reduces resources.pak by
- 108kb on Linux (8.42mb -> 8.3mb)
- 128kb on CrOS (20.9mb -> 20.77mb)

Bug: 1431253
Change-Id: I4d5b12c3a1966bab255fb874d8dd83036b7adbd5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4436531
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Cole Horvitz <colehorvitz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132226}
2023-04-18 23:24:54 +00:00
Joshua Pawlicki
c6814bef35 Documentation: Update Omaha protocol documentation with known values.
Fixed: 1424228
Change-Id: Ia132752d90b183b24a30a7a4be4f159ec61e3a87
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4442688
Auto-Submit: Joshua Pawlicki <waffles@chromium.org>
Commit-Queue: Sorin Jianu <sorin@chromium.org>
Reviewed-by: Sorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132164}
2023-04-18 21:22:41 +00:00
Amanda Lin Dietz
62d7a52e2e [AXMode] Fix backwards compatibility for any changes to AXMode during tests
crrev.com/c/4405148 added a new optional parameter to the
--force-renderer-accessibility flag that forces an AXMode bundle to be
used during execution, with a default of kAXModeComplete. It is possible
that some tests would want to add or remove flags during execution to
change the mode from kAXModeComplete, so we should allow the mode to
change if no optional parameter is passed to this flag and only
force the mode if the optional parameter has been populated.

Cq-Include-Trybots: luci.chromium.try:linux-chromeos-rel,linux-blink-web-tests-force-accessibility-rel

AX-Relnotes: N/A
Bug: 1434358
Change-Id: I5f95c0cecb1a8688407d1822852ef50a4a9ed430
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4440258
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Alex Moshchuk <alexmos@chromium.org>
Auto-Submit: Amanda Lin Dietz <aldietz@google.com>
Cr-Commit-Position: refs/heads/main@{#1132154}
2023-04-18 21:16:13 +00:00
Amanda Lin Dietz
375d922c9e [AXMode] Add optional AXMode bundle to command line switch
This CL adds an optional parameter to the
--force-rendererer-accessibility command line switch to set the AXMode
to one of the following predefined bundles:
1) Basic
2) Form Controls
3) Complete

If the optional parameter is missing or invalid, then the AXMode
bundle will default to Complete, which runs the full accessibility
engine in Chrome.

This switch will remain backwards compatible as the parameter is
optional. This switch may be updated in the future with additional
predefined bundles.

This switch should aid in testing the AXMode feature.

AX-Relnotes: N/A
Bug: 1411856
Change-Id: I44d71292b4d5d171df3cf93d7486c8d06590a212
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4405148
Reviewed-by: Mark Schillaci <mschillaci@google.com>
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Amanda Lin Dietz <aldietz@google.com>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1131379}
2023-04-17 18:28:48 +00:00
Avi Drissman
9770f3070b Eliminate gfx::NativeFont
Its only non-dead code use is in Apple-specific paths where we can
just use CTFont for increased clarity.

Bug: 1433041
Change-Id: I5453b819a2cdffae3f4390f9b81fa40b6d00880c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4428312
Commit-Queue: Avi Drissman <avi@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Etienne Bergeron <etienneb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131264}
2023-04-17 16:11:26 +00:00
Cole Horvitz
ed9afe73b3 WebUI: Minify non-bundled JS code in build_webui.
Previously, build_webui only minified and bundled JS code through
optimize_webui. However, files which were not bundled did not get
minified. This adds the minify_js rule to build_webui so code which
is not bundled is also minified when optimize=true.

This also updates the WebUI build pipeline doc image.

This change reduces resources.pak from 9.0mb to 8.9mb. More files
will be minified in follow-up CLs to further reduce the size of
resources.pak.

Bug: 1431253
Change-Id: Ia7bafc9e69199a1899864c729bde4ff57bae19aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4412620
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Cole Horvitz <colehorvitz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1130594}
2023-04-14 18:48:55 +00:00
Ho Cheung
2180edfe41 [Fuchsia] Rename default_fuchsia_build_dir_for_installation into
`default_fuchsia_out_dir`

Rename `default_fuchsia_build_dir_for_installation` into
`default_fuchsia_out_dir`, to avoid confusion.

Bug: 1350283
Change-Id: Ib7d74acfbabba9f0d7e83783281bda8dd8ec16be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4420555
Reviewed-by: Zijie He <zijiehe@google.com>
Auto-Submit: Ho Cheung <uioptt24@gmail.com>
Commit-Queue: Zijie He <zijiehe@google.com>
Cr-Commit-Position: refs/heads/main@{#1130571}
2023-04-14 18:27:41 +00:00
Cole Horvitz
251fd88257 WebUI: Add minify_js build rule.
This CL creates a build rule and Python script which minifies JS code.
Previously, we only had optimize_webui which bundles and minifies code,
but this rule allows for the minifying of code which does not get
bundled.

Bug: 1431253
Change-Id: I1cffd93ebd377830193e5d03c1f686cfcf5f5fb9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4411870
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Cole Horvitz <colehorvitz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1130570}
2023-04-14 18:26:59 +00:00
Richard Townsend
a74d60d38a perf: make it easier to collect different simpleperf events
Also improve robustness/error logging to more easily capture typos.

Change-Id: Ie52872da00a76b2f3803ce6b54b11dc03f16f442
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4414881
Commit-Queue: Richard Townsend <richard.townsend@arm.com>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1130388}
2023-04-14 12:07:20 +00:00
dpapad
f79e4c0e9f Settings: Introduce "limited sharing" mechanism.
This mechanism will be used to share files between CrOS and Browser
Settings, in an effort to properly decouple these UIs code.

In this CL moving only a single file to the sharing mechanism as an
example. Remaining shared files will be moved in follow-ups.

Bug: 1431477
Change-Id: Icfbaf7fe23aa474b9ccca66c14f2e5fa693358f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4408104
Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org>
Reviewed-by: John Lee <johntlee@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1130155}
2023-04-13 22:35:16 +00:00
Adrian Taylor
3e7e62eeab Fix formatting tag displayed on labels md.
Change-Id: Ic27883c12b5739e7989a3bb6171105301fbfa56c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4422606
Commit-Queue: Alex Gough <ajgo@chromium.org>
Auto-Submit: Adrian Taylor <adetaylor@chromium.org>
Reviewed-by: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1129948}
2023-04-13 17:35:57 +00:00
Eric Lawrence
2de6aaa15d Update Security FAQ with info on Home Button
There are over ten duplicate reports over the years noting that a user
may configure the Home button to execute JavaScript. This is not a
vulnerability.

Change-Id: I730b338526869339d9ce1c34092922c47fe87992
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4420206
Auto-Submit: Eric Lawrence <elawrence@chromium.org>
Commit-Queue: Joe DeBlasio <jdeblasio@chromium.org>
Reviewed-by: Joe DeBlasio <jdeblasio@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1129923}
2023-04-13 17:06:55 +00:00
Avi Drissman
e3fb6dd30c Use the pimpl pattern to remove <objc/objc.h> includes
In many cases, <objc/objc.h> is included in a header file to allow the
use of Objective-C types despite that header needing to be able to be
included in a pure C++ file.

That's not good, and we're looking to ban <objc/objc.h> includes, so
rewrite those files to use the pimpl pattern instead.

Bug: 1429730
Change-Id: Iaa076cdd5bf60882855b8b5806ae13d99ccc0cc2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4416244
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1129571}
2023-04-12 22:51:47 +00:00
Amanda Lin Dietz
e08e65139a [AXMode] Refactor AXMode feature flags into one renamed flag
This CL refactors the two modes introduced in the ComputeAXMode feature,
Basic and Complete, and the mode introduced in the
AccessibilityFormControls feature, FormControls, under one feature flag.

Tests have been updated and added as well.

AX-Relnotes: N/A
Bug: 1411856
Change-Id: Ie3e0e06514c796ab1d64e28c3e87bc2a5c155c8d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4401113
Reviewed-by: Evan Liu <evliu@google.com>
Commit-Queue: Amanda Lin Dietz <aldietz@google.com>
Cr-Commit-Position: refs/heads/main@{#1129495}
2023-04-12 21:21:49 +00:00
James Feister
b756267d24 Update doc for debug tools flag
Bug: None
Change-Id: If39f2b9cffe0acfc2eccfd2b443733faa8f874d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4420113
Reviewed-by: Zork <zork@chromium.org>
Commit-Queue: Zork <zork@chromium.org>
Auto-Submit: James Feister <jamesfeister@google.com>
Cr-Commit-Position: refs/heads/main@{#1129493}
2023-04-12 21:19:05 +00:00
Alex Gough
2d9974c723 Add libc++ hardening note to security FAQ
Change-Id: Ib354e36a19a8f6fb54083ebb55c7e0a5cde323e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4409784
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1128879}
2023-04-11 20:47:57 +00:00
Andrew Grieve
912f663357 Rename trichrome_module_descs -> chrome_module_descs
In preparation for creating a chrome_bundle target.

Bug: 1426950
Change-Id: I125eda4ff86c4257229f29c1c2ae6470b2247f7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4401199
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1128682}
2023-04-11 16:11:56 +00:00
Mark Schillaci
47159f6c45 Use more inclusive language in accessibility related code
This CL updates some language throughout the accessibility code to
use more inclusive terms. No functional changes.

AX-Relnotes: N/A
Bug: N/A
Change-Id: Iad8f73fd5179d24a1c68026be5fc92480ff44a49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4409765
Reviewed-by: Akihiro Ota <akihiroota@chromium.org>
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Cr-Commit-Position: refs/heads/main@{#1128194}
2023-04-10 17:10:28 +00:00
Ian Clelland
d04db2f44c Fix typo in LCP changelog update.
Change-Id: Ic3082bfcd8c31a11f908266fd9cde1d6a9b0d3da
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4410120
Reviewed-by: Johannes Henkel <johannes@chromium.org>
Commit-Queue: Ian Clelland <iclelland@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1127806}
2023-04-07 22:27:00 +00:00
Annie Sullivan
d516bb26cd Fix typos in LCP changelog
Change-Id: Ib2c764ba085335bd25233df3bc187428db4ca386
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4409242
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Annie Sullivan <sullivan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1127590}
2023-04-07 12:17:09 +00:00
kalettuce
dd7e8846ae Add details to a section in docs/cl_respect.md.
Change-Id: I9e5f5b9ee05cb3cdc4ad6a5b06c5229fde5747ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4405152
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Reviewed-by: Sergio Collazos <sczs@chromium.org>
Auto-Submit: Kale Lettuce <kalettuce@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1127443}
2023-04-06 23:02:55 +00:00
Dustin Mitchell
4d81b209d5 Revert "Pass a StorageKey to CodeCacheHostImpl"
This reverts commit e02ff96748.

Reason for revert: crashes - https://crbug.com/1431027, https://crbug.com/1431200

Original change's description:
> Pass a StorageKey to CodeCacheHostImpl
>
> Supply CodeCacheHostImpl with a storage key at every point where one is
> created, and use that to key the cache storage.
>
> The effect is that CodeCache is now covered by third-party storage partitioning.
>
> Bug: 1402861, 779444
> Change-Id: Iac89bec207f7b0bba0e8df4d58c4ff91753c8168
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4362561
> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
> Commit-Queue: Dustin Mitchell <djmitche@chromium.org>
> Reviewed-by: Christian Dullweber <dullweber@chromium.org>
> Reviewed-by: Antonio Sartori <antoniosartori@chromium.org>
> Reviewed-by: Steven Bingler <bingler@chromium.org>
> Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1126554}

Bug: 1402861, 779444
Change-Id: I62c39ac57521390be0c633a90f2dbf6f6be99534
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4404107
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Dustin Mitchell <djmitche@chromium.org>
Owners-Override: Peter Williamson <petewil@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1127387}
2023-04-06 21:00:36 +00:00
kalettuce
aebff76e47 Add a section to docs/cl_respect.md.
Bug: b/276787576
Change-Id: If0ea592ecbb55d9d05397ca5f656d31aa2de0e66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4404619
Reviewed-by: Sergio Collazos <sczs@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Kale Lettuce <kalettuce@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1127381}
2023-04-06 20:43:07 +00:00
Ian Clelland
3f2b21119b Update LCP changelog to mention low-entropy exclusions.
Change-Id: I105e63e8ccc38ae2504c0539a96fec60c0c419c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4406423
Auto-Submit: Ian Clelland <iclelland@chromium.org>
Reviewed-by: Annie Sullivan <sullivan@chromium.org>
Commit-Queue: Ian Clelland <iclelland@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1127253}
2023-04-06 17:02:07 +00:00
Ho Cheung
c083ca1246 [docs] Remove duplicate content from vscode.md
vscode.md contains duplicate content, this CL removes
the duplicate content.

Bug:None

Change-Id: I5fa9b2708ef318e92fce7cf7098e57bbae448f1a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4402299
Auto-Submit: Ho Cheung <uioptt24@gmail.com>
Commit-Queue: Ming-Ying Chung <mych@chromium.org>
Reviewed-by: Ming-Ying Chung <mych@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1127167}
2023-04-06 14:22:07 +00:00
Thomas Guilbert
43ad2f7457 Add AmplitudePeak latency tracing doc
This CL adds public instructions as to how to use the "audio.latency"
tracing category.

Bug: 1394977
Change-Id: If11a49af7c4de56b811320253ee1982570a41042
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4404621
Auto-Submit: Thomas Guilbert <tguilbert@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Thomas Guilbert <tguilbert@chromium.org>
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126973}
2023-04-06 01:57:33 +00:00
dpapad
2efd445225 Make scheme relative URLs default in html_to_wrapper().
This is a follow-up to the similar CL at http://crrev.com/c/4375918
which made it the default for build_webui().

Scheme-relative URLs are shorter, and also can work in both chrome://
and chrome-untrusted:// contexts. Making them the default seems like a
safer option.

Bug: None
Change-Id: Ice10f7700730eaa30396c8a5d326cc314ccf7cb9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4404334
Reviewed-by: Cole Horvitz <colehorvitz@chromium.org>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126966}
2023-04-06 01:43:45 +00:00
Harry Souders
d65c2aef41 Update release cycle documentation to reflect 5 weeks between branch and stable release
Change-Id: Ieeab53e121d8ab75d8f108e39ad6b950551bf0e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4403612
Reviewed-by: Krishna Govind <govind@chromium.org>
Commit-Queue: Harry Souders <harrysouders@google.com>
Cr-Commit-Position: refs/heads/main@{#1126918}
2023-04-05 23:49:46 +00:00
Dustin J. Mitchell
e02ff96748 Pass a StorageKey to CodeCacheHostImpl
Supply CodeCacheHostImpl with a storage key at every point where one is
created, and use that to key the cache storage.

The effect is that CodeCache is now covered by third-party storage partitioning.

Bug: 1402861, 779444
Change-Id: Iac89bec207f7b0bba0e8df4d58c4ff91753c8168
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4362561
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Dustin Mitchell <djmitche@chromium.org>
Reviewed-by: Christian Dullweber <dullweber@chromium.org>
Reviewed-by: Antonio Sartori <antoniosartori@chromium.org>
Reviewed-by: Steven Bingler <bingler@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126554}
2023-04-05 14:28:53 +00:00
Sam Maier
b0bd6d9e20 Reland "Removing concept of MainDex/non-MainDex native"
This is a reland of commit 126fae8049

Locally tested failing robolectric tests, they now pass.

Original change's description:
> Removing concept of MainDex/non-MainDex native
>
> With automatic registration being the default now, there is no need to
> differentiate MainDex/non-MainDex as automatic registration is lazy
> anyways.
>
> Low-Coverage-Reason: Just a deletion of code
> Bug: 1371542
> Change-Id: I85cc1f72e71eb4b2ed36a06bd8b0a25a484ce3fe
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385433
> Owners-Override: Andrew Grieve <agrieve@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Commit-Queue: Sam Maier <smaier@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1124766}

Bug: 1371542
Change-Id: Ic54ae392db54e0da6b6dc0cf48867a1b96dc87c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4389822
Auto-Submit: Sam Maier <smaier@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126519}
2023-04-05 13:22:23 +00:00
Ho Cheung
c4cd9e54c3 [docs] Update the recommended extension in vscode.md
The `HTML Preview` extension pointed to in vscode.md has been
deprecated and is no longer maintained, this CL updates the
`HTML Preview` extension to another available extension.

Bug: None
Change-Id: Id7c5c2cb1535f300f0e1b7ad7ab1945627db2fe6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4392224
Auto-Submit: Ho Cheung <uioptt24@gmail.com>
Reviewed-by: Ming-Ying Chung <mych@chromium.org>
Commit-Queue: Ming-Ying Chung <mych@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126374}
2023-04-05 01:32:21 +00:00
Alex Gough
d93498a637 Adds security guidance for the accessibility tree
Bug: None
Change-Id: I4467562d28524a396f2387e67124a3ad9432c5e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4396744
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126256}
2023-04-04 21:58:53 +00:00
Alex Moshchuk
031f783dcc Update documentation for <webview> site isolation.
Various places in our documentation currently reference the lack of
site isolation in <webview> tags.  Update all such places now that
site isolation for <webview> is available.

Bug: 1267977
Change-Id: I50094307c63fc621b96e5833274035f2a9694739
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385895
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126059}
2023-04-04 16:59:07 +00:00
Sorin Jianu
66c923836c updater: persist the active version under the Update key in registry.
This is necessary for ondemand Chrome clients which check the version of
the updater. It's an Omaha back compat feature.

Fixed: 1429755
Change-Id: I51bda50aeba546da1a6aba85749c46af76c4a60c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4396421
Auto-Submit: Sorin Jianu <sorin@chromium.org>
Commit-Queue: S Ganesh <ganesh@chromium.org>
Reviewed-by: S Ganesh <ganesh@chromium.org>
Commit-Queue: Sorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1125723}
2023-04-04 00:25:55 +00:00
Leina Sun
2d7e40c45b set chromeperf tests and sharding for mac m1 pro
Bug: chromium:1428344
Change-Id: I3367842f9786311eb6f2fc54228dc329df35856d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4382886
Reviewed-by: Wenbin Zhang <wenbinzhang@google.com>
Commit-Queue: Leina Sun <sunxiaodi@google.com>
Cr-Commit-Position: refs/heads/main@{#1125577}
2023-04-03 21:02:43 +00:00
S. Ganesh
bfc64071ad Add some documentation for MSI installers
Bug: 1327497
Change-Id: I75f89bad48ac8d8331bce1d5af93104492829812
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4395569
Auto-Submit: S Ganesh <ganesh@chromium.org>
Reviewed-by: Xiaoling Bao <xiaolingbao@chromium.org>
Commit-Queue: Xiaoling Bao <xiaolingbao@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1125562}
2023-04-03 20:51:05 +00:00
Tom Sepez
923050c72f Add a section on cyclic pointers to dangling_ptr_guide.md
Explain how to resolve another common case.

Change-Id: I8f8e37bcddda37944f9bfc1d5c0f056ee4765355
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385894
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Bartek Nowierski <bartekn@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1125417}
2023-04-03 17:16:25 +00:00
Tom Sepez
16c9bfaffa Explain member destruction order in dangling_ptr_guide.md
Remind readers of a subtle point about C++ destructor behaviour.
Explain a best practice for avoiding these issues.

Change-Id: I912601d919c3e973479ff9dd74fcfc4aef837a00
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385577
Reviewed-by: Bartek Nowierski <bartekn@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1125406}
2023-04-03 16:30:41 +00:00
Andrew Williams
d2c9d7c6d6 Revert "Document WebView flag requirement in flag_guarding_guidelines.md"
This reverts commit e7f8c2b338.

Reason for revert: Will consider putting this documentation elsewhere

Original change's description:
> Document WebView flag requirement in flag_guarding_guidelines.md
>
> Bug: None
> Change-Id: I19afe75cb0b2500ca3fb096041549b09d851543c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4387340
> Commit-Queue: Andrew Williams <awillia@chromium.org>
> Reviewed-by: Richard Coles <torne@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1124759}

Bug: None
Change-Id: I3b9d6a82fa2645615e8b3ae7da63188e5f8dd6b7
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4391302
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Andrew Williams <awillia@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1124980}
2023-04-01 00:12:34 +00:00
Sam Maier
d65b572570 Revert "Removing concept of MainDex/non-MainDex native"
This reverts commit 126fae8049.

Reason for revert: Causing test failures in chrome_junit_tests
https://ci.chromium.org/ui/p/chromium/builders/ci/Android%20arm%20Builder%20%28dbg%29/67224/overview

Original change's description:
> Removing concept of MainDex/non-MainDex native
>
> With automatic registration being the default now, there is no need to
> differentiate MainDex/non-MainDex as automatic registration is lazy
> anyways.
>
> Low-Coverage-Reason: Just a deletion of code
> Bug: 1371542
> Change-Id: I85cc1f72e71eb4b2ed36a06bd8b0a25a484ce3fe
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385433
> Owners-Override: Andrew Grieve <agrieve@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Commit-Queue: Sam Maier <smaier@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1124766}

Bug: 1371542
Change-Id: Iaba2c00b3dc8d5433ec2397c2809b501354b8f01
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4389144
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Peilin Wang <peilinwang@google.com>
Cr-Commit-Position: refs/heads/main@{#1124839}
2023-03-31 19:47:48 +00:00
Sam Maier
126fae8049 Removing concept of MainDex/non-MainDex native
With automatic registration being the default now, there is no need to
differentiate MainDex/non-MainDex as automatic registration is lazy
anyways.

Low-Coverage-Reason: Just a deletion of code
Bug: 1371542
Change-Id: I85cc1f72e71eb4b2ed36a06bd8b0a25a484ce3fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385433
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1124766}
2023-03-31 16:16:02 +00:00
Andrew Williams
e7f8c2b338 Document WebView flag requirement in flag_guarding_guidelines.md
Bug: None
Change-Id: I19afe75cb0b2500ca3fb096041549b09d851543c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4387340
Commit-Queue: Andrew Williams <awillia@chromium.org>
Reviewed-by: Richard Coles <torne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1124759}
2023-03-31 16:05:18 +00:00
Jonathan Lee
dfcfcf4dc0 [rebaseline-cl] Generate dummy all-pass baselines when necessary
The warning about clobbering all-pass statuses (crrev.com/c/4334979) is
not useful when the affected builder/test passes expectedly (so it
generates no `actual_text` to download). In this change, `rebaseline-cl`
instead automatically generates a dummy baseline that `run_web_tests.py`
and `optimize-baselines` recognize as all-pass. This preserves subtest
-level coverage for failing platforms.

These dummy baselines should rarely be necessary, so this change's
impact on checkout size should be negligible. The dummy baselines are
self-documenting and link to the relevant web test documentation, which
this change updates.

Bug: 1324638
Test: To test the `run_web_tests.py` side:
Test: For `external/wpt/badging/badge-success.https.html`, create an
Test: abbreviated all-pass baseline for linux (host platform) and a
Test: failing baseline for win.
Test: `./run_web_tests.py -t Default external/wpt/badging` succeeds
Change-Id: I4a94fb4fda5c566ab0b5838c8ac913c6ee6cccce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385729
Reviewed-by: Weizhong Xia <weizhong@google.com>
Commit-Queue: Jonathan Lee <jonathanjlee@google.com>
Cr-Commit-Position: refs/heads/main@{#1124532}
2023-03-31 01:10:30 +00:00
Yulan Lin
33168662e8 [owners-cleanup]: update wording in owners policy
Bug: 1392797
Change-Id: Ib25b33dd7e7f0fdc286fe08f2c71cd020fa854cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385585
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Yulan Lin <yulanlin@google.com>
Cr-Commit-Position: refs/heads/main@{#1124478}
2023-03-30 23:10:51 +00:00
Avi Drissman
68403133cd Remove WeakNSObject
It's no longer used with ARC.

Bug: none
Change-Id: I67f693857c75b4b34ead6db7b3a323d9dc616873
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4378338
Auto-Submit: Avi Drissman <avi@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1124281}
2023-03-30 17:09:03 +00:00
Tiago Vignatti
3e5b18bc37 Update VS Code documentation for macOS
Changes:
- this setup has been tested now in macOS.
- the word to describe the OS has been updated: "Mac" -> "macOS"
- some shortcuts specific to macOS throughout the text have been updated
- minor markdown formatting.

Bug: None
Change-Id: I2e6448ec01bfcb9157d325010d98df20531deed4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4380224
Auto-Submit: Tiago Vignatti <tvignatti@igalia.com>
Commit-Queue: Tiago Vignatti <tvignatti@igalia.com>
Reviewed-by: Maksim Sisov <msisov@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1124154}
2023-03-30 13:13:46 +00:00
Hassan Talat
5098041be8 Remove a dead link in docs/webapps/README.md
url_handler_prefs was removed in https://chromium-review.googlesource.com/c/chromium/src/+/4226384

Change-Id: I527d61780469ef05ba02c32cbf05d2f2fddd5d38
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4382880
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Commit-Queue: Hassan Talat <hatalat@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1123937}
2023-03-29 23:42:52 +00:00
Andrew Grieve
ffc0e2fe37 Add //docs/speed/startup/android_startup.md
Bug: None
Change-Id: I8c7a966b1b368ec36fc449253cfac3775a5445f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4370558
Reviewed-by: Egor Pasko <pasko@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1123411}
2023-03-29 02:14:48 +00:00
kylechar
f3d936b83a Update how_cc_works.md
There is some out of date information around raster modes, namely there
is no more OOP vs GPU raster distinction. Update documentation to be
more accurate.

Bug: none
Change-Id: I56fdadd435dd7c391a58bb3bb7f56231c93a7dd8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4354893
Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
Commit-Queue: Kyle Charbonneau <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1122502}
2023-03-27 17:23:00 +00:00
Rick Byers
e64b12aa5c Better document flag guarding in blink
Change-Id: I11b5b97b564b984b131f3ceb8a05ebd79a981d60
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4368142
Commit-Queue: Rick Byers <rbyers@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1121857}
2023-03-24 19:06:38 +00:00