devtools-protocol 0.0.1308459 → 0.0.1310407

Sign up to get free protection for your applications and to get access to all the features.
@@ -1220,6 +1220,8 @@
1220
1220
  "CoopSandboxedIFrameCannotNavigateToCoopPage",
1221
1221
  "CorpNotSameOrigin",
1222
1222
  "CorpNotSameOriginAfterDefaultedToSameOriginByCoep",
1223
+ "CorpNotSameOriginAfterDefaultedToSameOriginByDip",
1224
+ "CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip",
1223
1225
  "CorpNotSameSite"
1224
1226
  ]
1225
1227
  },
@@ -12487,6 +12489,8 @@
12487
12489
  "coop-sandboxed-iframe-cannot-navigate-to-coop-page",
12488
12490
  "corp-not-same-origin",
12489
12491
  "corp-not-same-origin-after-defaulted-to-same-origin-by-coep",
12492
+ "corp-not-same-origin-after-defaulted-to-same-origin-by-dip",
12493
+ "corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip",
12490
12494
  "corp-not-same-site"
12491
12495
  ]
12492
12496
  },
@@ -26253,7 +26257,7 @@
26253
26257
  },
26254
26258
  {
26255
26259
  "name": "launch",
26256
- "description": "Launches the installed web app, or an url in the same web app instead of the\ndefault start url if it is provided. Returns a tab / web contents based\nTarget.TargetID which can be used to attach to via Target.attachToTarget or\nsimilar APIs.",
26260
+ "description": "Launches the installed web app, or an url in the same web app instead of the\ndefault start url if it is provided. Returns a page Target.TargetID which\ncan be used to attach to via Target.attachToTarget or similar APIs.",
26257
26261
  "parameters": [
26258
26262
  {
26259
26263
  "name": "manifestId",
@@ -26275,7 +26279,7 @@
26275
26279
  },
26276
26280
  {
26277
26281
  "name": "launchFilesInApp",
26278
- "description": "Opens one or more local files from an installed web app identified by its\nmanifestId. The web app needs to have file handlers registered to process\nthe files. The API returns one or more tabs / web contents' based\nTarget.TargetIDs which can be used to attach to via Target.attachToTarget or\nsimilar APIs.\nIf some files in the parameters cannot be handled by the web app, they will\nbe ignored. If none of the files can be handled, this API returns an error.\nIf no files provided as the parameter, this API also returns an error.\n\nAccording to the definition of the file handlers in the manifest file, one\nTarget.TargetID may represent a tab handling one or more files. The order of\nthe returned Target.TargetIDs is also not guaranteed.\n\nTODO(crbug.com/339454034): Check the existences of the input files.",
26282
+ "description": "Opens one or more local files from an installed web app identified by its\nmanifestId. The web app needs to have file handlers registered to process\nthe files. The API returns one or more page Target.TargetIDs which can be\nused to attach to via Target.attachToTarget or similar APIs.\nIf some files in the parameters cannot be handled by the web app, they will\nbe ignored. If none of the files can be handled, this API returns an error.\nIf no files provided as the parameter, this API also returns an error.\n\nAccording to the definition of the file handlers in the manifest file, one\nTarget.TargetID may represent a page handling one or more files. The order\nof the returned Target.TargetIDs is not guaranteed.\n\nTODO(crbug.com/339454034): Check the existences of the input files.",
26279
26283
  "parameters": [
26280
26284
  {
26281
26285
  "name": "manifestId",
@@ -26299,6 +26303,16 @@
26299
26303
  }
26300
26304
  }
26301
26305
  ]
26306
+ },
26307
+ {
26308
+ "name": "openCurrentPageInApp",
26309
+ "description": "Opens the current page in its web app identified by the manifest id, needs\nto be called on a page target. This function returns immediately without\nwaiting for the app finishing loading.",
26310
+ "parameters": [
26311
+ {
26312
+ "name": "manifestId",
26313
+ "type": "string"
26314
+ }
26315
+ ]
26302
26316
  }
26303
26317
  ]
26304
26318
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1308459",
3
+ "version": "0.0.1310407",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -622,6 +622,8 @@ experimental domain Audits
622
622
  CoopSandboxedIFrameCannotNavigateToCoopPage
623
623
  CorpNotSameOrigin
624
624
  CorpNotSameOriginAfterDefaultedToSameOriginByCoep
625
+ CorpNotSameOriginAfterDefaultedToSameOriginByDip
626
+ CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip
625
627
  CorpNotSameSite
626
628
 
627
629
  # Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
@@ -5755,6 +5757,8 @@ domain Network
5755
5757
  coop-sandboxed-iframe-cannot-navigate-to-coop-page
5756
5758
  corp-not-same-origin
5757
5759
  corp-not-same-origin-after-defaulted-to-same-origin-by-coep
5760
+ corp-not-same-origin-after-defaulted-to-same-origin-by-dip
5761
+ corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip
5758
5762
  corp-not-same-site
5759
5763
 
5760
5764
  # The reason why request was blocked.
@@ -12406,9 +12410,8 @@ experimental domain PWA
12406
12410
  string manifestId
12407
12411
 
12408
12412
  # Launches the installed web app, or an url in the same web app instead of the
12409
- # default start url if it is provided. Returns a tab / web contents based
12410
- # Target.TargetID which can be used to attach to via Target.attachToTarget or
12411
- # similar APIs.
12413
+ # default start url if it is provided. Returns a page Target.TargetID which
12414
+ # can be used to attach to via Target.attachToTarget or similar APIs.
12412
12415
  command launch
12413
12416
  parameters
12414
12417
  string manifestId
@@ -12419,16 +12422,15 @@ experimental domain PWA
12419
12422
 
12420
12423
  # Opens one or more local files from an installed web app identified by its
12421
12424
  # manifestId. The web app needs to have file handlers registered to process
12422
- # the files. The API returns one or more tabs / web contents' based
12423
- # Target.TargetIDs which can be used to attach to via Target.attachToTarget or
12424
- # similar APIs.
12425
+ # the files. The API returns one or more page Target.TargetIDs which can be
12426
+ # used to attach to via Target.attachToTarget or similar APIs.
12425
12427
  # If some files in the parameters cannot be handled by the web app, they will
12426
12428
  # be ignored. If none of the files can be handled, this API returns an error.
12427
12429
  # If no files provided as the parameter, this API also returns an error.
12428
12430
  #
12429
12431
  # According to the definition of the file handlers in the manifest file, one
12430
- # Target.TargetID may represent a tab handling one or more files. The order of
12431
- # the returned Target.TargetIDs is also not guaranteed.
12432
+ # Target.TargetID may represent a page handling one or more files. The order
12433
+ # of the returned Target.TargetIDs is not guaranteed.
12432
12434
  #
12433
12435
  # TODO(crbug.com/339454034): Check the existences of the input files.
12434
12436
  command launchFilesInApp
@@ -12438,3 +12440,10 @@ experimental domain PWA
12438
12440
  returns
12439
12441
  # IDs of the tab targets created as the result.
12440
12442
  array of Target.TargetID targetIds
12443
+
12444
+ # Opens the current page in its web app identified by the manifest id, needs
12445
+ # to be called on a page target. This function returns immediately without
12446
+ # waiting for the app finishing loading.
12447
+ command openCurrentPageInApp
12448
+ parameters
12449
+ string manifestId
@@ -4992,9 +4992,8 @@ export namespace ProtocolMapping {
4992
4992
  };
4993
4993
  /**
4994
4994
  * Launches the installed web app, or an url in the same web app instead of the
4995
- * default start url if it is provided. Returns a tab / web contents based
4996
- * Target.TargetID which can be used to attach to via Target.attachToTarget or
4997
- * similar APIs.
4995
+ * default start url if it is provided. Returns a page Target.TargetID which
4996
+ * can be used to attach to via Target.attachToTarget or similar APIs.
4998
4997
  */
4999
4998
  'PWA.launch': {
5000
4999
  paramsType: [Protocol.PWA.LaunchRequest];
@@ -5003,16 +5002,15 @@ export namespace ProtocolMapping {
5003
5002
  /**
5004
5003
  * Opens one or more local files from an installed web app identified by its
5005
5004
  * manifestId. The web app needs to have file handlers registered to process
5006
- * the files. The API returns one or more tabs / web contents' based
5007
- * Target.TargetIDs which can be used to attach to via Target.attachToTarget or
5008
- * similar APIs.
5005
+ * the files. The API returns one or more page Target.TargetIDs which can be
5006
+ * used to attach to via Target.attachToTarget or similar APIs.
5009
5007
  * If some files in the parameters cannot be handled by the web app, they will
5010
5008
  * be ignored. If none of the files can be handled, this API returns an error.
5011
5009
  * If no files provided as the parameter, this API also returns an error.
5012
5010
  *
5013
5011
  * According to the definition of the file handlers in the manifest file, one
5014
- * Target.TargetID may represent a tab handling one or more files. The order of
5015
- * the returned Target.TargetIDs is also not guaranteed.
5012
+ * Target.TargetID may represent a page handling one or more files. The order
5013
+ * of the returned Target.TargetIDs is not guaranteed.
5016
5014
  *
5017
5015
  * TODO(crbug.com/339454034): Check the existences of the input files.
5018
5016
  */
@@ -5020,6 +5018,15 @@ export namespace ProtocolMapping {
5020
5018
  paramsType: [Protocol.PWA.LaunchFilesInAppRequest];
5021
5019
  returnType: Protocol.PWA.LaunchFilesInAppResponse;
5022
5020
  };
5021
+ /**
5022
+ * Opens the current page in its web app identified by the manifest id, needs
5023
+ * to be called on a page target. This function returns immediately without
5024
+ * waiting for the app finishing loading.
5025
+ */
5026
+ 'PWA.openCurrentPageInApp': {
5027
+ paramsType: [Protocol.PWA.OpenCurrentPageInAppRequest];
5028
+ returnType: void;
5029
+ };
5023
5030
  }
5024
5031
  }
5025
5032
 
@@ -4261,30 +4261,35 @@ export namespace ProtocolProxyApi {
4261
4261
 
4262
4262
  /**
4263
4263
  * Launches the installed web app, or an url in the same web app instead of the
4264
- * default start url if it is provided. Returns a tab / web contents based
4265
- * Target.TargetID which can be used to attach to via Target.attachToTarget or
4266
- * similar APIs.
4264
+ * default start url if it is provided. Returns a page Target.TargetID which
4265
+ * can be used to attach to via Target.attachToTarget or similar APIs.
4267
4266
  */
4268
4267
  launch(params: Protocol.PWA.LaunchRequest): Promise<Protocol.PWA.LaunchResponse>;
4269
4268
 
4270
4269
  /**
4271
4270
  * Opens one or more local files from an installed web app identified by its
4272
4271
  * manifestId. The web app needs to have file handlers registered to process
4273
- * the files. The API returns one or more tabs / web contents' based
4274
- * Target.TargetIDs which can be used to attach to via Target.attachToTarget or
4275
- * similar APIs.
4272
+ * the files. The API returns one or more page Target.TargetIDs which can be
4273
+ * used to attach to via Target.attachToTarget or similar APIs.
4276
4274
  * If some files in the parameters cannot be handled by the web app, they will
4277
4275
  * be ignored. If none of the files can be handled, this API returns an error.
4278
4276
  * If no files provided as the parameter, this API also returns an error.
4279
4277
  *
4280
4278
  * According to the definition of the file handlers in the manifest file, one
4281
- * Target.TargetID may represent a tab handling one or more files. The order of
4282
- * the returned Target.TargetIDs is also not guaranteed.
4279
+ * Target.TargetID may represent a page handling one or more files. The order
4280
+ * of the returned Target.TargetIDs is not guaranteed.
4283
4281
  *
4284
4282
  * TODO(crbug.com/339454034): Check the existences of the input files.
4285
4283
  */
4286
4284
  launchFilesInApp(params: Protocol.PWA.LaunchFilesInAppRequest): Promise<Protocol.PWA.LaunchFilesInAppResponse>;
4287
4285
 
4286
+ /**
4287
+ * Opens the current page in its web app identified by the manifest id, needs
4288
+ * to be called on a page target. This function returns immediately without
4289
+ * waiting for the app finishing loading.
4290
+ */
4291
+ openCurrentPageInApp(params: Protocol.PWA.OpenCurrentPageInAppRequest): Promise<void>;
4292
+
4288
4293
  }
4289
4294
  }
4290
4295
 
@@ -4645,30 +4645,35 @@ export namespace ProtocolTestsProxyApi {
4645
4645
 
4646
4646
  /**
4647
4647
  * Launches the installed web app, or an url in the same web app instead of the
4648
- * default start url if it is provided. Returns a tab / web contents based
4649
- * Target.TargetID which can be used to attach to via Target.attachToTarget or
4650
- * similar APIs.
4648
+ * default start url if it is provided. Returns a page Target.TargetID which
4649
+ * can be used to attach to via Target.attachToTarget or similar APIs.
4651
4650
  */
4652
4651
  launch(params: Protocol.PWA.LaunchRequest): Promise<{id: number, result: Protocol.PWA.LaunchResponse, sessionId: string}>;
4653
4652
 
4654
4653
  /**
4655
4654
  * Opens one or more local files from an installed web app identified by its
4656
4655
  * manifestId. The web app needs to have file handlers registered to process
4657
- * the files. The API returns one or more tabs / web contents' based
4658
- * Target.TargetIDs which can be used to attach to via Target.attachToTarget or
4659
- * similar APIs.
4656
+ * the files. The API returns one or more page Target.TargetIDs which can be
4657
+ * used to attach to via Target.attachToTarget or similar APIs.
4660
4658
  * If some files in the parameters cannot be handled by the web app, they will
4661
4659
  * be ignored. If none of the files can be handled, this API returns an error.
4662
4660
  * If no files provided as the parameter, this API also returns an error.
4663
4661
  *
4664
4662
  * According to the definition of the file handlers in the manifest file, one
4665
- * Target.TargetID may represent a tab handling one or more files. The order of
4666
- * the returned Target.TargetIDs is also not guaranteed.
4663
+ * Target.TargetID may represent a page handling one or more files. The order
4664
+ * of the returned Target.TargetIDs is not guaranteed.
4667
4665
  *
4668
4666
  * TODO(crbug.com/339454034): Check the existences of the input files.
4669
4667
  */
4670
4668
  launchFilesInApp(params: Protocol.PWA.LaunchFilesInAppRequest): Promise<{id: number, result: Protocol.PWA.LaunchFilesInAppResponse, sessionId: string}>;
4671
4669
 
4670
+ /**
4671
+ * Opens the current page in its web app identified by the manifest id, needs
4672
+ * to be called on a page target. This function returns immediately without
4673
+ * waiting for the app finishing loading.
4674
+ */
4675
+ openCurrentPageInApp(params: Protocol.PWA.OpenCurrentPageInAppRequest): Promise<{id: number, result: void, sessionId: string}>;
4676
+
4672
4677
  }
4673
4678
  }
4674
4679
 
@@ -3378,7 +3378,7 @@ export namespace Protocol {
3378
3378
  * Enum indicating the reason a response has been blocked. These reasons are
3379
3379
  * refinements of the net error BLOCKED_BY_RESPONSE.
3380
3380
  */
3381
- export type BlockedByResponseReason = ('CoepFrameResourceNeedsCoepHeader' | 'CoopSandboxedIFrameCannotNavigateToCoopPage' | 'CorpNotSameOrigin' | 'CorpNotSameOriginAfterDefaultedToSameOriginByCoep' | 'CorpNotSameSite');
3381
+ export type BlockedByResponseReason = ('CoepFrameResourceNeedsCoepHeader' | 'CoopSandboxedIFrameCannotNavigateToCoopPage' | 'CorpNotSameOrigin' | 'CorpNotSameOriginAfterDefaultedToSameOriginByCoep' | 'CorpNotSameOriginAfterDefaultedToSameOriginByDip' | 'CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip' | 'CorpNotSameSite');
3382
3382
 
3383
3383
  /**
3384
3384
  * Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
@@ -10410,7 +10410,7 @@ export namespace Protocol {
10410
10410
  /**
10411
10411
  * The reason why request was blocked.
10412
10412
  */
10413
- export type BlockedReason = ('other' | 'csp' | 'mixed-content' | 'origin' | 'inspector' | 'subresource-filter' | 'content-type' | 'coep-frame-resource-needs-coep-header' | 'coop-sandboxed-iframe-cannot-navigate-to-coop-page' | 'corp-not-same-origin' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep' | 'corp-not-same-site');
10413
+ export type BlockedReason = ('other' | 'csp' | 'mixed-content' | 'origin' | 'inspector' | 'subresource-filter' | 'content-type' | 'coep-frame-resource-needs-coep-header' | 'coop-sandboxed-iframe-cannot-navigate-to-coop-page' | 'corp-not-same-origin' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-dip' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip' | 'corp-not-same-site');
10414
10414
 
10415
10415
  /**
10416
10416
  * The reason why request was blocked.
@@ -18602,6 +18602,10 @@ export namespace Protocol {
18602
18602
  */
18603
18603
  targetIds: Target.TargetID[];
18604
18604
  }
18605
+
18606
+ export interface OpenCurrentPageInAppRequest {
18607
+ manifestId: string;
18608
+ }
18605
18609
  }
18606
18610
  }
18607
18611