From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- toolkit/components/satchel/FormHistoryChild.sys.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'toolkit/components/satchel/FormHistoryChild.sys.mjs') diff --git a/toolkit/components/satchel/FormHistoryChild.sys.mjs b/toolkit/components/satchel/FormHistoryChild.sys.mjs index 242d8f2e29..e97b5238e8 100644 --- a/toolkit/components/satchel/FormHistoryChild.sys.mjs +++ b/toolkit/components/satchel/FormHistoryChild.sys.mjs @@ -35,15 +35,16 @@ function log(message) { export class FormHistoryChild extends JSWindowActorChild { handleEvent(event) { switch (event.type) { - case "DOMFormBeforeSubmit": - this.#onDOMFormBeforeSubmit(event.target); + case "form-submission-detected": + this.#onFormSubmission(event); break; default: throw new Error("Unexpected event"); } } - #onDOMFormBeforeSubmit(form) { + #onFormSubmission(event) { + const form = event.detail.form; if ( !lazy.gEnabled || lazy.PrivateBrowsingUtils.isContentWindowPrivate(form.ownerGlobal) -- cgit v1.2.3