Closed Bug 1792404 Opened 3 years ago Closed 3 years ago

Collect import stack for static import

Categories

(Core :: XPConnect, task)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

The following consumer expects all modules returned by Cu.loadedESModules can be passed to Cu.getModuleImportStack if the stack recording is enabled, but the stack information is collected only for importESModule and other API, and not for static import declaration.

https://searchfox.org/mozilla-central/rev/6c1a6e3263c2cae45b285b489ef340d944102262/browser/base/content/test/performance/browser_startup_content.js#139-141

for (let module of Cu.loadedESModules) {
  modules[module] = collectStacks
    ? Cu.getModuleImportStack(module)

We should collect stack also for modules imported by static import

Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/e5eaab71bd41 Collect import stack for all imported system ESMs. r=jonco,Standard8
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: