From fc7b4760a9d257db5f05b7c5b72f79b95f9fa0c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sampo=20Kivist=C3=B6?= <2021355+Havunen@users.noreply.github.com> Date: Mon, 12 Aug 2024 17:33:17 +0300 Subject: [PATCH] Roll to Chromium 129.0.6632.1 (r1336433) (#230) * Roll to Chromium 129.0.6632.1 (r1336433) * Fix lint error * Fixed build errors * Cargo fmt * Fix block-navigation example build error * cargo fmt * Lint fixes * Fix clippy warnings --- Cargo.toml | 5 +- chromiumoxide_cdp/Cargo.toml | 7 +- chromiumoxide_cdp/browser_protocol.pdl | 2882 +- chromiumoxide_cdp/js_protocol.pdl | 135 +- chromiumoxide_cdp/src/cdp.rs | 105324 +++++++++++--------- chromiumoxide_cdp/src/lib.rs | 7 +- chromiumoxide_pdl/Cargo.toml | 3 + chromiumoxide_pdl/src/build/generator.rs | 20 +- examples/block-navigation.rs | 2 +- src/detection.rs | 2 +- src/handler/domworld.rs | 19 +- src/handler/frame.rs | 23 +- src/handler/mod.rs | 2 +- src/handler/network.rs | 2 +- src/page.rs | 5 + 15 files changed, 62709 insertions(+), 45729 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 05b5c3d3..18415392 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ keywords = ["chrome", "chromedriver", "puppeteer", "automation"] categories = ["web-programming", "api-bindings", "development-tools::testing"] [dependencies] -async-tungstenite = "0.25" +async-tungstenite = "0.27.0" serde = { version = "1", features = ["derive"] } async-std = { version = "1.5", features = [ "attributes", @@ -24,7 +24,7 @@ chromiumoxide_types = { path = "chromiumoxide_types", version = "0.6" } chromiumoxide_cdp = { path = "chromiumoxide_cdp", version = "0.6" } chromiumoxide_fetcher = { path = "chromiumoxide_fetcher", version = "0.6", default-features = false, optional = true } serde_json = "1" -which = "4" +which = "6" thiserror = "1" url = "2" base64 = "0.22" @@ -61,6 +61,7 @@ async-std-runtime = ["async-std", "async-tungstenite/async-std-runtime"] tokio-runtime = ["tokio", "async-tungstenite/tokio-runtime"] fetcher = [] bytes = ["dep:bytes"] +serde0 = [] # Temporary features until cargo weak dependencies bug is fixed # See https://github.com/rust-lang/cargo/issues/10801 diff --git a/chromiumoxide_cdp/Cargo.toml b/chromiumoxide_cdp/Cargo.toml index 6db88caa..1079e125 100644 --- a/chromiumoxide_cdp/Cargo.toml +++ b/chromiumoxide_cdp/Cargo.toml @@ -11,10 +11,13 @@ repository = "https://github.com/mattsse/chromiumoxide" readme = "../README.md" include = ["src/**/*", "*.pdl", "LICENSE-*"] +[features] +serde0 = [] + [dev-dependencies] chromiumoxide_pdl = { path = "../chromiumoxide_pdl", version = "0.6" } -ureq = "2.6.2" -tempfile = "3.2.0" +ureq = "2.10.0" +tempfile = "3.10.1" [dependencies] chromiumoxide_pdl = { path = "../chromiumoxide_pdl", version = "0.6" } diff --git a/chromiumoxide_cdp/browser_protocol.pdl b/chromiumoxide_cdp/browser_protocol.pdl index 01a22c24..77608eef 100644 --- a/chromiumoxide_cdp/browser_protocol.pdl +++ b/chromiumoxide_cdp/browser_protocol.pdl @@ -1,4 +1,4 @@ -# Copyright 2017 The Chromium Authors. All rights reserved. +# Copyright 2017 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # @@ -72,7 +72,7 @@ experimental domain Accessibility optional AXValue attributeValue # Whether this source is superseded by a higher priority source. optional boolean superseded - # The native markup source for this value, e.g. a