Back out Bug 1127201 (part 2) for various problems.
This commit is contained in:
@@ -1899,8 +1899,8 @@ nsHTMLDocument::WriteCommon(JSContext *cx,
|
||||
if (NS_FAILED(rv) || !mParser) {
|
||||
return rv;
|
||||
}
|
||||
MOZ_ASSERT(!JS_IsExceptionPending(cx),
|
||||
"Open() succeeded but JS exception is pending");
|
||||
NS_ABORT_IF_FALSE(!JS_IsExceptionPending(cx),
|
||||
"Open() succeeded but JS exception is pending");
|
||||
}
|
||||
|
||||
static NS_NAMED_LITERAL_STRING(new_line, "\n");
|
||||
@@ -2773,7 +2773,7 @@ nsHTMLDocument::EditingStateChanged()
|
||||
// We might already have an editor if it was set up for mail, let's see
|
||||
// if this is actually the case.
|
||||
nsCOMPtr<nsIHTMLEditor> htmlEditor = do_QueryInterface(existingEditor);
|
||||
MOZ_ASSERT(htmlEditor, "If we have an editor, it must be an HTML editor");
|
||||
NS_ABORT_IF_FALSE(htmlEditor, "If we have an editor, it must be an HTML editor");
|
||||
uint32_t flags = 0;
|
||||
existingEditor->GetFlags(&flags);
|
||||
if (flags & nsIPlaintextEditor::eEditorMailMask) {
|
||||
|
||||
Reference in New Issue
Block a user