﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5355	Opening a dialog causes silent exception	Antti Leppä		"Opening a dialog (Image dialog for example) causes exception which is silently consumed by try - catch block but javascript debuggers like firebug still break on the error. 

this is caused by access to undefined index (-1) in ""focusList"" in plugins/dialog/plugin.js:286 and could be fixed by adding:

{{{
if (current > -1)
}}}

before the 

{{{
focusList[ current ].getInputElement().$.blur();
}}}

line

The bug was discovered with Firefox 3.5.8 (Firebug 1.5.3) / Linux 64bit "	Bug	closed	Normal		UI : Dialogs	3.2	invalid	HasPatch	
