Closed Bug 1790152 Opened 2 years ago Closed 2 years ago

avoid unnecessary string serializations when adding certificate error overrides

Categories

(Firefox :: Security, task)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: keeler, Assigned: keeler)

References

Details

Attachments

(2 files)

The way certificate error overrides are added involves serializing security information back and forth between processes. Currently, much of that information is first serialized to a string and then sent across IPC, which is inefficient and unnecessary.

Only the bytes of the failed certificate chain are used, so that's all we need
to send across, rather than the entire nsITransportSecurityInfo.

This avoids unnecessarily serializing the certificate to a string before
sending it over IPC.

Depends on D157007

The Bugbug bot thinks this bug should belong to the 'Core::Security: PSM' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Security: PSM
Product: Firefox → Core
Component: Security: PSM → Security
Product: Core → Firefox
Pushed by dkeeler@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/03f88676f2a2
avoid serializing nsITransportSecurityInfo in the certificate error page r=Gijs
https://hg.mozilla.org/integration/autoland/rev/a6538d4b9ac5
use nsIX509Cert directly in IPC in AddCertException r=nika
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: