w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
336 stars 35 forks source link

Clarify the initiator steps #714

Open OrKoN opened 1 month ago

OrKoN commented 1 month ago

Issue https://github.com/w3c/webdriver-bidi/issues/698

This PR clarifies the logic of how to compute various initiator types and makes the following changes:


Preview | Diff

OrKoN commented 2 weeks ago

@juliandescottes @jgraham @whimboo I attempted to improve the initiator steps. There are still a few problems although it brings the steps closer to what is expressed by CDDL types. Problems:

1) I am not quite sure that there referrer would be an URL. The fetch spec mentions that it will be a URL or no-referrer during fetching. CSSOM spec seems to be always setting it without checking for no-referrer. 2) the parser positions are "implementation-defined" since I could not link to any spec. 3) the parser type is extended to cover the css initiators but it is a bit difficult to track what exactly fetch initiators define.

WDYT?