Use HTML input instead of XUL textbox in EdImageProps and edImage.inc.xul
Categories
(Thunderbird :: General, task)
Tracking
(Not tracked)
People
(Reporter: aleca, Assigned: khushil324, Mentored)
References
Details
Attachments
(2 files, 5 obsolete files)
3.23 KB,
image/png
|
Details | |
12.01 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
- edImage.inc.xul: https://searchfox.org/comm-central/rev/94d2c771f935e9402ca3d19a43fafeeaa8f0ac4f/editor/ui/dialogs/content/edImage.inc.xul#15
- EdImageProps.xul
- EdInputImage.xul
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
EdInputImage.xul isn't used in TB any more.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
Comment 8•5 years ago
|
||
Assignee | ||
Comment 9•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Your number boxes don't look good on Windows. You want me to land like this or fix it?
Comment 12•5 years ago
•
|
||
They look equally bad on the width and height of the horizontal ruler landed recently. I guess we need to make all the boxes a little taller in a separate bug. I'll land it later then.
Comment 13•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/a05c073aca21
replace <textbox> in EdImageProps.xul and edImage.inc.xul. r=mkmelin
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Backout:
https://hg.mozilla.org/comm-central/rev/7cd8521f4423f9c5c86aa03ab58ef73960737352
I had to back this out for various MozMill failures on Mac and Windows:
https://treeherder.mozilla.org/#/jobs?repo=comm-central&revision=d85a8ba1bbd28de53fe3e1a96042c3536369c5ad
With the backout, those tests pass again:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=4c531516fa221d8de177df12406fe805bac54fec
Assignee | ||
Comment 15•5 years ago
|
||
Assignee | ||
Comment 16•5 years ago
•
|
||
I have changed all the onchange to oninput. We can use onchange only on html:select.
Comment 17•5 years ago
|
||
Comment 18•5 years ago
|
||
Well onchange and oninput are different. For onchange it only updates after you leave the field (blur), but oninput will trigger for each char you trigger. Some changes might be needed so the tests do not fail, but updating the preview as you type isn't very productive...
Comment 19•5 years ago
|
||
Comment 20•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/6f766cbe59fd
replace <textbox> in EdImageProps.xul and edImage.inc.xul. r=mkmelin
Comment 21•5 years ago
|
||
We'd better remove all the textboxes before M-C remove the binding. We can worry about the fine print in another bug. Also see comment #10.
Assignee | ||
Comment 22•5 years ago
|
||
This was creating problem: https://searchfox.org/comm-central/source/mail/test/mozmill/composition/test-image-insertion-dialog.js#40
So if we are using onchange everywhere, we need to change this: https://searchfox.org/comm-central/source/mail/test/mozmill/shared-modules/KeyboardHelpers.jsm#20
I will file the follow-up bug to convert all the html:input to use onchange and change input_value function to reflect the values.
Comment 23•5 years ago
|
||
You'd only have to blur() after typing.
But perhaps the code is right, that people may paste the url, and expect to get a preview even before clicking elsewhere.
Assignee | ||
Comment 24•5 years ago
|
||
So do we want to change the oninput to onchange here and elsewhere?
Comment 25•5 years ago
|
||
Let's just leave it as is.
Assignee | ||
Comment 26•5 years ago
|
||
Okay Cool.
Description
•