1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 17:55:08 +00:00

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

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