Closed Bug 974652 Opened 11 years ago Closed 11 years ago

Add aWidgetId and aArea to INFO()'d message when failing in onWidgetRemoved

Categories

(Firefox :: Toolbars and Customization, defect)

29 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 33

People

(Reporter: quicksaver, Assigned: rittme, Mentored)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Australis:P5][good first bug][lang=js])

Attachments

(1 file)

Here: http://mxr.mozilla.org/mozilla-central/source/browser/components/customizableui/src/CustomizableUI.jsm#730 Personally, my add-on(s) seem to be triggering that message very often when disabled, but all the widgets they insert are removed correctly (and it doesn't trigger it on every widget, in fact it's quite random the amount/frequency with which that message appears). I can't figure out what widget/action is causing that message exactly, not even by keeping track of every on* event that CUI dispatches (weird, right?!). The ID of the widget in that message would go a long way.
Also perhaps the aArea parameter passed as well? Something like "Widget aWidgetId not found, unable to remove from aArea".
This should just add the relevant strings into the message in the code linked in comment #0.
Whiteboard: [Australis:P5][mentor=Gijs][lang=js]
Whiteboard: [Australis:P5][mentor=Gijs][lang=js] → [Australis:P5][good first bug][mentor=Gijs][lang=js]
Mentor: gijskruitbosch+bugs
Whiteboard: [Australis:P5][good first bug][mentor=Gijs][lang=js] → [Australis:P5][good first bug][lang=js]
I think this should do it.
Attachment #8449014 - Flags: review?(MattN+bmo)
Comment on attachment 8449014 [details] [diff] [review] rev 1 - changed INFO to contain relevant strings Thanks, looks good!
Attachment #8449014 - Flags: review?(MattN+bmo) → review+
The logging-only change shouldn't require a Try push.
Keywords: checkin-needed
The bug summary can be used as the commit message: "Bug 974652 - Add aWidgetId and aArea to INFO()'d message when failing in onWidgetRemoved. r=MattN"
Summary: Australis debug suggestion: add aWidgetId to INFO()'d message when failing to remove widget → Add aWidgetId and aArea to INFO()'d message when failing in onWidgetRemoved
Keywords: checkin-needed
Whiteboard: [Australis:P5][good first bug][lang=js] → [Australis:P5][good first bug][lang=js][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P5][good first bug][lang=js][fixed-in-fx-team] → [Australis:P5][good first bug][lang=js]
Target Milestone: --- → Firefox 33
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: