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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user