DOMparser not working in published extension

Hi All,
I am SW guy starting developping a webextension for managing download with my NAS.
sendtoqnap

But after having tested it succesfully during my dev, I cannot make run a part using DOMParser class.

As it is working properly when installing by hand for dev I cannot investigate with usual debug tools.

So 2 questions:

  1. Is there a way to debug a publish extension ?
  2. What could be the root cause for my extension not being to dun DOMParser ?

Code is available on GitHub at git SendToQNAP.
File encapsulating DOMPArser is a reuse : xmlToJSON.js in popup folder.

fred

You can use about:debugging on any extension, no matter how it is installed in Firefox.

How have you determined that it is the DOMParser part that is failing?

Hi Martin,
Thanks for the tip : I didn’t known

And you are right it is another error type:
ReferenceError: xmlToJSON is not defined

It might be a case sensitivity issue as javascript file is named xmlToJson (whereas class is declared correctly xmlToJSON)

As it is working fine on my mac, I cannot really conclude.

Any idea ?

URLs should generally be expected to be case sensitive, so matching the casing on the script src may be a good start to find what’s going wrong. After that I’d recommend checking if the file itself is loaded etc.

I confirm you are right:
Published version is now working.

Thx Martin