Closed Bug 1613883 Opened 6 years ago Closed 2 years ago

[meta] Support Browsertime

Categories

(Remote Protocol :: CDP, task)

task

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: whimboo, Unassigned)

References

()

Details

(Keywords: meta)

As Maja and I have seen yesterday also browsertime makes use of the CDP protocol for certain features. And right now they have a webextension installed in Firefox to accomplish specific tasks.

https://github.com/sitespeedio/browsertime/blob/master/lib/chrome/webdriver/chromeDevtoolsProtocol.js

We should add dependencies for each and everything which is needed. I hope that Peter can give us the full list of methods and events.

For Firefox we would like to use:

  • Set request headers - Network.setExtraHTTPHeaders
  • Set cookies - Network.setCookie
  • Inject JS on the page on new document - Page.addScriptToEvaluateOnNewDocument
  • Block domains - Network.setBlockedURLs
  • Clear browser cache - Network.clearBrowserCache and Network.clearBrowserCookies

We use a couple of more for Chrome but they aren't super important:

  • Tracing.start, Tracing.end and Tracing.tracingComplete
  • Emulation.setCPUThrottlingRate (we prefer that users don't use that for Chrome but maybe it works better in Firefox?)
  • Performance.getMetrics()

(In reply to Peter Hedenskog from comment #1)

For Firefox we would like to use:

  • Set request headers - Network.setExtraHTTPHeaders
  • Set cookies - Network.setCookie
  • Inject JS on the page on new document - Page.addScriptToEvaluateOnNewDocument
  • Clear browser cache - Network.clearBrowserCache and Network.clearBrowserCookies

I added related bugs for all of those commands to the dependency list.

  • Block domains - Network.setBlockedURLs

This is experimental. Not sure if that will be implemented (yet).

We use a couple of more for Chrome but they aren't super important:

  • Tracing.start, Tracing.end and Tracing.tracingComplete
  • Emulation.setCPUThrottlingRate (we prefer that users don't use that for Chrome but maybe it works better in Firefox?)
  • Performance.getMetrics()

None of those are implemented yet. And nothing is scheduled for those yet.

Depends on: 1613896, 1601695, 1613897
Severity: normal → S3

This bug actually covered the support for Browsertime via the CDP protocol. Given that we want to switch to WebDriver BiDi I'm closing this bug as done. Bug 1830875 will cover the remaining work for WebDriver BiDi.

Status: NEW → RESOLVED
Closed: 2 years ago
Component: Agent → CDP
Resolution: --- → WORKSFORME
See Also: → 1830875
You need to log in before you can comment on or make changes to this bug.