Fungování této stránky je z důvodu údržby dočasně omezeno. Pokud žádný článek nápovědy nevyřeší váš problém a potřebujete se zeptat na další řešení, napište nám na Twitter @FirefoxSupport nebo Reddit /r/firefox.

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Thunderbird 68 is giving error if we use ChromeUtils or Components.utils.import in page javascript file

  • 1 odpověď
  • 1 má tento problém
  • 1 zobrazení
  • Poslední odpověď od Matt

more options

Hi There,

I am writing new thunderbird extension which can support thunderbird 68+ version. As XUL Is deprecated now, I am not using it. I am using HTML, javascript, CSS to built my extension.

Currently I have created sample add on as per the steps mentioned at https://developer.thunderbird.net/add-on-examples/hello-world-add-on

But for some purpose I need to add ChromeUtils.import("resource://gre/modules/ctypes.jsm"); and some other JSM module in my page script.

After adding that line (similar line for other JSM module)page script, thunderbird error console shows below error ReferenceError: ChromeUtils is not defined.

I know there are lot of changes with TB68 specifically in context of API. Older version thunderbird support the ChromeUtils but TB 68 throws error.

So is there any way to use ChromeUtils in thunderbird 68 + version ?

Thanks, Jayesh

Hi There, I am writing new thunderbird extension which can support thunderbird 68+ version. As XUL Is deprecated now, I am not using it. I am using HTML, javascript, CSS to built my extension. Currently I have created sample add on as per the steps mentioned at https://developer.thunderbird.net/add-on-examples/hello-world-add-on But for some purpose I need to add ChromeUtils.import("resource://gre/modules/ctypes.jsm"); and some other JSM module in my page script. After adding that line (similar line for other JSM module)page script, thunderbird error console shows below error ReferenceError: ChromeUtils is not defined. I know there are lot of changes with TB68 specifically in context of API. Older version thunderbird support the ChromeUtils but TB 68 throws error. So is there any way to use ChromeUtils in thunderbird 68 + version ? Thanks, Jayesh

Všechny odpovědi (1)

more options

This is not the place to get help with add-on development.

A good place would be https://discourse.mozilla.org/c/thunderbird/addons/255