mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Don't rely on legacy crypto calls in e10s content processes (bug 919089, r=bz).
--HG-- extra : rebase_source : 96a4b8f475c2e6e8b4f3a082e8efdc32fc8b08b6
This commit is contained in:
parent
e79c76bc4a
commit
de85030bf7
@ -2182,7 +2182,7 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument,
|
||||
|
||||
#ifndef MOZ_DISABLE_CRYPTOLEGACY
|
||||
// clear smartcard events, our document has gone away.
|
||||
if (mCrypto) {
|
||||
if (mCrypto && XRE_GetProcessType() != GeckoProcessType_Content) {
|
||||
nsresult rv = mCrypto->SetEnableSmartCardEvents(false);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user