UI for adding LDAP servers broken: Add/edit panel doesn't open and textbox needs replacing
Categories
(Thunderbird :: Preferences, defect)
Tracking
(Not tracked)
People
(Reporter: benc, Assigned: mkmelin)
References
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
1.68 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
7.03 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
In the last day or two the dialog box I was using to set up an LDAP addressbook seems to have stopped working (this is doing my own builds from C-C).
Steps to reproduce:
- Right click on account in folder view, and pick "Settings"
- Pick Composition & Addressing
- Under "Addressing", select "Use a different LDAP Server" radiobutton.
- Click the "Edit Directories" button to bring up a "LDAP Directory Servers" dialog box.
- Click the "Add" button to bring up "New LDAP Directory".
Observed:
While the labels are visible, the text-entry widgets for "Name:", "Hostname:" "Base DN" etc are not visible.
Expected:
Should be able to enter LDAP details in the fields.
There is also a more modern looking interface in the in the global preferences, which doesn't seem to work either:
Steps to reproduce:
- Menu -> "Preferences" -> "Preferences"
- click on "Composition" page
- Under "Addressing", click the "Edit Directories..." button to bring up the LDAP server dialog.
- Click "Add" button.
Observed:
Nothing happens when you click "Add".
Expected:
I expected to be prompted to enter the LDAP server details.
Reporter | ||
Comment 1•5 years ago
|
||
I'm not really up on what's happening on the UI side, but I'm guessing this is a side effect of big overhauls there (eg Bug 1521483 )...
Assignee | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
I get this when trying to edit a server:
NS_ERROR_ILLEGAL_VALUE: pref-editdirectories.js:144
editDirectory chrome://messenger/content/addressbook/pref-editdirectories.js:144
oncommand chrome://messenger/content/addressbook/pref-editdirectories.xul:1
That's a fallout from bug 1553804, see bug 1582941 for a similar fix. We should really have a test for this stuff.
And you can CC me on regressions in general.
Comment 3•5 years ago
•
|
||
Actually, bug 1553804 had two variants for a fix, adding chrome=no and changing the opener, like here:
https://hg.mozilla.org/mozill
EDIT: Hmm, somehow that got truncated, see comment #4 for the full text.
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Wow, BMO truncated my comment, I'll try again:
Actually, bug 1553804 had two variants for a fix, adding chrome=no and changing the opener, like here:
https://hg.mozilla.org/mozilla-central/rev/9dfd2afee1bb#l1.12
The panel now opens but looks shocking, but that's something for the de-XBL boys forgot
mailnews/addrbook/prefs/content/pref-directory-add.xul
https://searchfox.org/comm-central/search?q=xul%3Atextbox&case=false®exp=false&path=
Comment on attachment 9100691 [details] [diff] [review] 1588006-ldap-panel.patch Review of attachment 9100691 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, the dialog opens now.
Updated•5 years ago
|
Comment 6•5 years ago
|
||
https://hg.mozilla.org/comm-central/rev/af0b4f8de1a398719748161891be9f0517d0c53f
Port bug 1553804: Use correct window opener when opening LDAP panel for add/edit. r=aceman
Comment 7•5 years ago
|
||
Ben, if this is blocking you, change the xul:textbox to html:input, that should get you going:
https://searchfox.org/comm-central/search?q=xul%3Atextbox&case=false®exp=false&path=pref-directory-add.xul
Assignee | ||
Comment 8•5 years ago
|
||
I'll fix those textboxes now unless someone else is already on it.
Comment 9•5 years ago
|
||
Not me, it will be faster for someone with experience.
Comment 10•5 years ago
|
||
I can submit a patch by tonight if it's feasible. Magnus, Should I?
Assignee | ||
Comment 11•5 years ago
|
||
I'll let you review it instead.
Assignee | ||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Comment on attachment 9100742 [details] [diff] [review] bug1588006_ldap_textbox.patch It looks good on Mac. r=khushil.
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Magnus, can you make the boxes a little bigger, the cursor is taller than the box and reaches outside. Also, the port number should be that input-inline class to avoid the padding of the number spinbuttons.
Assignee | ||
Comment 15•5 years ago
|
||
Added input-inline to the port.
Wasn't needed on linux, I don't see a change. Also no problem with cursor or size, so I'll leave everything else alone.
Assignee | ||
Updated•5 years ago
|
Comment 16•5 years ago
|
||
Added input-inline to the port. Wasn't needed on linux, I don't see a change.
Yes, that's visible on Windows only. It looks much better now, so thanks.
Richard, on Windows the cursor goes from the top border to the bottom border of the text box, in TB 68 there's some padding. Richard, can you take a look. I'll land it now, but I think some CSS needs tweaking.
Comment 17•5 years ago
|
||
It's because of the input-inline class's padding: 0;. A padding: 1px 0; or padding: 1px; would fix it.
Comment 18•5 years ago
|
||
I'm talking about the text boxes, the (inline) number boxes are fine.
Comment 19•5 years ago
|
||
The text boxes have the input-inline class too. When you remove the class from the text boxes they would be taller than the number box, and this looks not good.
Comment 20•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/f8fca88b8f1e
change xul:textbox -> html:input in pref-directory-add.xul. r=khushil
Updated•5 years ago
|
Description
•