From d6db6edaf6525e21f9240249750a5171e9fcf71c Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Thu, 3 Oct 2024 23:49:55 +0100 Subject: [PATCH] LibWeb: Remove 'classic' from 'default classic script fetch options' See: - https://github.com/whatwg/html/commit/5ee6b7b --- Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp | 4 ++-- Userland/Libraries/LibWeb/HTML/Scripting/Fetching.cpp | 4 ++-- Userland/Libraries/LibWeb/HTML/Scripting/Fetching.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp b/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp index a43d672baa5..ffda9840b93 100644 --- a/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp +++ b/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp @@ -422,8 +422,8 @@ ErrorOr initialize_main_thread_vm(HTML::EventLoop::Type type) // 3. Let referencingScript be null. Optional referencing_script; - // 4. Let originalFetchOptions be the default classic script fetch options. - auto original_fetch_options = HTML::default_classic_script_fetch_options(); + // 4. Let originalFetchOptions be the default script fetch options. + auto original_fetch_options = HTML::default_script_fetch_options(); // 5. Let fetchReferrer be "client". Fetch::Infrastructure::Request::ReferrerType fetch_referrer = Fetch::Infrastructure::Request::Referrer::Client; diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.cpp b/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.cpp index bd5f8d1c3af..d64facad163 100644 --- a/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.cpp +++ b/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.cpp @@ -42,9 +42,9 @@ PerformTheFetchHook create_perform_the_fetch_hook(JS::Heap& heap, Function