Re: [whatwg/dom] Suggestion: introduce window.beforeunloadwarning, deprecate window.onbeforeunload (#929)

As an alternative, the beforeUnloadWarning could be an array of items that need to be complete before it's okay to close the tab. Maybe have label and completion percentage per item. That would allow UA to display status where multiple different progress bars complete in parallel if multiple tasks need to be completed. Obviously, this would make API harder to use. In this case, the label should describe something to do as it was on "To Do" list.

- Save settings
- Upload photo
- Publish blog post

The UA could then show progress bars, percentages or maybe just a checkmark next to the task as different tasks complete.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/929#issuecomment-732239523

Received on Monday, 23 November 2020 15:40:06 UTC