Closed Bug 1836386 Opened 3 years ago Closed 3 years ago

Convert JSMs in browser/components/newtab/lib/PersonalityProvider to ESMs

Categories

(Firefox :: New Tab Page, task, P3)

task

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: kpatenio, Assigned: arai)

References

Details

(Whiteboard: [esmification-timeline])

Attachments

(1 external file)

There are currently 7 JSMs that require conversion. Some things to take into consideration are the use of importScripts and imports-globals-from (which can replaced with direct imports - docs).

Severity: -- → N/A
Priority: -- → P3
Whiteboard: [esmification-timeline]

We can replace the importScripts with direct ES modules imports, if we make a PersonalityProviderWorker.js a ES module as well. See for example bug 1816935.

The minor issue here is that PromiseWorker.js might also be needed to be imported as a ES module, so I think we'll need bug 1835279 for that.

Depends on: 1835279
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/a857f9cb6655 Convert JSMs in browser/components/newtab/lib/PersonalityProvider to ESMs. r=gvn

Backed out for causing bc failures in browser_all_files_referenced.js

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/base/content/test/static/browser_all_files_referenced.js | there should be no unreferenced files - Got 5, expected +0
Flags: needinfo?(arai.unmht)
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/3b770263cd05 Convert JSMs in browser/components/newtab/lib/PersonalityProvider to ESMs. r=gvn
Flags: needinfo?(arai.unmht)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: