0
Commit Graph

1026676 Commits

Author SHA1 Message Date
18596eb2ce [unseasoned-pdf] Enable user action recording
Recording user actions in a renderer process can't be done using
base::RecordAction and friends because there is no running metrics
service. Instead, there's a call in the content layer, which passes the
actions across an IPC bridge, so the actions can be recorded in the
browser process.

Since the call is in the content layer, inject a dependency using the
Client interface.

Fixed: 1231356
Change-Id: I6e6cc5d2f652c9f8b930ce5d9355284028b8be1b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3043668
Commit-Queue: Daniel Hosseinian <dhoss@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905385}
2021-07-26 20:10:12 +00:00
cd53a9acc7 Fix unused seq checker in UsageScenarioTracker
Bug: 1232384
Change-Id: Icddbae35e7e32a370eef8cc57228ca88ba214e2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3049072
Commit-Queue: Sébastien Marchand <sebmarchand@chromium.org>
Reviewed-by: Sébastien Marchand <sebmarchand@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905384}
2021-07-26 20:09:33 +00:00
71189f4f04 [Passwords]Replace Add/RemoveInsecure in the password protection service
Add/RemoveInsecureCredentials will be removed from PasswordStore. For
phished credentials the insecure_credentials_helper should be used
instead.

Bug: 1223022
Change-Id: Iafad6a1cfb760e9fa7bebff5d888ab4381540df6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3044114
Reviewed-by: Xinghui Lu <xinghuilu@chromium.org>
Reviewed-by: Ali Juma <ajuma@chromium.org>
Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905383}
2021-07-26 20:06:05 +00:00
Wez
36412b14ee [fuchsia] Stub parts of the downloads implementation.
- Opt-in OS_FUCHSIA to checks for PDF downloads.
- Stub out download progress update API.

Bug: 1226242
Change-Id: I1f50ac6ff7a2692cbec49310e8dbd83d22f5a0bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3045275
Commit-Queue: Wez <wez@chromium.org>
Auto-Submit: Wez <wez@chromium.org>
Reviewed-by: David Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905382}
2021-07-26 20:02:47 +00:00
71f3821592 [CSN] Add fieldtrial config for ContinuousSearchNavigation
Change-Id: I09ba3045e0bda590ec4d006c9e54e565c9fd52c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3054452
Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
Commit-Queue: Yashar Dabiran <yashard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905381}
2021-07-26 20:02:42 +00:00
f47cea3c3e dPWA: Add SettingsPageUIHandler for web app URL handlers settings page
This is the first of several CLs to implement a WebUI settings page for
managing web app URL handling user preferences. This CL implements
settings::UrlHandlersHandler which responds to JavaScript requests from
the frontend. It also implements supporting logic in
web_app::UrlHandlerPrefs.

See dependency chain for all intended changes.

Screenshots of settings page prototype:
https://photos.app.goo.gl/LKLTK1AtaxpRNupC7

UX review doc:
https://docs.google.com/document/d/1pL9VexY86o3YW-iP1iN_O2fzj9QBqvBQm7CWMl5Djf0/edit

URL handling preferences design doc:
https://docs.google.com/document/d/1H0E8rvD_7fWWhB5RBzNY5LOt3Vz1OT0RCKbV63Uvsfk/edit#heading=h.v0xafe1yws7

URL handling design doc:
https://docs.google.com/document/d/19dGklalQTRtRrG3PKrVbDRmYPLHGLnsGEwUaed7sAFQ/edit

Bug: 1217423,1072058
Change-Id: Ibe576762533132b6455fd64723ed9b7be7ffee14
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3002330
Reviewed-by: Theodore Olsauskas-Warren <sauski@google.com>
Reviewed-by: dpapad <dpapad@chromium.org>
Reviewed-by: Alan Cutter <alancutter@chromium.org>
Commit-Queue: Lu Huang <luhua@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#905380}
2021-07-26 20:00:24 +00:00
624fc323f3 Roll src/net/third_party/quiche/src/ b69b65388..3df755e29 (19 commits)
https://quiche.googlesource.com/quiche.git/+log/b69b65388336..3df755e294e6

$ git log b69b65388..3df755e29 --date=short --no-merges --format='%ad %ae %s'
2021-07-26 haoyuewang Internal change
2021-07-26 fayang Downgrade QUIC_BUG to QUIC_DLOG while client sends stream data while 0-RTT gets rejected and 1-RTT keys are not yet available. Also, removed QUIC_BUG while trying to send control frames before encryption gets established.
2021-07-26 haoyuewang Flip --gfe2_reloadable_flag_quic_ack_cid_frames in Chrome as the broken tests are fixed by https://chromium-review.googlesource.com/c/chromium/src/+/3043202
2021-07-23 quiche-dev Initialize SimpleRandom::buffer_offset_ in quic_test_utils
2021-07-23 quiche-dev Fixes the nghttp2_data_provider adapter to return an accurate status value when a DataFrameSource indicates fin with no data.
2021-07-23 quiche-dev Adds tests for the conversion from DataFrameSource to nghttp2_data_provider.
2021-07-23 quiche-dev Removes unused DataSource interface and implementation.
2021-07-23 quiche-dev Adds nullptr guards to invocations of nghttp2 callbacks within CallbackVisitor.
2021-07-23 haoyuewang Internal change
2021-07-22 dschinazi Fix QUIC insecure randomness on Windows 7
2021-07-22 quiche-dev Splits nghttp2-specific test utilities into nghttp2_test_utils.{h,cc}.
2021-07-22 fayang Automated g4 rollback of changelist 384571235.
2021-07-22 bnc Add HttpDecoder::IsBufferedFrame().
2021-07-22 wub Internal change
2021-07-22 bnc Add pointers embedding QUICHE in README.md.
2021-07-21 wub Introduce QUIC connection dapper tracing in GFE2.
2021-07-21 wub Default enable --gfe2_reloadable_flag_quic_run_default_signature_callback_once.
2021-07-21 wub Add regression test for b/194177024.
2021-07-20 bnc Remove and rename HttpDecoder methods.

Created with:
  roll-dep src/net/third_party/quiche/src src/third_party/quic_trace/src

Change-Id: Ie69a3ede3a04b5464ad36b2a67d45a3acf270ae5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3054455
Reviewed-by: Bence Béky <bnc@chromium.org>
Commit-Queue: Fan Yang <fayang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905379}
2021-07-26 20:00:20 +00:00
e11f7e9962 Fix use-after-free in CoordinatorImplTest.
The CoordinatorImpl creates a TracingObserverProto which registers
itself as a data source with PerfettoTracedProcess. However, the
worker thread owned by the TaskEnvironment may access the list of data
sources, which will lead to a use-after-free if the CoordinatorImpl
is destroyed before the TaskEnvironment. Fix the problem by destroying
the objects in the other order.

Found using the PartitionAlloc MTE support patch:
https://chromium-review.googlesource.com/c/chromium/src/+/2695355

Change-Id: I37b505601ec0c33355a3a27af211ed349ef65a1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3050835
Reviewed-by: ssid <ssid@chromium.org>
Commit-Queue: Peter Collingbourne <pcc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905378}
2021-07-26 20:00:11 +00:00
b38efab70f Adjust top sites outline.
New Light: https://screenshot.googleplex.com/FU4mSLJv4dFcS3K.png
New Dark: https://screenshot.googleplex.com/8Pwd5AqMmF47G3v.png

Bug: 1232717
Change-Id: Ib16d61dc303296e0237dfc195b1612af54f7d094
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3053511
Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
Reviewed-by: Theresa  <twellington@chromium.org>
Commit-Queue: Theresa  <twellington@chromium.org>
Auto-Submit: Sky Malice <skym@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905377}
2021-07-26 19:54:01 +00:00
0dca237484 Roll src-internal from ed31e91bcc29 to 5d3a2a91a99a (1 revision)
ed31e91bcc..5d3a2a91a9

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 dalecurtis@google.com,mohsen@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:1227542
Tbr: dalecurtis@google.com,mohsen@google.com
Change-Id: I11480c6f9259ff19cefa55bc42fc1493bebe9391
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3054973
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/master@{#905376}
2021-07-26 19:48:34 +00:00
ebf57fc655 [counter-style] Refactor the legacy CJK algorithms
This patch refactors the legacy implementation of the CJK counter styles
by:

- Removing the handing of negative numbers, so that we can use unsigned
  in the algorithm and handle -2147483648 correctly. Note that negative
  sign is already handled by the caller GenerateRepresentation()

- Moving some code to make the code for CJK algorithms more compact

This is the last patch for the clean up of the legacy counter style
implementation.

Bug: 1228531
Change-Id: I59e18980b27c5f03f73e0178e9be0db9cfa6c430
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3036216
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905375}
2021-07-26 19:47:24 +00:00
17450cf55c [ChromeCart] Fix Gstore
Bug: 1232552
Change-Id: I4587e9d7b0854593a8233584185fdccdac46eb28
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3050130
Reviewed-by: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Commit-Queue: Yue Zhang <yuezhanggg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905374}
2021-07-26 19:44:51 +00:00
42d0860eab Revert "Move faster by moving property tree state in the PaintChunk move ctor"
This reverts commit aa2b8602a3.

Reason for revert:
- The real improvement is small.
- It's suspected to cause crbug.com/1232840.

The code improvements in RasterInvalidator and
PaintArtifactCompositor are kept.

Original change's description:
> Move faster by moving property tree state in the PaintChunk move ctor
>
> The PaintChunk move constructor was not moving |properties| (a
> RefCountedPropertyTreeState) which led to ref count churn. This accounts
> for 0.7% of CPU time on the css opacity portion of the motion mark
> multiply benchmark [1]
>
> [1] https://browserbench.org/MotionMark1.1/developer.html?test-interval=9999&display=minimal&tiles=big&controller=fixed&frame-rate=50&kalman-process-error=1&kalman-measurement-error=4&time-measurement=performance&suite-name=Multiplysuite&test-name=MultiplyCSSopacityonly&complexity=800
>
> Bug: 1227907, 1210247
> Change-Id: Ib952b03ac74ef53b65330d90a5f2b103fc77ae12
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3045462
> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
> Reviewed-by: Philip Rogers <pdr@chromium.org>
> Auto-Submit: Philip Rogers <pdr@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#904899}

Bug: 1227907, 1210247, 1232840
Change-Id: Ic7d09368543e7e27d899cb70ea9720120d497ff1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3053079
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905373}
2021-07-26 19:44:39 +00:00
b63c414661 Add methods to CanonicalCookie to serialize/deserialize partition keys
to/from strings.

The serialization scheme for a cookie partition key
(absl::optional<net::SchemefulSite) is as follows:

- If the key is absl::nullopt, the output is net::kEmptyPartitionKey
- If the key contains a file origin, the output is
  SchemefulSite::SerializeFileSiteWithHost().
- Otherwise the output is SchemefulSite::Serialize().

The serialization method returns false if the partition key is invalid
or the SchemefulSite's origin is opaque. If this method returns false
the cookie should not be saved to disk.

The deserialization scheme works as follows:
- If the input is net::kEmptyPartitionKey, the output is absl::nullopt
- Otherwise return SchemefulSite::Deserialize(input)

The deserialization method returns false if the serialized key is
invalid. If this method returns false the cookie should not be loaded
from disk into a CanonicalCookie and should be deleted.

This CL also adds the method SerializeFile[Origin|Site]WithHost
to url::Origin and net::SchemefulSite respectively. Unlike Serialize,
this method should only be called on file origins and preserves the
origins' host.

Bug: 1225444
Change-Id: Ic113b693dfc450857a43cbf2ca645a5adf6b016e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3032294
Reviewed-by: Matt Menke <mmenke@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Lily Chen <chlily@chromium.org>
Reviewed-by: Charlie Harrison <csharrison@chromium.org>
Commit-Queue: Dylan Cutler <dylancutler@google.com>
Cr-Commit-Position: refs/heads/master@{#905372}
2021-07-26 19:42:29 +00:00
d4848f10ea Convert kWebUIResources into function static variable
This avoids a static initializer for constructing kWebUIResources.

Change-Id: I7d897008617e4b85f3b7732f4fe1ce4fba3ebd12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3046473
Reviewed-by: David Jean <djean@chromium.org>
Reviewed-by: Gauthier Ambard <gambard@chromium.org>
Commit-Queue: John Wu <jzw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905371}
2021-07-26 19:39:52 +00:00
a8663eb646 arc: add api to record arc dns resolution failure
Second highest reason for checkin failure is due to failed dns query.
We're adding a metric to track how common this issue is for hostname
used by checkin apis and every other hostname.

Android change: http://ag/15364401

BUG=b:183412745
TEST=blocked android.googleapis.com in dns sink and verified that the
metric is reported in chrome://histograms

Change-Id: Ib7aa74d83624a02f4e675e26c14431d83441337f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3046942
Commit-Queue: Muhammad Hasan Khan <mhasank@chromium.org>
Reviewed-by: Yuichiro Hanada <yhanada@chromium.org>
Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
Reviewed-by: Alex Gough <ajgo@chromium.org>
Reviewed-by: Hugo Benichi <hugobenichi@google.com>
Cr-Commit-Position: refs/heads/master@{#905370}
2021-07-26 19:37:22 +00:00
5040a90e9f Remove WebMediaPlayerImplTest::agent_group_scheduler_
Initializing this field is causing problems, though it doesn't appear to
be used by any of the tests. This CL simply removes the field.

Bug: 1228089
Change-Id: I08ccdb19dbf8d8816ee631ce783b2cf8e5b1c397
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3047279
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Will Cassella <cassew@google.com>
Cr-Commit-Position: refs/heads/master@{#905369}
2021-07-26 19:35:39 +00:00
e4fd9b762c Updating integration tests to use PasswordForm::password_issues
The following methods will be removed from the PasswordStore:
AddInsecureCredentials
RemoveInsecureCredentials
GetAllInsecureCredentials
and so integration tests should be updated to work without them.

Bug: 1223022
Change-Id: Ia745fe92dba0a2e81e11c7ab4ee11c526abf1f82
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3053693
Reviewed-by: Marc Treib <treib@chromium.org>
Reviewed-by: Mohamed Amir Yosef <mamir@chromium.org>
Commit-Queue: Viktor Semeniuk <vsemeniuk@google.com>
Cr-Commit-Position: refs/heads/master@{#905368}
2021-07-26 19:27:31 +00:00
fabe5105c1 Respect EditBookmarksEnabled pref value in tab grid edit mode
The EditBookmarksEnabled pref can be set to false by enterprise policy.
In this case, the Add to Bookmark option of the Tab Grid Add To menu
should be disabled.

Change-Id: Ibca1d85daf162e89b8b102cc02e89f1bebdcd0ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3044726
Auto-Submit: Mike Dougherty <michaeldo@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905367}
2021-07-26 19:26:46 +00:00
0ca8da4182 Remove raw-pointer WidgetDelegate::SetContentsView
Existing call sites are all using the std::unique_ptr<T> version.

Bug: 1044687
Change-Id: Ia4d7b4246fb0c8b8ba4fcdcf881be3d184276ef2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3050831
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905366}
2021-07-26 19:26:31 +00:00
774f1fc956 [sync protos] Split SyncEntity proto message to dedicated file
Yet another split to reduce the number of includes to sync.pb.h. Again,
fix IWYU and replace includes for sync.pb.h with forward declaration /
more specific includes where possible.

Delta of #include-s per file:
+37/-0 sync_entity.pb.h
+8/-0 sync_enums.pb.h
+7/-0 device_info_specifics.pb.h
+11/-0 entity_specifics.pb.h
+5/-0 session_specifics.pb.h
+4/-2 model_type_state.pb.h
+3/-1 autofill_specifics.pb.h
+3/-0 user_event_specifics.pb.h
+2/-1 bookmark_specifics.pb.h
+2/-0 unique_position.pb.h
+2/-0 autofill_offer_specifics.pb.h
+2/-0 app_list_specifics.pb.h
+1/-0 user_consent_specifics.pb.h
+1/-0 printer_specifics.pb.h
+1/-0 managed_user_setting_specifics.pb.h
+1/-0 get_updates_caller_info.pb.h
+1/-0 entity_metadata.pb.h
+0/-55 sync.pb.h
+0/-1 preference_specifics.pb.h
+0/-1 password_specifics.pb.h
+0/-1 extension_specifics.pb.h

Bug: 1229643
Change-Id: Ia54e2b233056e20460a1765a99adf0379a35f69b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3054120
Reviewed-by: Marc Treib <treib@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Auto-Submit: Victor Vianna <victorvianna@google.com>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905365}
2021-07-26 19:22:18 +00:00
f8e644f973 Correctly Track External Focus During FindBar Tab Changes
A confluence of issues make the find bar restore focus incorrectly
during tab changes.

Assume there is a browser with two tabs. The following will happen:
  1) Show the Find Bar
     The ExternalFocusTracker is created and correctly obtains a
     view outside the tree to restore focus upon hiding the find bar.
  2) Switch to another tab (where the find bar is hidden)
     ChromeWebContentsViewFocusHelper notes that the last focused
     element was the textfield in the find bar and saves that.

     The normal machinery runs to hide the find bar as part of a
     tab (and web contents) change.
  3) Switch back to the original tab with the find bar.
     ChromeWebContentsViewFocusHelper restores focus to the textfield
     in the find bar and the find bar is shown again.

     BUG 1: Showing the find bar creates a new ExternalFocusTracker,
            destroying any existing one that may already be there.
     BUG 2: The ExternalFocusTracker during creation unconditionally
            tracks the focus manager's currently focused element
            (which is the textfield), violating an invariant that the
            tracked element is external to the find bar host tree.
  4) Dismiss the Find Bar. The bug is now observed.
     As part of hiding the find bar, the ExternalFocusTracker restores
     focus to its tracked element, which is the textfield in the find
     bar!

     The find bar closes and future keyboard input continues to go to
     the find bar, triggering a search experience while the find bar is
     invisible.

The following fixes are necessary to fix all of the above:
  1) The ExternalFocusTracker now checks to see if the currently
     focused view is within the tracked parent view. If it is, it does
     not update its tracked view. The tracked view could be null, which
     could happen anyways if the tracked view is destroyed before the
     ExternalFocusTracker restores focus to it.

  2) Since focus tracking policy is really part of the FindBarHost at
     the moment, the FindBarHost attaches the ExternalFocusTracker to
     the WebContents and suspends tracking. When the user returns to
     this WebContents, the ExternalFocusTracker is restored rather
     than created anew and tracking resumes.

  3) FindBarController::ChangeWebContents() delays updating the current
     WebContents until after its hidden the FindBar (if at all
     necessary). If it doesn't do this, if the FindBarHost needs the
     current WebContents during the hide, it will see a different
     WebContents that does not match the one during the Show().

Fixed: 913449
Change-Id: I0f99137c918cf49918abdd846dec4efc5ad8b67d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3053490
Commit-Queue: Robert Liao <robliao@chromium.org>
Auto-Submit: Robert Liao <robliao@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905364}
2021-07-26 19:21:54 +00:00
7f87a4dbd0 OS Settings: Remove associated-control, no-search attributes.
These are no longer used.

Bug: 1080777
Change-Id: If4f53baefcbe1b2e84c63a01641fd2c7e1afc2d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3048751
Auto-Submit: dpapad <dpapad@chromium.org>
Reviewed-by: Regan Hsu <hsuregan@chromium.org>
Commit-Queue: dpapad <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905363}
2021-07-26 19:19:25 +00:00
b7299cd92b Update V8 to version 9.4.53.
Summary of changes available at:
986aec8b..bb25f7a6

Please follow these instructions for assigning/CC'ing issues:
https://v8.dev/docs/triage-issues

Please close rolling in case of a roll revert:
https://v8-roll.appspot.com/
This only works with a Google account.

CQ_INCLUDE_TRYBOTS=luci.chromium.try:linux-blink-rel
CQ_INCLUDE_TRYBOTS=luci.chromium.try:linux_optional_gpu_tests_rel
CQ_INCLUDE_TRYBOTS=luci.chromium.try:mac_optional_gpu_tests_rel
CQ_INCLUDE_TRYBOTS=luci.chromium.try:win_optional_gpu_tests_rel
CQ_INCLUDE_TRYBOTS=luci.chromium.try:android_optional_gpu_tests_rel

R=hablich@chromium.org,vahl@chromium.org,v8-waterfall-sheriff@grotations.appspotmail.com

Change-Id: I468474775de777bbb292fdafab3acf2733ef889b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3054651
Bot-Commit: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#905362}
2021-07-26 19:15:52 +00:00
8d2dce46ff [sync] Expose a bookmark's parent's GUID in sync protocol (specifics)
The field is somewhat redundant to the pre-existing parent_id proto
field, which is server-defined. The new field (a GUID in specifics)
has a number of advantages:
1) Is very simple, and in particular does not require fancy dealing with
   temporary IDs during commits.
2) Is more robust agaist hash collisions and server-side proto
   serialization bugs.
3) Is better privacy-wise, since it can be encrypted (for custom
   passphrase users).
4) Unblocks better dealing with orphan nodes, which would now at least
   determine the parent's GUID, and hence such a folder can in fact be
   created (with a proper GUID) without having any further information.

That said, none of the advantages listed above will be achieved for real
anytime soon, since old data will continue to exist for a long while.
Nevertheless, let's set the foundation for a better long-term future.

Change-Id: Icfe2530a679b519e54115a378d9a67a6e7f239d2
Bug: 1143246
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3053690
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Rushan Suleymanov <rushans@google.com>
Commit-Queue: Mikel Astiz <mastiz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905361}
2021-07-26 19:05:36 +00:00
511d2dffbc Release dropped events timer before shutdown
This timer seems to keep the WidgetInputHandlerManager class alive as
it's a RefCountedThreadSafe and the timer callback binds to |this|. This
might cause a CHECK failure once the timer callback finishes as there is
some work done during destruction. See stack trace in bug for more
details.

Bug: 1233003
Change-Id: Id8f1ef68a62108f3d86a2bbfebd21b2eecaba299
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3053743
Reviewed-by: Robert Flack <flackr@chromium.org>
Commit-Queue: Richard Knoll <knollr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905360}
2021-07-26 19:04:53 +00:00
e0a9831a75 Extend Expiration of History.URLTableCount and History.WeeklyURLCount
The former seems generally useful so extending by a year.

The latter is emitted at weird times so only extending for six months.  I'm hoping to convince myself that it's not useful and retire it.

BUG=1230641

Change-Id: Idf3614c15319628e715c4e52b9e4da1b5c541f6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3044837
Commit-Queue: Mark Pearson <mpearson@chromium.org>
Reviewed-by: Caitlin Fischer <caitlinfischer@google.com>
Cr-Commit-Position: refs/heads/master@{#905359}
2021-07-26 19:03:55 +00:00
e8c3bb2941 webauthn: fix spelling of googleLegacyAppidSupport extension
The correct spelling is with a lower-case 'i' in Appid. But CL 2981053
added it with an upper-case 'i'.

The lower-case 'i' is what the spec uses and Safari implements.

Bug: 1224886, 1233116
Change-Id: I8d21204ef356f473c80fd5efaa2f2b98f9f885a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3048954
Commit-Queue: Martin Kreichgauer <martinkr@google.com>
Reviewed-by: Adam Langley <agl@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905358}
2021-07-26 18:59:50 +00:00
efe0d73982 [BioAuthPwdFill] Move the feature check after CanAuthenticate
Bug: 1232973
Change-Id: I4d26dd1eae771c09cbe2a982fac802a6aaecee3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3052598
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905357}
2021-07-26 18:52:29 +00:00
775285052a Extend SBClientDownload.DownloadRequestDuration histogram.
Extending SBClientDownload.DownloadRequestDuration hisgrogam for an
additional year.

Bug: 1228359
Change-Id: Ia9dba0532a3288f75439ad3d69b14b5840419356
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3054813
Commit-Queue: Olabode O. Anise II <anise@chromium.org>
Commit-Queue: Xinghui Lu <xinghuilu@chromium.org>
Auto-Submit: Olabode O. Anise II <anise@chromium.org>
Reviewed-by: Xinghui Lu <xinghuilu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905356}
2021-07-26 18:48:02 +00:00
559c89190a Roll androidx from SrYN1-_0O... to KsIa-FtJ9...
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/androidx-chromium
Please CC mheikal@google.com,clank-library-failures@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

Tbr: mheikal@google.com,clank-library-failures@google.com
Change-Id: I349f9a1d6b3f43d3146f4ef78022366e276c43a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3052733
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/master@{#905355}
2021-07-26 18:47:33 +00:00
89532fc6df [SH iOS] Roll polyfill DEPS
Change-Id: Id1aa03606cb468e906f05286b223a6adb209ab09
Bug: 1232549
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3049116
Reviewed-by: Guillaume Jenkins <gujen@google.com>
Commit-Queue: Tommy Martino <tmartino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905354}
2021-07-26 18:45:42 +00:00
92c743f9b4 Fix flakiness in QuickActionSearchWidgetReceiverDelegateTest
When CommandLineFlags are reset while an Activity is launching, we can
end up hitting assertions during startup. We have too many tests that do
this, so we can't fix the issue in general, but we can warn about it so
that folks investigating flakiness at least have a breadcrumb trail.

In this case, we fix the flake by using BaseActivityTestRule which
ensures that the Activity is finished before the test ends.

Bug: 1229132
Change-Id: I8ab754372ae7a59e529bc3368ab1c19910a2a75e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3046786
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Reviewed-by: Richard Coles <torne@chromium.org>
Reviewed-by: Filip Gorski <fgorski@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905353}
2021-07-26 18:45:37 +00:00
55e0751155 Cleanup security/histograms.xml
Gardening the security histograms a bit. Bumping the expiration dates
for histogram that are still in use, and cleaning up collection code
for now obsolete histograms.

Bug: 1222266,1222265,1089478,984224,1037254,1037253,975685
Change-Id: I6f3962f95b37494f0ab9e72d18db03a5914ef94e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3043449
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Emily Stark <estark@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Chris Thompson <cthomp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905352}
2021-07-26 18:45:10 +00:00
f5abacee54 Disable hardware rendering for PowerVR + ANGLE for Android <= 5.1.1
There are many PowerVR + ANGLE crashes on Android <= 5.1.1. We cannot
reproduce those crashes locally, so we have to disable hardware
rendering for now.

Bug: 1203652,1221321
Change-Id: Ie005c3792b4960aa31b3c38d148221fd7874d44b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3052558
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905351}
2021-07-26 18:42:16 +00:00
60a43f5895 Remove unnecessary includes in StoragePartitionImpl.
StoragePartitionImpl is one of the biggest classes around. Reduce excess
includes to try to help reduce its size. Headers being removed are based
on suggestions from the IWYU tool. Then fix missing includes in other
files.

Bug: 1227131
Change-Id: I3fc54b7f2cc99214516943849d1f7d62c68f1a9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3045479
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905350}
2021-07-26 18:36:51 +00:00
671df274f0 SharedImageBackingOzone - Implement ProduceOverlay
SharedImageBackingOzone currently does not implement ProduceOverlay.
This CL implements that fn creating a new SharedImageRepresentation-
OverlayOzone class and also creates a GLImageNativePixmap. This allows
us to not use the GLImage/GLTexture fallback while using pixmaps and
can be done using Ozone backings.

Change-Id: I1caeb47cc0136a2d628a3fe05a677f81904b67da
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3031901
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905349}
2021-07-26 18:36:20 +00:00
da9ca19da8 Add field trial entry for SafeBrowsingVisualFeaturesSizes
This is about to go to Beta, so add an entry in the
fieldtrial_testing_config.json.

Bug: 1211045
Change-Id: I05fe69306ca57e2b2e38e1a4e7df2e3ffcac528f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3054292
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Commit-Queue: Xinghui Lu <xinghuilu@chromium.org>
Auto-Submit: Daniel Rubery <drubery@chromium.org>
Reviewed-by: Xinghui Lu <xinghuilu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905348}
2021-07-26 18:35:39 +00:00
93dc19602f Roll Infra from 8183425438f1 to 04c7051e7a02
8183425438..04c7051e7a

2021-07-26 tandrii@google.com Roll luci-go from 1de9271fe70a to 5aeb2b0d53da (1 revision)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/infra-chromium
Please CC tikuta@chromium.org 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

Tbr: tikuta@chromium.org
Change-Id: Ib9b8e18ac51a5ac4acb9e640f56d9010e2acfd40
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3052575
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/master@{#905347}
2021-07-26 18:33:05 +00:00
03f9988699 Roll SwiftShader from 915947134128 to fdb16bd6c291 (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/915947134128..fdb16bd6c291

2021-07-26 pkasting@chromium.org Fix some instances of -Wunused-but-set-variable.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/swiftshader-chromium-autoroll
Please CC swiftshader-team+autoroll@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.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_chromium_msan_rel_ng;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;luci.chromium.try:linux-swangle-try-x64;luci.chromium.try:win-swangle-try-x86
Bug: chromium:1203071
Tbr: swiftshader-team+autoroll@google.com
Change-Id: I6442bcc7717ff15d9991107023a2260264f56967
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3052573
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/master@{#905346}
2021-07-26 18:32:43 +00:00
441337312d [memories] Embed history clusters in chrome://history/
screenshot/AzXTQcLm4oEhpE6

This change embeds <history-clusters> in chrome://history and makes it
accessible via /journeys. Additionally it converts HistoryUI to a
ui::MojoWebUIController and hooks it up to the implementer of
history_clusters::mojom::PageHandler along with MemoriesUI.

In order to minimize the scope of the change and to make sure that the
experience is first ironed out, chrome://memories is still kept around
and TS transpiled resources in c/b/r/memories are copied over.

A follow-up CL will remove chrome://memories and move its resources
to c/b/r/history/history_clusters.

Note strings are hard-coded for the time being due to the extra due
diligence required for translations as a result of introducing a new
term. A follow up CL will add those strings to the .grd files.

With chrome://flags/#memories disabled, there will be no visual or
functional changes to chrome://history.

Bug: 1173908
Change-Id: Icc0be963dfe9842647da71f545e47e3d9c6ed175
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3046546
Reviewed-by: dpapad <dpapad@chromium.org>
Reviewed-by: Alex Gough <ajgo@chromium.org>
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905345}
2021-07-26 18:32:37 +00:00
03bd0d43c7 [Dr-Dc] Thread safe MCVD path.
1. Added a global lock to be used by SharedImageVideo, FrameInfoHelper,
MaybeRenderEarlyManager etc to perform thread safe access to CodecImage,
CodecBufferWaitCoordinator and CodecOutputBufferRenderer.

2. SharedImageVideo, FrameInfoHelper, MaybeRenderEarlyManager and some
other media classes will hold the lock and CodecImage,
CodecBufferWaitCoordinator, CodecOutputBufferRenderer will expect lock
to be held.

Bug: 1186282
Change-Id: I2d3490a88a2597ab632721f6d5832f882af9e970
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3039341
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: Frank Liberato <liberato@chromium.org>
Commit-Queue: vikas soni <vikassoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905344}
2021-07-26 18:31:33 +00:00
8e3b827f16 personalization: rework loading local images
Previously, on collections page, loaded up to three local image
thumbnails one at a time. This caused a lot of churn during initial
load as polymer recalculated several times.

New behavior is to only send local image data as a chunk once
three local images have finished loading.

Also remove paper-spinner-lite from collections page in preparation
for loading rework.

BUG=b/181697575
TEST=browser_tests --gtest_filter="PersonalizationApp*"

Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome
Change-Id: I58d24f743ae927aafddcf8c02a481ef6afda9ec1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041370
Commit-Queue: Jeffrey Young <cowmoo@chromium.org>
Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905343}
2021-07-26 18:29:23 +00:00
d8167cb5f0 [iOS] Factor TabParentingObserver into a browser agent.
TabParentingObserver is the last WebStateListObserver managed by the
TabModel. This CL factors it into a BrowserAgent and removes the
web state observer infrastructure from TabModel.


Bug: 783777
Change-Id: I756f386bb4d85cf425c1ffc0aca3c83da50c3520
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3052599
Commit-Queue: Mark Cogan <marq@chromium.org>
Reviewed-by: Mohammad Refaat <mrefaat@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905342}
2021-07-26 18:26:24 +00:00
a3e1e95f4b Clear Browsing Data Android: removed obsolete tests for the basic fragment
The old tests were replaced with Skia Gold render tests, which are more robust and do not require searching for substrings on a screen.

Bug: 1188647
Change-Id: I55134d9b69918aab26b44356fe38c5b78d798ea6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3053704
Commit-Queue: Andrey Zaytsev <andzaytsev@google.com>
Commit-Queue: Martin Šrámek <msramek@chromium.org>
Auto-Submit: Andrey Zaytsev <andzaytsev@google.com>
Reviewed-by: Martin Šrámek <msramek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905341}
2021-07-26 18:21:14 +00:00
2855756842 [iOS] Set content offset to top if using fresh content suggestion tiles
The initial scroll position of the refactored NTP has been problematic
for a while due to the fresh tiles loading later. This CL will set the
scroll position to top when the fresh tiles are loaded.

Bug: 1232530, 1223671, 1223435, 1223795, 1227231
Change-Id: I708a0faab1a84196187e7e8ca3e1dbb30bfdf193
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3049054
Commit-Queue: Adam Trudeau-Arcaro <adamta@google.com>
Reviewed-by: Sergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905340}
2021-07-26 18:20:46 +00:00
41c52e1611 Make SameDocumentNavigationSource a mojo enum and plumb it to the browser process
This is a pure refactor, no behavior change expected.

Bug: 1131832
Change-Id: I9f94d389fc61c8c98fd09c3f48fcd7c8a39cc931
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3049654
Commit-Queue: Nate Chapin <japhet@chromium.org>
Auto-Submit: Nate Chapin <japhet@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905339}
2021-07-26 18:17:24 +00:00
ae932ecff4 Delay context lost event for canvas context in iframe
With the way that contextlost events are currently fired, contexts
in main frame and in iframe (from different domain) could receive
context loss event for a single user at exactly the same time (this
has been tested locally). With this structure, the script could
correlate the user's identity in both domains.

This CL delays contextlost events for canvas in iframe by a random delay
less than 100ms. It is not necessary to do this for contextrestored,
as contextrestored events will be delayed as well by delaying the
initial contextlost.

I have confirmed this is working locally as a test would be quite
difficult to implement.

Bug: 1164059

Change-Id: I2e9e811c4e8087b9d56b031d8b49d0b46945b026
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3043119
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Reviewed-by: Fernando Serboncini <fserb@chromium.org>
Commit-Queue: Yi Xu <yiyix@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905338}
2021-07-26 18:15:09 +00:00
cb0db63a60 More fixes for ObserverList thread violations in //chrome tests.
Tested by changing ENABLE_THREAD_ASSERTS = true; in ObserverList.java.

This attempts to fix the majority of the remaining failing tests
except for the classes with 1-2 failures.

BUG=1230198

Change-Id: If25fb1ad68654266e85d073a691261e24d7398ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3050931
Auto-Submit: Ted Choc <tedchoc@chromium.org>
Commit-Queue: Tommy Nyquist <nyquist@chromium.org>
Reviewed-by: Tommy Nyquist <nyquist@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905337}
2021-07-26 18:13:55 +00:00
39be566857 Rename ::ImeControllerClient to ::ImeControllerClientImpl
::ImeControllerClient is the only implementation of
ash::ImeControllerClient.  The migration of chrome/browser/chromeos/ to
chrome/browser/ash/ will force to prefix the implementation class with
:: to avoid name clashes in multiple places.

This CL renames it adding the Impl suffix to avoid these kind of
clashes.

This CL is part of the Chrome OS source code directory migration:
https://docs.google.com/document/d/1g-98HpzA8XcoGBWUv1gQNr4rbnD5yfvbtYZyPDDbkaE.

Bug: 1164001
Change-Id: I2eaf34f1e022398b2a8f1fe0beccac1ac7827d59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3053736
Reviewed-by: James Cook <jamescook@chromium.org>
Reviewed-by: dpapad <dpapad@chromium.org>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Cr-Commit-Position: refs/heads/master@{#905336}
2021-07-26 18:12:30 +00:00