protz/GMail-Conversation-View — pull request #511 by shirosaki (2011-11-25 20:55:34+00:00)
Title: Refactor onMessageSelected and fix inline PGP link

I refactor onMessageSelected hook. enigmail.js looks more simple.
Could you check it?

- Add onMessageSelected hook for showing security info of Enigmail

I modified event listeners for below reason.
When clicking a collapsed message, event.target has 'message' class
and focus event occurs. Click fails by show/hide security info. The message
isn't expanded.
So `classList.contains("message")` doesn't work well at the case.
Instead, I use mousedown event and other events, though it might be a little
expensive. It seems to work fine for me.
Do you have another idea?

- Add click listener to open linked URL in external browser. This fixes
an issue that clicking a link in inline PGP message causes to load URL
content into message iframe. It replaces the message body to URL
content. This happens on Mac OSX and doesn't on Windows XP.