Closed Bug 810419 Opened 13 years ago Closed 13 years ago

Duplicate Tools > Social Provider ambient-menuitems are not removed

Categories

(Firefox Graveyard :: SocialAPI, defect)

19 Branch
defect
Not set
normal

Tracking

(firefox17 wontfix, firefox18+ verified, firefox19 verified)

VERIFIED FIXED
Firefox 19
Tracking Status
firefox17 --- wontfix
firefox18 + verified
firefox19 --- verified

People

(Reporter: jaws, Assigned: jaws)

References

Details

Attachments

(1 file)

After bug 808213 got fixed, I noticed some duplicate menuitem entries in the keyboard-access Tools > Facebook Messenger menu. I added some logging statements to the code and saw this: Starting to populate Previously had 0 ambient-menuitems Now after removal, there are 0 ambient-menuitems left Adding friends-jewel Finished populating Starting to populate Previously had 1 ambient-menuitems Removing See All Friend Requests Now after removal, there are 0 ambient-menuitems left Adding friends-jewel Adding messages-jewel Finished populating Starting to populate Previously had 2 ambient-menuitems removing See All Friend Requests Now after removal, there are 1 ambient-menuitems left Adding friends-jewel Adding messages-jewel Adding notifications-jewel Finished populating I'm not sure why the second menuitem wasn't removed in that third pass through of updates.
I assume this affects Firefox 17 through 19?
Yes, it appears so. I've narrowed this down to a bug in the JS engine's implementation of for-of loops and filed bug 810438.
I would argue wontfix for Firefox 17 given how close we are to release, unless you feel it is critical.
OS: Windows 7 → All
Hardware: x86_64 → All
Attached patch PatchSplinter Review
This works around the JS bug by using a different approach to clear the menu. Pushed to tryserver, https://tbpl.mozilla.org/?tree=Try&rev=8416e60ae941
Attachment #680180 - Flags: review?(felipc)
Attachment #680180 - Flags: review?(felipc) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
Blocks: 801040
Comment on attachment 680180 [details] [diff] [review] Patch [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 801040 User impact if declined: duplicate menuitems in the social menu Testing completed (on m-c, etc.): m-c and in testsuite Risk to taking this patch (and alternatives if risky): none expected, trivial change String or UUID changes made by this patch: none Assuming wontfix for Fx17 due to the timing.
Attachment #680180 - Flags: approval-mozilla-aurora?
Attachment #680180 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Marking verified fixed since this landed with tests. Please add verifyme keyword if there's something you need QA to test.
Status: RESOLVED → VERIFIED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: