New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 609394 link

Starred by 8 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Headless Chrome: Devtool Security Page shows "This security of this page is unknown"

Reported by yukiny...@gmail.com, May 5 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

Steps to reproduce the problem:
1. Open Headless Chrome via remote debugging port
2. Go to Security
3. Reload

What is the expected behavior?

What went wrong?
It does not shows the security status of the page.

Did this work before? N/A 

Chrome version: 52.0.2720.1  Channel: n/a
OS Version: 
Flash Version:
 
Labels: Proj-Headless

Comment 2 by alph@chromium.org, May 6 2016

Owner: lgar...@chromium.org
Status: Assigned (was: Unconfirmed)
I'm afraid I don't know how to run headless Chrome, and am not finding great information on it. Could you tell me what instructions you are using, and maybe what for?

Comment 5 by addyo@chromium.org, Oct 11 2016

Labels: Hotlist-Google
Hey folks. This issue is currently blocking Lighthouse (https://github.com/GoogleChrome/lighthouse), used both at Google and externally, from being able to accurately run Progressive Web App audits in CI due to our HTTPS audits failing. Is there anything we can do at all to help with movement on this bug? :)

We know headless Chrome is still new and would be more than happy to walk through how to get it setup if there's any friction at all with doing that at present. Thanks.
Cc: altimin@chromium.org skyos...@chromium.org eseckler@chromium.org alexclarke@chromium.org
Owner: eseckler@chromium.org
Looks like this is a headless issue, and not a devtools one. Probably caused by the fact that WebContentsDelegate::GetSecurityStyle() returns blink::WebSecurityStyleUnknown by default. The logic for computing the security state lives under /chrome/ (see Browser::GetSecurityStyle()) and is thus not accessible for headless.

I'm taking this over for now and will look into moving (part of) this logic to make it accessible from /headless/.
Project Member

Comment 7 by bugdroid1@chromium.org, Nov 16 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a

commit cac56b6adc739e3ba3d5a20a45c0da87fec9d02a
Author: eseckler <eseckler@chromium.org>
Date: Wed Nov 16 13:49:44 2016

Refactor SecurityStateModel/Clients for simplicity and reusability.

Primary purpose for this patch is to make content-specific parts of
ChromeSecurityStateModelClient reusable for use in other embedders,
e.g. in headless chrome to support DevTool's Security domain.

The patch replaces the SecurityStateModel class (and its Client
interface) with helper methods, and moves content-specific logic
from CSSMC into new helper methods in the security_state component.

BUG= 609394 

Review-Url: https://codereview.chromium.org/2448943002
Cr-Commit-Position: refs/heads/master@{#432474}

[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/android/BUILD.gn
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/app/chromium_strings.grd
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/app/generated_resources.grd
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/app/google_chrome_strings.grd
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/BUILD.gn
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/about_flags.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/chromeos/login/ui/simple_web_view_dialog.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc
[delete] https://crrev.com/48a106897274196b5897f1b0967d28c49e4ec696/chrome/browser/ssl/chrome_security_state_model_client.cc
[delete] https://crrev.com/48a106897274196b5897f1b0967d28c49e4ec696/chrome/browser/ssl/chrome_security_state_model_client.h
[delete] https://crrev.com/48a106897274196b5897f1b0967d28c49e4ec696/chrome/browser/ssl/chrome_security_state_model_client_unittest.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ssl/security_state_model_android.cc
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ssl/security_state_tab_helper.cc
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ssl/security_state_tab_helper.h
[rename] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ssl/security_state_tab_helper_browser_tests.cc
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ssl/security_state_tab_helper_unittest.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ssl/ssl_browser_tests.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/android/bluetooth_chooser_android.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/android/page_info/connection_info_popup_android.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/android/page_info/website_settings_popup_android.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/android/usb_chooser_dialog_android.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/browser.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/browser_commands.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/browser_commands.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/browser_dialogs.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/browser_window.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/cocoa/browser_window_cocoa.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/extensions/hosted_app_browser_controller.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/tab_helpers.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/browser_dialogs_views_mac.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/frame/browser_view.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/frame/browser_view.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/frame/web_app_left_header_view_ash.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/location_bar/location_bar_view.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/location_bar/location_bar_view.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/location_bar/location_icon_view.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/omnibox/omnibox_view_views.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/toolbar/toolbar_view.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/toolbar/toolbar_view.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/website_settings/website_settings_popup_view.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/views/website_settings/website_settings_popup_view_unittest.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/website_settings/website_settings.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/website_settings/website_settings.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/browser/ui/website_settings/website_settings_unittest.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/test/BUILD.gn
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/chrome/test/base/test_browser_window.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/BUILD.gn
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/autofill/core/browser/BUILD.gn
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/autofill/core/browser/autofill_experiments.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/autofill/core/browser/autofill_manager_unittest.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/components_chromium_strings.grd
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/components_google_chrome_strings.grd
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/components_strings.grd
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/password_manager/core/browser/BUILD.gn
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/password_manager/core/browser/password_autofill_manager.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/password_manager/core/browser/password_autofill_manager_unittest.cc
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/content/BUILD.gn
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/content/DEPS
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/content/content_utils.cc
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/content/content_utils.h
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/content/content_utils_browsertest.cc
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/content/content_utils_unittest.cc
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/content/testdata/hello.html
[rename] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/core/BUILD.gn
[rename] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/core/security_state.cc
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/core/security_state.h
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/core/security_state_unittest.cc
[rename] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/core/switches.cc
[rename] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state/core/switches.h
[delete] https://crrev.com/48a106897274196b5897f1b0967d28c49e4ec696/components/security_state/security_state_model.h
[delete] https://crrev.com/48a106897274196b5897f1b0967d28c49e4ec696/components/security_state/security_state_model_client.h
[delete] https://crrev.com/48a106897274196b5897f1b0967d28c49e4ec696/components/security_state/security_state_model_unittest.cc
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/security_state_strings.grdp
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/toolbar/BUILD.gn
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/toolbar/test_toolbar_model.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/toolbar/test_toolbar_model.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/toolbar/toolbar_model.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/toolbar/toolbar_model_delegate.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/toolbar/toolbar_model_impl.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/components/toolbar/toolbar_model_impl.h
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/ios/chrome/browser/ssl/BUILD.gn
[delete] https://crrev.com/48a106897274196b5897f1b0967d28c49e4ec696/ios/chrome/browser/ssl/ios_chrome_security_state_model_client.h
[delete] https://crrev.com/48a106897274196b5897f1b0967d28c49e4ec696/ios/chrome/browser/ssl/ios_chrome_security_state_model_client.mm
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/ios/chrome/browser/ssl/ios_security_state_tab_helper.h
[add] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/ios/chrome/browser/ssl/ios_security_state_tab_helper.mm
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/ios/chrome/browser/ui/omnibox/BUILD.gn
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/ios/chrome/browser/ui/omnibox/omnibox_util.cc
[modify] https://crrev.com/cac56b6adc739e3ba3d5a20a45c0da87fec9d02a/ios/chrome/browser/ui/omnibox/omnibox_util.h

Status: Fixed (was: Assigned)
The DevTools Security domain should now work as intended for headless chrome. \o/

If there are any further problems, feel free to reopen this bug.

Sign in to add a comment