Commit a44a41c9 authored by Kouhei Ueno's avatar Kouhei Ueno Committed by Commit Bot

[ES6 modules] Update spec reference to HostImportModuleDynamically abstract operation

Bug: None
Change-Id: I4e94511f39c2d55806a2827b19a6801ee29dce19
Reviewed-on: https://chromium-review.googlesource.com/835931Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Kouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#525282}
parent 648e383e
......@@ -19,7 +19,7 @@ namespace blink {
// ReferrerScriptInfo carries a copy of "referencing script's" info referenced
// in HTML Spec: "HostImportModuleDynamically" algorithm.
// https://github.com/tc39/proposal-dynamic-import/blob/master/HTML%20Integration.md#hostimportmoduledynamicallyreferencingscriptormodule-specifier-promisecapability
// https://html.spec.whatwg.org/multipage/webappapis.html#hostimportmoduledynamically(referencingscriptormodule,-specifier,-promisecapability)
class CORE_EXPORT ReferrerScriptInfo {
public:
ReferrerScriptInfo() = default;
......@@ -29,6 +29,7 @@ class CORE_EXPORT ReferrerScriptInfo {
: credentials_mode_(credentials_mode),
nonce_(nonce),
parser_state_(parser_state) {}
static ReferrerScriptInfo FromScriptFetchOptions(
const ScriptFetchOptions& options) {
return ReferrerScriptInfo(options.CredentialsMode(), options.Nonce(),
......@@ -53,14 +54,15 @@ class CORE_EXPORT ReferrerScriptInfo {
private:
// Spec: "referencing script's credentials mode"
// The default value is "omit", from Step 5 of [HIMD].
// [HIMD]
// https://github.com/tc39/proposal-dynamic-import/blob/master/HTML%20Integration.md#hostimportmoduledynamicallyreferencingscriptormodule-specifier-promisecapability
// The default value is "omit" per:
// https://html.spec.whatwg.org/multipage/webappapis.html#default-classic-script-fetch-options
network::mojom::FetchCredentialsMode credentials_mode_ =
network::mojom::FetchCredentialsMode::kOmit;
// Spec: "referencing script's cryptographic nonce"
String nonce_;
// Spec: "referencing script's parser state"
// The default value is "not-parser-inserted" per:
// https://html.spec.whatwg.org/multipage/webappapis.html#default-classic-script-fetch-options
ParserDisposition parser_state_ = kNotParserInserted;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment