'Close window with index' add on is failing in Firefox browser alone

‘Close window with index’ add on is failing in Firefox browser alone.