Re: [presentation-api] Fix bugs related to PresentationSession.url attribute

@obeletski @schien I thought of a use case for this attribute.  If a 
single controlling page has requested to start or join multiple 
presentations (each with their own URL) then it could result in 
simpler code to include the URL in the PresentationSession.

e.g. instead of
```
navigator.presentation.startSession(firstURL).then(handleSessionForFirstURL)
navigator.presentation.startSession(secondURL).then(handleSessionForSecondURL)
```
it would be
```
navigator.presentation.startSession(firstUrl).then(handleSession)
navigator.presentation.startSession(secondUrl).then(handleSession)

handleSession = function(session) {
  // Code common to all presentation sessions goes here

  // Now code specific to the presentation content
  if (session.url == firstUrl) ...
  else if (session.url == secondUrl) ...
}
```

Any thoughts?

-- 
GitHub Notif of comment by mfoltzgoogle
See 
https://github.com/w3c/presentation-api/issues/102#issuecomment-109806331

Received on Sunday, 7 June 2015 22:11:07 UTC