Re: [w3c/manifest] Add installation prompt control flow (#417)

So, there is a case where .prompt() can enter into an invalid state :(. 

1. BIP is fired.  
1. app calls .preventDefault();
1. app begins awaiting install blocking tasks to finish.
1. End-user chooses "add to homescreen" from browser's menu. 
1. app calls .prompt()
1. IPC message sent to UI thread - browser discovers "install process in progress"
1. ??? Invalid state ??? .userChoice can't ever resolve. 

To fix this, .prompt() only resolves when given ownership of an install process - blocking manual installs for this app.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/417#issuecomment-254403075

Received on Tuesday, 18 October 2016 04:22:01 UTC