w3c / webdriver-bidi

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

Clarify the behavior of timings in network events for data URLs #733

Open lutien opened 1 week ago

lutien commented 1 week ago

At the moment, it's not really clear (at least for me) what should be returned to the timings in the network events for data URLs. For now, we made a decision in the scope of this bug to return in Firefox the current time in all the fields except the ones related to redirects. This aligns with what performance API returns at least for navigation to data URLs. At the same time, from what I can see, Chrome returns zeros for all the timings. So we probably should align what is the correct behavior.

OrKoN commented 1 week ago

I don't think chromium-bidi implements timings yet https://github.com/GoogleChromeLabs/chromium-bidi/blob/5f8819b409af04d265c5a5834113aaa65a73cb9d/src/bidiMapper/modules/network/NetworkRequest.ts#L663 A better WPT test would be great, currently any number passes the test.