Commit Graph

31 Commits

Author SHA1 Message Date
roytam1 0db6bb4b53 import from UXP: Issue #3020 - Update currentScript when dealing with shadow DOM. (eee99b32) 2026-03-27 07:35:00 +08:00
roytam1 79991b5228 import from UXP: Issue #2736 - Part 6: Re-work <script> src attribute. (1f638b22) 2025-05-14 15:26:21 +08:00
roytam1 41e5c7b628 import from UXP: comment changes in Issue #2641 2024-10-24 07:53:41 +08:00
roytam1 021dffe98c import from custom branch of UXP: ported from mozilla: Bug 1460920 - Part 2 : Support referrerpolicy attribute in script HTMLScriptElement r=hsivonen (3309aa6d27) (ed16ab73) 2024-10-02 00:09:19 +08:00
roytam1 4e03b175f8 ported from UXP: Issue #1691 - Part 8: Fix --enable-debug builds and continue dynamic module import changes. M1342012 Support import from timeout handlers by associating the initiating script with the compiled JSScript. Fix error message that covers all import() failures that don't throw a JS exception. M1331662 Partial - Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes. Left EvaluateString() in nsXBLProtoImplField.cpp until ExecutionContext errors can be fixed. (1109559a) 2023-05-01 00:13:14 +08:00
roytam1 04c3941012 import from UXP: Issue #1691 - Part 7d: Allow dynamic import in cases where there's no referencing script or module. Support dynamic import from classic scripts by creating ClassicScript objects and associating them with the compiled. M1342012 This patch is incomplete, some code in ScriptLoader::EvaluateScript() could not be applied for missing dependencies. Part 7e will apply the missing dependencies and finish the patch. (d5d7bb5e) 2023-04-30 23:46:16 +08:00
roytam1 8597b9b315 import from UXP: Issue #1691 - Part 7b: Make load request element optional. M1342012 (ba01d99e) 2023-04-30 23:42:47 +08:00
roytam1 ad255fdb78 ported from UXP: Issue #1691 - Part 6c: Fix a few issues with the earlier commits. Need PNK_CALL_IMPORT and PNK_IMPORT_META in the node children list or it will abort. When porting ScriptFetchOptions support, I had 2 constructors, I picked the wrong one. Missed adding the preference javascript.options.dynamicImport to all.js. (9a19e9d1) 2023-04-30 23:21:59 +08:00
roytam1 abf9ba5235 ported from UXP: Issue #1691 - Part 6b: Initial browser support for dynamic import from module scripts. M1342012 Factor out script fetch options from script load request classes. M1480720 Remove support for version parameter from script loader. M1428745 (86e0057e) 2023-04-30 23:16:24 +08:00
roytam1 1022a63417 ported from UXP: Issue #1691 - Part 1: Provide a way of associating a private value with a script or module. (1a6b3a82) 2023-04-30 22:15:30 +08:00
roytam1 223aedb3c3 ported from UXP: Issue #618 - Clear the module map when changing a Document's global and add release build assertions for mismatching compartments. (ef11a4d7) 2022-04-16 00:26:02 +08:00
roytam1 2e2530121b import from UXP: Issue #618 - Implement preloading of module scripts. (1e87731c) 2022-04-16 00:22:00 +08:00
roytam1 e7e78b5d1a import from UXP:
- Issue #618 - Don't preload nomodule scripts when modules are enabled (6c8f24a7)
- Issue #618 - Regenerate the HTML Parser code for nomodule changes (527d5c62)
2022-04-16 00:04:30 +08:00
roytam1 1ed3ea1ee7 import from UXP: Issue #618 - (async) Implement async attribute for inline module scripts. (3781c4a6) 2022-04-15 23:58:11 +08:00
roytam1 868d3b6de1 import from UXP: Issue #618 - (async) Keep track of script modes in a single mode state. (29472168) 2022-04-15 23:51:10 +08:00
roytam1 f4d609a938 import from UXP: Issue #618 - (async, preload) Correctly pass info about async/defer to parser. (3fa4aabf) 2022-04-15 23:50:17 +08:00
roytam1 83c01dc5fe import from UXP: Issue #618 - (async) Split out function to add async request. (d8c2bc29) 2022-04-15 23:47:45 +08:00
roytam1 68fc0c9d6f import from UXP: Issue #618 - Rename some script load request flags to be more descriptive. (ecf9c7cf) 2022-04-15 23:45:45 +08:00
roytam1 b8935d5c9c import from UXP: Issue #618 - Split SRI verification out from OnStreamComplete. (6c7ac2b8) 2022-04-15 23:35:08 +08:00
roytam1 2acff77359 import from UXP: Issue #618 - Split handling of load errors out from OnStreamComplete. (7e6cd5de) 2022-04-15 23:31:25 +08:00
roytam1 6b1fb2e021 import from UXP: Issue #618 - Integrity for descendant module scripts should be the empty string (9f5805ee) 2022-04-15 23:28:26 +08:00
roytam1 93d96988ab ported from UXP: Issue #618: Pass down referrer and referrer policy when fetching modules. (684f4824) 2022-04-15 23:18:01 +08:00
roytam1 e30e38b739 import from UXP: Issue #618 - Simplify module resolve hook to be a function pointer (34db7617) 2022-04-15 18:02:37 +08:00
roytam1 8311e2490e import from UXP: Issue #618 - Keep track of which modules in a graph have been fetched using a visited set (6639e9cd) 2022-04-15 16:07:28 +08:00
roytam1 f88d0aec81 import from UXP: Issue #618 - Simplify module map interface (f0d6e293) 2022-04-15 16:06:08 +08:00
roytam1 65b9c2362b ported from UXP: Issue #618 - Align error handling for module scripts with the spec (again) (0d874713) 2022-04-15 15:55:43 +08:00
roytam1 d171ffbfd5 import from UXP: Issue #618 - Further align error handling for module scripts with the spec (743bdc04) 2022-04-15 15:46:05 +08:00
roytam1 0f3f7f510c import from UXP: Issue #618 - Fix error events fired when loading JS module dependencies fail (933fb544) 2022-04-15 15:25:01 +08:00
roytam1 d90848972b import from UXP: Issue #618 - Remove eager instantiation (a754a7be) 2022-04-15 12:38:07 +08:00
roytam1 fc541bc720 import from UXP: Issue #1603 - Part 2: Split some classes out of ScriptLoader.cpp (c04b682a) 2022-04-15 11:45:37 +08:00
roytam1 b80c8a551b ported from UXP: Issue #1603 - Part 1: Reorganize ScriptLoader/ScriptElement (f85b274e) 2022-04-15 11:43:57 +08:00