Closed Bug 1781124 Opened 2 years ago Closed 2 years ago

Use static pref in module loader

Categories

(Core :: JavaScript Engine, task)

task

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

https://searchfox.org/mozilla-central/rev/23bf1890e07f780ba70e075bc8f46ffb85d1128c/js/loader/ModuleLoaderBase.cpp#600-602

ResolveResult ModuleLoaderBase::ResolveModuleSpecifier(
    LoadedScript* aScript, const nsAString& aSpecifier) {
  bool importMapsEnabled = Preferences::GetBool("dom.importMaps.enabled");

it should use static pref, or cache the result somehow.

Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/f59c0d89e685
Use static pref for dom.importMaps.enabled in module loader. r=allstarschh
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: