Closed Bug 1845252 Opened 11 months ago Closed 11 months ago

Convert FxAccountsCommon.js to an ES module

Categories

(Firefox :: Firefox Accounts, task)

task

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

(Whiteboard: [esmification-timeline])

Attachments

(2 files, 2 obsolete files)

FxAccountsCommon.js is a module file which uses a slightly non-standard jsm exports format, and therefore isn't being picked up by automation which is why we haven't spotted it yet.

We should convert it to an ES module as well.

Depends on: 1845253
Attachment #9346272 - Attachment is obsolete: true
Attachment #9346271 - Attachment is obsolete: true
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/683a87892126
Convert FxAccountsCommon.js to an ES module. r=markh
https://hg.mozilla.org/integration/autoland/rev/d58bbd55cb35
Update consumers of FxAccountsCommon to import the ES module directly. r=markh,settings-reviewers,credential-management-reviewers,sync-reviewers,sgalich,Gijs

Backed out for causing mochitests failures in browser_fxa_web_channel.js.

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/base/content/test/sync/browser_fxa_web_channel.js | Unexpected Exception: TypeError: can't access property "ON_PROFILE_CHANGE_NOTIFICATION", FxAccountsCommon is undefined - false == true - {"filename":"chrome://mochitests/content/browser/browser/base/content/test/sync/browser_fxa_web_channel.js","name":"test/<","sourceId":687,"lineNumber":276,"columnNumber":12,"sourceLine":"","asyncCause":null,"asyncCaller":null,"
Flags: needinfo?(standard8)

Fixed tests.

Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/899588327e70
Convert FxAccountsCommon.js to an ES module. r=markh
https://hg.mozilla.org/integration/autoland/rev/25069a171ece
Update consumers of FxAccountsCommon to import the ES module directly. r=markh,settings-reviewers,credential-management-reviewers,sync-reviewers,sgalich,Gijs
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Regressions: 1858025
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: