ensure we don't think we're doing autocomplete when the url changes and
the toolbar is hidden, causing it not to update at all (bug 237803) git-svn-id: svn://10.0.0.236/trunk@162375 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
57ad7003be
commit
410d5dd2ba
@ -535,7 +535,7 @@ NS_IMPL_ISUPPORTS1(AutoCompleteListener, nsIAutoCompleteListener)
|
||||
// need to use one of its routines to update the autocomplete status or
|
||||
// we could find ourselves with stale results and the popup still open. If
|
||||
// it doesn't have focus, we can bypass all that and just use normal routines.
|
||||
if ( [[self window] firstResponder] == [self fieldEditor] ) {
|
||||
if ( [self fieldEditor] && [[self window] firstResponder] == [self fieldEditor] ) {
|
||||
[self setStringUndoably:aURI fromLocation:0]; // updates autocomplete correctly
|
||||
|
||||
// set insertion point to the end of the url. setStringUndoably:fromLocation:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user