mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Prevent crash when loading module in worker
The import map is defined for all global objects, not just the window.
This commit is contained in:
@@ -114,10 +114,6 @@ public:
|
||||
|
||||
GC::Ptr<Navigable> navigable() const;
|
||||
|
||||
ImportMap& import_map() { return m_import_map; }
|
||||
ImportMap const& import_map() const { return m_import_map; }
|
||||
void set_import_map(ImportMap const& import_map) { m_import_map = import_map; }
|
||||
|
||||
void append_resolved_module(SpecifierResolution resolution) { m_resolved_module_set.append(move(resolution)); }
|
||||
Vector<SpecifierResolution> const& resolved_module_set() const { return m_resolved_module_set; }
|
||||
|
||||
@@ -288,10 +284,6 @@ private:
|
||||
|
||||
GC::Ptr<DOM::Event> m_current_event;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-global-import-map
|
||||
// A global object has an import map, initially an empty import map.
|
||||
ImportMap m_import_map;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#resolved-module-set
|
||||
// A global object has a resolved module set, a set of specifier resolution records, initially empty.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user