[meta] convert <textbox> usages in Thunderbird to HTML <input>
Categories
(Thunderbird :: General, task, P1)
Tracking
(Not tracked)
People
(Reporter: mkmelin, Assigned: aleca)
References
Details
(Keywords: meta)
This is the Thunderbird bug for bug 1547372.
For inspiration on how, look at patches in bugs dependent on that one.
Alex, please file dependent bugs for this one, in appropriate chunks.
Assignee | ||
Comment 1•5 years ago
•
|
||
Some stats before filling up this meta bug
- 306
<textbox>
- 7
createXULEelement("textbox")
- 1
getElementsByTagName("textbox")
- 7
closest("textbox")
- 10
querySelector("textbox")
- 1
querySelectorAll("textbox")
- 7 conditions
== "textbox"
- 53
textbox
CSS declarations
Let's ignore for now type="autocomplete"
and is="search-textbox"
as they will be soon converted into CE
Assignee | ||
Comment 2•5 years ago
|
||
This is a first batch that includes almost everything inside the mail/
and calendar/
directory.
Should we take care of the mailnews/
directory as well? I see some repeated files that we're not using.
Comment 3•5 years ago
|
||
So many bugs? For example, woudn't one bug for editor/ have been enough? There could be multiple patches if necessary. I find this a little hard to manage.
Assignee | ||
Comment 4•5 years ago
|
||
I tried to split the bug based on sections and purpose, and I didn't want to have too many files to track in one single bug.
I tried to follow the logic of the de-xbl meta bug and keep small changesets.
If you think this is wrong I'm happy to update it.
Comment 5•5 years ago
|
||
Well, some bugs are for a one line change, like bug 1563104. I haven't looked in detail, but as I said, I would have expected one bug per directory, like for example bug 1551704 and its dependents.
Reporter | ||
Comment 6•5 years ago
|
||
(In reply to Alessandro Castellani (:aleca) from comment #2)
Should we take care of the
mailnews/
directory as well? I see some
repeated files that we're not using.
Yes. We're using everything in mailnews (unlike editor/). If you find something we don't use, that would be a bug.
For size of bugs, I think you can go which ever way is easiest.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Something to watch out for is not forgetting to import the relevant scripts (globalOverlay.js and editMenuOverlay.js) if they're not already there when doing the conversion, otherwise the edit context menu will stop working on those pages. See bug 1565921.
Assignee | ||
Comment 8•5 years ago
|
||
Thanks for the heads up!
Updated•5 years ago
|
Comment 9•5 years ago
|
||
Where is the bug for mailnews? calendar, chat and mail (was editor) seem to be well covered:
https://searchfox.org/comm-central/search?q=%3Ctextbox&case=false®exp=false&path=%5Emailnews%2F
Reporter | ||
Comment 10•5 years ago
|
||
I think there isn't any specific bugs filed just yet. I'll look at some of the textboxes now since bug 1513325 is almost there.
Reporter | ||
Comment 11•5 years ago
|
||
mailnews is now also filed, I think.
Assignee | ||
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Looks like we're getting really close, the last bug already has r+ with just a few nits to fix. That said, I don't see that Mozilla can drop the binding in the immediate future, it's still all over the place in their tests:
https://searchfox.org/mozilla-central/search?q=%3Ctextbox&case=false®exp=false&path=
Reporter | ||
Comment 13•5 years ago
|
||
But I think that all has patches... somewhere. Bug 1513325 is now accepted and ready to land. So it shouldn't be long.
Comment 14•5 years ago
•
|
||
I think you missed https://phabricator.services.mozilla.com/D47986 ;-) - That doesn't look ready at all.
EDIT: OK, there's also bug 1586141, but I don't think it's done yet.
Comment 15•5 years ago
|
||
Bug 1566674 is taking care of the test removals in the dependencies. I suspect it'll be done by the end of next week, once that done, I'll just trigger https://phabricator.services.mozilla.com/D38955 for landing.
Updated•5 years ago
|
Description
•