Created attachment 613057 [details]
Created attachment 613058 [details]
Created attachment 614297 [details] [diff] [review]
DOMWillOpenModalDialog should be chrome only event, but let's make that change
in a followup.
Oops, I missed another null check later in the method.
Created attachment 614490 [details] [diff] [review]