Skip to content

Support for /json/new #4

@hybrist

Description

@hybrist

Chrome supports the following:

# Open a new blank tab/page
<ANY> /json/new

# Open a new blank tab with a given url
<ANY> /json/new?<url>

I'd like to see this being a <ANY> (Chrome uses it internally as GET but exposes it via any other http verb) so that it's future compatible with things like webdriver-like capability requests in a POST/PUT body.

Expected response is the same schema as one element in the /json-array.

Example request:

> curl -XPOST localhost:3058/json/new\?http://www.google.com
{
   "description": "",
   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=localhost:3058/devtools/page/5DC5F978-E0B2-7DB4-8962-7CB0AC46AD1A",
   "id": "5DC5F978-E0B2-7DB4-8962-7CB0AC46AD1A",
   "title": "",
   "type": "page",
   "url": "http://www.google.com/",
   "webSocketDebuggerUrl": "ws://localhost:3058/devtools/page/5DC5F978-E0B2-7DB4-8962-7CB0AC46AD1A"
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions