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

See:
- https://github.com/whatwg/html/commit/5ee6b7b
This commit is contained in:
Jamie Mansfield 2024-10-03 23:49:55 +01:00 committed by Andreas Kling
parent 29416befe6
commit d6db6edaf6
Notes: github-actions[bot] 2024-10-04 06:41:19 +00:00
3 changed files with 6 additions and 6 deletions

View file

@ -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;

View file

@ -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 {

View file

@ -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);