Fix for bug 21368. navigator.plugins methods were returning an error code if the plugin wasn'
This commit is contained in:
Родитель
cc028b878d
Коммит
12e50bccc1
|
@ -131,7 +131,7 @@ nsJSContext::nsJSContext(JSRuntime *aRuntime)
|
|||
|
||||
// Check for the JS strict option, which enables extra error checks
|
||||
nsresult rv;
|
||||
PRBool strict, werror;
|
||||
PRBool strict;
|
||||
NS_WITH_SERVICE(nsIPref, prefs, kPrefServiceCID, &rv);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
uint32 options = 0;
|
||||
|
@ -143,6 +143,7 @@ nsJSContext::nsJSContext(JSRuntime *aRuntime)
|
|||
}
|
||||
#endif
|
||||
#ifdef JSOPTION_WERROR
|
||||
nsresult werror;
|
||||
if (NS_SUCCEEDED(prefs->GetBoolPref("javascript.options.werror",
|
||||
&werror)) &&
|
||||
werror) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче