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

onpopupshowing problem in Thunderbird 3.0 beta

3 views
Skip to first unread message

Neil Bird

unread,
Jun 13, 2009, 12:37:54 PM6/13/09
to

I have an extension which i want to get working under TB3; it seems
to have stopped. Best I can figure so far is that the following:

if (document.getElementById('messagePaneContext'))
{
document.getElementById('messagePaneContext').
addEventListener('popupshowing',urllinkMailContext,false);
}

.. is failing (I need to add items to the main mail context menu).
I've seen a hint elsewhere that 'messagePaneContext' is no longer, at
that it's now mailContext?

I can't find any docs. on this, nor any other extensions that amend
the context menu and have been updated to TB3, so I'm at a loss as to
what to try.

--
[~]# sed -e 's/\.no\.junk\.please//g' .signature > .signature+
[~]# rm -f .signature
[~]# ls -l .signature
ls: .signature: No such file or directory

Philip Chee

unread,
Jun 13, 2009, 1:35:30 PM6/13/09
to
On Sat, 13 Jun 2009 17:37:54 +0100, Neil Bird wrote:
> I have an extension which i want to get working under TB3; it seems
> to have stopped. Best I can figure so far is that the following:
>
> if (document.getElementById('messagePaneContext'))
> {
> document.getElementById('messagePaneContext').
> addEventListener('popupshowing',urllinkMailContext,false);
> }
>
> .. is failing (I need to add items to the main mail context menu).
> I've seen a hint elsewhere that 'messagePaneContext' is no longer, at
> that it's now mailContext?
>
> I can't find any docs. on this, nor any other extensions that amend

See ImportExportTools (MboxImport enhanced)
<https://nic-nac-project.org/~kaosmos/mboximport-en.html>
For an example on how to overlay the context menu in Thunderbird 3 while
remaining backward compatible with Thunderbird 2.

> the context menu and have been updated to TB3, so I'm at a loss as to
> what to try.

var cx = document.getElementById('threadPaneContext') ||
document.getElementById('mailContext');
if (cx)
cx.addEventListener('popupshowing',myEventListener,false);

and of course you will need to overlay:
<menupopup id="mailContext">
as well

Phil

--
Philip Chee <phi...@aleytys.pc.my>, <phili...@gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]COBOL programmers understand why women hate periods.
* TagZilla 0.066.6

Neil Bird

unread,
Jun 14, 2009, 7:43:08 AM6/14/09
to
Around about 13/06/09 18:35, Philip Chee scribbled ...

> See ImportExportTools (MboxImport enhanced)
> <https://nic-nac-project.org/~kaosmos/mboximport-en.html>

Excellent, thanks for that; I was hoping it was going to be that
straightforward, and in fact had gotten as far as the JS bit, but wasn't
sure about the overlay side.

Neil Bird

unread,
Jun 14, 2009, 7:45:08 AM6/14/09
to
Around about 13/06/09 18:35, Philip Chee scribbled ...
> See ImportExportTools (MboxImport enhanced)
> <https://nic-nac-project.org/~kaosmos/mboximport-en.html>

Nice extension too :)

0 new messages