Is this actually testing the error case? It seems like we need to have a test that actually causes Chrome to throw this dialog.