Closed Bug 126480 Opened 23 years ago Closed 22 years ago

autocomplete popup doesn't show up the first time you type (on Mac)

Categories

(SeaMonkey :: Autocomplete, defect, P1)

PowerPC
Mac System 9.x
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: yulian, Assigned: hewitt)

References

Details

(Keywords: regression, Whiteboard: [ADT1 rtm] [ETA 06/26] [driver:asa])

Attachments

(1 file)

20020218 builds on MacOS 9.2 and MacOS X 10.1.2

On MacOS 9.2 and MacOS X 10.1.2, autocompletion always preselects and displays
only the first entry in the autocompletion list for the first time. You have to
delete the preselected&displayed entry and retype again to get complete
autocompletion list to choose. 
It behaves like only one matching found for the autocompletion at first time.
I'm wondering if this regression wasn't caused by one of the autocomplete.xml,
autocomplete.css, or maybe one of the mac native theme checkins.  I've just
added some suspicious characters (folks who checked in to relevant code over the
weekend where the regression seems to have happened) to the CC list.  Anyone
have any insight here?
Keywords: nsbeta1, regression
Hardware: PC → Macintosh
my theme changes couldn't have made a difference, and besides, i have them in my
tree and i don't see this behavior. i'll update to the tip.
Discussed in 2/28/02 Mail & News bug meeting.  Decisions was to plus this bug.
Keywords: nsbeta1nsbeta1+
Target Milestone: --- → mozilla1.0
Discussed in Mail News bug meeting. Decided to [ADT1] this bug.
Whiteboard: [ADT1]
reassigning to ducarroz.  Jean-Francois, can you look into this while Dan works
on LDAP?
Assignee: dmose → ducarroz
sure...
Status: NEW → ASSIGNED
I've controlled the address book autocompete session and it's fine, it return
all the matches. The problem is in the autocomplete widget.
the autocomplete widget correctly setup the popup menu and call showPopup. I
stepped into show popup and everything seems normal. But still no popup menu!!

This problem append only on Mac (OS 9 & OS X), works fine in Win2K

Hewitt, Hyatt please help...
workaround: despite the popup menu doesn't want to show up, you can still use
the arrow keys to navigate through the matches.
This is an old bug which has been introduced between December 4th and January
2nd! I am currently trying to figure out when this bug get introduced...
this regression has been introduced between 2001-12-18-04 and 2001-12-19-04. The
most suspicious change that went during that time is the XUL/theme
simplification hewitt checked in. 
Whiteboard: [ADT1] → [ADT1] No eta
Changing to [adt1 rtm].  We can ship beta without this.  Let's get this fixed
for rtm.  If you can get a fix soon, we'd look at it.
Whiteboard: [ADT1] No eta → [ADT1 rtm] No eta
I am totally blocked on this bug. Reassign to hewitt.
Assignee: ducarroz → hewitt
Status: ASSIGNED → NEW
Ewww. Can't ship 1.0 on Mac without basic functionality. 
Blocks: 138000
Keywords: mozilla1.0+
Whiteboard: [ADT1 rtm] No eta → [ADT1 rtm] No eta [driver:asa]
Priority: -- → P1
*** Bug 141487 has been marked as a duplicate of this bug. ***
pulling from 138000 blocker list.
No longer blocks: 138000
It took me forever to get a build to work on my slow-ass mac, but I finally did
and I've made some traction on this bug.  The problem seems to be related to
views.  I narrowed the problem down to this in nsViewManager::SetViewVisibility:

  if (aVisible != oldVisible) {

Apparently, in some cases, while the popup is actually invisible it's IsVisible
property is set to true.  So, later when we try to actually show it, it
indicates that it is already visible and so we bail out.  I am not yet sure why
this happens, I need to investigate more.
Status: NEW → ASSIGNED
Summary: The first entry in the autocompletion list always gets preselected and displayed → autocomplete popup doesn't show up the first time you type (on Mac)
Looks like nsCSSFrameConstructor::SyncAndInvalidateView is being naughty!  It is
setting the visibility of the view for the popup to be true, even when the popup
is closed.  I am testing code now which checks the view to see if represents a
closed popup before trying to show the view.  It works, I am now just testing to
see if it breaks anything.
Component: LDAP Mail/News Integration → XP Apps: Autocomplete
Product: MailNews → Browser
Attached patch patch to fixSplinter Review
DecisionOne (Netscape technical support) has helped a few users who ran into
this bug. One of the users discovered that (within Mail) if he
View>Show/Hide>Status Bar, this autocomplete problem goes away. After hiding the
status bar, the autocomplete consistently works. (The user had noticed that
sometimes when he would check his email, the status bar would not stop cycling
back and forth eventhough it seemed that the check was done) 

Hope this bit of info is of help...DecisionOne is wondering what the role of the
status bar is?? 
Blocks: 124969
Comment on attachment 82188 [details] [diff] [review]
patch to fix

+    nsIWidget* widget = nsnull;
+    aView->GetWidget(widget);

use a nsCOMPtr here.

all this view hiding/showing stuff is a mystery to me. it was rewritten without
me a couple of times. hyatt and ben understand it more. I'll defer to them on
this.

Test the heck out of this  patch everywhere. This entire area of the popup code
is gnarly and scares the bejeezus out of me.
*** Bug 136951 has been marked as a duplicate of this bug. ***
Blocks: 143047
Comment on attachment 82188 [details] [diff] [review]
patch to fix

r=ben@netscape.com, what pink said about using using nsCOMPtr (if you were
feeling diligent you could make the other uses in SyncAndInvalidateView use
them too ;-)
Attachment #82188 - Flags: review+
The same problem occurs in Mac OS X too. I saw the discussion and tried the two
methods listed there(erase and type name again OR show/hide-status bar. doesn't
help and the behavior is same.
Comment on attachment 82188 [details] [diff] [review]
patch to fix

r=bryner, with previous comments about using a COMPtr.
*** Bug 141487 has been marked as a duplicate of this bug. ***
fixed on trunk
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
20020530 trunk builds
Verified on MacOS X and 9.2.
Status: RESOLVED → VERIFIED
Scott,

we need to land this on the branch, right?


Keywords: adt1.0.1
adt1.0.1+ (on ADT's behalf) approavl for checkin to the 1.0 branch, pending
Drivers' approval. pls check this in asap, then add the "fixed1.0.1" keyword.
Keywords: adt1.0.1adt1.0.1+
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+"
keyword and add the "fixed1.0.1" keyword.
Keywords: mozilla1.0.1+
This was approved for the branch last week. When can someone land the fix on the
branch?
Whiteboard: [ADT1 rtm] No eta [driver:asa] → [ADT1 rtm] [ETA 06/26] [driver:asa]
Blocks: 154670
Has the fix been landed on the branch yet?
It was marked fixed1.0.1 on 6/26
Verified with 20020702 branch build on MacOS 9.2 and MacOS X 10.1.2.
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: