Closed Bug 1788777 Opened 2 years ago Closed 2 years ago

Move devtools network observer to a shared location available to both remote/ and devtools/

Categories

(Remote Protocol :: WebDriver BiDi, task, P1)

task
Points:
1

Tracking

(firefox108 fixed)

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 3 open bugs)

Details

(Whiteboard: [webdriver:m5])

Attachments

(1 file)

This is a simple code move bug. We need to find a location in tree which will always be included when devtools and/or remote are built. This should be done after migrating the common JS modules to ESM.

devtools/shared/ could be an option. As far as I can tell, only devtools/client can be excluded from builds easily. To be verifed. From an external point of view devtools/shared makes some sense, but from a DevTools point of view, this folder is usually for modules used both by the client and the server. There's also the question of maintenance, developers working on those modules should be aware that it's used outside of devtools.

I think all of remote/ can be excluded, so we should probably not put the module there.

Maybe a non-devtools/non-remote folder could also be an option.

Depends on: 1788762

Please note that we do not necessarily have to find a folder that can be used to share this observer module. We could handle the file similarly to httpd.js and could instruct the build process to copy the file into our folder structure.

That way it doesn't matter if DevTools is enabled or not for the build process.

We should only make sure that good documentation gets added in the devtools folder which explains that this module is shared.

Blocks: 1790362
Points: --- → 1
Priority: -- → P1
Whiteboard: [webdriver:m5]
Assignee: nobody → jdescottes
Depends on: 1796540
Blocks: 1796582
Blocks: 1796540
No longer depends on: 1796540
Status: NEW → ASSIGNED
Blocks: 1797785
Blocks: 1797790
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/02c859d135b7
[devtools] Group all network-observer related modules in a single folder r=ochameau,Sasha
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Blocks: 1800705
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: