Bug 1103894 - Use DialogService to display the warning dialog

https://bugzilla.mozilla.org/show_bug.cgi?id=1103894
Already revised the patch based on Kevin's fix.