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)

49 Branch
x86
macOS
defect

Tracking

()

RESOLVED FIXED
Firefox 49
Tracking Status
firefox49 --- fixed

People

(Reporter: rfeeley, Assigned: eoger)

Details

Attachments

(2 files, 1 obsolete file)

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.
Flags: firefox-backlog+
Priority: -- → P1
Attached patch bug-1269352.patch (obsolete) — Splinter Review
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.
Assignee: nobody → edouard.oger
Status: NEW → ASSIGNED
Attachment #8748306 - Flags: review?(markh)
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+
Carrying r+ forward with fixes
Attachment #8748306 - Attachment is obsolete: true
Attachment #8748791 - Flags: review+
Keywords: checkin-needed
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.

Attachment

General

Created:
Updated:
Size: