Re: [web-nfc] Notification when a browsing context is closed?

Since both pushMessage and watch algorithms depend on adapter 
suspended state, which depends on the Window objects, when the Window 
is closed, I expect implementations reject the pending push Promises, 
cancel the pending push buffers/timers and also the list of active 
watches. We should add these steps as a separate algorithm. One way 
would be to add the pending push Promises as internal slots to the 
NFCAdapter object, and define unload behavior, part of which is 
rejecting pending Promises.

-- 
GitHub Notif of comment by zolkis
See https://github.com/w3c/web-nfc/issues/57#issuecomment-143748369

Received on Monday, 28 September 2015 13:48:47 UTC