devtools-protocol 0.0.1059094 → 0.0.1059612

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.
@@ -16641,6 +16641,24 @@
16641
16641
  }
16642
16642
  ]
16643
16643
  },
16644
+ {
16645
+ "name": "getAdScriptId",
16646
+ "experimental": true,
16647
+ "parameters": [
16648
+ {
16649
+ "name": "frameId",
16650
+ "$ref": "FrameId"
16651
+ }
16652
+ ],
16653
+ "returns": [
16654
+ {
16655
+ "name": "adScriptId",
16656
+ "description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad. Only sent if frame is labelled as an ad and id is available.",
16657
+ "optional": true,
16658
+ "$ref": "AdScriptId"
16659
+ }
16660
+ ]
16661
+ },
16644
16662
  {
16645
16663
  "name": "getCookies",
16646
16664
  "description": "Returns all browser cookies for the page and all of its subframes. Depending\non the backend support, will return detailed cookie information in the\n`cookies` field.",
@@ -17588,8 +17606,9 @@
17588
17606
  },
17589
17607
  {
17590
17608
  "name": "adScriptId",
17591
- "description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad. Only sent if frame is labelled as an ad and id is available.",
17609
+ "description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad. Only sent if frame is labelled as an ad and id is available.\nDeprecated: use Page.getAdScriptId instead.",
17592
17610
  "experimental": true,
17611
+ "deprecated": true,
17593
17612
  "optional": true,
17594
17613
  "$ref": "AdScriptId"
17595
17614
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1059094",
3
+ "version": "0.0.1059612",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -7682,6 +7682,14 @@ domain Page
7682
7682
  # Recommendation for manifest's id attribute to match current id computed from start_url
7683
7683
  optional string recommendedId
7684
7684
 
7685
+ experimental command getAdScriptId
7686
+ parameters
7687
+ FrameId frameId
7688
+ returns
7689
+ # Identifies the bottom-most script which caused the frame to be labelled
7690
+ # as an ad. Only sent if frame is labelled as an ad and id is available.
7691
+ optional AdScriptId adScriptId
7692
+
7685
7693
  # Returns all browser cookies for the page and all of its subframes. Depending
7686
7694
  # on the backend support, will return detailed cookie information in the
7687
7695
  # `cookies` field.
@@ -8129,7 +8137,8 @@ domain Page
8129
8137
  optional Runtime.StackTrace stack
8130
8138
  # Identifies the bottom-most script which caused the frame to be labelled
8131
8139
  # as an ad. Only sent if frame is labelled as an ad and id is available.
8132
- experimental optional AdScriptId adScriptId
8140
+ # Deprecated: use Page.getAdScriptId instead.
8141
+ experimental deprecated optional AdScriptId adScriptId
8133
8142
 
8134
8143
  # Fired when frame no longer has a scheduled navigation.
8135
8144
  deprecated event frameClearedScheduledNavigation
@@ -3526,6 +3526,10 @@ export namespace ProtocolMapping {
3526
3526
  paramsType: [];
3527
3527
  returnType: Protocol.Page.GetAppIdResponse;
3528
3528
  };
3529
+ 'Page.getAdScriptId': {
3530
+ paramsType: [Protocol.Page.GetAdScriptIdRequest];
3531
+ returnType: Protocol.Page.GetAdScriptIdResponse;
3532
+ };
3529
3533
  /**
3530
3534
  * Returns all browser cookies for the page and all of its subframes. Depending
3531
3535
  * on the backend support, will return detailed cookie information in the
@@ -2729,6 +2729,8 @@ export namespace ProtocolProxyApi {
2729
2729
  */
2730
2730
  getAppId(): Promise<Protocol.Page.GetAppIdResponse>;
2731
2731
 
2732
+ getAdScriptId(params: Protocol.Page.GetAdScriptIdRequest): Promise<Protocol.Page.GetAdScriptIdResponse>;
2733
+
2732
2734
  /**
2733
2735
  * Returns all browser cookies for the page and all of its subframes. Depending
2734
2736
  * on the backend support, will return detailed cookie information in the
@@ -12992,6 +12992,18 @@ export namespace Protocol {
12992
12992
  recommendedId?: string;
12993
12993
  }
12994
12994
 
12995
+ export interface GetAdScriptIdRequest {
12996
+ frameId: FrameId;
12997
+ }
12998
+
12999
+ export interface GetAdScriptIdResponse {
13000
+ /**
13001
+ * Identifies the bottom-most script which caused the frame to be labelled
13002
+ * as an ad. Only sent if frame is labelled as an ad and id is available.
13003
+ */
13004
+ adScriptId?: AdScriptId;
13005
+ }
13006
+
12995
13007
  export interface GetCookiesResponse {
12996
13008
  /**
12997
13009
  * Array of cookie objects.
@@ -13591,6 +13603,7 @@ export namespace Protocol {
13591
13603
  /**
13592
13604
  * Identifies the bottom-most script which caused the frame to be labelled
13593
13605
  * as an ad. Only sent if frame is labelled as an ad and id is available.
13606
+ * Deprecated: use Page.getAdScriptId instead.
13594
13607
  */
13595
13608
  adScriptId?: AdScriptId;
13596
13609
  }