Open
Bug 740793
Opened 13 years ago
Updated 2 years ago
Javascript code in Footer.html will be disabled in themes.
Categories
(Thunderbird :: Instant Messaging, defect)
Thunderbird
Instant Messaging
Tracking
(Not tracked)
NEW
People
(Reporter: alfredkayser, Unassigned)
References
(Depends on 1 open bug)
Details
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).
Comment 1•13 years ago
|
||
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•13 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).
Comment 3•13 years ago
|
||
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•13 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.
Comment 5•13 years ago
|
||
(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).
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•