Skip to content

/json/new endpoint doesn't respect the url parameter #4566

Closed as not planned

Description

@joffrey-bion

Describe the bug

In the Chrome DevTools Protocol HTTP endpoints definition, /json/new can take a URL to open a new tab directly at that URL. It's defined as /json/new?{url}, so it's not a real query parameter, but still should be accepted.

When trying this endpoint with Browserless, it returns an about:blank URL in the response, and it doesn't open the new tab at the requested URL.

To Reproduce

Steps to reproduce the behavior:

  1. Launch the browserless Docker image: docker run --rm -p 3000:3000 ghcr.io/browserless/chromium:v2.24.3 (latest also reproduces the issue right now)
  2. Send a PUT request to http://localhost:3000/json/new?http://google.com. For instance using curl:
    curl -X PUT "http://localhost:3000/json/new?http%3A%2F%2Fgoogle.com"
    
  3. See that the returned JSON contains about:blank as URL instead of http://google.com

Expected behavior

The /json/new endpoint should be a real pass-through and behave exactly like Chrome: the new tab should be opened on the website defined by the URL in the query.

Desktop (please complete the following information):

  • OS: Windows (but I run browserless/chromium in Docker, so this should be considered linux I guess)
  • Browser [e.g. chrome, safari]: Chrome (using the browserless/chromium docker image)
  • Version [e.g. 22]: at least the tags v2.24.3 and latest of the docker image reproduce the problem

Additional context

I'm using Browserless to test a Kotlin client library for the Chrome DevTools Protocol.

I'm aware that these JSON APIs shouldn't really be used, but I need to support them for completeness as long as Chrome does.

Activity

  1. github-actions commented on Jun 3, 2026

    @github-actions
    Contributor

    This issue has been marked stale because it has had no activity for 30 days. It will be closed if there is no further activity within the next 60 days. If this is still relevant, please leave a comment to keep it open.

  2. joffrey-bion commented on Jul 18, 2026

    @joffrey-bion
    Author

    I don't think the issue can be considered stale, it just never got any response from the maintainers, but still very much open.

  3. github-actions commented on Aug 19, 2026

    @github-actions
    Contributor

    This issue has been marked stale because it has had no activity for 30 days. It will be closed if there is no further activity within the next 60 days. If this is still relevant, please leave a comment to keep it open.

  4. joffrey-bion commented on Aug 19, 2026

    @joffrey-bion
    Author

    I'm not even mad

  5. added a commit that references this issue on Sep 16, 2026
    9c50b2d
  6. github-actions commented on Sep 19, 2026

    @github-actions
    Contributor

    This issue has been marked stale because it has had no activity for 30 days. It will be closed if there is no further activity within the next 60 days. If this is still relevant, please leave a comment to keep it open.

  7. added 2 commits that reference this issue on Nov 8, 2026
    cb9afb3
    26ac7e4
  8. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it has had no activity for over 90 days. If this is still relevant, please feel free to reopen it or open a new issue with updated details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions