Hello all,

three months ago, Firefox announced [1] that they are dropping support for the
Chrome Devtools Protocol, the browser automation protocol that we have used in
Cockpit's test API for many years. This finally happened in Firefox 129 [2],
which just recently made it into Fedora 40.

The new thing to use is "Webdriver BiDi" [3], which is finally a standardized
protocol that has all of Chromium/Firefox/Safari/Webkit behind it. I recently
ported Cockpit's test API to that [4] and I'm now in the process of updating
our auxiliary projects like cockpit-{podman,machines,ostree} to it. There had
to be a few API changes, but for the most part this should be painless -- e.g.
starter-kit [5] or c-podman [6] were outright trivial (the "glob" change is
unrelated), and for e.g. c-machines [7] it only requires a little API
adjustment.

You will automatically get this if you update to the latest cockpit pkg/lib and
test/common API. You can then drop the chrome-remote-protocol NPM dependency.

If you run into any trouble, please don't hesitate to ping me -- chances are
very high that I've run into a similar problem already. Best is to
@martinpitt me in GitHub for having appropriate context, but you can also
ask me on Matrix or reply here.

This is relatively urgent if you test on Firefox -- the next time we refresh
our cockpit/tasks container (which runs our CI), it will pick up Firefox 129.
Of course projects can pin the tasks container (.cockpit-ci/container), but not
all of them do.

Thanks,

Martin

[1] 
https://fxdx.dev/deprecating-cdp-support-in-firefox-embracing-the-future-with-webdriver-bidi/
[2] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/129
[3] https://w3c.github.io/webdriver-bidi/
[4] https://github.com/cockpit-project/cockpit/pull/20832
[5] https://github.com/cockpit-project/starter-kit/pull/949
[6] https://github.com/cockpit-project/cockpit-podman/pull/1819
[7] https://github.com/cockpit-project/cockpit-machines/pull/1761

-- 
_______________________________________________
cockpit-devel mailing list -- cockpit-devel@lists.fedorahosted.org
To unsubscribe send an email to cockpit-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/cockpit-devel@lists.fedorahosted.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to