Closed Bug 1546738 Opened 6 years ago Closed 5 months ago

Get rid of the hidden window usage to get a WebSocket object

Categories

(DevTools :: General, task, P3)

task

Tracking

(firefox131 fixed)

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: Felipe, Assigned: gregp)

References

Details

Attachments

(1 file)

There are two places in the developer tools codebase [1] [2] where the hidden window is used to get access to a WebSocket object. We should figure out a way to make that getter lazy or switch to some alternative to using the hidden window.

[1] https://searchfox.org/mozilla-central/rev/ec489aa170b6486891cf3625717d6fa12bcd11c1/remote/server/WebSocket.jsm#18
[2] https://searchfox.org/mozilla-central/rev/ec489aa170b6486891cf3625717d6fa12bcd11c1/devtools/shared/builtin-modules.js#375

CC'ing Alex to put this on his radar as this is related to DevTools' protocol transport layer.
Marking as a P3 for now since the parent bug does not seem to have any priority associated to it. If the perf benefits of doing this change are big enough for Firefox, we should probably bump this.

Priority: -- → P3
Severity: normal → S3
Assignee: nobody → gregp
Status: NEW → ASSIGNED
Pushed by gp3033@protonmail.com: https://hg.mozilla.org/integration/autoland/rev/0e4848e63a94 Get rid of the hidden window usage to get a WebSocket object r=ochameau,devtools-reviewers
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: