Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 44ffe10b7658c2146fca15d20ceebb8a6b06a437
      
https://github.com/WebKit/WebKit/commit/44ffe10b7658c2146fca15d20ceebb8a6b06a437
  Author: Ryosuke Niwa <rn...@webkit.org>
  Date:   2025-08-07 (Thu, 07 Aug 2025)

  Changed paths:
    M 
LayoutTests/http/tests/security/contentSecurityPolicy/1.1/import-scriptnonce.html
    M 
LayoutTests/http/tests/security/contentSecurityPolicy/1.1/resources/import-scriptnonce-blocked1.js
    M 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/load-error-events-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/load-error-events-inline-expected.txt
    M LayoutTests/js/dom/modules/module-inline-ignore-integrity.html
    M LayoutTests/js/dom/modules/module-load-event.html
    M 
LayoutTests/js/dom/modules/module-load-same-module-from-different-entry-point-dynamic.html
    M 
LayoutTests/js/dom/modules/module-load-same-module-from-different-entry-point.html
    M Source/WebCore/dom/LoadableClassicScript.h
    M Source/WebCore/dom/LoadableModuleScript.cpp
    M Source/WebCore/dom/LoadableModuleScript.h
    M Source/WebCore/dom/LoadableScript.h
    M Source/WebCore/dom/ScriptElement.cpp

  Log Message:
  -----------
  Inline module script should not dispatch load event
https://bugs.webkit.org/show_bug.cgi?id=297044

Reviewed by Anne van Kesteren.

Don't dispatch load event after executing an inline module script per spec.

* 
LayoutTests/http/tests/security/contentSecurityPolicy/1.1/import-scriptnonce.html:
 Fixed the test for new behavior.
* 
LayoutTests/http/tests/security/contentSecurityPolicy/1.1/resources/import-scriptnonce-blocked1.js:
 Ditto.
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/load-error-events-expected.txt:
 Rebaselined.
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/load-error-events-inline-expected.txt:
 Ditto.
* LayoutTests/js/dom/modules/module-inline-ignore-integrity.html: Fixed the 
test for new behavior.
* LayoutTests/js/dom/modules/module-load-event.html: Ditto.
* 
LayoutTests/js/dom/modules/module-load-same-module-from-different-entry-point-dynamic.html:
 Ditto.
* 
LayoutTests/js/dom/modules/module-load-same-module-from-different-entry-point.html:
 Ditto.
* Source/WebCore/dom/LoadableClassicScript.h:
* Source/WebCore/dom/LoadableModuleScript.cpp:
(WebCore::LoadableModuleScript::create):
(WebCore::LoadableModuleScript::LoadableModuleScript):
* Source/WebCore/dom/LoadableModuleScript.h:
* Source/WebCore/dom/LoadableScript.h:
* Source/WebCore/dom/ScriptElement.cpp:
(WebCore::ScriptElement::requestModuleScript):
(WebCore::ScriptElement::executeScriptAndDispatchEvent):

Canonical link: https://commits.webkit.org/298334@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to