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:
peterv%propagandism.org
2007-07-03 11:54:41 +00:00
parent 8e7e787c4b
commit bd5c883b9d

View File

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