Clicking on the security area of the network section on any website crashes devtools
Categories
(DevTools :: Netmonitor, defect, P2)
Tracking
(firefox87 fixed)
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: shrisharvesh7, Assigned: bomsy)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
4.71 MB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta-
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0
Steps to reproduce:
open devtools on "google.com" or any website
click network section
highlight the base page (google.com/)
change from headers to security
Actual results:
devtools crashes and gives and a "TypeError: can't access property "commonName", subject is undefined"
Expected results:
the security tab should appear
Assignee | ||
Comment 1•3 years ago
|
||
Thanks for reporting!
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
So it looks like the cert
object would be empty if there is an issue
https://searchfox.org/mozilla-central/rev/0379f315c75a2875d716b4f5e1a18bf27188f1e6/devtools/shared/webconsole/network-helper.js#707,731-734
We should take that into consideration and not crash on the frontend here
https://searchfox.org/mozilla-central/rev/0379f315c75a2875d716b4f5e1a18bf27188f1e6/devtools/client/netmonitor/src/components/request-details/SecurityPanel.js#153-174
Assignee | ||
Comment 4•3 years ago
|
||
Pushed by hmanilla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bfef3350019d [devtools] Stop crashing when the security certificate is not available r=Honza
Comment 6•3 years ago
|
||
bugherder |
Assignee | ||
Comment 7•3 years ago
|
||
Comment on attachment 9203655 [details]
Bug 1692951 - [devtools] Stop crashing when the security certificate is not available r=honza
Beta/Release Uplift Approval Request
- User impact if declined: Only affects developers
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small javascript change, stop netmonitor crash when a request's security certificate is not available.
- String changes made/needed:
Comment 8•3 years ago
|
||
Comment on attachment 9203655 [details]
Bug 1692951 - [devtools] Stop crashing when the security certificate is not available r=honza
Too late for 86.
Assignee | ||
Comment 9•3 years ago
|
||
ok thanks pascal!
Description
•