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

Define integration with the Page Lifecycle API #109

Open
reillyeon opened this issue Dec 9, 2020 · 0 comments
Open

Define integration with the Page Lifecycle API #109

reillyeon opened this issue Dec 9, 2020 · 0 comments

Comments

@reillyeon
Copy link
Collaborator

In order for usage of the Web Serial API to not prevent a site from being included in features such as Chromium's BFCache this API needs to define how it integrates with the Page Lifecycle API. Some questions:

  • Should serial port's be automatically closed when the page becomes frozen? (Probably yes.)
  • If so, how should that be communicated to the page via the SerialPort interface and its readable and writable streams?
  • How should connect and disconnect events that occur while the page is frozen be handled? Options,
    1. Queue all events until the page is resumed?
    2. Coalesce events for a single device so that only the effective change (if any) since the page was frozen is communicated on resume?
    3. Discard all events and ask developers to call getPorts() on resume?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant