mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 312932. Java applet + screen reader no longer crashes; allow that combo. r=parente, sr=bz
This commit is contained in:
parent
8c7846775d
commit
d2d67f3ba4
@ -561,26 +561,6 @@ void nsAccessNodeWrap::InitAccessibility()
|
||||
nsCOMPtr<nsIPrefBranch> prefBranch(do_GetService(NS_PREFSERVICE_CONTRACTID));
|
||||
if (prefBranch) {
|
||||
prefBranch->GetBoolPref("accessibility.disableenumvariant", &gIsEnumVariantSupportDisabled);
|
||||
|
||||
PRBool isJavaEnabled;
|
||||
prefBranch->GetBoolPref("security.enable_java", &isJavaEnabled);
|
||||
if (isJavaEnabled) {
|
||||
// Java is enabled
|
||||
PRBool isJavaEnabledByUser;
|
||||
prefBranch->PrefHasUserValue("security.enable_java", &isJavaEnabledByUser);
|
||||
if (!isJavaEnabledByUser) {
|
||||
// Java is enabled by default, not explicitly by the user
|
||||
PRBool isScreenReaderActive;
|
||||
if (SUCCEEDED(SystemParametersInfo(SPI_GETSCREENREADER, 0, &isScreenReaderActive, 0)) &&
|
||||
isScreenReaderActive) {
|
||||
// A screen reader is running, so let's turn off the default
|
||||
// Java support to save ourselves from heap corruption.
|
||||
// XXX only a temporary work around to this issue. It seems to be specific JRE
|
||||
// builds that have the problem
|
||||
prefBranch->SetBoolPref("security.enable_java", PR_FALSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!gmUserLib) {
|
||||
|
Loading…
Reference in New Issue
Block a user