As you probably know already, people developing add-ons with the SDK can use third-party packages
to fill gaps in the SDK's core API. But many people using the SDK don't know this, or have trouble finding and using them.
I'm planning to write a blog post for the AMO blog highlighting some third-party packages, just including pointers to them and short examples showing their use. I'd love some guidance about which packages to include. Are there packages you find particularly useful, that other people could benefit from using as well?
On a separate topic, are there any packages that you wish someone would write?
Thanks!
Will
--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To post to this group, send email to mozilla-la...@googlegroups.com.
To unsubscribe from this group, send email to mozilla-labs-jet...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mozilla-labs-jetpack?hl=en.
On Oct 2, 2012 12:30 PM, "Will Bamberg" <wbam...@mozilla.com> wrote:
>
> Thanks! I was thinking of adding that I'd prefer they weren't *all* written by Erik, but that might be a vain hope :-).
>
Mhh, aside from those I mentioned I just used my own modules (now badly outdated) or the core ones... Well, recently I used a nodeJS Bayesian Classifier module from Heather Arthur (http://github.com/harthur/classifier) with some slight modifications to make it work in the SDK.
Hernan
> Will
>
>
> On 12-10-02 6:21 AM, Christian Sonne wrote:
>>
>> +1
>>
>> I'm pretty sure the only third party packages I've ever used were
>> written by Erik...
>>
>> -- cers / Christian Sonne
>>
>>
>> On Tue, Oct 2, 2012 at 3:19 PM, Hernan Rodriguez Colmeiro
>> <colm...@gmail.com> wrote:
>>>
>>> On Mon, Oct 1, 2012 at 9:19 PM, Will Bamberg <wbam...@mozilla.com> wrote:
>>>>
>>>> As you probably know already, people developing add-ons with the SDK can use
>>>> third-party packages to fill gaps in the SDK's core API. But many people
>>>> using the SDK don't know this, or have trouble finding and using them.
>>>>
>>>> I'm planning to write a blog post for the AMO blog highlighting some
>>>> third-party packages, just including pointers to them and short examples
>>>> showing their use. I'd love some guidance about which packages to include.
>>>> Are there packages you find particularly useful, that other people could
>>>> benefit from using as well?
>>>>
>>> Some packages that I find incredibly useful are those written by Erik Vold:
>>>
>>> UserStyles: https://github.com/voldsoftware/userstyles-jplib
>>> MenuItems: https://github.com/voldsoftware/menuitems-jplib
>>> ToolbarButton: https://github.com/voldsoftware/toolbarbutton-jplib
>>>
>>> Hernán
As you probably know already, people developing add-ons with the SDK can use third-party packages to fill gaps in the SDK's core API. But many people using the SDK don't know this, or have trouble finding and using them.
I'm planning to write a blog post for the AMO blog highlighting some third-party packages, just including pointers to them and short examples showing their use. I'd love some guidance about which packages to include. Are there packages you find particularly useful, that other people could benefit from using as well?
On a separate topic, are there any packages that you wish someone would write?
So I'd love a simple, opinionated module that manages an addon page and its communication with the main script.
On Wed Oct 3 05:18:07 2012, Paul Morris wrote:So I'd love a simple, opinionated module that manages an addon page
and its communication with the main script.
+1
I never understood why an add-on needed to use message passing to talk
to its own internal add-on pages (since there's not the same security
concerns with internal html files, although I guess an internal html
page might embed potentially risky external content somehow?).
That's true, this is why we added `addon` property:
https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit/widget.html
(see "Scripting Trusted Widget Content").
Using `addon` you don't need to have content scripts for trusted pages.
postMessage()
API or the port
API. The crucial difference is that these scripts access thepostMessage
and port
objects through the addon
object, whereas content scripts access them through the self
object."The Addon Page should have the same property – that was the original
plan – but wasn't implemented – and it's waiting to be implemented,
it's in the todo list.
In general we use message passing not only because security, but also
to avoid synchronous operation, that couldn't be done easily in case
the content script and the add-on script are running on different
processes.