Malfunctions of overlay loader [meta]
Categories
(MailNews Core :: XUL Replacements, defect)
Tracking
(Not tracked)
People
(Reporter: jorgk-bmo, Unassigned)
References
Details
(Keywords: meta)
Attachments
(3 files)
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
Reporter | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Reporter | ||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Reporter | ||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
I posted a query on discourse.mozilla.org: XUL preferences window is missing its groupbox labels.
No answer, so asking here: is this a fault in the legacy overlay loader?
Comment 17•6 years ago
|
||
Dave, bug 1493844 removed the "caption" and "groupbox" bindings. Since then you need to change <groupbox><caption label="&size.label;"/> to <groupbox><caption>&size.label;</caption>. I haven't checked if the new notation is backward safe.
This has nothing to do with the overlay loader but wit the ongoing removal of XBL bindings we need to follow.
Comment 18•6 years ago
|
||
I've been working on porting my legacy XUL add-on, Clippings for Thunderbird, to Thunderbird 65, closely following the migration guide [1]. I have added the manifest.json file. My add-on has two JavaScript XPCOM components, and there are XUL overlays defined for the following:
- chrome://messenger/content/messenger.xul
- chrome://messenger/content/messengercompose/messengercompose.xul
- chrome://messenger/content/messageWindow.xul
After installing the add-on, the XPCOM components aren't being registered, and the UI for my add-on is not showing up in the expected places: a button in the status bar in the main mail window and message editor, and a context menu item in the message editor.
The following messages appear in the error console when Thunderbird starts up:
Ignoring unrecognized chrome manifest directive "overlay". ...... chrome.manifest:3
Ignoring unrecognized chrome manifest directive "overlay". ...... chrome.manifest:5
Ignoring unrecognized chrome manifest directive "overlay". ...... chrome.manifest:7
Ignoring unrecognized chrome manifest directive "style". ........ chrome.manifest:31
Ignoring unrecognized chrome manifest directive "interfaces". ... chrome.manifest:75
Ignoring unrecognized chrome manifest directive "interfaces". ... chrome.manifest:77
This is occurring on Thunderbird 65.0b4 on macOS 10.13.6 High Sierra. This is also occurring on my PC with Windows 7 (32-bit); same version of Thunderbird installed.
I have also observed similar errors appearing in the error console when installing the latest beta versions of other add-ons: Compact Header and Signature Switch.
Is this an issue with the overlay loader? Are there additional requirements that add-on authors have to fulfill for the new overlay loader to function properly?
Comment 19•6 years ago
|
||
Alex: FWIW an addon I converted has those messages:
https://github.com/revad/use_bcc_instead_C/
It also outputs various 'type error' messages, described here:
https://github.com/revad/use_bcc_instead_C/issues/3
The addon works OK - at the moment.
Comment 20•6 years ago
|
||
(In reply to Alex Eng from comment #18)
Ignoring unrecognized chrome manifest directive "overlay". ...... chrome.manifest:3
Ignoring unrecognized chrome manifest directive "style". ........ chrome.manifest:31
Overlays and styles are handled by our new overlay loader, but not the original one, which spits out these error messages.
Ignoring unrecognized chrome manifest directive "interfaces". ... chrome.manifest:75
This isn't a thing any more. You cannot register an XPT file. I'm not 100% sure what you're supposed to do here, I guess that depends on your code. At least in an extension you control all of your code and don't have to worry about outside code conforming to your requirements.
I can't really say a lot else without seeing your code. Send me an email if you don't want to post it here.
Comment 21•6 years ago
|
||
My code can be found here: https://github.com/aecreations/clippings-tb/tree/branches/5.6%2B/src
To see the add-on in action, download the XPI from here and add it to Thunderbird 60.x: http://aecreations.sourceforge.net/clippings/install.php
Comment 22•6 years ago
|
||
Okay, I had a brief look. What I would do is convert the service component to a javascript module, and the dictionary components looks very similar to a Map, so I'd replace it with one of those.
As I said, the .idl files are obsolete technology and can be removed, along with the interfaces lines in chrome.manifest.
Comment 23•6 years ago
•
|
||
Since a few days (12.04.2019), my addon Compactheader does not work in the automatic tests: https://travis-ci.org/jmozmoz/compactheader/jobs/492474963 using Thunderbird 67.0 daily
If I try to install the addon over the normal file dialog in Thunderbird 67.0 the following error message is shown in the console:
1550351561326 addons.webextension.<unknown> ERROR Loading extension 'null': Reading manifest: Error processing icons.32: SyntaxError: String "chrome://CompactHeader/skin/cohe-icon.png" must be a relative URL Log.jsm:679
append resource://gre/modules/Log.jsm:679
log resource://gre/modules/Log.jsm:360
error resource://gre/modules/Log.jsm:368
_logMessage resource://gre/modules/Extension.jsm:375
logError resource://gre/modules/Extension.jsm:371
packagingError resource://gre/modules/Extension.jsm:358
manifestError resource://gre/modules/Extension.jsm:344
parseManifest resource://gre/modules/Extension.jsm:648
InterpretGeneratorResume self-hosted:1255
next self-hosted:1210
If I remove the icon setting, the addon can be loaded and the tests work. So what is the correct syntax?
There is no explanation in the wiki: https://wiki.mozilla.org/Thunderbird/Add-ons_Guide_63
(by the way, I applied for an account for the wiki to add some changes some time ago, but the application was rejected.)
Comment 24•6 years ago
|
||
You can't use a chrome URL there, use a path relative to the manifest.
Comment 25•6 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #22)
Thanks for the hint; I'm now able to get my extension to work, although the status bar toolbar button that should be added by my extension is missing in the main mail window and the message compose window.
My extension preferences dialog, which uses <prefwindow>
, is messed up; screen shot attached. Errors appear in the error console when it is opened:
TypeError: document.loadOverlay is not a function ............ preferences.xml:752:13
TypeError: control.radioChildConstructed is not a function ... radio.xml:29:13
Could this also be an issue with the overlay loader?
Comment 26•6 years ago
|
||
Comment 27•6 years ago
|
||
Not so much the overlay loader, <prefwindow>
isn't a thing any more. You probably should change to <dialog>
and rework the UI into tabs. Also, a word of warning, <preference>
is on the chopping block too. You could switch to using preferencesBindings.jsm like we're doing in bug 1527770 or go directly to the preferences service.
Comment 28•5 years ago
|
||
After porting XNote++ to Thunderbird 68, some people reported that sometimes the toolbar button does not show up and if that is the case, it can not be added from to toolbar customization dialogue. Upon next restart, things might work again. Things are not predictable. After I received the output of the error console from an affected user and discovered that I still had a reference to stringbundleset/stringbundle in the xnote-overlay.xul, I removed it but this did not fix the problem. Unfortunately, the issue sometimes shows up and sometimes doesn't making it hard to reproduce for a fix. After reading again through the docs about converting to a MailExtension, I thought that it might as well be an issue with the XUL overlay loader. Should I create a defect for this connected to this bug or does anyone have another explanation?
Link to the add-on: https://addons.thunderbird.net/en-US/thunderbird/addon/xnotepp/ - Current version 2.3.1 is the one that still contains the stringbundleset/stringbundle, but an update without it can be provided if required.
Reporter | ||
Comment 29•5 years ago
|
||
And the toolbar issue isn't bug 1584160 which will be fixed in TB 68.3? You can try it now since we have a pre-release build:
http://ftp.mozilla.org/pub/thunderbird/candidates/68.3.0-candidates/build1/
Comment 30•5 years ago
|
||
I'm not sure if it would cause the problem you see but I notice your code uses the document.persist
function which no longer exists. See https://developer.thunderbird.net/add-ons/tb68/changes#document-persist-id-attribute for what to do.
Comment 31•5 years ago
|
||
Thanks for pointing to bug 1584160 - have forwarded this information to affected users as the issue is not reproducible for me. document.persist is fixed for next version, but is not the reason for the intermittent behaviour.
Comment 32•5 years ago
|
||
Some users reported that the colour of tagged emails disappears when installing and enabling the Add-On "Teamworkx Thunderbird Integration for Jira": https://addons.thunderbird.net/en-US/thunderbird/addon/create-jira-issue/
I could limit the "when it appeared" to the Thunderbird 64.x
All versions older than 64.0 (as well as Seamonkey) had no problems. Opening an existing profile (with the add-on installed) to be used by TB 64.x immediately exposes the described behaviour. Re-opening the sane profile with TB 63.x again (while keeping the add-on installed) shows the correct colourful behaviour.
When enabling the "Tag" column in the message tree the selected tags show up properly.
When deinstalling/disabling the add-on from TB (>=64.x) then problem goes away and the colours are restored.
I checked our CSS for any possible leaks and found nothing. I even tested a version with changes CSS.
Cheers,
Holger
Comment 33•4 years ago
|
||
Are we expecting more issues?
Reporter | ||
Comment 34•4 years ago
|
||
Not since the thing has been removed in TB 74.
Description
•