Fix for bug 386495 (Javascript is not disabled when designMode is on). r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@229240 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3943,11 +3943,17 @@ nsHTMLDocument::EditingStateChanged()
|
||||
|
||||
mScriptsEnabled = tmp;
|
||||
|
||||
rv = docshell->SetAllowJavascript(PR_FALSE);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
rv = docshell->GetAllowPlugins(&tmp);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
mPluginsEnabled = tmp;
|
||||
|
||||
rv = docshell->SetAllowPlugins(PR_FALSE);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
updateState = PR_TRUE;
|
||||
spellRecheckAll = mEditingState == eContentEditable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user