Преглед на файлове

LibWeb: Remove 'classic' from 'default classic script fetch options'

See:
- https://github.com/whatwg/html/commit/5ee6b7b
Jamie Mansfield преди 9 месеца
родител
ревизия
d6db6edaf6

+ 2 - 2
Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp

@@ -422,8 +422,8 @@ ErrorOr<void> initialize_main_thread_vm(HTML::EventLoop::Type type)
         // 3. Let referencingScript be null.
         Optional<HTML::Script&> 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;

+ 2 - 2
Userland/Libraries/LibWeb/HTML/Scripting/Fetching.cpp

@@ -42,9 +42,9 @@ PerformTheFetchHook create_perform_the_fetch_hook(JS::Heap& heap, Function<WebID
     return JS::create_heap_function(heap, move(function));
 }
 
-ScriptFetchOptions default_classic_script_fetch_options()
+ScriptFetchOptions default_script_fetch_options()
 {
-    // The default classic script fetch options are a script fetch options whose cryptographic nonce is the empty string,
+    // The default script fetch options are a script fetch options whose cryptographic nonce is the empty string,
     // integrity metadata is the empty string, parser metadata is "not-parser-inserted", credentials mode is "same-origin",
     // referrer policy is the empty string, and fetch priority is "auto".
     return ScriptFetchOptions {

+ 2 - 2
Userland/Libraries/LibWeb/HTML/Scripting/Fetching.h

@@ -51,8 +51,8 @@ struct ScriptFetchOptions {
     Fetch::Infrastructure::Request::Priority fetch_priority {};
 };
 
-// https://html.spec.whatwg.org/multipage/webappapis.html#default-classic-script-fetch-options
-ScriptFetchOptions default_classic_script_fetch_options();
+// https://html.spec.whatwg.org/multipage/webappapis.html#default-script-fetch-options
+ScriptFetchOptions default_script_fetch_options();
 
 class FetchContext : public JS::GraphLoadingState::HostDefined {
     JS_CELL(FetchContext, JS::GraphLoadingState::HostDefined);