mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibWeb: Remove 'classic' from 'default classic script fetch options'
See: - https://github.com/whatwg/html/commit/5ee6b7b
This commit is contained in:
parent
29416befe6
commit
d6db6edaf6
Notes:
github-actions[bot]
2024-10-04 06:41:19 +00:00
Author: https://github.com/jamierocks Commit: https://github.com/LadybirdBrowser/ladybird/commit/d6db6edaf65 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1620
3 changed files with 6 additions and 6 deletions
|
@ -422,8 +422,8 @@ ErrorOr<void> initialize_main_thread_vm(HTML::EventLoop::Type type)
|
||||||
// 3. Let referencingScript be null.
|
// 3. Let referencingScript be null.
|
||||||
Optional<HTML::Script&> referencing_script;
|
Optional<HTML::Script&> referencing_script;
|
||||||
|
|
||||||
// 4. Let originalFetchOptions be the default classic script fetch options.
|
// 4. Let originalFetchOptions be the default script fetch options.
|
||||||
auto original_fetch_options = HTML::default_classic_script_fetch_options();
|
auto original_fetch_options = HTML::default_script_fetch_options();
|
||||||
|
|
||||||
// 5. Let fetchReferrer be "client".
|
// 5. Let fetchReferrer be "client".
|
||||||
Fetch::Infrastructure::Request::ReferrerType fetch_referrer = Fetch::Infrastructure::Request::Referrer::Client;
|
Fetch::Infrastructure::Request::ReferrerType fetch_referrer = Fetch::Infrastructure::Request::Referrer::Client;
|
||||||
|
|
|
@ -42,9 +42,9 @@ PerformTheFetchHook create_perform_the_fetch_hook(JS::Heap& heap, Function<WebID
|
||||||
return JS::create_heap_function(heap, move(function));
|
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",
|
// 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".
|
// referrer policy is the empty string, and fetch priority is "auto".
|
||||||
return ScriptFetchOptions {
|
return ScriptFetchOptions {
|
||||||
|
|
|
@ -51,8 +51,8 @@ struct ScriptFetchOptions {
|
||||||
Fetch::Infrastructure::Request::Priority fetch_priority {};
|
Fetch::Infrastructure::Request::Priority fetch_priority {};
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/webappapis.html#default-classic-script-fetch-options
|
// https://html.spec.whatwg.org/multipage/webappapis.html#default-script-fetch-options
|
||||||
ScriptFetchOptions default_classic_script_fetch_options();
|
ScriptFetchOptions default_script_fetch_options();
|
||||||
|
|
||||||
class FetchContext : public JS::GraphLoadingState::HostDefined {
|
class FetchContext : public JS::GraphLoadingState::HostDefined {
|
||||||
JS_CELL(FetchContext, JS::GraphLoadingState::HostDefined);
|
JS_CELL(FetchContext, JS::GraphLoadingState::HostDefined);
|
||||||
|
|
Loading…
Reference in a new issue