Bug 1445541 - Enable the character encoding menu when the document is decoded as UTF-8 and an error is found, instead of disabling it when no errors are found. r=hsivonen

MozReview-Commit-ID: 1e6kQbAxcqm
This commit is contained in:
Masatoshi Kimura
2018-04-06 06:20:28 +09:00
parent a8330e650b
commit 63783eda6f
7 changed files with 21 additions and 13 deletions

View File

@@ -1057,9 +1057,9 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
aBuilder->MaybeComplainAboutCharset(msgId, error, (uint32_t)lineNumber);
return NS_OK;
}
case eTreeOpDisableEncodingMenu: {
case eTreeOpEnableEncodingMenu: {
nsIDocument* doc = aBuilder->GetDocument();
doc->DisableEncodingMenu();
doc->EnableEncodingMenu();
return NS_OK;
}
case eTreeOpAddClass: {