chrome-devtools-frontend 1.0.1574367 → 1.0.1575635

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.
Files changed (107) hide show
  1. package/.stylelintrc.json +1 -1
  2. package/AUTHORS +1 -0
  3. package/docs/contributing/settings-experiments-features.md +5 -2
  4. package/front_end/core/common/Settings.ts +1 -1
  5. package/front_end/core/host/InspectorFrontendHostAPI.ts +7 -1
  6. package/front_end/core/host/InspectorFrontendHostStub.ts +10 -0
  7. package/front_end/core/host/UserMetrics.ts +15 -0
  8. package/front_end/core/root/Runtime.ts +119 -39
  9. package/front_end/core/sdk/CSSMatchedStyles.ts +27 -0
  10. package/front_end/entrypoints/main/MainImpl.ts +25 -7
  11. package/front_end/entrypoints/node_app/app/NodeConnectionsPanel.ts +3 -2
  12. package/front_end/generated/InspectorBackendCommands.ts +37 -0
  13. package/front_end/generated/protocol-mapping.d.ts +257 -0
  14. package/front_end/generated/protocol-proxy-api.d.ts +256 -0
  15. package/front_end/generated/protocol.ts +359 -0
  16. package/front_end/models/ai_assistance/AiConversation.ts +31 -10
  17. package/front_end/models/ai_assistance/AiHistoryStorage.ts +1 -0
  18. package/front_end/models/ai_assistance/agents/AiAgent.ts +29 -5
  19. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.snapshot.txt +73 -0
  20. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +141 -0
  21. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +3 -3
  22. package/front_end/models/ai_assistance/agents/StylingAgent.ts +5 -4
  23. package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
  24. package/front_end/models/issues_manager/CorsIssue.ts +0 -3
  25. package/front_end/models/javascript_metadata/NativeFunctions.js +5 -0
  26. package/front_end/models/live-metrics/LiveMetrics.ts +31 -51
  27. package/front_end/models/stack_trace/StackTrace.ts +41 -0
  28. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +72 -6
  29. package/front_end/panels/ai_assistance/ai_assistance-meta.ts +1 -0
  30. package/front_end/panels/ai_assistance/components/ChatInput.ts +24 -2
  31. package/front_end/panels/ai_assistance/components/ChatMessage.ts +6 -4
  32. package/front_end/panels/ai_assistance/components/ChatView.ts +5 -6
  33. package/front_end/panels/ai_assistance/components/chatView.css +10 -0
  34. package/front_end/panels/application/StorageView.ts +3 -3
  35. package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +1 -1
  36. package/front_end/panels/common/AiCodeGenerationUpgradeDialog.ts +32 -16
  37. package/front_end/panels/common/aiCodeCompletionSummaryToolbar.css +1 -1
  38. package/front_end/panels/console/ConsoleContextSelector.ts +4 -3
  39. package/front_end/panels/console/ConsoleFormat.ts +31 -2
  40. package/front_end/panels/console/ConsoleInsightTeaser.ts +6 -1
  41. package/front_end/panels/elements/ElementsTreeElement.ts +46 -2
  42. package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
  43. package/front_end/panels/elements/StylePropertyTreeElement.ts +63 -0
  44. package/front_end/panels/elements/StylesSidebarPane.ts +17 -2
  45. package/front_end/panels/elements/stylePropertiesTreeOutline.css +4 -0
  46. package/front_end/panels/issues/AffectedMetadataAllowedSitesView.ts +3 -3
  47. package/front_end/panels/layer_viewer/Layers3DView.ts +2 -1
  48. package/front_end/panels/lighthouse/LighthouseStartView.ts +7 -6
  49. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +3 -2
  50. package/front_end/panels/network/RequestConditionsDrawer.ts +2 -3
  51. package/front_end/panels/network/SignedExchangeInfoView.ts +3 -4
  52. package/front_end/panels/network/components/HeaderSectionRow.css +1 -1
  53. package/front_end/panels/recorder/components/RecordingView.ts +2 -2
  54. package/front_end/panels/recorder/components/recordingView.css +5 -0
  55. package/front_end/panels/security/SecurityPanelSidebar.ts +10 -9
  56. package/front_end/panels/settings/AISettingsTab.ts +2 -1
  57. package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -5
  58. package/front_end/panels/settings/SettingsScreen.ts +14 -9
  59. package/front_end/panels/settings/settings-meta.ts +1 -0
  60. package/front_end/panels/sources/CallStackSidebarPane.ts +10 -0
  61. package/front_end/panels/sources/DebuggerPlugin.ts +18 -12
  62. package/front_end/panels/sources/ScopeChainSidebarPane.ts +4 -3
  63. package/front_end/panels/sources/SourcesNavigator.ts +2 -2
  64. package/front_end/panels/sources/SourcesPanel.ts +6 -3
  65. package/front_end/panels/sources/TabbedEditorContainer.ts +2 -2
  66. package/front_end/panels/sources/sources-meta.ts +2 -1
  67. package/front_end/panels/timeline/TimelinePanel.ts +2 -1
  68. package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
  69. package/front_end/panels/timeline/components/DetailsView.ts +7 -7
  70. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +2 -2
  71. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +4 -4
  72. package/front_end/panels/whats_new/ReleaseNoteText.ts +11 -11
  73. package/front_end/panels/whats_new/releaseNoteView.css +1 -1
  74. package/front_end/panels/whats_new/resources/WNDT.md +6 -6
  75. package/front_end/third_party/chromium/README.chromium +1 -1
  76. package/front_end/third_party/puppeteer/README.chromium +2 -2
  77. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
  78. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js +30 -25
  79. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
  80. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  81. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  82. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  83. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  84. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +30 -21
  85. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
  86. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js +31 -26
  87. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
  88. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  89. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  90. package/front_end/third_party/puppeteer/package/package.json +3 -3
  91. package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +45 -44
  92. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  93. package/front_end/ui/components/buttons/Button.ts +2 -2
  94. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
  95. package/front_end/ui/components/panel_feedback/panelFeedback.css +1 -1
  96. package/front_end/ui/kit/link/Link.ts +31 -0
  97. package/front_end/ui/legacy/LinkContextMenuProvider.ts +3 -5
  98. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +2 -2
  99. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +336 -250
  100. package/front_end/ui/legacy/inspectorCommon.css +0 -1
  101. package/front_end/ui/legacy/legacy.ts +0 -4
  102. package/front_end/ui/visual_logging/KnownContextValues.ts +4 -0
  103. package/front_end/ui/visual_logging/LoggingDriver.ts +10 -6
  104. package/mcp/HostBindings.ts +6 -0
  105. package/package.json +1 -1
  106. package/front_end/ui/legacy/XElement.ts +0 -41
  107. package/front_end/ui/legacy/XLink.ts +0 -128
@@ -635,6 +635,118 @@ export namespace ProtocolMapping {
635
635
  'ServiceWorker.workerErrorReported': [Protocol.ServiceWorker.WorkerErrorReportedEvent];
636
636
  'ServiceWorker.workerRegistrationUpdated': [Protocol.ServiceWorker.WorkerRegistrationUpdatedEvent];
637
637
  'ServiceWorker.workerVersionUpdated': [Protocol.ServiceWorker.WorkerVersionUpdatedEvent];
638
+ /**
639
+ * Fired when |SCardEstablishContext| is called.
640
+ *
641
+ * This maps to:
642
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
643
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
644
+ */
645
+ 'SmartCardEmulation.establishContextRequested': [Protocol.SmartCardEmulation.EstablishContextRequestedEvent];
646
+ /**
647
+ * Fired when |SCardReleaseContext| is called.
648
+ *
649
+ * This maps to:
650
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
651
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
652
+ */
653
+ 'SmartCardEmulation.releaseContextRequested': [Protocol.SmartCardEmulation.ReleaseContextRequestedEvent];
654
+ /**
655
+ * Fired when |SCardListReaders| is called.
656
+ *
657
+ * This maps to:
658
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
659
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
660
+ */
661
+ 'SmartCardEmulation.listReadersRequested': [Protocol.SmartCardEmulation.ListReadersRequestedEvent];
662
+ /**
663
+ * Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
664
+ *
665
+ * This maps to:
666
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
667
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
668
+ */
669
+ 'SmartCardEmulation.getStatusChangeRequested': [Protocol.SmartCardEmulation.GetStatusChangeRequestedEvent];
670
+ /**
671
+ * Fired when |SCardCancel| is called.
672
+ *
673
+ * This maps to:
674
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
675
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
676
+ */
677
+ 'SmartCardEmulation.cancelRequested': [Protocol.SmartCardEmulation.CancelRequestedEvent];
678
+ /**
679
+ * Fired when |SCardConnect| is called.
680
+ *
681
+ * This maps to:
682
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
683
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
684
+ */
685
+ 'SmartCardEmulation.connectRequested': [Protocol.SmartCardEmulation.ConnectRequestedEvent];
686
+ /**
687
+ * Fired when |SCardDisconnect| is called.
688
+ *
689
+ * This maps to:
690
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
691
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
692
+ */
693
+ 'SmartCardEmulation.disconnectRequested': [Protocol.SmartCardEmulation.DisconnectRequestedEvent];
694
+ /**
695
+ * Fired when |SCardTransmit| is called.
696
+ *
697
+ * This maps to:
698
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
699
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
700
+ */
701
+ 'SmartCardEmulation.transmitRequested': [Protocol.SmartCardEmulation.TransmitRequestedEvent];
702
+ /**
703
+ * Fired when |SCardControl| is called.
704
+ *
705
+ * This maps to:
706
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
707
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
708
+ */
709
+ 'SmartCardEmulation.controlRequested': [Protocol.SmartCardEmulation.ControlRequestedEvent];
710
+ /**
711
+ * Fired when |SCardGetAttrib| is called.
712
+ *
713
+ * This maps to:
714
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
715
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
716
+ */
717
+ 'SmartCardEmulation.getAttribRequested': [Protocol.SmartCardEmulation.GetAttribRequestedEvent];
718
+ /**
719
+ * Fired when |SCardSetAttrib| is called.
720
+ *
721
+ * This maps to:
722
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
723
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
724
+ */
725
+ 'SmartCardEmulation.setAttribRequested': [Protocol.SmartCardEmulation.SetAttribRequestedEvent];
726
+ /**
727
+ * Fired when |SCardStatus| is called.
728
+ *
729
+ * This maps to:
730
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
731
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
732
+ */
733
+ 'SmartCardEmulation.statusRequested': [Protocol.SmartCardEmulation.StatusRequestedEvent];
734
+ /**
735
+ * Fired when |SCardBeginTransaction| is called.
736
+ *
737
+ * This maps to:
738
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
739
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
740
+ */
741
+ 'SmartCardEmulation.beginTransactionRequested': [Protocol.SmartCardEmulation.BeginTransactionRequestedEvent];
742
+ /**
743
+ * Fired when |SCardEndTransaction| is called.
744
+ *
745
+ * This maps to:
746
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
747
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
748
+ */
749
+ 'SmartCardEmulation.endTransactionRequested': [Protocol.SmartCardEmulation.EndTransactionRequestedEvent];
638
750
  /**
639
751
  * A cache's contents have been modified.
640
752
  */
@@ -4434,6 +4546,151 @@ export namespace ProtocolMapping {
4434
4546
  paramsType: [Protocol.ServiceWorker.UpdateRegistrationRequest];
4435
4547
  returnType: void;
4436
4548
  };
4549
+ /**
4550
+ * Enables the |SmartCardEmulation| domain.
4551
+ */
4552
+ 'SmartCardEmulation.enable': {
4553
+ paramsType: [];
4554
+ returnType: void;
4555
+ };
4556
+ /**
4557
+ * Disables the |SmartCardEmulation| domain.
4558
+ */
4559
+ 'SmartCardEmulation.disable': {
4560
+ paramsType: [];
4561
+ returnType: void;
4562
+ };
4563
+ /**
4564
+ * Reports the successful result of a |SCardEstablishContext| call.
4565
+ *
4566
+ * This maps to:
4567
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
4568
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
4569
+ */
4570
+ 'SmartCardEmulation.reportEstablishContextResult': {
4571
+ paramsType: [Protocol.SmartCardEmulation.ReportEstablishContextResultRequest];
4572
+ returnType: void;
4573
+ };
4574
+ /**
4575
+ * Reports the successful result of a |SCardReleaseContext| call.
4576
+ *
4577
+ * This maps to:
4578
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
4579
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
4580
+ */
4581
+ 'SmartCardEmulation.reportReleaseContextResult': {
4582
+ paramsType: [Protocol.SmartCardEmulation.ReportReleaseContextResultRequest];
4583
+ returnType: void;
4584
+ };
4585
+ /**
4586
+ * Reports the successful result of a |SCardListReaders| call.
4587
+ *
4588
+ * This maps to:
4589
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
4590
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
4591
+ */
4592
+ 'SmartCardEmulation.reportListReadersResult': {
4593
+ paramsType: [Protocol.SmartCardEmulation.ReportListReadersResultRequest];
4594
+ returnType: void;
4595
+ };
4596
+ /**
4597
+ * Reports the successful result of a |SCardGetStatusChange| call.
4598
+ *
4599
+ * This maps to:
4600
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
4601
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
4602
+ */
4603
+ 'SmartCardEmulation.reportGetStatusChangeResult': {
4604
+ paramsType: [Protocol.SmartCardEmulation.ReportGetStatusChangeResultRequest];
4605
+ returnType: void;
4606
+ };
4607
+ /**
4608
+ * Reports the result of a |SCardBeginTransaction| call.
4609
+ * On success, this creates a new transaction object.
4610
+ *
4611
+ * This maps to:
4612
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
4613
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
4614
+ */
4615
+ 'SmartCardEmulation.reportBeginTransactionResult': {
4616
+ paramsType: [Protocol.SmartCardEmulation.ReportBeginTransactionResultRequest];
4617
+ returnType: void;
4618
+ };
4619
+ /**
4620
+ * Reports the successful result of a call that returns only a result code.
4621
+ * Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.
4622
+ *
4623
+ * This maps to:
4624
+ * 1. SCardCancel
4625
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
4626
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
4627
+ *
4628
+ * 2. SCardDisconnect
4629
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
4630
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
4631
+ *
4632
+ * 3. SCardSetAttrib
4633
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
4634
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
4635
+ *
4636
+ * 4. SCardEndTransaction
4637
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
4638
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
4639
+ */
4640
+ 'SmartCardEmulation.reportPlainResult': {
4641
+ paramsType: [Protocol.SmartCardEmulation.ReportPlainResultRequest];
4642
+ returnType: void;
4643
+ };
4644
+ /**
4645
+ * Reports the successful result of a |SCardConnect| call.
4646
+ *
4647
+ * This maps to:
4648
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
4649
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
4650
+ */
4651
+ 'SmartCardEmulation.reportConnectResult': {
4652
+ paramsType: [Protocol.SmartCardEmulation.ReportConnectResultRequest];
4653
+ returnType: void;
4654
+ };
4655
+ /**
4656
+ * Reports the successful result of a call that sends back data on success.
4657
+ * Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.
4658
+ *
4659
+ * This maps to:
4660
+ * 1. SCardTransmit
4661
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
4662
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
4663
+ *
4664
+ * 2. SCardControl
4665
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
4666
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
4667
+ *
4668
+ * 3. SCardGetAttrib
4669
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
4670
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
4671
+ */
4672
+ 'SmartCardEmulation.reportDataResult': {
4673
+ paramsType: [Protocol.SmartCardEmulation.ReportDataResultRequest];
4674
+ returnType: void;
4675
+ };
4676
+ /**
4677
+ * Reports the successful result of a |SCardStatus| call.
4678
+ *
4679
+ * This maps to:
4680
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
4681
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
4682
+ */
4683
+ 'SmartCardEmulation.reportStatusResult': {
4684
+ paramsType: [Protocol.SmartCardEmulation.ReportStatusResultRequest];
4685
+ returnType: void;
4686
+ };
4687
+ /**
4688
+ * Reports an error result for the given request.
4689
+ */
4690
+ 'SmartCardEmulation.reportError': {
4691
+ paramsType: [Protocol.SmartCardEmulation.ReportErrorRequest];
4692
+ returnType: void;
4693
+ };
4437
4694
  /**
4438
4695
  * Returns a storage key given a frame id.
4439
4696
  * Deprecated. Please use Storage.getStorageKey instead.
@@ -98,6 +98,8 @@ declare namespace ProtocolProxyApi {
98
98
 
99
99
  ServiceWorker: ServiceWorkerApi;
100
100
 
101
+ SmartCardEmulation: SmartCardEmulationApi;
102
+
101
103
  Storage: StorageApi;
102
104
 
103
105
  SystemInfo: SystemInfoApi;
@@ -205,6 +207,8 @@ declare namespace ProtocolProxyApi {
205
207
 
206
208
  ServiceWorker: ServiceWorkerDispatcher;
207
209
 
210
+ SmartCardEmulation: SmartCardEmulationDispatcher;
211
+
208
212
  Storage: StorageDispatcher;
209
213
 
210
214
  SystemInfo: SystemInfoDispatcher;
@@ -3841,6 +3845,258 @@ declare namespace ProtocolProxyApi {
3841
3845
 
3842
3846
  }
3843
3847
 
3848
+ export interface SmartCardEmulationApi {
3849
+ /**
3850
+ * Enables the |SmartCardEmulation| domain.
3851
+ */
3852
+ invoke_enable(): Promise<Protocol.ProtocolResponseWithError>;
3853
+
3854
+ /**
3855
+ * Disables the |SmartCardEmulation| domain.
3856
+ */
3857
+ invoke_disable(): Promise<Protocol.ProtocolResponseWithError>;
3858
+
3859
+ /**
3860
+ * Reports the successful result of a |SCardEstablishContext| call.
3861
+ *
3862
+ * This maps to:
3863
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
3864
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
3865
+ */
3866
+ invoke_reportEstablishContextResult(params: Protocol.SmartCardEmulation.ReportEstablishContextResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3867
+
3868
+ /**
3869
+ * Reports the successful result of a |SCardReleaseContext| call.
3870
+ *
3871
+ * This maps to:
3872
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
3873
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
3874
+ */
3875
+ invoke_reportReleaseContextResult(params: Protocol.SmartCardEmulation.ReportReleaseContextResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3876
+
3877
+ /**
3878
+ * Reports the successful result of a |SCardListReaders| call.
3879
+ *
3880
+ * This maps to:
3881
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
3882
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
3883
+ */
3884
+ invoke_reportListReadersResult(params: Protocol.SmartCardEmulation.ReportListReadersResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3885
+
3886
+ /**
3887
+ * Reports the successful result of a |SCardGetStatusChange| call.
3888
+ *
3889
+ * This maps to:
3890
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
3891
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
3892
+ */
3893
+ invoke_reportGetStatusChangeResult(params: Protocol.SmartCardEmulation.ReportGetStatusChangeResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3894
+
3895
+ /**
3896
+ * Reports the result of a |SCardBeginTransaction| call.
3897
+ * On success, this creates a new transaction object.
3898
+ *
3899
+ * This maps to:
3900
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
3901
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
3902
+ */
3903
+ invoke_reportBeginTransactionResult(params: Protocol.SmartCardEmulation.ReportBeginTransactionResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3904
+
3905
+ /**
3906
+ * Reports the successful result of a call that returns only a result code.
3907
+ * Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.
3908
+ *
3909
+ * This maps to:
3910
+ * 1. SCardCancel
3911
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
3912
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
3913
+ *
3914
+ * 2. SCardDisconnect
3915
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
3916
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
3917
+ *
3918
+ * 3. SCardSetAttrib
3919
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
3920
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
3921
+ *
3922
+ * 4. SCardEndTransaction
3923
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
3924
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
3925
+ */
3926
+ invoke_reportPlainResult(params: Protocol.SmartCardEmulation.ReportPlainResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3927
+
3928
+ /**
3929
+ * Reports the successful result of a |SCardConnect| call.
3930
+ *
3931
+ * This maps to:
3932
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
3933
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
3934
+ */
3935
+ invoke_reportConnectResult(params: Protocol.SmartCardEmulation.ReportConnectResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3936
+
3937
+ /**
3938
+ * Reports the successful result of a call that sends back data on success.
3939
+ * Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.
3940
+ *
3941
+ * This maps to:
3942
+ * 1. SCardTransmit
3943
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
3944
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
3945
+ *
3946
+ * 2. SCardControl
3947
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
3948
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
3949
+ *
3950
+ * 3. SCardGetAttrib
3951
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
3952
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
3953
+ */
3954
+ invoke_reportDataResult(params: Protocol.SmartCardEmulation.ReportDataResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3955
+
3956
+ /**
3957
+ * Reports the successful result of a |SCardStatus| call.
3958
+ *
3959
+ * This maps to:
3960
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
3961
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
3962
+ */
3963
+ invoke_reportStatusResult(params: Protocol.SmartCardEmulation.ReportStatusResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3964
+
3965
+ /**
3966
+ * Reports an error result for the given request.
3967
+ */
3968
+ invoke_reportError(params: Protocol.SmartCardEmulation.ReportErrorRequest): Promise<Protocol.ProtocolResponseWithError>;
3969
+
3970
+ }
3971
+ export interface SmartCardEmulationDispatcher {
3972
+ /**
3973
+ * Fired when |SCardEstablishContext| is called.
3974
+ *
3975
+ * This maps to:
3976
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
3977
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
3978
+ */
3979
+ establishContextRequested(params: Protocol.SmartCardEmulation.EstablishContextRequestedEvent): void;
3980
+
3981
+ /**
3982
+ * Fired when |SCardReleaseContext| is called.
3983
+ *
3984
+ * This maps to:
3985
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
3986
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
3987
+ */
3988
+ releaseContextRequested(params: Protocol.SmartCardEmulation.ReleaseContextRequestedEvent): void;
3989
+
3990
+ /**
3991
+ * Fired when |SCardListReaders| is called.
3992
+ *
3993
+ * This maps to:
3994
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
3995
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
3996
+ */
3997
+ listReadersRequested(params: Protocol.SmartCardEmulation.ListReadersRequestedEvent): void;
3998
+
3999
+ /**
4000
+ * Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
4001
+ *
4002
+ * This maps to:
4003
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
4004
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
4005
+ */
4006
+ getStatusChangeRequested(params: Protocol.SmartCardEmulation.GetStatusChangeRequestedEvent): void;
4007
+
4008
+ /**
4009
+ * Fired when |SCardCancel| is called.
4010
+ *
4011
+ * This maps to:
4012
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
4013
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
4014
+ */
4015
+ cancelRequested(params: Protocol.SmartCardEmulation.CancelRequestedEvent): void;
4016
+
4017
+ /**
4018
+ * Fired when |SCardConnect| is called.
4019
+ *
4020
+ * This maps to:
4021
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
4022
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
4023
+ */
4024
+ connectRequested(params: Protocol.SmartCardEmulation.ConnectRequestedEvent): void;
4025
+
4026
+ /**
4027
+ * Fired when |SCardDisconnect| is called.
4028
+ *
4029
+ * This maps to:
4030
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
4031
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
4032
+ */
4033
+ disconnectRequested(params: Protocol.SmartCardEmulation.DisconnectRequestedEvent): void;
4034
+
4035
+ /**
4036
+ * Fired when |SCardTransmit| is called.
4037
+ *
4038
+ * This maps to:
4039
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
4040
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
4041
+ */
4042
+ transmitRequested(params: Protocol.SmartCardEmulation.TransmitRequestedEvent): void;
4043
+
4044
+ /**
4045
+ * Fired when |SCardControl| is called.
4046
+ *
4047
+ * This maps to:
4048
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
4049
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
4050
+ */
4051
+ controlRequested(params: Protocol.SmartCardEmulation.ControlRequestedEvent): void;
4052
+
4053
+ /**
4054
+ * Fired when |SCardGetAttrib| is called.
4055
+ *
4056
+ * This maps to:
4057
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
4058
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
4059
+ */
4060
+ getAttribRequested(params: Protocol.SmartCardEmulation.GetAttribRequestedEvent): void;
4061
+
4062
+ /**
4063
+ * Fired when |SCardSetAttrib| is called.
4064
+ *
4065
+ * This maps to:
4066
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
4067
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
4068
+ */
4069
+ setAttribRequested(params: Protocol.SmartCardEmulation.SetAttribRequestedEvent): void;
4070
+
4071
+ /**
4072
+ * Fired when |SCardStatus| is called.
4073
+ *
4074
+ * This maps to:
4075
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
4076
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
4077
+ */
4078
+ statusRequested(params: Protocol.SmartCardEmulation.StatusRequestedEvent): void;
4079
+
4080
+ /**
4081
+ * Fired when |SCardBeginTransaction| is called.
4082
+ *
4083
+ * This maps to:
4084
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
4085
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
4086
+ */
4087
+ beginTransactionRequested(params: Protocol.SmartCardEmulation.BeginTransactionRequestedEvent): void;
4088
+
4089
+ /**
4090
+ * Fired when |SCardEndTransaction| is called.
4091
+ *
4092
+ * This maps to:
4093
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
4094
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
4095
+ */
4096
+ endTransactionRequested(params: Protocol.SmartCardEmulation.EndTransactionRequestedEvent): void;
4097
+
4098
+ }
4099
+
3844
4100
  export interface StorageApi {
3845
4101
  /**
3846
4102
  * Returns a storage key given a frame id.