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:
David Anderson 2013-09-24 14:08:25 -07:00
parent e79c76bc4a
commit de85030bf7

View File

@ -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);
}