LibWeb: Default ScriptFetchOptions parser metadata to NotParserInserted

See: https://html.spec.whatwg.org/multipage/webappapis.html#default-classic-script-fetch-options
This commit is contained in:
Luke Wilde 2023-09-12 23:18:17 +01:00 committed by Andreas Kling
parent 6f8be44c0e
commit 9335524f15
Notes: sideshowbarker 2024-07-17 06:46:15 +09:00

View File

@ -26,7 +26,7 @@ struct ScriptFetchOptions {
String integrity_metadata {};
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-script-fetch-options-parser
Optional<Fetch::Infrastructure::Request::ParserMetadata> parser_metadata;
Fetch::Infrastructure::Request::ParserMetadata parser_metadata { Fetch::Infrastructure::Request::ParserMetadata::NotParserInserted };
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-script-fetch-options-credentials
Fetch::Infrastructure::Request::CredentialsMode credentials_mode { Fetch::Infrastructure::Request::CredentialsMode::SameOrigin };