Closed
Bug 1689275
Opened 3 years ago
Closed 3 years ago
Avoid notifying empty events to listener.
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: daisuke, Assigned: daisuke)
References
Details
Attachments
(1 file)
If we call PlacesObserver.notifyListeners
with empty events.
any registering listeners received the empty events.
See the following code.
PlacesObservers.addListener("page-visit", events => {
console.log(events.length);
});
PlacesObservers.notifyListeners([]);
When run the code, we can see 0
in console.
I think we'd better avoid notifying the empty events to listeners.
Assignee | ||
Comment 1•3 years ago
|
||
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/83f9f1079744 Avoid notifying empty events. r=mak
Comment 3•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox87:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•