[Bug 1074272] Firefox crashes when file upload dialog gets canceled