Bug 980904 - Disable the Character Encoding menu when document is decoded as UTF-8 without errors. r=hsivonen,emk,Gijs
This commit is contained in:
@@ -1075,6 +1075,11 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
|
||||
aBuilder->MaybeComplainAboutCharset(msgId, error, (uint32_t)lineNumber);
|
||||
return NS_OK;
|
||||
}
|
||||
case eTreeOpDisableEncodingMenu: {
|
||||
nsIDocument* doc = aBuilder->GetDocument();
|
||||
doc->DisableEncodingMenu();
|
||||
return NS_OK;
|
||||
}
|
||||
case eTreeOpAddClass: {
|
||||
nsIContent* node = *(mOne.node);
|
||||
char16_t* str = mTwo.unicharPtr;
|
||||
|
||||
Reference in New Issue
Block a user