Convert textbox type="autocomplete" to HTML input
Categories
(Thunderbird :: General, task, P2)
Tracking
(Not tracked)
People
(Reporter: aleca, Assigned: aleca)
References
Details
(Whiteboard: [Thunderbird-testfailure: Z all][Thunderbird-disabled-test])
Attachments
(7 files, 8 obsolete files)
34.47 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
3.81 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
3.89 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
6.49 KB,
patch
|
aleca
:
review+
|
Details | Diff | Splinter Review |
6.49 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
4.35 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
10.51 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
This should land as soon as bug 1534455 lands on m-c.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
This is an initial patch to convert the textbox type="autocomplete"
to html:input is="autocomplete-input"
.
Lots of things are broken like the style (no idea why it doesn't apply), calendar attendees invite, and the address book list, but the basic UI and autocomplete functionalities are there.
I'm requesting an early feedback to be sure the edits I did to select the various elements are correct and I'm moving towards the right direction.
In order to test this you need to load bug 1534455, which is getting updated so most likely some things will change.
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Making progress with a few issues left.
The ontextentered
works as expected, but I will wait till bug 1534455 before celebrating.
Also we need to wait for that patch to get reworked as some popup methods and styling still need to be converted.
The compose window works as expected.
The Address book works as expected with some minor styling issues.
The calendar attendees invite still doesn't work.
Comment 4•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 5•6 years ago
|
||
This should be ready for a full review as all the issues have been solved and everything works as expected.
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Sorry for missing those var
, they should all be reverted now.
I'm attaching a rebased WIP of the D33250 patch so you can test this.
Assignee | ||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
Oopsie, sorry about that.
This should do it.
Comment 11•6 years ago
|
||
Assignee | ||
Comment 12•6 years ago
|
||
With the updated patch of bug 1534455, any input with the ontextentered
attribute causes TB to crash.
So, I have to rework this a little bit.
Assignee | ||
Comment 13•6 years ago
|
||
Patch updated to remove the deprecated ontextentered
.
I'm gonna wait on asking for a final review before the m-c patch lands.
Comment 14•6 years ago
|
||
Thanks for being proactive!
Assignee | ||
Comment 15•5 years ago
|
||
Bug 1534455 has landed on m-c
I'll get back to this bug and bug 1542720 to rebase the patches and get them ready for a full review.
Apologies if the autocomplete will be temporarily broken on trunk.
Comment 16•5 years ago
|
||
It was backed out from autoland, but I assume will be re-landing the next days.
Comment 17•5 years ago
|
||
Quite a few test failures now that bug 1534455 landed. Not immediately obvious why test-general-content-policy.js, test-compose-mailto.js or test-about-support.js would be related. But then the M-C range is rather small, so it must come from there:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=04da00a61c6df437250e3af0d20f8ec72bbe9f48&tochange=9596d7f4a7457bccc78cadf9c39bcc9c4b5b97f8
Comment 18•5 years ago
|
||
Well, bringing up a compose window already fails. It shows a collapsed attachment bucket with a paper clip. It's downhill from there.
Assignee | ||
Comment 19•5 years ago
|
||
Patch coming in a few minute.
I'm fixing some tests
Assignee | ||
Comment 20•5 years ago
|
||
This is a WIP patch which it fixes the UI and autocomplete for the messengercompose and calendar attendees.
The "click-result-and-create-a-new-line" doesn't work anymore.
The Address book mailing list is partially broken.
Comment 21•5 years ago
|
||
Comment 22•5 years ago
|
||
The compose window looks a whole lot better with the patch. I tried one of the failing tests, and it passed. So the next push should look better.
Comment 23•5 years ago
|
||
Assignee | ||
Comment 24•5 years ago
|
||
This fixes the Mailing List dialogs.
Onto to the tests.
Comment 25•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 26•5 years ago
|
||
This fixes a bunch of tests, not all done yet, more to come soon.
Comment 27•5 years ago
|
||
Comment 28•5 years ago
|
||
Comment 29•5 years ago
|
||
I pushed that with DONTBUILD since M-C have only merged three changesets since our last push, so here's a try run:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=6a9ea3516f87b74e1903930f0a24a66814bcd2e3
If all goes well, only one Gloda test (test-keyboard-interface.js::test_escape_does_not_reach_us_from_gloda_search) will remain broken, but that's for bug 1542720.
Comment 30•5 years ago
|
||
Updated•5 years ago
|
Comment 31•5 years ago
|
||
Comment 32•5 years ago
|
||
Too bitrotted to check.
How can it be bitrotten if it landed already?
Comment 33•5 years ago
|
||
Ah, only noticed parts 2 and 3 landing since part 1 landed earlier.
Comment 34•5 years ago
|
||
So, is that an r+ depending on getting the a11y stuff fixed?
Comment 35•5 years ago
|
||
Assignee | ||
Comment 36•5 years ago
|
||
Thanks for the reviews, I'll do those fixes.
Jorg, do you want me to replace them or add a new patch with the edits so you don't have to backout what already landed?
Comment 37•5 years ago
|
||
No need for backouts, just add more parts, like: 4: a11y, 5: more tests, etc.
Comment 38•5 years ago
|
||
Alessandro, with the dark theme in composer, the addressingWidget (the From/CC/BCC textfield) has when selected/hovered a white background with white text, which isn't very optimal to read the address. Also the autocomplete-richlistbox is white.
Removing the html|input fixes the white on white. On this files is no XUL namespace defined and classes work without namespace prefix.
The autocomplete-popup needed some changes to work again after the de-XBL.
Assignee | ||
Comment 39•5 years ago
|
||
Comment 40•5 years ago
|
||
Updated•5 years ago
|
Comment 41•5 years ago
|
||
Comment 42•5 years ago
|
||
(In reply to Alessandro Castellani (:aleca) from comment #26)
This fixes a bunch of tests, not all done yet, more to come soon.
Any progress? I've disabled those two tests now.
Assignee | ||
Comment 43•5 years ago
|
||
This patch takes care of the accessibility issues.
Comment 44•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 45•5 years ago
|
||
And this should be the last patch, fixing the calendar tests.
Try run here: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=a7952fa48ccf780c887e6a09992070ebf8de4c0e
There's still the toolkit/components/search/tests/xpcshell/test_json_cache_good.js
test failing.
Is it OK to touch tests inside the toolkit? Is this up to us?
Comment 46•5 years ago
|
||
Wouldn't think such a test is related to this.
You can fix toolkit stuff if there is something wrong there. But it needs another patch (m-c only part) and other reviewer.
Comment 47•5 years ago
|
||
Comment 48•5 years ago
|
||
And this should be the last patch, fixing the calendar tests.
And the onclick issue?
toolkit/components/search/tests/xpcshell/test_json_cache_good.js --> Bug 1582086.
Assignee | ||
Comment 49•5 years ago
|
||
(In reply to Jorg K (GMT+2) (reduced availability 14-19 of Sept.) from comment #48)
And the onclick issue?
True, I just checked my notes and that's missing.
There's the possibility of that issue being related to m-c. I'll continue for another couple of hours trying to find a fix, but if I fail, I'll open a bug and ping Tim, which he kindly offered to help on this issue.
Which me luck!
Comment 50•5 years ago
|
||
We can always open another bug. I wish you luck!!
Updated•5 years ago
|
Comment 51•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/592b0b1a57a9
Convert textbox type=autocomplete to HTML input, part 4, a11y. r=mkmelin
https://hg.mozilla.org/comm-central/rev/9e2073457474
Convert textbox type=autocomplete to HTML input, part 5, more tests. r=mkmelin
Comment 52•5 years ago
|
||
Maybe best to do the onclick in a new bug.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 53•5 years ago
|
||
This fixes the click issue on autocomplete.
It's incomplete as I need to adapt this method to the Calendar attendees, which is a whole other beast.
Also, the click-and-go-to-next-line behaviour doesn't happen if you edit a row in the Address Book Mailing List, so that needs fixing as well.
Anyway, I'm uploading the patch to gather feedback and see if you guys like it as a solution.
Assignee | ||
Comment 54•5 years ago
|
||
OK, I think I covered everything and this is ready for a full review.
Comment 55•5 years ago
|
||
Comment 56•5 years ago
|
||
You forgot to remove onRecipientClicked() which is now unused. I'll fix it.
Comment 57•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/5156145ef2bc
Fix autocomplete click behavior. r=mkmelin,jorgk DONTBUILD
Description
•