Closed Bug 123216 Opened 23 years ago Closed 23 years ago

no caret in password dialogs

Categories

(SeaMonkey :: UI Design, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: bryner, Assigned: hewitt)

Details

(Keywords: regression)

Attachments

(1 file, 2 obsolete files)

On current trunk builds on Linux:

Bring up a dialog with a text field, for example, an ftp password dialog:
ftp://foo@ftp.mozilla.org/

Note that there is no caret shown in the dialog, but you can type.

This is a regression that appeared after the patch for bug 114580 was checked in.
Keywords: nsbeta1, regression
Attached patch patch (obsolete) — Splinter Review
This is kind of a silly patch, but it does fix the problem.  There's weirdness
with initial window focus on Linux that we really need to figure out at some
point.
Comment on attachment 67644 [details] [diff] [review]
patch

setTimeout, my dear friend. So we meet again.
Attachment #67644 - Flags: superreview+
Comment on attachment 67644 [details] [diff] [review]
patch

Kinda hacky. :-(

Please log a new bug on this new focus weirdness (to track the real fix).

r=hwaara
Attachment #67644 - Flags: review+
Nit: it's a bit faster to just pass in the function name directly so the js
engine doesn't have to parse and compile "function()", e.g.

  setTimeout(focus, 0);
  setTimeout(GetAttention, 0);

or so brendan tells me, anyway.
QA Contact: sairuh → tpreston
Yeah.
As jag has just pointed out, dialog.xml already handles the task of setting the
initial focus (via the onload handler), so we should just remove the focus()
call from commonDialog
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.9
Attached patch patchSplinter Review
Attachment #67644 - Attachment is obsolete: true
Attachment #67716 - Attachment is obsolete: true
Comment on attachment 67834 [details] [diff] [review]
patch

patch is by jag, so sr=hewitt. bryner has supposedly tested this and it works.
Attachment #67834 - Flags: superreview+
yeah, r=me
fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified fixed linux build 2002021412
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: