Bug 1691515 - Add MOZ_KNOWN_LIVE member annotation r=andi

Differential Revision: https://phabricator.services.mozilla.com/D107321
This commit is contained in:
Kagami Sascha Rosylight
2021-03-05 23:23:03 +00:00
parent 8f2cebadf6
commit 245f974cb7
11 changed files with 62 additions and 19 deletions

View File

@@ -3796,7 +3796,7 @@ nsresult HTMLInputElement::PostHandleEvent(EventChainPostVisitor& aVisitor) {
// Checkbox and Radio try to submit on Enter press
if (keyEvent->mKeyCode != NS_VK_SPACE &&
aVisitor.mPresContext) {
MaybeSubmitForm(MOZ_KnownLive(aVisitor.mPresContext));
MaybeSubmitForm(aVisitor.mPresContext);
break; // If we are submitting, do not send click event
}
@@ -3874,7 +3874,7 @@ nsresult HTMLInputElement::PostHandleEvent(EventChainPostVisitor& aVisitor) {
mType == NS_FORM_INPUT_NUMBER || IsDateTimeInputType(mType))) {
FireChangeEventIfNeeded();
if (aVisitor.mPresContext) {
rv = MaybeSubmitForm(MOZ_KnownLive(aVisitor.mPresContext));
rv = MaybeSubmitForm(aVisitor.mPresContext);
NS_ENSURE_SUCCESS(rv, rv);
}
}