WICG / webusb

Connecting hardware to the web.
https://wicg.github.io/webusb/
Other
1.31k stars 131 forks source link

What is the meaning of iLandingPage index? #116

Closed karelbilek closed 6 years ago

karelbilek commented 6 years ago

What is the meaning of iLandingPage index?

In the current draft, there is no more allowed origin URL list, only one landing page; why is index necessary and will it ever be different than 1?

reillyeon commented 6 years ago

Specifying the landing page URL as an index to a descriptor fetched with a separate control transfer is left over from when there was also the GET_ALLOWED_ORIGINS request. It remained in the standard first because it seemed unnecessary to break compatibility with devices that continued to implement GET_ALLOWED_ORIGINS and because it allows future extension to the specification of there is the need for URLs in another descriptor.

Nothing in the specification says it has to be equal to 1, just non-zero.