Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem: mozilla sends `quit-application-requested' notification only on File|Exit :(

1 view
Skip to first unread message

Lev Serebryakov

unread,
Mar 4, 2005, 10:07:29 AM3/4/05
to

I'm writing extenstion, which needs to know, when exit process is initiated
(XPCOM component needs to know this).
My compomnetnt registeres itself as observer for `quit-application-requested'
topic. Results are wary:

FireFox 1.0.x: it works (and component could even abort exiting! It is
cool!).
Mozilla 1.7.5: it works ONLY if user selects `File|Exit' and DOESN'T WORK
if user closes last window! It is VERY bad.

Which is proper way to warn user, that she has unsaved `work' from extension?

Lev Serebryakov
Programmer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


Errol Smith

unread,
Mar 5, 2005, 10:50:43 PM3/5/05
to
On Fri, 4 Mar 2005 15:07:29 +0000 (UTC), Lev Serebryakov wrote:

> I'm writing extenstion, which needs to know, when exit process is initiated
>(XPCOM component needs to know this).
> My compomnetnt registeres itself as observer for `quit-application-requested'
>topic. Results are wary:
>
> FireFox 1.0.x: it works (and component could even abort exiting! It is
>cool!).
> Mozilla 1.7.5: it works ONLY if user selects `File|Exit' and DOESN'T WORK
>if user closes last window! It is VERY bad.

Hmm, so using this someone could write a malicious extension that
would stop me from exiting firefox/mozilla when I wanted to, and force
me to look at their advertisement etc until I killed the process?
Sounds good... Not..

Errol Smith
errol <at> ros (dot) com [period] au

Lev Serebryakov

unread,
Mar 7, 2005, 4:55:22 AM3/7/05
to

ES> Hmm, so using this someone could write a malicious extension that
ES> would stop me from exiting firefox/mozilla when I wanted to, and
ES> force
ES> me to look at their advertisement etc until I killed the process?
ES> Sounds good... Not..
Sorry, but it is not argument at all. Because YOU should thinks when installs
extension. Mozilla and FireFox WARNS you, that you should trust source of
extension.
I say more: it is posiible yo write extension, whcih remove ALL files from
you HDD, whcih you could delete by yourself. Is it Ok?

0 new messages