Closed
Bug 907374
Opened 11 years ago
Closed 10 years ago
Button API
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: irakli, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
No description provided.
Reporter | ||
Comment 1•11 years ago
|
||
Attachment #793073 -
Flags: feedback?(evold)
Reporter | ||
Comment 2•11 years ago
|
||
Comment on attachment 793073 [details]
JEP
><meta http-equiv="refresh" content="5;https://github.com/mozilla/addon-sdk/wiki/JEP-Navbar-Button-2"/>
><a href="https://github.com/mozilla/addon-sdk/wiki/JEP-Navbar-Button-2">
>https://github.com/mozilla/addon-sdk/wiki/JEP-Navbar-Button-2
></a>
Attachment #793073 -
Attachment mime type: text/plain → text/html
Reporter | ||
Updated•11 years ago
|
Attachment #793073 -
Flags: feedback?(zer0)
Reporter | ||
Comment 3•11 years ago
|
||
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.
Reporter | ||
Comment 4•11 years ago
|
||
Pointer to Github pull-request
Reporter | ||
Updated•11 years ago
|
Attachment #793224 -
Flags: feedback?(evold)
Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 793073 [details]
JEP
><meta http-equiv="refresh" content="5;https://github.com/mozilla/addon-sdk/wiki/JEP-Navbar-Button-2"/>
><a href="https://github.com/mozilla/addon-sdk/wiki/JEP-Navbar-Button-2">
>https://github.com/mozilla/addon-sdk/wiki/JEP-Navbar-Button-2
></a>
Attachment #793073 -
Flags: feedback?(zer0)
Attachment #793073 -
Flags: feedback?(evold)
Reporter | ||
Updated•11 years ago
|
Attachment #793073 -
Attachment is obsolete: true
Reporter | ||
Updated•11 years ago
|
Attachment #793224 -
Flags: feedback?(zer0)
Comment 6•11 years ago
|
||
"I don't think it is worth spending any more time arguing on this, Irakli can make the final call.
Updated•11 years ago
|
Attachment #793224 -
Flags: feedback?(evold)
Comment 7•11 years ago
|
||
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.
Priority: -- → P1
Comment 8•11 years ago
|
||
(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 9•11 years ago
|
||
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)
Updated•11 years ago
|
Blocks: sdk/ui/button
Comment 10•10 years ago
|
||
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.
Description
•