Bug 1434686 part 3. Use IgnoreErrors() outside of dom/. r=mystor

I left some IgnoredErrorResults for now where people warn on failure.  We could
consider adding a WarnOnError() thing or something.

MozReview-Commit-ID: L5ttZ9CGKg0
This commit is contained in:
Boris Zbarsky
2018-02-01 14:21:14 -05:00
parent 5f98ad33e4
commit 6b0d86d490
12 changed files with 24 additions and 40 deletions

View File

@@ -111,15 +111,13 @@ MakeAnonButton(nsIDocument* aDoc, const char* labelKey,
HTMLButtonElement::FromContentOrNull(button);
if (!aAccessKey.IsEmpty()) {
IgnoredErrorResult ignored;
buttonElement->SetAccessKey(aAccessKey, ignored);
buttonElement->SetAccessKey(aAccessKey, IgnoreErrors());
}
// Both elements are given the same tab index so that the user can tab
// to the file control at the correct index, and then between the two
// buttons.
IgnoredErrorResult ignored;
buttonElement->SetTabIndex(aInputElement->TabIndex(), ignored);
buttonElement->SetTabIndex(aInputElement->TabIndex(), IgnoreErrors());
return button.forget();
}