W3C home > Mailing lists > Public > public-secondscreen@w3.org > September 2015

[presentation-api] Convert URL passed to PresentationRequest to an absolute URL

From: François Daoust via GitHub <sysbot+gh@w3.org>
Date: Tue, 22 Sep 2015 07:49:30 +0000
To: public-secondscreen@w3.org
Message-ID: <issues.opened-107662212-1442908169-sysbot+gh@w3.org>
tidoust has just created a new issue for 

== Convert URL passed to PresentationRequest to an absolute URL ==
The specification remains silent on what happens to the URL passed to 
the `PresentationRequest` constructor. When `start` is called, the URL
 should be converted to an absolute one.

C.f. the "window.open" algorithm in HTML:
"resolve url relative to the API base URL specified by entry settings,
 and let resource be the resulting absolute URL, if any. If the 
resolve a URL algorithm failed, then ..."

Not sure what should happen if the URL cannot be resolved. Reject the 
promise with an `OperationError`?

Also, should this rather be done in the `PresentationRequest` 

See https://github.com/w3c/presentation-api/issues/200
Received on Tuesday, 22 September 2015 07:49:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:18:58 UTC