**Steps to replicate the issue** (include links if applicable):
* Have the rollback right and go to a Wikipedia page on a phone using the normal Minerva skin with the default setting that asks for confirmation when using rollback
* Attempt to rollback an edit using the normal rollback button on the page history
* When it asks for confirmation, cancel the rollback when asked for confirmation
**What happens?**:
The edit is rolled back no matter which option you choose in the confirmation prompt. Even when attempting to cancel the use of rollback, it reverts the edit anyways.
**What should have happened instead?**:
The rollback is cancelled and no edit is made.
**Software version** (on `Special:Version` page; skip for WMF-hosted wikis like Wikipedia):
**Other information** (browser name/version, screenshots, etc.):
Using safari on iPhone with mobile webpage.