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

SHOULD in a note and enabled by default #152

Open
annevk opened this issue Jul 19, 2019 · 4 comments
Open

SHOULD in a note and enabled by default #152

annevk opened this issue Jul 19, 2019 · 4 comments
Labels

Comments

@annevk
Copy link
Contributor

annevk commented Jul 19, 2019

https://wicg.github.io/BackgroundSync/spec/#permission has a requirement in a note. That doesn't work.

As per #107 and #37 it's also not clear to me what "enabled by default" means, as our (Mozilla's) best plan to date to avoid surprises is to prompt in certain cases.

@jakearchibald
Copy link
Collaborator

The model here is supposed to be similar to similar to sendBeacon(), in that it's used whether the user is offline or not, but it will handle the offline case. Although I recognise that it can do more than sendBeacon().

The assumption was, if the user visited the site as a top-level origin, they'd be happy with a one-off sync unless they'd expressed otherwise.

I agree this is not well presented in the spec, and of course browser should be free to behave differently.

@annevk
Copy link
Contributor Author

annevk commented Jul 19, 2019

Yeah, we want to prompt when offline, as the user might not want to reveal their destination (if any). And as per #37 we might want to prompt or auto-deny under certain network/battery conditions.

@martinthomson
Copy link

I might have a different view on that. I might want to just have it not work in that case, because annoying people about things that shouldn't bother them is inconsiderate.

@annevk
Copy link
Contributor Author

annevk commented Jul 22, 2019

Well, having to remember to navigate to the site once online to get your offline work in the cloud is also not ideal. "Would you like X to know when you're next online so they can save your work?" does not seem overly obtrusive to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants