mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-15 17:55:15 -10:00
The local device removal path used by RDM had a bug in its `findIndex` call which caused it to always return `true` for the first device. Effectively this meant that each separate device removal button always removed the first device! This would lead to all sorts of user confusion and UI divergence. Here we clean this up by allowing the caller (RDM in this case) to specify via a callback which device is intended for removal. MozReview-Commit-ID: 22VwEDZAXOa