Open Bug 1476864 Opened 8 years ago Updated 4 years ago

nsPK11Token is main-thread only

Categories

(Core :: Security: PSM, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: franziskus, Unassigned)

Details

(Whiteboard: [psm-backlog])

Because GetPIPNSSBundleString is main-thread only nsPK11Token is main-thread only. We should either make sure that nsPK11Token is called only on the main-thread or don't use GetPIPNSSBundleString. I didn't check if there are other calls that make problems here.
Looks like we use GetPIPNSSBundleString to get mTokenName and mTokenManufacturerID for the internal token. These fields are only used in GetTokenName and GetTokenManID, respectively, which are generally used by the front-end and thus should be main thread only. Everything else is probably safe to use off the main thread, though, so we probably just need to re-do when/how those fields get set.
Priority: -- → P3
Whiteboard: [psm-backlog]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.