* When multiple, non-nested modals are on a page, the modal ID will not
point to the index of the corresponding modal message in the modal
message list.
* Retain backwards compatibility with legacy capybara-webkit API.
* Confirm dialogs are accepted by default; dialogs are dismissed.
* Legacy API overrides the default action, and does not raise errors
for unexpected modals.