Closed Bug 1757071 Opened 3 years ago Closed 3 years ago

Nested import() in content script crashes tab

Categories

(WebExtensions :: General, defect)

Firefox 99
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1756550

People

(Reporter: aprilsylph, Unassigned)

Details

If a WebExtension has a content script with a dynamic import(), and that imported module also uses import(), the tab will crash. Reported for my extension and reproduced by a collaborator at https://github.com/AprilSylph/XKit-Rewritten/issues/494. Reproduced myself using Firefox 99.0a1 (2022-02-24) (64-bit) on Windows 10.

Does not occur on Firefox 97.0.1 (64-bit) or 98/Developer Edition.

To reproduce easily:

(Note: you must also select any checkbox within "No Recommended" to reproduce.)

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE

Mozregression points to https://phabricator.services.mozilla.com/D138133 / https://bugzilla.mozilla.org/show_bug.cgi?id=1742437. (I see that this was closed as duplicate while I was typing this :D)

Indeed, thanks for your report.

You need to log in before you can comment on or make changes to this bug.