Closed Bug 907374 Opened 11 years ago Closed 10 years ago

Button API

Categories

(Add-on SDK Graveyard :: General, defect, P1)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: irakli, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Attached file JEP (obsolete) —
Attachment #793073 - Flags: feedback?(evold)
Attachment #793073 - Flags: feedback?(zer0)
Blocks: 907379
Summary: Discuss button API → Button API
BTW I have also noticed that there is no way to react to new contexts in which button is created to override state. I think this is unfortunate and specially relevant in case of location bar buttons where tab can be reloaded many times and button state is very specific to location. At the moment it seems like one needs to observe all tabs manually to make sure that state specific to it is up to date. I think something like `onContext` hook would be ideal to return state specific to those contexts. For example bookmark button would query bookmarks API to make button checked or unchecked.
Attachment #793224 - Flags: feedback?(evold)
Attachment #793073 - Attachment is obsolete: true
Attachment #793224 - Flags: feedback?(zer0)
"I don't think it is worth spending any more time arguing on this, Irakli can make the final call.
To me, is still worthy. Sure, we should had this discussion time ago, but we're still in time. If you don't mind about the solution we'll choose, as it seems Erik, I can have a quick 1:1 meeting with Irakli during the work week to define the last details I'm not convinced about – as I wrote in the comment in the JEP, mostly the button with Panel. Because we're talking about High Level API, I'd like to show such code also to Mossop and Jeff to see what they think – like we did during the previous JEP for the Button, their opinions were really useful if you remember, especially to identify what it looks like easier to the common developers.
(In reply to Irakli Gozilalishvili [:irakli] [:gozala] [@gozala] from comment #3) > BTW I have also noticed that there is no way to react to new contexts in > which button is created to override state. I think this is unfortunate and > specially > relevant in case of location bar buttons where tab can be reloaded many times > and button state is very specific to location. At the moment it seems like > one > needs to observe all tabs manually to make sure that state specific to it is > up to date. I think something like `onContext` hook would be ideal to return > state > specific to those contexts. For example bookmark button would query > bookmarks API > to make button checked or unchecked. This is a very good point.
Comment on attachment 793224 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/1214 I just removed myself from the feedback here, because the API was landed. I will update the JEP for Button API in order to merge them; e create a different PR for anchored panels.
Attachment #793224 - Flags: feedback?(zer0)
This is all done
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: