Convert 'mach devtools-css-db' to run with Python 3
Categories
(DevTools :: General, task)
Tracking
(firefox84 fixed)
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: KrisWright, Assigned: bhearsum)
References
Details
Attachments
(1 file)
mach devtools-css-db
still runs with python 2 [1]. We want to convert all mach
commands to python 3.
To do this, any dependencies of the command may need to be converted as well as the command itself.
Comment 2•5 years ago
|
||
Greg, I am seeing that you introduced this command in bug 1290988. Do you know what we need to change to make the command python 3 compatible?
Thanks!
Honza
Comment 3•5 years ago
|
||
I see two options here:
- Convert to python 3
- Remove this feature
For 1, I think following the steps from the meta bug would be adequate. I think it would be changing this over to python 3, and chasing down the errors and dependencies.
For 2, I have a suspicion that this is no longer needed. This feature was added when we were trying to separate the client and servers better. I'm not sure how much this is still a goal. I think this is only used in rare edge cases. I know I felt that it wasn't a great solution, but it helped get the project done, which was fairly complicated. I also believe some of the DevTools features that were relying on this are now gone, which makes fully removing it simpler.
The key here is to try and remove getClientCssProperties.
I think it would be worth pursuing option 2, as I know the CSS and DOM teams would appreciate not having to mess with this any more.
Assignee | ||
Comment 4•5 years ago
|
||
Sounds like we're not ready to remove this yet. I went ahead and added python3 support to this command (patch incoming), as it was pretty trivial.
Assignee | ||
Comment 5•5 years ago
|
||
It's not 100% clear how long this command will live, but it doesn't look
immediately removable, and it was easy to add python3 support.
![]() |
||
Comment 7•5 years ago
|
||
bugherder |
Description
•