mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-08 12:22:34 +00:00
Fix for bug 386495 (Javascript is not disabled when designMode is on). r/sr=jst.
This commit is contained in:
parent
c1fe374f29
commit
cad259320f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user