Skip to content

chore(deps): bump github.com/chromedp/chromedp from 0.16.0 to 0.24.1 - #402

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/chromedp/chromedp-0.24.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/chromedp/chromedp-0.24.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 3, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/chromedp/chromedp from 0.16.0 to 0.24.1.

Release notes

Sourced from github.com/chromedp/chromedp's releases.

v0.24.1

Fix: an attach to a target that exists, with WithTargetID, raced with the DOM events of the page. newTarget loaded the document into the nodes of the frame on the goroutine of the caller, while the target read the nodes on its own goroutine without the lock of the frame. The target now reads the nodes only under the lock. arthurdls reported it in discussion #1649, with a test that needs no browser.

Update cdproto to v0.160.12.

v0.24.0

New: the context option WithRuntimeDisabled attaches to the target without Runtime.enable. While the Runtime domain is enabled, Chrome prepares each argument of a console call for the protocol, so a page can tell that a program drives it. With the option, the queries and Poll run in an isolated world of each frame, which sees the DOM and not the globals of the page. Evaluate still runs in the main world. Chrome sends no Runtime events, so Console, Listen, Events and WithListener get none, and ExposeFunc returns an error that wraps the new ErrRuntimeDisabled. See example 31 in docs/API.md and docs/decisions/2026-11-18-attach-with-the-runtime-domain-disabled.md.

Fix: a Poll in a frame could hang, because runPoll took the read lock of frameMu twice.

Dušan Panić proposed the option and found the hang in discussion #1647.

v0.23.1

Update cdproto to v0.160.1. The README section on termcast describes its new API: termcast has no flags, Start detects the terminal, and in kitty and Ghostty the stream draws with no flicker.

v0.23.0

New: Detached(ctx) returns a channel that closes when the browser detaches the target of the context, after the target handled every message that came before the detach. It opens no target and returns the new error ErrNoTarget when the context has none yet. New: the context option WithListener(fn) adds a func of Listen before the first command, so fn sees the events of the start of a tab, such as the runtime.EventExecutionContextCreated events that answer Runtime.enable. Fix: the browser sometimes routed the detach of a target before a reply or an event that Chrome sent earlier, so a command returned ErrTargetDetached and Listen missed the event. The detach now goes through the same queue as the messages. See docs/API.md, examples 29 and 30, and the three decisions dated 2026-11-05. The changes come from onsi, in pull request #1646 and discussion #1645.

v0.22.1

Fix: a command that is still pending when the browser detaches its target, for example when the page closes, now returns an error that wraps the new ErrTargetDetached. Before, Chrome sent no reply and the command waited until its context ended. A command that starts on a detached target fails at once. The issue was reported by onsi in discussion #1645.

v0.22.0

New: Listen and ListenBrowser call a func for each event of the tab or the browser, in the order in which the events arrive from Chrome. The target calls the func before it reads the next message, so the func sees an event that arrived before the reply to a command before that command returns. Events and BrowserEvents give one iterator for each event type and give neither guarantee, so they stay the recommended API, and Listen is the lower level tool for code that needs the order across event types. The func gets the typed events of cdproto and no replies to commands. It runs in the loop that reads the messages of the tab, so it must return fast, must not run a command, must not call Listen and must not panic. See docs/API.md, example 28, and the decision docs/decisions/2026-11-04-export-the-ordered-event-listener.md. The idea comes from discussion #1645 by onsi.

v0.21.1

Fix a panic, close of closed channel, in the handling of DOM.documentUpdated. When DOM.getDocument failed, for example because the tab was closing, the frame kept its old root node, and the next DOM.documentUpdated event closed the channel of that root again. The frame now clears the root first. Thanks to Dhruv Jain (#1644). The module also requires cdproto v0.159.0 now.

v0.21.0

The package remote has its own WebSocket client, and it is a package of the core module now. The nested module remote and the dependency github.com/gobwas/ws are gone. The core module still needs only the standard library and cdproto.

The import path is the same: github.com/chromedp/chromedp/remote. The public API of the package is the same.

Upgrade: if your go.mod has a line for github.com/chromedp/chromedp/remote, remove it (go mod tidy does that). Go reports an ambiguous import while both the old nested module and the core module provide the package. The tag remote/v0.2.0 is the last version of the nested module.

The client follows RFC 6455: it checks the handshake, joins fragmented messages, checks UTF-8 and the size of a message, answers pings, and does the close handshake. It does not support extensions such as permessage-deflate. Go 1.25 and later are supported.

v0.20.1

Documentation only. The README, the package documentation and the docs have the current versions (chromedp v0.20.0, cdproto v0.157.8, remote v0.2.0), the CI matrix and the release history. The README describes termcast and the 43 programs of chromedp/examples.

v0.20.0

chromedp supports Go 1.25 and later. Before this release, the module needed Go 1.27 (see #1536).

  • The JSON types come from github.com/chromedp/cdproto/cdp/jsonv2. With Go 1.27 or GOEXPERIMENT=jsonv2 they are aliases of the types of the standard encoding/json/v2 and jsontext, so the public API is the same. With Go 1.25 and 1.26 they come from github.com/go-json-experiment/json.
  • The modules chromedp, remote and test use go 1.25 and cdproto v0.157.8.
  • The CI runs Go 1.25, 1.26 and stable on Linux, stable on Windows and macOS, and the experiment and the compatibility tag.

v0.19.1

Documentation only. The README and the package documentation describe termcast, which draws the screen of a page in a terminal, and the 43 programs of chromedp/examples.

v0.19.0

... (truncated)

Commits
  • 611793c Update cdproto to v0.160.12
  • c8b71fd Read the nodes of a frame only under its lock in domEvent
  • 166af20 Add WithRuntimeDisabled to attach without Runtime.enable
  • af31f02 Update cdproto to v0.160.1 and describe the new termcast
  • 94001c5 Link the contexts and timeline examples from the docs
  • aefe4af Record the decisions for Detached, WithListener and the routing fix
  • a30fd65 Make Detached return ErrNoTarget instead of opening a target
  • cd5c841 Add WithListener to listen to a target from its start
  • c1bd0bb Export the detach of a target as Detached
  • dbf104f Route the detach of a target after its earlier messages
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/chromedp/chromedp](https://github.com/chromedp/chromedp) from 0.16.0 to 0.24.1.
- [Release notes](https://github.com/chromedp/chromedp/releases)
- [Commits](chromedp/chromedp@v0.16.0...v0.24.1)

---
updated-dependencies:
- dependency-name: github.com/chromedp/chromedp
  dependency-version: 0.24.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants