MDL-41238 atto - fixing autoclose of style menu for firefox