ReferenceError is not defined onpopupshowing and oncommand

Talk about add-ons and extension development.
Post Reply
obywatel
Posts: 2
Joined: March 24th, 2016, 11:34 am

ReferenceError is not defined onpopupshowing and oncommand

Post by obywatel »

Hi
I have a nice extension that works below firefox 44 version, in higher versions there is a problem.
(It allows me to download all images to one predefined folder):

Code: Select all

http://www18.zippyshare.com/v/l86iTNGT/file.html
When I install extension everything is ok till when I chose File->Save Images To->Option: Browse
1. Here is a problem, popup windows doesn't shows me.. and in console there is a error message:

Code: Select all

ReferenceError: ImgDlII is not defined
onpopupshowing()
 browser.xul:1
 browser.xul:1:1
ReferenceError: ImgDlII is not defined
oncommand()
 browser.xul:1
 browser.xul:1:1
I'm trying to fix it, but till now, I dont have longer any ideas. Maybe someone could check this extension, this is such a big problem or not and could tell me how I can fix it (what to change)?
lithopsian
Posts: 3664
Joined: September 15th, 2010, 9:03 am

Re: ReferenceError is not defined onpopupshowing and oncomma

Post by lithopsian »

Probably the error is much earlier, perhaps right when Firefox starts. If ImgDlII doesn't exist then something bad went wrong, like a syntax error.

Or maybe an e10s issue, but you should be in multiprocess mode in Firefox 44.
Noitidart
Posts: 1168
Joined: September 16th, 2007, 8:01 am

Re: ReferenceError is not defined onpopupshowing and oncomma

Post by Noitidart »

With e10s I did have to refactor some stuff as pages were loading much earlier then expected. Like I would set stuff up and then wait for load event, however by the time i set stuff up the load event had already been triggered, so I moved everything into the load listener.
Post Reply