Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Bump CDP to `r1596832`
- Derive `Clone` for `Element`, `ScreenshotParams` and `ScreenshotParamsBuilder`

## [0.9.1] 2026-02-25
Expand Down
2 changes: 2 additions & 0 deletions chromiumoxide_cdp/pdl/browser_protocol.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ include domains/PerformanceTimeline.pdl
include domains/Preload.pdl
include domains/Security.pdl
include domains/ServiceWorker.pdl
# no actual pdl file -- include domains/SmartCardEmulation.pdl
include domains/Storage.pdl
include domains/SystemInfo.pdl
include domains/Target.pdl
include domains/Tethering.pdl
include domains/Tracing.pdl
include domains/WebAudio.pdl
include domains/WebAuthn.pdl
# no actual pdl file -- include domains/WebMCP.pdl
94 changes: 67 additions & 27 deletions chromiumoxide_cdp/pdl/domains/Audits.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# Audits domain allows investigation of page violations and possible improvements.
experimental domain Audits
depends on Network
depends on Runtime

# Information about a cookie that is affected by an inspector issue.
type AffectedCookie extends object
Expand Down Expand Up @@ -34,8 +35,6 @@ experimental domain Audits
ExcludeSameSiteNoneInsecure
ExcludeSameSiteLax
ExcludeSameSiteStrict
ExcludeInvalidSameParty
ExcludeSamePartyCrossPartyContext
ExcludeDomainNonASCII
ExcludeThirdPartyCookieBlockedInFirstPartySet
ExcludeThirdPartyPhaseout
Expand Down Expand Up @@ -107,6 +106,16 @@ experimental domain Audits
# The recommended solution to the issue.
optional CookieIssueInsight insight

type PerformanceIssueType extends string
enum
DocumentCookie

# Details for a performance issue.
type PerformanceIssueDetails extends object
properties
PerformanceIssueType performanceIssueType
optional SourceCodeLocation sourceCodeLocation

type MixedContentResolutionStatus extends string
enum
MixedContentBlocked
Expand Down Expand Up @@ -249,16 +258,6 @@ experimental domain Audits
boolean isWarning
SharedArrayBufferIssueType type

type LowTextContrastIssueDetails extends object
properties
DOM.BackendNodeId violatingNodeId
string violatingNodeSelector
number contrastRatio
number thresholdAA
number thresholdAAA
string fontSize
string fontWeight

# Details for a CORS related issue, e.g. a warning or error related to
# CORS RFC1918 enforcement.
type CorsIssueDetails extends object
Expand Down Expand Up @@ -355,6 +354,15 @@ experimental domain Audits
IncorrectDigestType
IncorrectDigestLength

type ConnectionAllowlistError extends string
enum
InvalidHeader
MoreThanOneList
ItemNotInnerList
InvalidAllowlistItemType
ReportingEndpointNotToken
InvalidUrlPattern

# Details for issues around "Attribution Reporting API" usage.
# Explainer: https://github.com/WICG/attribution-reporting-api
type AttributionReportingIssueDetails extends object
Expand Down Expand Up @@ -398,6 +406,11 @@ experimental domain Audits
UnencodedDigestError error
AffectedRequest request

type ConnectionAllowlistIssueDetails extends object
properties
ConnectionAllowlistError error
AffectedRequest request

type GenericIssueErrorType extends string
enum
FormLabelForNameError
Expand All @@ -415,6 +428,7 @@ experimental domain Audits
AutofillAndManualTextPolicyControlledFeaturesInfo
AutofillPolicyControlledFeatureInfo
ManualTextPolicyControlledFeatureInfo
FormModelContextParameterMissingTitleAndDescription

# Depending on the concrete errorType, different properties are set.
type GenericIssueDetails extends object
Expand Down Expand Up @@ -488,10 +502,6 @@ experimental domain Audits
ConfigNoResponse
ConfigInvalidResponse
ConfigInvalidContentType
ClientMetadataHttpNotFound
ClientMetadataNoResponse
ClientMetadataInvalidResponse
ClientMetadataInvalidContentType
IdpNotPotentiallyTrustworthy
DisabledInSettings
DisabledInFlags
Expand All @@ -513,11 +523,9 @@ experimental domain Audits
Canceled
RpPageNotVisible
SilentMediationFailure
ThirdPartyCookiesBlocked
NotSignedInWithIdp
MissingTransientUserActivation
ReplacedByActiveMode
InvalidFieldsSpecified
RelyingPartyOriginIsOpaque
TypeNotMatching
UiDismissedNoEmbargo
Expand Down Expand Up @@ -680,6 +688,41 @@ experimental domain Audits
# Used for messages about activation disabled reason
optional string disableReason

# Metadata about the ad script that was on the stack that caused the current
# script in the `AdAncestry` to be considered ad related.
type AdScriptIdentifier extends object
properties
# The script's v8 identifier.
Runtime.ScriptId scriptId
# v8's debugging id for the v8::Context.
Runtime.UniqueDebuggerId debuggerId
# The script's url (or generated name based on id if inline script).
string name

# Providence about how an ad script was determined to be such. It is an ad
# because its url matched a filterlist rule, or because some other ad script
# was on the stack when this script was loaded.
type AdAncestry extends object
properties
# The ad-script in the stack when the offending script was loaded. This is
# recursive down to the root script that was tagged due to the filterlist
# rule.
array of AdScriptIdentifier adAncestryChain
# The filterlist rule that caused the root (last) script in
# `adAncestry` to be ad-tagged.
optional string rootScriptFilterlistRule

# The issue warns about blocked calls to privacy sensitive APIs via the
# Selective Permissions Intervention.
type SelectivePermissionsInterventionIssueDetails extends object
properties
# Which API was intervened on.
string apiName
# Why the ad script using the API is considered an ad.
AdAncestry adAncestry
# The stack trace at the time of the intervention.
optional Runtime.StackTrace stackTrace

# A unique identifier for the type of issue. Each type may use one of the
# optional fields in InspectorIssueDetails to convey more specific
# information about the kind of issue.
Expand All @@ -691,7 +734,6 @@ experimental domain Audits
HeavyAdIssue
ContentSecurityPolicyIssue
SharedArrayBufferIssue
LowTextContrastIssue
CorsIssue
AttributionReportingIssue
QuirksModeIssue
Expand All @@ -711,8 +753,11 @@ experimental domain Audits
ElementAccessibilityIssue
SRIMessageSignatureIssue
UnencodedDigestIssue
ConnectionAllowlistIssue
UserReidentificationIssue
PermissionElementIssue
PerformanceIssue
SelectivePermissionsInterventionIssue

# This struct holds a list of optional fields with additional information
# specific to the kind of issue. When adding a new issue code, please also
Expand All @@ -725,7 +770,6 @@ experimental domain Audits
optional HeavyAdIssueDetails heavyAdIssueDetails
optional ContentSecurityPolicyIssueDetails contentSecurityPolicyIssueDetails
optional SharedArrayBufferIssueDetails sharedArrayBufferIssueDetails
optional LowTextContrastIssueDetails lowTextContrastIssueDetails
optional CorsIssueDetails corsIssueDetails
optional AttributionReportingIssueDetails attributionReportingIssueDetails
optional QuirksModeIssueDetails quirksModeIssueDetails
Expand All @@ -744,8 +788,11 @@ experimental domain Audits
optional ElementAccessibilityIssueDetails elementAccessibilityIssueDetails
optional SRIMessageSignatureIssueDetails sriMessageSignatureIssueDetails
optional UnencodedDigestIssueDetails unencodedDigestIssueDetails
optional ConnectionAllowlistIssueDetails connectionAllowlistIssueDetails
optional UserReidentificationIssueDetails userReidentificationIssueDetails
optional PermissionElementIssueDetails permissionElementIssueDetails
optional PerformanceIssueDetails performanceIssueDetails
optional SelectivePermissionsInterventionIssueDetails selectivePermissionsInterventionIssueDetails

# A unique id for a DevTools inspector issue. Allows other entities (e.g.
# exceptions, CDP message, console messages, etc.) to reference an issue.
Expand Down Expand Up @@ -790,13 +837,6 @@ experimental domain Audits
# `issueAdded` event.
command enable

# Runs the contrast check for the target page. Found issues are reported
# using Audits.issueAdded event.
command checkContrast
parameters
# Whether to report WCAG AAA level issues. Default is false.
optional boolean reportAAA

# Runs the form issues check for the target page. Found issues are reported
# using Audits.issueAdded event.
command checkFormsIssues
Expand Down
31 changes: 31 additions & 0 deletions chromiumoxide_cdp/pdl/domains/CSS.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ experimental domain CSS
# @starting-style CSS at-rule array.
# The array enumerates @starting-style at-rules starting with the innermost one, going outwards.
experimental optional array of CSSStartingStyle startingStyles
# @navigation CSS at-rule array.
# The array enumerates @navigation at-rules starting with the innermost one, going outwards.
experimental optional array of CSSNavigation navigations

# Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
# This list only contains rule types that are collected during the ancestor rule collection.
Expand All @@ -197,6 +200,7 @@ experimental domain CSS
ScopeRule
StyleRule
StartingStyleRule
NavigationRule

# CSS coverage information.
type RuleUsage extends object
Expand Down Expand Up @@ -364,6 +368,19 @@ experimental domain CSS
# Identifier of the stylesheet containing this object (if exists).
optional DOM.StyleSheetId styleSheetId

# CSS Navigation at-rule descriptor.
experimental type CSSNavigation extends object
properties
# Navigation rule text.
string text
# Whether the navigation condition is satisfied.
optional boolean active
# The associated rule header range in the enclosing stylesheet (if
# available).
optional SourceRange range
# Identifier of the stylesheet containing this object (if exists).
optional DOM.StyleSheetId styleSheetId

# CSS Scope at-rule descriptor.
experimental type CSSScope extends object
properties
Expand Down Expand Up @@ -556,6 +573,8 @@ experimental domain CSS
optional CSSContainerQuery containerQueries
# @supports CSS at-rule condition. Only one type of condition should be set.
optional CSSSupports supports
# @navigation condition. Only one type of condition should be set.
optional CSSNavigation navigation
# Block body.
array of CSSFunctionNode children
# The condition text.
Expand Down Expand Up @@ -708,6 +727,8 @@ experimental domain CSS
# to the provided property syntax, the value is parsed using combined
# syntax as if null `propertyName` was provided. If the value cannot be
# resolved even then, return the provided value without any changes.
# Note: this function currently does not resolve CSS random() function,
# it returns unmodified random() function parts.`
experimental command resolveValues
parameters
# Cascade-dependent keywords (revert/revert-layer) do not work.
Expand Down Expand Up @@ -922,6 +943,16 @@ experimental domain CSS
# The resulting CSS Supports rule after modification.
CSSSupports supports

# Modifies the expression of a navigation at-rule.
experimental command setNavigationText
parameters
DOM.StyleSheetId styleSheetId
SourceRange range
string text
returns
# The resulting CSS Navigation rule after modification.
CSSNavigation navigation

# Modifies the expression of a scope at-rule.
experimental command setScopeText
parameters
Expand Down
9 changes: 9 additions & 0 deletions chromiumoxide_cdp/pdl/domains/DOM.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ domain DOM
experimental optional boolean isScrollable
experimental optional boolean affectedByStartingStyles
experimental optional array of StyleSheetId adoptedStyleSheets
experimental optional boolean isAdRelated

# A structure to hold the top-level node of a detached tree and an array of its retained descendants.
type DetachedElementInfo extends object
Expand Down Expand Up @@ -912,6 +913,14 @@ domain DOM
# If the node is scrollable.
boolean isScrollable

# Fired when a node's ad related state changes.
experimental event adRelatedStateUpdated
parameters
# The id of the node.
DOM.NodeId nodeId
# If the node is ad related.
boolean isAdRelated

# Fired when a node's starting styles changes.
experimental event affectedByStartingStylesFlagUpdated
parameters
Expand Down
Loading