Trigger function command?

4 views
Skip to first unread message

thatoneguy

unread,
Oct 18, 2009, 5:39:59 PM10/18/09
to CookiePie Firefox Extension Group
I was looking through this guide on mdc:
https://developer.mozilla.org/en/Creating_Sandboxed_HTTP_Connections
and it seems to me like that could be where you got most of your infor
in making this extension.

It seems to me like it should be easier to make a consistent trigger
command to toggle it's effects though.

I had gotten moderate success out of triggering this extension's
functionality by packaging it inside another extension and using this
function -

openCookiePieTab: function(url) {

getBrowser().selectedTab = getBrowser().addTab();
Globalcookie.checked = true;
cookiepieContextMenu.DispatchEvent();
this.window()._content.document.location = url;
},

The 4th line in the function, which looks like it should trigger the
whole event, isn't even necessary for the results I did get.

The function did open up tabs with their own cookies, but the cookipie
image was not displayed on them, and cookiepie wouldn't work right on
other tabs until I had toggled it off and on in the tabs opened by
that function a few times.

So basically I'm wondering, since i haven't been able to figure it
out, what is the initial command/event, that fires off this extension?

If I knew what it was I could do wonders with it.
Reply all
Reply to author
Forward
0 new messages