Bug 1863801 - P2. Add DOMFormRemoved event listener after successful fetch or XHR request r=dimi

Differential Revision: https://phabricator.services.mozilla.com/D193308
This commit is contained in:
jneuberger
2023-12-01 19:12:54 +00:00
parent d7ce6ef4ea
commit 22a0fc66c2
5 changed files with 59 additions and 12 deletions

View File

@@ -2111,9 +2111,9 @@ void HTMLFormElement::MaybeFireFormRemoved() {
return;
}
// Right now, only the password manager listens to the event and only listen
// to it under certain circumstances. So don't fire this event unless
// necessary.
// Right now, only the password manager and formautofill listen to the event
// and only listen to it under certain circumstances. So don't fire this event
// unless necessary.
if (!doc->ShouldNotifyFormOrPasswordRemoved()) {
return;
}