devtools-protocol 0.0.1152884 → 0.0.1154250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/browser_protocol.json +54 -1
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +24 -0
- package/types/protocol.d.ts +33 -1
@@ -1646,6 +1646,53 @@
|
|
1646
1646
|
}
|
1647
1647
|
]
|
1648
1648
|
},
|
1649
|
+
{
|
1650
|
+
"id": "FailedRequestInfo",
|
1651
|
+
"type": "object",
|
1652
|
+
"properties": [
|
1653
|
+
{
|
1654
|
+
"name": "url",
|
1655
|
+
"description": "The URL that failed to load.",
|
1656
|
+
"type": "string"
|
1657
|
+
},
|
1658
|
+
{
|
1659
|
+
"name": "failureMessage",
|
1660
|
+
"description": "The failure message for the failed request.",
|
1661
|
+
"type": "string"
|
1662
|
+
}
|
1663
|
+
]
|
1664
|
+
},
|
1665
|
+
{
|
1666
|
+
"id": "StyleSheetLoadingIssueReason",
|
1667
|
+
"type": "string",
|
1668
|
+
"enum": [
|
1669
|
+
"LateImportRule",
|
1670
|
+
"RequestFailed"
|
1671
|
+
]
|
1672
|
+
},
|
1673
|
+
{
|
1674
|
+
"id": "StylesheetLoadingIssueDetails",
|
1675
|
+
"description": "This issue warns when a referenced stylesheet couldn't be loaded.",
|
1676
|
+
"type": "object",
|
1677
|
+
"properties": [
|
1678
|
+
{
|
1679
|
+
"name": "sourceCodeLocation",
|
1680
|
+
"description": "Source code position that referenced the failing stylesheet.",
|
1681
|
+
"$ref": "SourceCodeLocation"
|
1682
|
+
},
|
1683
|
+
{
|
1684
|
+
"name": "styleSheetLoadingIssueReason",
|
1685
|
+
"description": "Reason why the stylesheet couldn't be loaded.",
|
1686
|
+
"$ref": "StyleSheetLoadingIssueReason"
|
1687
|
+
},
|
1688
|
+
{
|
1689
|
+
"name": "failedRequestInfo",
|
1690
|
+
"description": "Contains additional info when the failure was due to a request.",
|
1691
|
+
"optional": true,
|
1692
|
+
"$ref": "FailedRequestInfo"
|
1693
|
+
}
|
1694
|
+
]
|
1695
|
+
},
|
1649
1696
|
{
|
1650
1697
|
"id": "InspectorIssueCode",
|
1651
1698
|
"description": "A unique identifier for the type of issue. Each type may use one of the\noptional fields in InspectorIssueDetails to convey more specific\ninformation about the kind of issue.",
|
@@ -1666,7 +1713,8 @@
|
|
1666
1713
|
"DeprecationIssue",
|
1667
1714
|
"ClientHintIssue",
|
1668
1715
|
"FederatedAuthRequestIssue",
|
1669
|
-
"BounceTrackingIssue"
|
1716
|
+
"BounceTrackingIssue",
|
1717
|
+
"StylesheetLoadingIssue"
|
1670
1718
|
]
|
1671
1719
|
},
|
1672
1720
|
{
|
@@ -1753,6 +1801,11 @@
|
|
1753
1801
|
"name": "bounceTrackingIssueDetails",
|
1754
1802
|
"optional": true,
|
1755
1803
|
"$ref": "BounceTrackingIssueDetails"
|
1804
|
+
},
|
1805
|
+
{
|
1806
|
+
"name": "stylesheetLoadingIssueDetails",
|
1807
|
+
"optional": true,
|
1808
|
+
"$ref": "StylesheetLoadingIssueDetails"
|
1756
1809
|
}
|
1757
1810
|
]
|
1758
1811
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -827,6 +827,28 @@ experimental domain Audits
|
|
827
827
|
SourceCodeLocation sourceCodeLocation
|
828
828
|
ClientHintIssueReason clientHintIssueReason
|
829
829
|
|
830
|
+
type FailedRequestInfo extends object
|
831
|
+
properties
|
832
|
+
# The URL that failed to load.
|
833
|
+
string url
|
834
|
+
# The failure message for the failed request.
|
835
|
+
string failureMessage
|
836
|
+
|
837
|
+
type StyleSheetLoadingIssueReason extends string
|
838
|
+
enum
|
839
|
+
LateImportRule
|
840
|
+
RequestFailed
|
841
|
+
|
842
|
+
# This issue warns when a referenced stylesheet couldn't be loaded.
|
843
|
+
type StylesheetLoadingIssueDetails extends object
|
844
|
+
properties
|
845
|
+
# Source code position that referenced the failing stylesheet.
|
846
|
+
SourceCodeLocation sourceCodeLocation
|
847
|
+
# Reason why the stylesheet couldn't be loaded.
|
848
|
+
StyleSheetLoadingIssueReason styleSheetLoadingIssueReason
|
849
|
+
# Contains additional info when the failure was due to a request.
|
850
|
+
optional FailedRequestInfo failedRequestInfo
|
851
|
+
|
830
852
|
# A unique identifier for the type of issue. Each type may use one of the
|
831
853
|
# optional fields in InspectorIssueDetails to convey more specific
|
832
854
|
# information about the kind of issue.
|
@@ -848,6 +870,7 @@ experimental domain Audits
|
|
848
870
|
ClientHintIssue
|
849
871
|
FederatedAuthRequestIssue
|
850
872
|
BounceTrackingIssue
|
873
|
+
StylesheetLoadingIssue
|
851
874
|
|
852
875
|
# This struct holds a list of optional fields with additional information
|
853
876
|
# specific to the kind of issue. When adding a new issue code, please also
|
@@ -870,6 +893,7 @@ experimental domain Audits
|
|
870
893
|
optional ClientHintIssueDetails clientHintIssueDetails
|
871
894
|
optional FederatedAuthRequestIssueDetails federatedAuthRequestIssueDetails
|
872
895
|
optional BounceTrackingIssueDetails bounceTrackingIssueDetails
|
896
|
+
optional StylesheetLoadingIssueDetails stylesheetLoadingIssueDetails
|
873
897
|
|
874
898
|
# A unique id for a DevTools inspector issue. Allows other entities (e.g.
|
875
899
|
# exceptions, CDP message, console messages, etc.) to reference an issue.
|
package/types/protocol.d.ts
CHANGED
@@ -3531,12 +3531,43 @@ export namespace Protocol {
|
|
3531
3531
|
clientHintIssueReason: ClientHintIssueReason;
|
3532
3532
|
}
|
3533
3533
|
|
3534
|
+
export interface FailedRequestInfo {
|
3535
|
+
/**
|
3536
|
+
* The URL that failed to load.
|
3537
|
+
*/
|
3538
|
+
url: string;
|
3539
|
+
/**
|
3540
|
+
* The failure message for the failed request.
|
3541
|
+
*/
|
3542
|
+
failureMessage: string;
|
3543
|
+
}
|
3544
|
+
|
3545
|
+
export type StyleSheetLoadingIssueReason = ('LateImportRule' | 'RequestFailed');
|
3546
|
+
|
3547
|
+
/**
|
3548
|
+
* This issue warns when a referenced stylesheet couldn't be loaded.
|
3549
|
+
*/
|
3550
|
+
export interface StylesheetLoadingIssueDetails {
|
3551
|
+
/**
|
3552
|
+
* Source code position that referenced the failing stylesheet.
|
3553
|
+
*/
|
3554
|
+
sourceCodeLocation: SourceCodeLocation;
|
3555
|
+
/**
|
3556
|
+
* Reason why the stylesheet couldn't be loaded.
|
3557
|
+
*/
|
3558
|
+
styleSheetLoadingIssueReason: StyleSheetLoadingIssueReason;
|
3559
|
+
/**
|
3560
|
+
* Contains additional info when the failure was due to a request.
|
3561
|
+
*/
|
3562
|
+
failedRequestInfo?: FailedRequestInfo;
|
3563
|
+
}
|
3564
|
+
|
3534
3565
|
/**
|
3535
3566
|
* A unique identifier for the type of issue. Each type may use one of the
|
3536
3567
|
* optional fields in InspectorIssueDetails to convey more specific
|
3537
3568
|
* information about the kind of issue.
|
3538
3569
|
*/
|
3539
|
-
export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue');
|
3570
|
+
export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'StylesheetLoadingIssue');
|
3540
3571
|
|
3541
3572
|
/**
|
3542
3573
|
* This struct holds a list of optional fields with additional information
|
@@ -3560,6 +3591,7 @@ export namespace Protocol {
|
|
3560
3591
|
clientHintIssueDetails?: ClientHintIssueDetails;
|
3561
3592
|
federatedAuthRequestIssueDetails?: FederatedAuthRequestIssueDetails;
|
3562
3593
|
bounceTrackingIssueDetails?: BounceTrackingIssueDetails;
|
3594
|
+
stylesheetLoadingIssueDetails?: StylesheetLoadingIssueDetails;
|
3563
3595
|
}
|
3564
3596
|
|
3565
3597
|
/**
|