Closed Bug 484615 Opened 15 years ago Closed 14 years ago

Ubiquity Asynchronous Noun Suggestions are not working

Categories

(Mozilla Labs :: Ubiquity, defect)

x86
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: irakli, Assigned: avarma)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3
Build Identifier: 0.2pre24

It appears as though Ubiquity has regressed in the case where an
asynchronous noun-type initially returns NO suggestions but later
returns some.  So for instance, the following noun type works:

var Suggester = {
        _name : 'Suggester',

        suggest : function(text, html, makeSuggestion) {

            Utils.setTimeout(function suggestAsync() {
                for each (var number in [1,2,3,4]) {
                    //Components.utils.reportError("making a sugg.");
                    makeSuggestion({
                        text : number,
                        summary : number,
                        html : number
                    });
                }
            }, 300);
            return [CmdUtils.makeSugg("blah")];
        }
    }

If you remove the 'CmdUtils.makeSugg("blah")', then this noun type
will appear to stop working.



Reproducible: Always
Shouldn't be an issue in 0.5.
Parser 2 relies on this working correctly as it parses async.
Marking as RESOLVED INVALID, per comment 2.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.