diff --git a/html/semantics/scripting-1/the-script-element/module/credentials.sub.html b/html/semantics/scripting-1/the-script-element/module/credentials.sub.html index 1293d7f6913453..c7cab6e958388f 100644 --- a/html/semantics/scripting-1/the-script-element/module/credentials.sub.html +++ b/html/semantics/scripting-1/the-script-element/module/credentials.sub.html @@ -39,7 +39,7 @@ }).then(() => { const w = iframe.contentWindow; - assert_equals(w.sameOriginNone, 'not found', + assert_equals(w.sameOriginNone, 'found', 'Modules should be loaded without the credentials when the crossOrigin attribute is not specified and the target is same-origin'); assert_equals(w.sameOriginAnonymous, 'found', 'Modules should be loaded with the credentials when the crossOrigin attribute is specified with "anonymous" as its value and the target is same-origin'); @@ -52,18 +52,32 @@ assert_equals(w.crossOriginUseCredentials, 'found', 'Modules should be loaded with the credentials when the crossOrigin attribute is specified with "use-credentials" as its value and the target is cross-origin'); - assert_equals(w.sameOriginNoneDecendent, 'not found', - 'Decendent modules should be loaded without the credentials when the crossOrigin attribute is not specified and the target is same-origin'); - assert_equals(w.sameOriginAnonymousDecendent, 'found', - 'Decendent modules should be loaded with the credentials when the crossOrigin attribute is specified with "anonymous" as its value and the target is same-origin'); - assert_equals(w.sameOriginUseCredentialsDecendent, 'found', - 'Decendent modules should be loaded with the credentials when the crossOrigin attribute is specified with "use-credentials" as its value and the target is same-origin'); - assert_equals(w.crossOriginNoneDecendent, 'not found', - 'Decendent modules should be loaded without the credentials when the crossOrigin attribute is not specified and the target is cross-origin'); - assert_equals(w.crossOriginAnonymousDecendent, 'not found', - 'Decendent modules should be loaded without the credentials when the crossOrigin attribute is specified with "anonymous" as its value and the target is cross-origin'); - assert_equals(w.crossOriginUseCredentialsDecendent, 'found', - 'Decendent modules should be loaded with the credentials when the crossOrigin attribute is specified with "use-credentials" as its value and the target is cross-origin'); + assert_equals(w.sameOriginNoneDescendant, 'found', + 'Descendant modules should be loaded without the credentials when the crossOrigin attribute is not specified and the target is same-origin'); + assert_equals(w.sameOriginAnonymousDescendant, 'found', + 'Descendant modules should be loaded with the credentials when the crossOrigin attribute is specified with "anonymous" as its value and the target is same-origin'); + assert_equals(w.sameOriginUseCredentialsDescendant, 'found', + 'Descendant modules should be loaded with the credentials when the crossOrigin attribute is specified with "use-credentials" as its value and the target is same-origin'); + assert_equals(w.crossOriginNoneDescendant, 'not found', + 'Descendant modules should be loaded without the credentials when the crossOrigin attribute is not specified and the target is cross-origin'); + assert_equals(w.crossOriginAnonymousDescendant, 'not found', + 'Descendant modules should be loaded without the credentials when the crossOrigin attribute is specified with "anonymous" as its value and the target is cross-origin'); + assert_equals(w.crossOriginUseCredentialsDescendant, 'found', + 'Descendant modules should be loaded with the credentials when the crossOrigin attribute is specified with "use-credentials" as its value and the target is cross-origin'); + + assert_equals(w.sameOriginNoneDynamicDescendant, 'found', + 'Dynamic decendent modules should be loaded without the credentials when the crossOrigin attribute is not specified and the target is same-origin'); + assert_equals(w.sameOriginAnonymousDynamicDescendant, 'found', + 'Dynamic descendant modules should be loaded with the credentials when the crossOrigin attribute is specified with "anonymous" as its value and the target is same-origin'); + assert_equals(w.sameOriginUseCredentialsDynamicDescendant, 'found', + 'Dynamic descendant modules should be loaded with the credentials when the crossOrigin attribute is specified with "use-credentials" as its value and the target is same-origin'); + assert_equals(w.crossOriginNoneDynamicDescendant, 'not found', + 'Dynamic descendant modules should be loaded without the credentials when the crossOrigin attribute is not specified and the target is cross-origin'); + assert_equals(w.crossOriginAnonymousDynamicDescendant, 'not found', + 'Dynamic descendant modules should be loaded without the credentials when the crossOrigin attribute is specified with "anonymous" as its value and the target is cross-origin'); + assert_equals(w.crossOriginUseCredentialsDynamicDescendant, 'found', + 'Dynamic descendant modules should be loaded with the credentials when the crossOrigin attribute is specified with "use-credentials" as its value and the target is cross-origin'); + }); }, 'Modules should be loaded with or without the credentials based on the same-origin-ness and the crossOrigin attribute'); diff --git a/html/semantics/scripting-1/the-script-element/module/resources/credentials-iframe.sub.html b/html/semantics/scripting-1/the-script-element/module/resources/credentials-iframe.sub.html index f086e702822a42..d2b28714b1606d 100644 --- a/html/semantics/scripting-1/the-script-element/module/resources/credentials-iframe.sub.html +++ b/html/semantics/scripting-1/the-script-element/module/resources/credentials-iframe.sub.html @@ -25,24 +25,44 @@ + + + + + + + +