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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user