Open Bug 1613883 Opened 5 years ago Updated 2 years ago

[meta] Support Browsertime

Categories

(Remote Protocol :: Agent, task)

task

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

(Depends on 1 open bug, )

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
You need to log in before you can comment on or make changes to this bug.