Issue metadata
Sign in to add a comment
|
ServiceWorker PopulateURLResponse does not populate security info if DevTools is attached |
||||||||||||||||||||||||
Issue descriptionChrome Version: 59.0.3042.0 What steps will reproduce the problem? (1) Visit a site with a ServiceWorker (e.g. Twitter) (2) Open DevTools > Security and click through the Origin list on the left Problem: Any Origin whose first response went through a ServiceWorker shows no security information. The root cause appears to be this TODO item in service_worker_context_client.cc // TODO(horo): Set report_security_info to true when DevTools is attached. const bool report_security_info = false; WebURLLoaderImpl::PopulateURLResponse(url_, response_head, response_.get(), report_security_info);
,
Apr 18 2017
s/I think this is not a bug of PlzNavigate, not ServiceWorker./I think this is a bug of PlzNavigate, not ServiceWorker./
,
Apr 18 2017
It could well be the case that a Twitter-specific repro is caused by something else, but am I correct in understanding that the TODO: identified in comment #0 represents another scenario where the information would be missing? Or is the TODO incorrect and that codepath would never cause such a problem?
,
Apr 19 2017
I think there is no problem. SecurityPanel.js in DevTools calls getCertificate(origin, mycallback) of all attached NetworkAgents. InspectorNetworkAgent::getCertificate() lookups an origin matching resource in all resources of the page (and sw). The origin of NavigationPreload response must same as the page's origin. So even if we don't set the security_info of the NavigationPreload response, DevTools can show the origin's security info.
,
Apr 19 2017
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by horo@chromium.org
, Apr 18 2017Labels: Needs-Feedback Proj-PlzNavigate
Owner: elawrence@chromium.org