Closed Bug 1778999 Opened 3 years ago Closed 2 years ago

Remove backward compatible code from httpd.js

Categories

(Core :: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

bug 1667455 exposes Services property on privileged global, and httpd.js doesn't have to import Services.jsm in the patched binary,
but httpd.js is used also by host-utils, and until it gets updated (bug 1778998), httpd.js contains backward compatible code

https://hg.mozilla.org/integration/autoland/rev/911d540fce6f

-const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
+// httpd.js is loaded by Android hostutils that's not up to date.
+// Fallback to Services.jsm if `Services` global variable isn't yet available.
+const Services =
+  globalThis.Services ||
+  ChromeUtils.import("resource://gre/modules/Services.jsm").Services;

once hostutils gets updated, we can remove the Services declaration above.

:arai, will this be handled by author of 1667455 and/or 1778998? Or will necko team be responsible for implementing this change?

Flags: needinfo?(arai.unmht)

I can handle this, but bug 1778998 needs someone else.

Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Flags: needinfo?(arai.unmht)
Priority: -- → P2
Whiteboard: [necko-triaged]
Severity: -- → N/A
No longer depends on: 1667455
Depends on: 1780695
No longer depends on: 1780695
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/a45685de846c Remove backward compatible code for Services.jsm from httpd.js. r=necko-reviewers,valentin
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: