Javascript code in Footer.html will be disabled in themes.

NEW
Unassigned

Status

Thunderbird
Instant Messaging
6 years ago
6 years ago

People

(Reporter: Alfred Kayser, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
When a theme (such as Nautipolis or Walnut) wants to include their own styling on the chat messages (by defining chrome://messages/skin), also the Footer.html needs to be includes (as that is also in messages/skin/). But Footer.html contains javascript which is disallowed in /skin/.

Or in short, the Javascript code in Footer.html should be moved to /content/.

(as stated in bug 714733 comment 105, Footer.html should be actually in content).
(Reporter)

Updated

6 years ago
Blocks: 714733
I've talked to Florian about this a couple of times on IRC and we're not really sure what the report is in this bug. Are you suggesting that Footer.html should not include JavaScript? Why?
(Reporter)

Comment 2

6 years ago
Because if a theme wants to style the chat panel, it also has to include the Footer stuff, including the .js files, as they are all located in chrome://messages/skin/.
Footer.html and the js inside of Footer.html is not allowed in chrome://messages/skins/ (because of security reasons).
So the concerns are theoretical and not because you've actually seen something not working?

The files of a messagetheme aren't shown directly. They're html snippets for a message/content message/the conversations 'footer'/... They are loaded from their (chrome-)URIs as text, parsed and inserted into a browser to show your conversation.
(Reporter)

Comment 4

6 years ago
Not theoretical.

I have created several themes for Thunderbird, such a LittleFox, Nautipolis and Walnut. These also have styling for the chat panels. As this also needs inclusion of the chrome://messages/skin/ there is now javascript code include. This is refused by AMO, and when imported into a Thunderbird this javascript code is blocked, so that some functionality in the chat panel no longer works.
(In reply to Alfred Kayser from comment #4)

> I have created several themes for Thunderbird, such a LittleFox, Nautipolis
> and Walnut. These also have styling for the chat panels. As this also needs
> inclusion of the chrome://messages/skin/ there is now javascript code
> include. 

> This is refused by AMO,

Was your updated theme rejected by an automated process, or by an AMO editor?

> and when imported into a Thunderbird this
> javascript code is blocked, so that some functionality in the chat panel no
> longer works.

That seems very surprising, as the current Footer.html is in skin already (http://mxr.mozilla.org/comm-central/source/mail/components/im/jar.mn#31).

If you still think this file is causing an issue, I would need to look at your theme to understand what's going on (so either attach here, or email to me the version that contains these changes and that is refused on AMO).
You need to log in before you can comment on or make changes to this bug.