Please cancel your mailing list went to avantages tanks


----- Original Message ----
From: "dev-extensions-request@lists.mozilla.org"
To: dev-extensions@lists.mozilla.org
Sent: Sunday, March 9, 2008 5:10:17 PM
Subject: dev-extensions Digest, Vol 27, Issue 10

Send dev-extensions mailing list submissions to
dev-extensions@lists.mozilla.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.mozilla.org/listinfo/dev-extensions
or, via email, send a message with subject or body 'help' to
dev-extensions-request@lists.mozilla.org

You can reach the person managing the list at
dev-extensions-owner@lists.mozilla.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dev-extensions digest..."


Today's Topics:

1. Re: Security Manager vetoed action in FF3? (John J Barton)
2. Re: Security Manager vetoed action in FF3? (Mike Shaver)
3. Rejecting a document with shouldLoad throws an exception
(kaos25000@hotmail.com)
4. Re: Jars in Thunderbird? (Mook)
5. Re: Why the status bar is not updated in time? (Bo Yang)
6. What's the differents between the literal and simulated key
events (fireinice)
7. Re: How to CHANGE Firefox behaviour, not ADD (stony_dreams)
8. Re: How to CHANGE Firefox behaviour, not ADD (Marco De Vitis)
9. Re: Rejecting a document with shouldLoad throws an exception
(kaos25000@hotmail.com)
10. can a extension access javascript events ina page (Pushpen Singh)
11. ourtalents.com (drvsubramaniam@gmail.com)


----------------------------------------------------------------------

Message: 1
Date: Fri, 07 Mar 2008 11:42:12 -0800
From: John J Barton
Subject: Re: Security Manager vetoed action in FF3?
To: dev-extensions@lists.mozilla.org
Message-ID:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

John J Barton wrote:
> in FF3.0b4pre I am getting an exception
> NS_ERROR_XPC_SECURITY_MANAGER_VETO on
> delete win.console;
> where the code is in an extension and win is a content window.
> But I can do:
>
> win.console = new FirebugConsole(context, win);
>
> So why do I get the exception on delete?
>
> John.


Is this a bug or feature of new FF3?

John


------------------------------

Message: 2
Date: Fri, 7 Mar 2008 16:08:35 -0500
From: "Mike Shaver"
Subject: Re: Security Manager vetoed action in FF3?
To: "John J Barton"
Cc: dev-extensions@lists.mozilla.org
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

On Fri, Mar 7, 2008 at 2:42 PM, John J Barton
wrote:
> John J Barton wrote:
> > in FF3.0b4pre I am getting an exception
> > NS_ERROR_XPC_SECURITY_MANAGER_VETO on
> > delete win.console;
> > where the code is in an extension and win is a content window.
> > But I can do:
> >
> > win.console = new FirebugConsole(context, win);
> >
> > So why do I get the exception on delete?
> >
> > John.

>
> Is this a bug or feature of new FF3?


Sounds like a bug; break where XPC_SECURITY_MANAGER_VETO is thrown and
see what's up, or just file with a testcase and see if someone else
can?

Mike


------------------------------

Message: 3
Date: Fri, 7 Mar 2008 18:53:46 -0800 (PST)
From: kaos25000@hotmail.com
Subject: Rejecting a document with shouldLoad throws an exception
To: dev-extensions@lists.mozilla.org
Message-ID:
<2106d748-4046-41f8-82f9-55ee56be6fa6@i7g2000prf.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

My problem is fairly simple and not so threatening to my extension.
I'd like to fix it though....

I registered a content policy and if I try to reject a document, I get
an exception in browser.xml, from loadURIWithFlags...

Error: [Exception... "Component returned failure code: 0x805e000a
[nsIWebNavigation.loadURI]" nsresult: "0x805e000a ()"
location: "JS frame :: chrome://global/content/bindings/browser.xml ::
loadURIWithFlags :: line 170" data: no]
Source File: chrome://global/content/bindings/browser.xml
Line: 170

The strange thing is that this only happens when I open a new tab in
foreground (ex. opening a bookmark with "Open in new tab"). Openings
links in the same tab, in a new window and in a new tab in background
does not throw this exception.

Thanks for all your help in advance.


------------------------------

Message: 4
Date: Fri, 07 Mar 2008 21:44:49 -0800
From: Mook
Subject: Re: Jars in Thunderbird?
To: dev-extensions@lists.mozilla.org
Message-ID:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Ioana Giurgiu wrote:
> Hi guys,
>
> Has anyone tried to use JAR libraries in Thunderbird? As an alternative to web services? I tried the following code snippet:
>

You mean Java libraries; I thought you were asking about the zip reader
for a second there

No, Thunderbird does not build with Java (or even, as far as I know,
plugin) support in its default configuration. You would require a
custom built Thunderbird with it specifically turned on to have that.

HTH,

--
Mook


------------------------------

Message: 5
Date: Sat, 08 Mar 2008 19:39:30 +0800
From: Bo Yang
Subject: Re: Why the status bar is not updated in time?
To: dev-extensions@lists.mozilla.org
Message-ID: <_MadnYsi75Zv50_anZ2dnUVZ_qDinZ2d@mozilla.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Neil :
> Bo Yang wrote:
>
>> Mook wrote:
>>
>>> Bo Yang wrote:
>>>
>>>> In one of my extension, I have to do a bunch of operation to achieve
>>>> a task. And I want to display in the status bar some text to
>>>> indicate the user that we are doing some works. And I use the
>>>> following code:
>>>
>>> Are you giving it a chance to update? Just setting the status doesn't
>>> force a repaint, you need to let the next event come in (typically,
>>> meaning you need to setTimeout/setInterval and do the rest in the
>>> callback).

>>
>> I am sorry, I did not under you need to setTimeout/setInterval and do
>> the rest in the callback. Could you please explain more for me ? Thank
>> you very much!

>
> For performance reasons, DOM changes do not immediately update the
> display. Instead the display is only updated when your task finishes.
> You therefore need to create two tasks. The first one sets the label and
> then typically uses setTimeout to start the second task in a short while
> which should allow the display to update in between.
>

Thank you, Neil! I understand now! Thanks!

Regards!
Bo


------------------------------

Message: 6
Date: Sat, 8 Mar 2008 10:25:56 -0800 (PST)
From: fireinice
Subject: What's the differents between the literal and simulated key
events
To: dev-extensions@lists.mozilla.org
Message-ID:
<14525223-36e5-4936-a1e6-f5f8af8dd777@e10g2000prf.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

I am writing a script to work with google reader. As we know google
reader has some shortkeys. And I want to use the codes below to
simulate some keystrokes to make some work automatically done.

var event = document.createEvent('KeyboardEvent');
event.initKeyEvent('keypress', true, true, null, false, false,
true, false, 0, character.charCodeAt(0));
document.dispatchEvent(event);

The codes did fantastic work with google reader until about two days
ago. It seems like that google upgraded its codes. And the reader does
not response to this codes any more even "keyup" and "keydown" event.
However, the shortkeys are working as usual.
So what's the defferents between the event that generates from a
literal keystroke and one that creates by createEvent method in a
javascript script? How google codes can identify them?


------------------------------

Message: 7
Date: Sat, 8 Mar 2008 14:12:56 -0800 (PST)
From: stony_dreams
Subject: Re: How to CHANGE Firefox behaviour, not ADD
To: dev-extensions@lists.mozilla.org
Message-ID:
<239e5db0-9d97-4ea6-91eb-5c16f40d119d@m36g2000hse.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

On Mar 5, 5:31 pm, Marco De Vitis wrote:
> Hi,
> I'm updating an extension I developed, and I'd need to somehow alter the
> behaviour of the code used when the user does a search using the Search
> Bar: normally, if your preferences are to open pages in new tabs, and
> you enter a search term and press Alt+Enter (on a Mac, I suppose on Win
> it's similar), the search results are opened in a new tab.
> I need to intercept this "new tab" call, check the content of the
> *current* tab, and then, based on the check result, open the search
> results in the current tab or in a new one.
>
> As far as I could see, there are three spots where I could theoretically
> insert my code:
>
> 1. The whereToOpenLink function in utilityOverlay.js.
>
> 2. The handleSearchCommand or doSearch methods in search.xml.
>
> 3. The BrowserSearch_search function in browser.js.
>
> What is the best and correct way to proceed in such cases? I suppose
> "overwriting" the original functions is not a great idea. Is there a
> suitable progress listener? What else?
>
> Most examples deal with ADDING something to the browser, so I'm pretty
> lost regarding how to MODIFY its behaviour instead :-/. I already had
> successful results with the previous version of my extension, but I'd
> like to be sure I'm doing it right this time.
> I've read quite a few docs, asked on IRC, asked on Mozillazine... to no
> avail.
>
> Thanks a lot for any pointers.
>
> --
> Ciao,
> Marco.


If you are just concerned with writing your codes on tab switches, you
can very well use the Tab Event Listeners. See the link :
http://developer.mozilla.org/en/docs...Tabbed_browser
for details. In each event object you can get the event._tPos to get
the positional index of the tab that fired the particular event.

HTH


------------------------------

Message: 8
Date: Sun, 09 Mar 2008 00:40:50 +0100
From: Marco De Vitis
Subject: Re: How to CHANGE Firefox behaviour, not ADD
To: dev-extensions@lists.mozilla.org
Message-ID:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Il 8-03-2008 23:12, stony_dreams ha scritto:

> If you are just concerned with writing your codes on tab switches, you
> can very well use the Tab Event Listeners. See the link :


Well, I'm not sure that's what I need, because I'm interested in
listening for searches from the searchbar... if I listen for tab
operations, wouldn't it be too late to change the "where to open
results" behaviour, now that the open tab event has been fired?

Thanks anyway, I'm browsing developer.mozilla.org since a few days and
maybe I'm (very) slowly getting the hang of it, mostly thanks to real
world examples (i.e. other extensions), although I would strongly prefer
to have more official documentation, and that's a real pity; I do not
like to just imitate other people's work, I like doing it the right way.

--
Ciao,
Marco.


------------------------------

Message: 9
Date: Sun, 9 Mar 2008 11:18:49 -0700 (PDT)
From: kaos25000@hotmail.com
Subject: Re: Rejecting a document with shouldLoad throws an exception
To: dev-extensions@lists.mozilla.org
Message-ID:
<2fe939cf-18c2-48c4-8f2a-31a74b1d2784@s13g2000prd.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

On Mar 7, 10:53 pm, kaos25...@hotmail.com wrote:
> My problem is fairly simple and not so threatening to my extension.
> I'd like to fix it though....
>
> I registered a content policy and if I try to reject a document, I get
> an exception in browser.xml, from loadURIWithFlags...
>
> Error: [Exception... "Component returned failure code: 0x805e000a
> [nsIWebNavigation.loadURI]" nsresult: "0x805e000a ()"
> location: "JS frame :: chrome://global/content/bindings/browser.xml ::
> loadURIWithFlags :: line 170" data: no]
> Source File: chrome://global/content/bindings/browser.xml
> Line: 170
>
> The strange thing is that this only happens when I open a new tab in
> foreground (ex. opening a bookmark with "Open in new tab"). Openings
> links in the same tab, in a new window and in a new tab in background
> does not throw this exception.
>
> Thanks for all your help in advance.


I did some further testing and it seems that this exception is thrown
whenever a document is rejected in a new tab (foreground and
background). Adblock also encountered the same problem when it tried
to pageblock.

Is it a normal behavior (no document in the tab thus
webNavigation.loadURI throws) or is it a bug ?


------------------------------

Message: 10
Date: Mon, 10 Mar 2008 01:46:18 +0530
From: "Pushpen Singh"
Subject: can a extension access javascript events ina page
To:
Message-ID: <002901c88222$715d54a0$a20210ac@kklol1e0bea19b>
Content-Type: text/plain; charset="iso-8859-1"

Suppose I have a html page with many check boxes .
A user can mark the check boxes as checked.

I want to develop an extension which will tell me which check boxes have been checked,
and also parse the whole page and send some information to a remote database.

It is possible to do all these with an extension?

-pushpen

------------------------------

Message: 11
Date: Sun, 9 Mar 2008 14:08:50 -0700 (PDT)
From: drvsubramaniam@gmail.com
Subject: ourtalents.com
To: dev-extensions@lists.mozilla.org
Cc: arunasubbiah@hotmail.com
Message-ID:
<8897b08b-0810-409d-b1b3-02ff2eff6f28@e6g2000prf.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

We are a young and old intellectual adventurers with a clear sense of
purpose : to make the world a better place to live in,work with and
enjoy the fruits of daily labor with our own intellectual and
artistic pursuits. We are not interested in blocks,-isms,politicking
and taking sides in any argument.In fact our goal is to create all
probable opportunities for a non-polluting environment for clearly
inclusive and positive thinking.

In approaching our simple target of making every one happy,we thought
that reinforcing our own talents could be a very good starting point.
Hence we need your collaboration and response in projecting a new
group under the overall umbrella of Usenet group wherein everyone
interested could come up with a brief and relevant entry on any new
achievement. We are certain that users will not tend to misuse this
space for posting autobiographies of their own achievements . But
seek such talented actions in all others around them in any walk of
life and reinforce that spark of an inspiring talent.

Talents are skills,mindset,attitudes and behavioral patterns. In all
of us human beings, talents are aplenty and we could talk about them
in great detail. Animals and birds do have them too .But they can't
verbalize them...Or can they in a language we do not quite follow ?

Children and young people are very talented because they tend to
emulate their own Models, at least to begin with .Such talents are
identifiable as latent talents.As we grow up such talents become
ingrained in our behavior in all kinds of occasions we come across:
that go on to collectively build our character. In the good old days
people were contemplating about " Character is destiny " ! May be they
were right , may be they were partially right ... we wish to extend
their thinking by saying " Character is a record of talents
accumulated ".

Hence to start with we offer every one an opportunity - endless - for
exchanging reports talents of all sorts.Please join us and let us
move forward towards a more talented world !

Happy talents hunting. Au revoir !


------------------------------

_______________________________________________
dev-extensions mailing list
dev-extensions@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-extensions


End of dev-extensions Digest, Vol 27, Issue 10
**********************************************


Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php