0
Commit Graph

343 Commits

Author SHA1 Message Date
Victor Hugo Vianna Silva
c230b46fc2 Remove expired histogram SSL.Experimental.SubresourceResponse
OBSOLETE_HISTOGRAM[SSL.Experimental.SubresourceResponse]=Was expired since 2023.

Fixed: 40879220,40917822
Change-Id: Icaabdf34ccfc70750bada1e143a19870e9b82610
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6084500
Commit-Queue: Victor Vianna <victorvianna@google.com>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1394790}
2024-12-11 05:31:08 -08:00
Emily Andrews
d15fd76ecb Change RenderProcessHost::GetID to RenderProcessHost::GetDeprecatedID
This change bulk changes RenderProcessHost::GetID to
RenderProcessHost::GetDeprecatedID to support the transition to a
strongly typed ChildProcessId.

Bug: 379869738
Change-Id: Ib0c991536486ef29702ea166cdcf12ea68ed70ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6065543
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Owners-Override: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Emily Andrews <emiled@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1394500}
2024-12-10 20:41:54 +00:00
Kevin McNee
4d35f5ad11 CHECK against inner WebContents usage with prerendering
We've had the ActivatePageWithInnerContents test to verify a basic level
of functionality when inner WebContents are attached in a prerendered
page in order to eventually support prerendering the PDF viewer. Since
the viewer is being rearchitected, there's little point in supporting
this case anymore.

We now CHECK against attaching an inner WebContents and remove some
workarounds from prerendering code that allowed this test to work. We
make the test into a death test accordingly.

Note that fenced frames, the other embedded frame tree case, already
are not possible during prerendering (the creation is done
post-activation). We add some CHECKs accordingly.

Bug: 40191159, 40180674, 346929955
Change-Id: I8e98a9ba9bcc79aeabb66dfbc42276d66c1b9aef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5685053
Commit-Queue: Kevin McNee <mcnee@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1324837}
2024-07-09 16:39:38 +00:00
Devlin Cronin
df260f5e98 [Extensions] Allow service worker requests to continue without a cert
Certain requests may request, but not require, a client cert. Today,
this will result in one of three things happening if there isn't a
client cert available (either from a previous request or from
enterprise policy):
1) The request will fail
2) The user will be shown a cert picker dialog
3) The request will continue without a certificate

On desktop platforms for WebContents-based requesting contexts:
* If there are no certs to choose from, the request will continue
  without a cert.
* If there are client certs and the WebContents supports showing
  dialogs, the cert picker will be shown.
* If there are certs and the WebContents does not support showing
  dialogs, the request will fail.

On Android for WebContents-based requesting contexts:
* We will always call out to the native cert-picker, which may or
  may not show a dialog (depending on other device configurations
  which Chrome doesn't know about).

On desktop and Android platforms for service worker requesting
contexts:
* The request will always fail.

This CL changes this behavior to allow requests from extension
background service workers to proceed without a client cert if there
are no certs to choose from; this then matches the behavior for
extension background and offscreen WebContents (which do not support
showing dialogs).

Bug: 333954429
Change-Id: Ia6111f3bd499998d6244945daa13ac67774804bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5455480
Reviewed-by: Emily Stark <estark@chromium.org>
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Richard (Torne) Coles <torne@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Luke Halliwell <halliwell@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Commit-Queue: Devlin Cronin <rdevlin.cronin@chromium.org>
Reviewed-by: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1322530}
2024-07-03 02:13:39 +00:00
Alex N. Jose
9ed598f7ba Implement Security.setIgnoreCertificateErrors for all web workers
This CL implements CDP support for ignoring certificate errors for all
worker types — service workers, shared workers and dedicated workers. Since SW fetches are often headless, the UI callback is avoided and
a new ShouldBypassCertificateErrors check is introduced.

This CL also promotes some of the Attach* and SendCommand* methods of
TestDevToolsProtocolClient from protected to public, as we need to
establish concurrent connections to targets and TestDevToolsProtocolClient only allows for one by default.

Bug: 40939167
Change-Id: Ieacd2280552672c315d45a51bb6dbcdf43b776e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5486845
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Emily Stark <estark@chromium.org>
Reviewed-by: Shunya Shishido <sisidovski@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Commit-Queue: Alex N. Jose <alexnj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1298597}
2024-05-09 13:00:42 +00:00
Arno Renevier
b733ea8550 Fix: ClientCertStore should cancel the callback on destruction
Remove ClientCertStore requirement that it stays alive until completion
of GetClientCerts. All the methods and callbacks called by
GetClientCerts can be made static, and therefore do not rely on
ClientCertStore to be alive.

Change of GetClientCerts signature: request info becomes a shared
pointer so that it is guaranteed to live until the end of the operation.

Bug: 1011579
Change-Id: Ica8a0f1d27498d0fa554846cc4f36cb5106b232a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5262094
Reviewed-by: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: David Munro <davidmunro@google.com>
Reviewed-by: Adam Langley <agl@chromium.org>
Reviewed-by: Oleksandr Sarapulov <olsa@google.com>
Reviewed-by: David Bertoni <dbertoni@chromium.org>
Reviewed-by: Toni Barzic <tbarzic@chromium.org>
Reviewed-by: Adam Rice <ricea@chromium.org>
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Sébastien Lalancette <seblalancette@chromium.org>
Reviewed-by: Lambros Lambrou <lambroslambrou@chromium.org>
Commit-Queue: Arnaud Renevier <arnaud@switchboard.app>
Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1295813}
2024-05-02 22:46:33 +00:00
Alison Gale
770f3fce37 Migrate TODOs referencing old crbug IDs to the new issue tracker IDs
The canonical bug format is TODO(crbug.com/<id>). TODOs of the
following forms will all be migrated to the new format:

- TODO(crbug.com/<old id>)
- TODO(https://crbug.com/<old id>)
- TODO(crbug/<old id>)
- TODO(crbug/monorail/<old id>)
- TODO(<old id>)
- TODO(issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/u/1/issues/<old id>)
- TODO(bugs.chromium.org/<old id>)

Bug id mapping is sourced from go/chrome-on-buganizer-prod-issues.
See go/crbug-todo-migration for details.

#crbug-todo-migration

Bug: b/321899722
Change-Id: Ibc66b8c440e4bcdef414e77fef4d9874d2ea9951
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5493800
Auto-Submit: Alison Gale <agale@chromium.org>
Commit-Queue: Alison Gale <agale@chromium.org>
Reviewed-by: Peter Boström <pbos@chromium.org>
Owners-Override: Alison Gale <agale@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1293330}
2024-04-27 00:39:58 +00:00
Alison Gale
47d1537de7 Migrate TODOs referencing old crbug IDs to the new issue tracker IDs
The canonical bug format is TODO(crbug.com/<id>). TODOs of the
following forms will all be migrated to the new format:

- TODO(crbug.com/<old id>)
- TODO(https://crbug.com/<old id>)
- TODO(crbug/<old id>)
- TODO(crbug/monorail/<old id>)
- TODO(<old id>)
- TODO(issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/u/1/issues/<old id>)
- TODO(bugs.chromium.org/<old id>)

Bug id mapping is sourced from go/chrome-on-buganizer-prod-issues.
See go/crbug-todo-migration for details.

#crbug-todo-migration

Bug: b/321899722
Change-Id: Ieeb461e2d489e86fd50b87a2a0721a2be34520c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5467317
Owners-Override: Alison Gale <agale@chromium.org>
Commit-Queue: Darryl James <dljames@chromium.org>
Commit-Queue: Alison Gale <agale@chromium.org>
Reviewed-by: Darryl James <dljames@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1290198}
2024-04-19 21:31:46 +00:00
Jeff Yoon
d1328c4408 [buganizer] Migrate DIR_METADATA in content/browser/
Migrate all metadata files for content/browser.

Verify components with http://b/components/{id} or at
go/chrome-on-buganizer-prod-components.

Bug: chromium:1518875
Change-Id: I555b9fe40952a5707e167b3dcbaf2858bbdf1f34
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5284095
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1258966}
2024-02-11 19:24:26 +00:00
Ali Hijazi
133b2d903f Rewrite std::set<T*> into std::set<raw_ptr<T, SetExperimental>>
This patch was generated by running
./tools/clang/rewrite_templated_container_fields/rewrite-multiple-platforms.sh

AX-Relnotes: n/a.
Bug: 41486235
Change-Id: If9280b93e10508add3c9842f2b2ae190bb65c364
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5272231
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Owners-Override: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Ali Hijazi <ahijazi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1258472}
2024-02-09 14:01:52 +00:00
Luke Gu
1bfe86dccc Remove DeprecatedGetWebContents() call from SSLManager
As DeprecatedGetWebContents() is deprecated, remove the call from
SSLManager.

Bug: 1225205
Change-Id: I98bb06aa37e42e658364b402941e1e9d23238429
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5154890
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Nasko Oskov <nasko@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1251496}
2024-01-24 17:44:07 +00:00
Erik Chen
7776c8d32e Clean up StoragePartitionImpl. Part 2.
This CL is a refactor with no intended behavior change.

This CL replaces SSLClientAuthHandler::ContextGetter with base::WeakPtr.
This CL makes URLLoaderNetworkContext private. This CL deletes
now-unnecessary wrapper functions GetContextFromStoragePartition and
GetBrowserContextFromStoragePartition.

Bug: 1371177
Change-Id: I4bc5c43be8933dc5337f0e38004d69747d0d5957
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5214875
Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1251234}
2024-01-24 04:46:11 +00:00
Arthur Sonzogni
c686e8f4fd Rename {absl => std}::optional in //content/
Automated patch, intended to be effectively a no-op.

Context:
https://groups.google.com/a/chromium.org/g/cxx/c/nBD_1LaanTc/m/ghh-ZZhWAwAJ?utm_medium=email&utm_source=footer

As of https://crrev.com/1204351, absl::optional is now a type alias for
std::optional. We should migrate toward it.

Script:
```
function replace {
  echo "Replacing $1 by $2"
  git grep -l "$1" \
    | cut -f1 -d: \
    | grep \
      -e "^content" \
    | sort \
    | uniq \
    | grep \
      -e "\.h" \
      -e "\.cc" \
      -e "\.mm" \
      -e "\.py" \
    | xargs sed -i "s/$1/$2/g"
}
replace "absl::make_optional" "std::make_optional"
replace "absl::optional" "std::optional"
replace "absl::nullopt" "std::nullopt"
replace "absl::in_place" "std::in_place"
replace "absl::in_place_t" "std::in_place_t"
replace "\"third_party\/abseil-cpp\/absl\/types\/optional.h\"" "<optional>"
git cl format
```

# Skipping unrelated "check_network_annotation" errors.
NOTRY=True

Bug: chromium:1500249
Change-Id: Icfd31a71d8faf63a2e8d5401127e7ee74cc1c413
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5185537
Auto-Submit: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1245739}
2024-01-11 08:36:37 +00:00
Takashi Toyoshima
7c041d859e LinkPreview: Make FrameTree have is_(FrameTree::Type) methods
Now FrameTree has only is_prerendering() to determine the kPrerender
FrameTree::Type, and callers rely on type() to identify other
types. This works, but makes callers audit a little harder.

Before adding kPreview type to the FrameTree::Type, I will add
similar methods for other types so that I can identify prerendering
specific code path easily.

Bug: b/299239133
Change-Id: If4540e044f0f60639fd4d20bbdedbd5dd775f2ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4891931
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1201622}
2023-09-26 16:09:21 +00:00
Devlin Cronin
9459117465 [Service Workers] Allow fetches from workers to use auto-picked certs
Certain requests may require client certs to proceed. The default
behavior for this is to show the user a certificate picker, from which
they can select one. There is also an enterprise policy to allow for
auto-selecting certificates for different URLs.

We only want to show the certificate picker to the user if the request
is made by a web page (something that has a corresponding WebContents);
otherwise, the UI is alarming and confusing. Because of this, we
auto-cancel any client cert selection for requestors that don't have a
WebContents. However, this means that requests from service workers
will never succeed, even if the certificate for the request would have
been auto-selected by policy.

Fix this by instead allowing requests from service workers to check if
there is an auto-selected certificate, and using that if so. Otherwise,
we continue with the old flow of requiring a WebContents to select a
certificate.

Add an end-to-end browser test for the same.

Bug: 1417601
Change-Id: Ied08067ff56295031df61b8f26caa3303edb0c98
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4622260
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Commit-Queue: Devlin Cronin <rdevlin.cronin@chromium.org>
Reviewed-by: Chris Thompson <cthomp@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1171500}
2023-07-18 00:46:07 +00:00
Aman Verma
a4b33cffb7 Reduce SubresourceResponseStarted IPC by sending subresource
notifications only if the user has allowed HTTPS-related exceptions.

WebContents sends the updated renderer_preferences to the renderers:
1. At the startup of a renderer to inform whether any HTTPS related
   warning exceptions has been allowed by the user in the past
2. When the user allows a new certificate or HTTP exception - all
   renderers are updated by the browser process.

In case of an certificate exception, the renderers start sending
SubresourceResponseStarted IPC. When all exceptions are revoked, the
renderers are not explicitly signalled to stop sending
SubresourceResponseStarted IPC.

Mini-Design doc:
(https://docs.google.com/document/d/11kzl0_tIzmvOCR7dv28BatxoPO0tk83e-HAPM0HdHZ4/edit?usp=sharing)


Bug: b/257281761
Change-Id: I0bcef03d07f3ddde7174d272b90eafa39fbdcc61
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4075955
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Martin Šrámek <msramek@chromium.org>
Commit-Queue: Aman Verma <amanvr@google.com>
Cr-Commit-Position: refs/heads/main@{#1157119}
2023-06-13 19:32:33 +00:00
Robert Lin
5268e1bd26 [Code Health] Remove expired histograms SSL.MixedContentShown,
SSL.MixedContentShown2

This CL removes expired histograms SSL.MixedContentShown,
SSL.MixedContentShown2

OBSOLETE_HISTOGRAM[SSL.MixedContentShown]=obsoletion
OBSOLETE_HISTOGRAM[SSL.MixedContentShown2]=obsoletion

Bug: 1384957
Change-Id: I8aa8cd48c6321124723279b9027d468a16fce419
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4576242
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Reviewed-by: Jesse Doherty <jwd@chromium.org>
Reviewed-by: Carlos IL <carlosil@chromium.org>
Commit-Queue: Huanpo Lin <robertlin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1154287}
2023-06-07 07:48:12 +00:00
Avi Drissman
adac219925 Update header includes for /base/functional in /content
bind.h, callback.h, callback_forward.h, and callback_helpers.h
moved into /base/functional/. Update the include paths to
directly include them in their new location.

Bug: 1364441
Change-Id: I32ec425b9c0e52ec4b50047bf3290fecc5c905ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4148554
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1091567}
2023-01-11 23:46:39 +00:00
Aman Verma
e9fc840896 Add UMA to record SSLResourceResponse
Records the distribution of IPC messages where we see a good certificate
and clear out any exceptions that were made by the user for bad
certificates.

Bug: b/257281101
Change-Id: I17d45bf435245b503278b120dbb5e164ff0b8e3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4004397
Reviewed-by: Ayu Ishii <ayui@chromium.org>
Commit-Queue: Aman Verma <amanvr@google.com>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1072410}
2022-11-16 20:16:33 +00:00
Lei Zhang
cc67230216 Remove unnecessary base/memory/ref_counted.h includes from headers.
Header files that do not contain "RefCounted" and do not contain
scoped_refptr do not need to include base/memory/ref_counted.h. Remove
it and do IWYU to fix the build.

Bug: 242216
Change-Id: Ie70e43b0c926b8ef610419c99f43eea991ac8d81
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4005763
Reviewed-by: Kyle Charbonneau <kylechar@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Owners-Override: Kyle Charbonneau <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1067592}
2022-11-04 18:28:16 +00:00
Carlos IL
f821ff43ae Add AW mixed content mode histogram that gets logged when MC is loaded.
This histogram is emitted every time passive (image, video, or audio)
content is loaded over http from an https website.

Change-Id: Ief2a42b3f42535328020b2ddc845607f90af94c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3943690
Auto-Submit: Carlos IL <carlosil@chromium.org>
Reviewed-by: Tomasz Wiszkowski <ender@google.com>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
Commit-Queue: Tomasz Wiszkowski <ender@google.com>
Cr-Commit-Position: refs/heads/main@{#1058898}
2022-10-13 20:25:25 +00:00
Avi Drissman
4e1b7bc33d Update copyright headers in content/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: I8c0f009d16350271f07d8e5e561085822cc9dd27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3895935
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047456}
2022-09-15 14:03:50 +00:00
William Liu
727391a37c [MPArch] Avoid WebContents access for MPArch GuestView in SSLManager.
We fetch the StoragePartition from:
NaviController -> FrameTree -> MainFrame -> StoragePartition.

Bug: 1353781, 1261928
Change-Id: Id7d2537f58bedf1e0c508a7461e57a274cb28997
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3863011
Reviewed-by: Emily Stark <estark@chromium.org>
Reviewed-by: Kevin McNee <mcnee@chromium.org>
Commit-Queue: William Liu <liuwilliam@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1042338}
2022-09-01 22:16:58 +00:00
William Liu
631d045596 [MPArch] Use GuestMainFrame->GetSI instead of WC->GetSI for GuestView's
GetStoragePartition access.

The GetStoragePartition task is described in
https://docs.google.com/document/d/1kgDz0NhbNeO8qT-gFR_hJJjO1Z-isSnXNtCPrInT2M0 - Design - Pre-work - Necessary pre-work - Investigate
and fix StoragePartition access.

There are two major callsites of guest's WC->GetSI:
1. WebViewGuest's ClearCodeCache, ClearDataInternal and ClearData. These
are addressed by installing a GetGuestMainFrame on GuestViewBase.
2. StatefulSSLHostStateDelegate's AllowCert, QueryPolicy,
AllowHttpForHost, IsHttpAllowedForHost and HasCertAllowException. These
functions only access the storage partition so we can just pass that
instead. This mechanical change introduces the majority of the delta in
this CL.

Bug: 1261928
Change-Id: I0557cb38664fa4493f3bd38bc762865d61cc9607
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3791688
Reviewed-by: Emily Stark <estark@chromium.org>
Reviewed-by: Bo Liu <boliu@chromium.org>
Commit-Queue: William Liu <liuwilliam@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Kevin McNee <mcnee@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1036561}
2022-08-18 12:30:15 +00:00
Yoshisato Yanagisawa
66845bf6ce FrameHost::SubresourceResponseStarted: s/ url / final_response_url /.
This CL changes the following method of content::mojom::FrameHost from:

  SubresourceResponseStarted(url.mojom.Url url, uint32 cert_status);

to:

  SubresourceResponseStarted(
      url.mojom.SchemeHostPort final_response_url, uint32 cert_status);

because it turns out that implementations of that method only ever
depend on the SchemeHostPort of the final URL (and not on other parts of
the full URL like path or query).

Note that this is a revival the following CL using SchemeHostPort
instead of Origin:
https://chromium-review.googlesource.com/c/chromium/src/+/1899739
Since Origin normalizes blob and filesystem, we cannot use it as
a simple replacement of GURL.  It caused crbug.com/1049625.

Bug: 973885
Change-Id: I3542be935522bc2abc6f2259d56dd175eabbb3ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3637099
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Reviewed-by: Charlie Harrison <csharrison@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1002483}
2022-05-12 04:04:02 +00:00
Yeunjoo Choi
9d00859232 [mparch] Rename 'is_main_frame_request' param in SSLErrorHandler
This CL renames 'is_main_frame_request' param of SSLErrorHandler to
'is_primary_main_frame_request' which matches the semantics of the
caller, i.e. StoragePartitionImpl::OnSSLCertificateError.

Bug: 1284189
Change-Id: Ie3e9d513eb5c12d1473dfb00313ead8860663702
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3580293
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: Sean Topping <seantopping@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Kevin McNee <mcnee@chromium.org>
Commit-Queue: Yeunjoo Choi <ychoi@igalia.com>
Cr-Commit-Position: refs/heads/main@{#997549}
2022-04-29 03:31:53 +00:00
Robert Lin
540dbd1ef4 prerender: Stop calling NotifyDidChangeVisibleSSLState on prerendering.
There are two navigations for prerendering: one for prerendering a page
and the other for activating the prerendered page. This CL avoids
calling NotifyDidChangeVisibleSSLState() for the prerendering navigation
as the prerendered page is not visible to users and should not affect
the visible SSL state. Instead, NotifyDidChangeVisibleSSLState() is
called on the activation navigation.

This change indirectly fixes the precision issue of Omnibox prerendering
for URL inputs (see the bug). The precision is calculated in
AutocompleteActionPredictor::UpdateDatabaseFromTransitionalMatches().
This is supposed to be called on the prerender activation via
NotifyDidChangeVisibleSSLState(), but actually it was also called on the
prerender initial navigation mentioned above. This change drops the call
for the prerender initial navigation, so the calculation logic is
appropriately called only on the prerender activation.

Bug: 1308943
Change-Id: Ie1d8a5b3433d5a98a49157bd1268a6a43b9eb8bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3555627
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Commit-Queue: Huanpo Lin <robertlin@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/main@{#997431}
2022-04-28 22:07:24 +00:00
Yeunjoo Choi
2ffd21cc9e [mparch] Use the correct navigation controller in SSLManager::OnSSLCertificateError
Since SSLManager is bound to NavigationController not WebContents,
it should get the associated navigation controller instead of the
primary navigation controller. Therefore this CL passes
NavigationOrDocumentHandle to SSLManager::OnSSLCertificateError, so
that SSLManager plumbs the correct navigation controller.

Bug: 1284189
Change-Id: Iaca620f12798e7f99312d22f9c72e1a6942f919b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3366165
Reviewed-by: Adam Langley <agl@chromium.org>
Reviewed-by: Kevin McNee <mcnee@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Commit-Queue: Yeunjoo Choi <ychoi@igalia.com>
Cr-Commit-Position: refs/heads/main@{#990269}
2022-04-08 05:26:33 +00:00
Gabriel Charette
bdd68018e8 [base] Remove unused post_task.h includes
This CL is a no-op.

Bug: 1026641
AX-Relnotes: n/a
Change-Id: If45d30e748b65097bb6be666dc305c27183d83ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3555247
Commit-Queue: Gabriel Charette <gab@chromium.org>
Auto-Submit: Gabriel Charette <gab@chromium.org>
Reviewed-by: Francois Pierre Doray <fdoray@chromium.org>
Commit-Queue: Francois Pierre Doray <fdoray@chromium.org>
Owners-Override: Francois Pierre Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/main@{#987328}
2022-03-31 04:00:05 +00:00
Owners Cleanup
1e794baef0 Remove rsleevi@chromium.org from content/browser/ssl/OWNERS
This is an automatically generated changelist based on group memberships and affiliations, with some transition delay.

To approve this change, CR+1/2 this change and submit. To reject this change, CR -1 this change, and the bot will abandon the change.

To report an issue, file a bug in the Infra>Security component.

Change-Id: I73886ccc6178422a8d680dd71b62a9b9dd0c0a87
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3501568
Auto-Submit: Owners Cleanup <swarming-tasks@owners-cleanup-prod.google.com.iam.gserviceaccount.com>
Reviewed-by: Ryan Sleevi <rsleevi@chromium.org>
Commit-Queue: Ryan Sleevi <rsleevi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#977211}
2022-03-03 18:49:45 +00:00
David Sanders
aad78202e5 Remove unused inclusions of //content/browser/renderer_host/render_frame_host_impl.h
Bug: 242216
Change-Id: Ib6882edc8e9474666de7eb7e634d4f3dad627349
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3410633
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Owners-Override: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#962288}
2022-01-23 02:13:29 +00:00
Gyuyoung Kim
2b4010d801 MPArch: Ensure that fenced frame can change the security state
This CL adds a new test to verify fenced frame can change the security
state from SECURE to WARNING when a fenced frame loads an insecure
content.

This CL should make SSLManager::UpdateLastCommittedEntry handle the last
committed entry of web contents of |controller_| in order to inform the
web contents of the changed security state caused by the fenced frame.

Additionally, this CL adds
page_displays_insecure_content.html.mock-http-headers file
to make fenced frame load page_displays_insecure_content.html

Bug: 1190833, 1269413
Change-Id: I41923ec9f6a41128773b89be63c7c3262724fc82
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3270199
Reviewed-by: Lingqi Chi <lingqi@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Reviewed-by: Kevin McNee <mcnee@chromium.org>
Reviewed-by: Carlos IL <carlosil@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/main@{#955532}
2022-01-05 03:52:48 +00:00
Keishi Hattori
0e45c020c4 Rewrite most Foo* field_ pointer fields to raw_ptr<Foo> field_.
DO NOT REVERT (unless absolutely necessary)! Report build breaks to keishi@(APAC)/glazunov@(EMEA)/sebmarchand@(NA) as soon as you see them. Fixes are expected to be trivial.

This commit was generated automatically, by running the following script: tools/clang/rewrite_raw_ptr_fields/rewrite-multiple-platforms.sh on commit fe74bc434e

For more information, see MiraclePtr One Pager [1], the PSA at chromium-dev@ [2], and the raw_ptr documentation in //base/memory/raw_ptr.md.

FYI This CL does not enable MiraclePtr protection and we expect no behavior change from this.

[1] https://docs.google.com/document/d/1pnnOAIz_DMWDI4oIOFoMAqLnf_MZ2GsrJNb_dbQ3ZBg/edit?usp=sharing
[2] https://groups.google.com/a/chromium.org/g/chromium-dev/c/vAEeVifyf78/m/SkBUc6PhBAAJ

Binary-Size: Increase of around 500kb was approved for MiraclePtr
Include-Ci-Only-Tests: true
No-Tree-Checks: true
No-Presubmit: true
Bug: 1272324, 1073933
Change-Id: I05c86a83bbb4b3f4b017f361dd7f4e7437697f69
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3305132
Commit-Queue: Keishi Hattori <keishi@chromium.org>
Reviewed-by: Bartek Nowierski <bartekn@chromium.org>
Owners-Override: Bartek Nowierski <bartekn@chromium.org>
Cr-Commit-Position: refs/heads/main@{#945735}
2021-11-27 09:25:52 +00:00
Lei Zhang
ed9be3a428 Remove many unneeded CONTENT_EXPORT entries.
Many classes within content don't need CONTENT_EXPORT because they are
not in content/public and they are not directly used from tests.

Change-Id: I22696b3840ab7a89371184e866b05d0b4980e7dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3288753
Auto-Submit: Lei Zhang <thestig@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#942828}
2021-11-17 22:01:18 +00:00
Peter Boström
1d6a095400 Remove unused "base/macros.h" in content/
Removes `#include "base/macros.h"` from files in content/ that do not
contain `ignore_result(`.

Bug: 1010217
No-Try: true
Change-Id: I887403408704241047e3bd66e953ff7df195368b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3274993
Commit-Queue: Peter Boström <pbos@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#940781}
2021-11-11 16:07:03 +00:00
Peter Boström
9b036533b6 Remove DISALLOW_* macros from content/
This inlines all remaining DISALLOW_* macros in content/. This is done
manually (vim regex + manually finding insertion position).

IWYU cleanup is left as a separate pass that is easier when these macros
go away.

Bug: 1010217
Change-Id: I8b5ea6dd9f8a3f584cf3eef82634017a38b15be8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3193883
Commit-Queue: Peter Boström <pbos@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Auto-Submit: Peter Boström <pbos@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#936160}
2021-10-28 23:37:28 +00:00
Peter Boström
828b902994 Replace DISALLOW_COPY_AND_ASSIGN in content/
This replaces DISALLOW_COPY_AND_ASSIGN with explicit constructor deletes
where a local script is able to detect its insertion place (~Foo() is
public => insert before this line).

This is incomplete as not all classes have a public ~Foo() declared, so
not all DISALLOW_COPY_AND_ASSIGN occurrences are replaced.

IWYU cleanup is left as a separate pass that is easier when these macros
go away.

Bug: 1010217
Change-Id: Iea478401b7580682c7b9f195f7af9cbbdb6ce315
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3167292
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#923194}
2021-09-21 02:28:43 +00:00
Lei Zhang
7ca4a7aa95 Remove unnecessary includes of web_contents_impl.h.
Don't include it if it is not needed, especially since
web_contents_impl.h is a big header. Add other headers that
web_contents_impl.h transitively included to fix the build.

Bug: 242216
Change-Id: I62050b638b402a32a5a6846a1240228b29b879dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3033578
Reviewed-by: Charlie Reis <creis@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#902511}
2021-07-16 17:39:44 +00:00
Jeremy Roman
4f722b277a Support --allow-insecure-localhost in content_shell.
This is a content switch, so it makes sense that content would respect
it by default, rather than just chrome. This also happens to make this
feature easier to test.

Bug: 1220829
Change-Id: Ibcd3bc4315c10f9cabb956a37a04bd09181ad762
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2966998
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Emily Stark <estark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#900147}
2021-07-09 21:06:48 +00:00
Matt Falkenhagen
548ed15626 Deprecate NavigationController(Delegate)::GetWebContents.
This is a layering violation as renderer_host is not permitted to depend
on WebContents. The DEPS check is bypassed using a forward declaration
instead of an #include.

This CL starts to deprecate the functions and adjust the callsites.

Change-Id: Ic0c941d47e07f954ea20bbb634ffc356118b3aeb
Bug: 1225205
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2996169
Reviewed-by: Charlie Reis <creis@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Matt Menke <mmenke@chromium.org>
Reviewed-by: Finnur Thorarinsson <finnur@chromium.org>
Reviewed-by: Mike Wasserman <msw@chromium.org>
Reviewed-by: Xinghui Lu <xinghuilu@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Reviewed-by: Lucas Gadani <lfg@chromium.org>
Reviewed-by: Chris Hamilton <chrisha@chromium.org>
Commit-Queue: Matt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#898727}
2021-07-06 01:38:26 +00:00
Lingqi Chi
61bd09fe46 MPArch: SSLManager gets the correct main frame via FrameTree
This CL fixes the issue that SSLManager may get a wrong main frame and
report its metrics with a wrong source id.

This issue could happen because the new multipage architecture allows
WebContents to own more than one FrameTrees, which means there can be
multiple main frames, and we should locate the correct main frame for a
navigation/page.

Before this CL:
NavigationControllerImpl[current]=>delegate()=>GetWebContents()[shared
among primary and non-primary frame trees]->GetMainFrame()[primary]

After this CL:
NavigationControllerImpl[current]=>frame_tree()[current]=>GetMainFrame()
[current].


Bug: 1217953
Change-Id: I395ee81206db54af16b7c73e0939afb583045485
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2962178
Reviewed-by: Emily Stark <estark@chromium.org>
Commit-Queue: Lingqi Chi <lingqi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#893216}
2021-06-16 23:34:44 +00:00
Eric Lawrence
59a2905709 Remove HTTPBad Field Edit detection
We no longer need to track whether the user has edited a form field to
decide to mark non-secure pages as /!\ Not Secure. Remove all of the
code previously used to bubble such events up to Chrome for use in
calculation of the security state of the page.

Bug: 1191143
Change-Id: I0b6ee90d299fe2e552b1c11b486bb8aecc0747cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2908178
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Carlos IL <carlosil@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Bo <boliu@chromium.org>
Reviewed-by: Chris Thompson <cthomp@chromium.org>
Commit-Queue: Eric Lawrence [MSFT] <ericlaw@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#886377}
2021-05-25 18:08:33 +00:00
Lei Zhang
a10cfce1a8 Remove unneeded <string> includes from chromecast/ and content/.
This CL is mechanically generated as follows:

git ls-files chromecast content | grep '\.h$' | \
    xargs grep -l '^#include <string>' | \
    xargs grep -L -E 'std::(|w|u16|basic_)string' | \
    xargs grep -L std::char_traits > to_process.txt

cat to_process.txt | xargs sed -i "/^#include <string>$/d"
cat to_process.txt | xargs sed -i '/^$/N;/^\n$/D'

Bug: 1200833
Change-Id: I34b0b9815ec66bdb258e6cf7e592a4c31d7cac58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2910969
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Sean Topping <seantopping@chromium.org>
Commit-Queue: Sean Topping <seantopping@chromium.org>
Auto-Submit: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#885611}
2021-05-21 19:23:04 +00:00
Anton Bikineev
f62d1bf48e content: Replace base::Optional and friends with absl counterparts
This replaces:
- base::Optional -> absl::optional
- include "base/optional.h"
  ->
  include "third_party/abseil-cpp/absl/types/optional.h"
- base::nullopt -> absl::nullopt
- base::make_optional -> absl::make_optional

Bug: 1202909
Change-Id: Ie9f37bcbf6115632a19f4d063387d07b3723926f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2897246
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Owners-Override: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#883270}
2021-05-15 17:56:07 +00:00
Lei Zhang
d56afb57d1 Delete unused STL includes from content/ headers.
Headers that do not contain "std::" do not need STL includes.

This CL is mechanically generated as follows:

INCL="algorithm|array|list|map|memory|queue|set|string|utility|vector"
git ls-files content | grep '\.h$' | xargs grep -L std:: | \
    xargs grep -El "#include <($INCL)>$" > to_process.txt

INCL_ESCAPED="$(echo $INCL|sed 's/|/\\|/g')"
cat to_process.txt | xargs sed -i "/^#include <\($INCL_ESCAPED\)>$/d"
cat to_process.txt | xargs sed -i '/^$/N;/^\n$/D'

Bug: 1200833
Change-Id: I3b8c9af66e23b37c3051760a7c5d4e132f9043a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2841623
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#875908}
2021-04-23 23:13:46 +00:00
Lucas Furukawa Gadani
e3f7e79632 Fix SecurityStateTabHelper to work with prerender.
This CL fixes SecurityStateTabHelper to work when there are more than
one page in the same WebContents, particularly with the new prerender.

This CL also incorporates a refactor to PrerenderBrowserTest and adds
a PrerenderTestHelper which allows to test prerender outside of the
content/ layer. Credits to vollick@ for the work on exposing
PrerenderTestHelper and refactoring PrerenderBrowserTests (see
https://chromium-review.googlesource.com/c/chromium/src/+/2787388).

Bug: 1190833
Change-Id: Ibb4c83834e11f821ffe7727e892f35d0360521c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2819459
Commit-Queue: Lucas Gadani <lfg@chromium.org>
Reviewed-by: Emily Stark <estark@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#875246}
2021-04-22 17:56:07 +00:00
APF
3c5bddd7c4 Removing felt@ from OWNERS files
I can't effectively review code in most of these directories anymore,
so removing myself. (I've left myself as an owner in the areas of code
I still remember, like the interstitials.)

Change-Id: Ie4b00e738509f83c5082a61b47cbd2cf9e3f25f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2830461
Reviewed-by: Emily Stark <estark@chromium.org>
Commit-Queue: Adrienne Porter Felt <felt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#873359}
2021-04-16 17:30:26 +00:00
Carlos IL
86684ef08d Don't log mixed content histogram for subresources on bad cert sites
Previously SSL.MixedContentShown was logged for bad cert subresources
on bad cert sites. This is not really mixed content, and the more
useful metrics is bad cert subresources on valid cert sites. This
changes the logging logic to do that instead.

Also renames MixedContentShown buckets to use terms that follow the
spec naming, and better reflect the types of content each bucket refers
to.

Bug: 1031270
Change-Id: I989d6f2f3e54f716663acb35ee8e2e65f728e152
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2730509
Commit-Queue: Carlos IL <carlosil@chromium.org>
Auto-Submit: Carlos IL <carlosil@chromium.org>
Reviewed-by: Brian White <bcwhite@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Emily Stark <estark@chromium.org>
Reviewed-by: Chris Thompson <cthomp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#862133}
2021-03-11 21:27:40 +00:00
David Benjamin
54e2f283cc Point SSL and Certificate components at the new trusty-transport@chromium.org
I added this to every DIR_METADATA file that specified
Internals>Network>{SSL,Certificate}, with the exception of
components/certificate_matching since the OWNERS file currently lists
ChromeOS folks.

Change-Id: I6658e4fe4ce85660fc5243d8cfe76e902508635f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2704778
Commit-Queue: David Benjamin <davidben@chromium.org>
Reviewed-by: Ryan Sleevi <rsleevi@chromium.org>
Reviewed-by: Emily Stark <estark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#855356}
2021-02-18 18:41:09 +00:00
Carlos Caballero
ede6f8c270 [mparch] Cleanup {NavigationController|RenderFrameHost}Delegate
NavigationController is owned by FrameTree so there is no need to go
all the way to WebContents to get to it.

This is just a refactor and should have no behavior changes.

Affected methods

NavigationControllerDelegate
  * GetContentsMimeType()
  * SetHistoryOffsetAndLength
  * HasAccessedInitialDocument

RenderFrameHostDelegate
  * DidAccessInitialDocument
  * UpdateStateForFrame
  * DidDisplayInsecureContent
  * DidContainInsecureFormAction
  * DidRunInsecureContent
  * RecordActiveContentWithCertificateErrors
  * SubresourceResponseStarted
  * OnGoToEntryAtOffset

Bug: 1164280
Change-Id: I965ffa20dfcc8ce4f2ea5d6a441bb340338b95f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2633627
Commit-Queue: Carlos Caballero <carlscab@google.com>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#848061}
2021-01-28 11:01:50 +00:00