Bug 959742 - Close dialogs when inputs change if there are no buttons on the dialog. r=bnicholson