From 60baa8ce1104d81d1146a9595bf402cd1cc669d8 Mon Sep 17 00:00:00 2001 From: Richard Dushime <45734838+richarddushime@users.noreply.github.com> Date: Wed, 2 Apr 2025 16:50:56 +0200 Subject: =?UTF-8?q?Use=20Window=20in=20new=20methods=20instead=20of=20Glob?= =?UTF-8?q?alScope=20for=20interfaces=20with=20=E2=80=A6=20(#36133)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …Window-only constructors --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #36118 (GitHub issue number if applicable) - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ --------- Signed-off-by: richarddushime Signed-off-by: Richard Dushime <45734838+richarddushime@users.noreply.github.com> --- components/script/dom/htmlformelement.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/dom/htmlformelement.rs') diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index 8e788f289ec..e4b16a73cb4 100644 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -774,7 +774,7 @@ impl HTMLFormElement { // Step 6.5 let event = SubmitEvent::new( - &self.global(), + self.global().as_window(), atom!("submit"), true, true, @@ -1233,7 +1233,7 @@ impl HTMLFormElement { // Step 7 let event = FormDataEvent::new( - &window.global(), + &window, atom!("formdata"), EventBubbles::Bubbles, EventCancelable::NotCancelable, -- cgit v1.2.3