Re: [presentation-api] "setting presentation.defaultRequest will have no effect" note is ambiguous

I am now thinking about the current behaviour of defaultRequest. In 
current spec the controlling page get notified (using 
`onconnectionavailable`) only if the user selects a display in the 
dialog. Do we need to inform the page that the selection dialog is 
open? in this case we need to change the spec as following:

```
navigator.presentation.defaultRequest = new 
PresentationRequest(presUrls);
navigator.presentation.defaultRequest.onstart = function(evt) {
    // here the page knows that a dialog is open
    evt.promise.then(setConnection).catch(...)
};
```

in this case we don't need to constrict a new algorithm for default 
request. What do you think?

-- 
GitHub Notification of comment by louaybassbouss
Please view or discuss this issue at 
https://github.com/w3c/presentation-api/issues/359#issuecomment-258607448
 using your GitHub account

Received on Saturday, 5 November 2016 12:05:22 UTC