Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn user before closing browser when upload is in progress #10519

Merged
merged 6 commits into from
Feb 27, 2024

Conversation

AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented Feb 27, 2024

Description

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

Open tasks:

  • ...

Copy link

update-docs bot commented Feb 27, 2024

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Copy link
Member

@dschmidt dschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should register it when uploads start and unregister it, when they finish

see usage notes here

https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event

@AlexAndBear AlexAndBear requested a review from dschmidt February 27, 2024 15:34
@AlexAndBear AlexAndBear enabled auto-merge (squash) February 27, 2024 19:04
@AlexAndBear AlexAndBear disabled auto-merge February 27, 2024 19:47
Copy link

@AlexAndBear AlexAndBear merged commit 867ce80 into master Feb 27, 2024
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the issues/10500 branch February 27, 2024 21:21
@micbar micbar mentioned this pull request Jun 19, 2024
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OCIS Web doesn't warn a user about closing a window with an active upload
2 participants