Overview
This is a workaround; under normal circumstances the discard changes dialog does not appear when leaving a page edit.
Here are the steps to discard all unpublished changes:
Edit the page and get to a resume draft mode
Edit the page with the Unpublished Changes lozenge
Refresh the page
Before the refresh the URL should look something like this similar to:
/pages/editpage.action?pageId=XXXXXX
After Refresh Refreshing, it should now look like appear similar to:
/pages/resumedraft.action?draftId=XXXXXX&draftShareId=XXXXXX
Trigger Close the Editor Dialog
Type a character on the page
Click Close
A dialog should appear "The Close the Editor" dialogue should now appear
Click Discard All Changes or Show changes to Select Discard all changes to discard all changes made since last publish, Show changes to see the changes, or Keep draft.