Closed Bug 595639 Opened 14 years ago Closed 14 years ago

Prevent badges handlers to access the awesome row directly

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vingtetun, Assigned: vingtetun)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
This patch wrap the row into a structure to prevent the handler to access it directly and set a badge on the wrong item.
Attachment #474519 - Flags: review?(mark.finkle)
Comment on attachment 474519 [details] [diff] [review]
Patch

>diff -r 2cf977860f46 chrome/content/bindings.xml
>+              let currentUrl = item.getAttribute("url");

currentURL

>+                      if (!aBadge || aBadge == "")
>+                        item.removeAttribute("badge");
>+                      else
>+                      item.setAttribute("badge", aBadge);

Fix indent

Can you change "pageUrl" to "pageURL" here too? I missed that one
http://mxr.mozilla.org/mobile-browser/source/chrome/content/bindings.xml#1219
Attachment #474519 - Flags: review?(mark.finkle) → review+
Addressed comments.

http://hg.mozilla.org/mobile-browser/rev/66224c0d28aa
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
bugspam
Assignee: nobody → 21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: