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