Closed Bug 1834176 Opened 2 years ago Closed 2 years ago

Convert NetUtils.jsm to an ES module

Categories

(Core :: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Whiteboard: [esmification-timeline][necko-triaged])

Attachments

(3 files)

As part of the ongoing work, we should convert NetUtils.jsm to an ES module.

Severity: -- → N/A
Priority: -- → P2
Whiteboard: [esmification-timeline] → [esmification-timeline][necko-triaged]
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ae2f0837b528 Avoid using NetUtil as a test file in js/xpconnect/tests. r=arai https://hg.mozilla.org/integration/autoland/rev/57876d77a652 Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo

Looks like Android can't use the TestFile.jsm, so I switched to TestBlob.jsm instead.

Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/74d1880272d3 Avoid using NetUtil as a test file in js/xpconnect/tests. r=arai https://hg.mozilla.org/integration/autoland/rev/ea1d8b634bfc Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo

Backed out along with Bug 1834222 for causing RemoteProcessMonitor failures.

The test failures are because hostutils need updating for the renamed NetUtil.sys.mjs file.

Given that once the file is renamed we can still use NetUtil.jsm to load the import, I'm going with: 1) land the rename, 2) get hostutils updated, 3) land the import changes. Hopefully that will work.

Keywords: leave-open
Attachment #9335126 - Attachment description: Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r?arai! → Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r?arai!
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f17584d19ea7 Avoid using NetUtil as a test file in js/xpconnect/tests. r=arai https://hg.mozilla.org/integration/autoland/rev/2cc40181bae9 Convert NetUtil.jsm to an ES module. r=necko-reviewers,valentin

I'm going to add a temporary exception for the unreferenced file so that the staged landing works.

Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd56014074a9 Avoid using NetUtil as a test file in js/xpconnect/tests. r=arai https://hg.mozilla.org/integration/autoland/rev/d8ee1fe4340a Convert NetUtil.jsm to an ES module. r=necko-reviewers,valentin
Depends on: 1835230
Keywords: leave-open
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5ee71fd842f2 Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: