Skip to content

Commit

Permalink
bug 453943, always disable js for mailnews for 3.0 b1, don't load pre…
Browse files Browse the repository at this point in the history
…f, r=bz, sr=dmose
  • Loading branch information
David Bienvenu committed Sep 21, 2008
1 parent 221e99d commit 1438cc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions caps/src/nsScriptSecurityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1708,8 +1708,7 @@ nsScriptSecurityManager::CanExecuteScripts(JSContext* cx,
if (NS_FAILED(rv)) return rv;
if (appType == nsIDocShell::APP_TYPE_MAIL)
{
// we are temporarily disabling js in mail for TB 3.0 b1
*result = PR_FALSE; // mIsMailJavaScriptEnabled;
*result = mIsMailJavaScriptEnabled;
}
}
}
Expand Down Expand Up @@ -3786,7 +3785,8 @@ nsScriptSecurityManager::ScriptSecurityPrefChanged()

rv = mSecurityPref->SecurityGetBoolPref(sJSMailEnabledPrefName, &temp);
// JavaScript in Mail defaults to disabled in failure cases.
mIsMailJavaScriptEnabled = NS_SUCCEEDED(rv) && temp;
// disable javascript in mailnews for TB 3.0 beta1
mIsMailJavaScriptEnabled = PR_FALSE; // NS_SUCCEEDED(rv) && temp;

rv = mSecurityPref->SecurityGetBoolPref(sFileOriginPolicyPrefName, &temp);
sStrictFileOriginPolicy = NS_SUCCEEDED(rv) && temp;
Expand Down

0 comments on commit 1438cc3

Please sign in to comment.