Thanks for the snippet Irakli, but I think you agree that Alexandre's
way is the right way to go.
Thanks Alex! I applied the patch and it seems to be working perfectly.
Wish I could have figured that out. Any resources available that would
help me in that regard, besides reading the source of other modules?
Also, patching modules should carry over when publishing the addon,
right? WIthout conflicting with other addons using other versions of
the same modules?
On Dec 30, 6:59 am, Irakli Gozalishvili <
rfo...@gmail.com> wrote:
> That's great Alex!
>
> I think you should assign that review to someone or bring it up during
> weekly meeting!
>
> Cheers!
> --
> Irakli Gozalishvili
> Web:
http://www.jeditoolkit.com/
> Address: 29 Rue Saint-Georges, 75009 Paris, France <
http://goo.gl/maps/3CHu>
>
> On Thu, Dec 30, 2010 at 12:54, Alexandre poirot <
poirot.a...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Same workflow than yesterday.
>
> > Feature request on bugzilla, with a patch:
> >
https://bugzilla.mozilla.org/show_bug.cgi?id=622077
>
> > Example of use:
> > const tabs = require("tabs");
>
> > let lastWorker;
> > tabs.on('activate', function(tab) {
>
> > lastWorker = tab.createWorker({
> > window: tab.window,
> > contentScript: 'document.body.style.border="10px solid red";',
> > contentScriptWhen: 'ready'
> > });
> > });
>
> > And again, comments are welcome!
>
> > 2010/12/30 Irakli Gozalishvili <
rfo...@gmail.com>
>
> >> Your solution is indeed pretty hacky. I've gisted a snippet for a simpler
> >> (but still) a hack for you:
>
> >>
https://gist.github.com/759683
>
> >> Regards
> >> --
> >> Irakli Gozalishvili
> >> Web:
http://www.jeditoolkit.com/
> >> Address: 29 Rue Saint-Georges, 75009 Paris, France<
http://goo.gl/maps/3CHu>
>
> >> On Wed, Dec 29, 2010 at 16:24, ehsanul <
ehsanul...@gmail.com> wrote:
>
> >>> Arun, the way I'm going to be working around this is by actually
> >>> tracking every user-initiated event on every web page, relaying that
> >>> back to the main addon script. Then, the addon script will keep track
> >>> of which worker most recently sent a message saying "active" or
> >>> something. Then I'll always have the most recently active web page's
> >>> worker stored in a variable.
>
> >>> It's a really hacky solution, but I expect it to work. I'll be working
> >>> on it later today. Why don't you give it a try yourself?
>
> >>> But yeah, I really expect there to be a built-in way to do this, and
> >>> it looks like there's none in Jetpack.
>
> >>> On Dec 29, 4:07 am, arun <
arunteva...@gmail.com> wrote:
> >>> > Any updates??
>
> >>> --
> >>> 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<mozilla-labs-jetpack%2Bun
subs...@googlegroups.com>
> >>> .
> >>
mozilla-labs-jet...@googlegroups.com<mozilla-labs-jetpack%2Bun
subs...@googlegroups.com>
> >> .
> > To unsubscribe from this group, send email to
> >
mozilla-labs-jet...@googlegroups.com<mozilla-labs-jetpack%2Bun
subs...@googlegroups.com>
> > .