WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
198210
Web Inspector: Network: provide a way to accept alternate types of certificate data
https://bugs.webkit.org/show_bug.cgi?id=198210
Summary
Web Inspector: Network: provide a way to accept alternate types of certifica...
Devin Rousso
Reported
2019-05-23 21:12:26 PDT
Both the Network agent and `InspectorFrontendHost` use a `CertificateInfo` for encoding/decoding, but other devices/frameworks may not have included the entirety of WebKit (including WebCore), and therefore may only have a smaller subset of the data. There should be a way to send back other types of certificate data from `Network.getSerializedCertificate` that `InspectorFrontendHost::showCertificate` can then handle.
Attachments
Patch
(13.71 KB, patch)
2019-05-23 21:17 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2019-05-23 21:17:00 PDT
Created
attachment 370557
[details]
Patch Rather than create an API for it, this may be a simpler solution for clients using the Security framework.
EWS Watchlist
Comment 2
2019-05-23 21:18:51 PDT
This patch modifies the inspector protocol. Please ensure that any frontend changes appropriately use feature checks for new protocol features.
Devin Rousso
Comment 3
2019-05-24 12:30:17 PDT
Comment on
attachment 370557
[details]
Patch cq-, while we discuss if this is the right way forward
Devin Rousso
Comment 4
2019-05-31 17:01:31 PDT
<
rdar://problem/51076339
>
Devin Rousso
Comment 5
2019-06-25 09:37:19 PDT
Comment on
attachment 370557
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=370557&action=review
> Source/WebCore/inspector/InspectorFrontendHost.cpp:490 > + if (type.isEmpty() || type == "WebCore") {
This could use `Inspector::Protocol::InspectorHelpers::getEnumConstantValue(Inspector::Protocol::Security::SerializedCertificateType::WebCore)` instead.
> Source/WebCore/inspector/InspectorFrontendHost.cpp:495 > + else if (type == "SecTrustRef") {
Ditto (>490).
Blaze Burg
Comment 6
2019-08-06 13:41:11 PDT
Comment on
attachment 370557
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=370557&action=review
I am worried about this breaking. How can we test this?
> Source/JavaScriptCore/inspector/protocol/Network.json:209 > + { "name": "serializedCertificate", "type": "string", "description": "Represents a base64 encoded certificat object." },
Nit: certificate
> Source/WebCore/platform/network/cf/CertificateInfo.h:153 > +static bool decodeSecTrustRefIfAble(Decoder& decoder, RetainPtr<SecTrustRef>& result)
I don't understand the need to shell this out. What's wrong with the existing decodeSecTrustRef?
Devin Rousso
Comment 7
2019-08-29 00:34:45 PDT
Comment on
attachment 370557
[details]
Patch Clearing flags to remove from review queue while we discuss the necessity of this approach.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug