зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 386495 (Javascript is not disabled when designMode is on). r/sr=jst.
This commit is contained in:
Родитель
c1fe374f29
Коммит
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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче