Closed
Bug 1269352
Opened 8 years ago
Closed 8 years ago
Synced Tabs search box responds slowly after using it a few times
Categories
(Firefox :: Sync, defect, P1)
Tracking
()
RESOLVED
FIXED
Firefox 49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: rfeeley, Assigned: eoger)
Details
Attachments
(2 files, 1 obsolete file)
108.52 KB,
image/png
|
Details | |
3.69 KB,
patch
|
eoger
:
review+
|
Details | Diff | Splinter Review |
I noticed that when I type repeated queries into the synced tabs sidebar that the filter starts to respond slowly. Attached is a screenshot of query that took about 10 seconds to respond.
Updated•8 years ago
|
Flags: firefox-backlog+
Priority: -- → P1
Assignee | ||
Comment 1•8 years ago
|
||
Very good catch Ryan! The view's _create function is called every time we clear the search, the problem is it was creating duplicate listeners for UI components that were not deleted or changed in anyway.
Comment 2•8 years ago
|
||
Comment on attachment 8748306 [details] [diff] [review] bug-1269352.patch Review of attachment 8748306 [details] [diff] [review]: ----------------------------------------------------------------- Looks great, thanks! ::: browser/components/syncedtabs/TabListView.js @@ +80,3 @@ > this.list = this.container.querySelector(".list"); > > + this.list.addEventListener("click", this.onClick.bind(this)); I think it would be clearer to have a new function _attachListListeners (and optionally renaming the existing one to _attachFixedListeners or similar) with a comment indicating that the new one needs to be called each time the list is recreated and the other one once. I'm just concerned that someone later will think the fact we didn't add these into addListeners was an oversight.
Attachment #8748306 -
Flags: review?(markh) → review+
Assignee | ||
Comment 3•8 years ago
|
||
Carrying r+ forward with fixes
Attachment #8748306 -
Attachment is obsolete: true
Attachment #8748791 -
Flags: review+
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 5•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/35f90f41182e
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
You need to log in
before you can comment on or make changes to this bug.
Description
•