12 Commits

Author SHA1 Message Date
roytam1 9124b21450 import from UXP: Issue #2387 - Remove a missed AddRef() which could cause leaks. Update comments explaining how the reference counting works. (3e9fd21a) 2023-11-30 11:14:36 +08:00
roytam1 3c23d39e03 import from UXP: Issue #2387 - Collection of fixes related to a crash while canceling a dynamic import. Add AddRef/Release hooks for embedding's script or module private value and set this script source object where appropriate. https://bugzilla.mozilla.org/show_bug.cgi?id=1519140 Partial, no Value passing changes. Clear the list of dynamic import requests after cancelling them in ScriptLoader::ParsingComplete as we do for other requests. https://bugzilla.mozilla.org/show_bug.cgi?id=1291535 ScriptLoader::OnStreamComplete never returns a failure. https://bugzilla.mozilla.org/show_bug.cgi?id=1627275 Also cancel the correct kind of parser for Modules. (eef37b2c) 2023-11-30 11:13:38 +08:00
roytam1 8c3bfc03ca import from UXP: Issue #1691 - Part 11: Fix incorrect reference counting in ModuleScript class. (edb82ec9) 2023-05-01 00:21:19 +08:00
roytam1 d227ff5835 ported from UXP: Issue #1691 - Part 9: Make import() work when the active script is in another document. M1342012 Associate event handler with active script when they are compiled. (be916ef7) 2023-05-01 00:16:49 +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 19260f4b07 import from UXP: Issue #1691 - Part 7c: Refactor ModuleScript into ClassicScript class and LoadedScript base class so we can represent all scripts that can perform dynamic import. M1342012 (41eda05e) 2023-04-30 23:43:52 +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 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 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