chrome-devtools-frontend 1.0.1614363 → 1.0.1616061
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/docs/contributing/infrastructure.md +0 -1
- package/front_end/core/common/MapWithDefault.ts +2 -2
- package/front_end/core/common/Object.ts +9 -6
- package/front_end/entrypoints/greendev_floaty/floaty.css +3 -0
- package/front_end/generated/InspectorBackendCommands.ts +6 -3
- package/front_end/generated/SupportedCSSProperties.js +4 -0
- package/front_end/generated/protocol-mapping.d.ts +21 -0
- package/front_end/generated/protocol-proxy-api.d.ts +15 -0
- package/front_end/generated/protocol.ts +39 -0
- package/front_end/models/ai_assistance/agents/AiAgent.ts +5 -4
- package/front_end/models/ai_assistance/agents/PerformanceAgent.snapshot.txt +7 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +87 -20
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +32 -0
- package/front_end/models/bindings/SymbolizedError.ts +20 -0
- package/front_end/models/bindings/bindings.ts +2 -0
- package/front_end/models/issues_manager/IssuesManager.ts +4 -0
- package/front_end/models/stack_trace/DetailedErrorStackParser.ts +19 -0
- package/front_end/models/stack_trace/StackTraceModel.ts +39 -0
- package/front_end/panels/ai_assistance/components/AccessibilityAgentMarkdownRenderer.ts +55 -14
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +28 -23
- package/front_end/panels/ai_assistance/components/chatMessage.css +1 -1
- package/front_end/panels/application/WebMCPView.ts +21 -1
- package/front_end/panels/application/webMCPView.css +4 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +8 -2
- package/front_end/panels/console/consoleView.css +4 -0
- package/front_end/panels/elements/PropertiesWidget.ts +8 -8
- package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
- package/front_end/panels/recorder/models/RecordingPlayer.ts +1 -1
- package/front_end/services/puppeteer/PuppeteerConnection.ts +1 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/README.md +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +12 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.d.ts +74 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.js +68 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Issue.d.ts +22 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Issue.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Issue.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Issue.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +35 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Realm.d.ts +106 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Realm.js +29 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/WebWorker.d.ts +24 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/WebWorker.js +15 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +9 -47
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +8 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +14 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js +21 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Target.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.js +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.d.ts +28 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js +67 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +9 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +56 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpIssue.d.ts +17 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpIssue.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpIssue.js +27 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpIssue.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.d.ts +16 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.js +79 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.d.ts +10 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.js +26 -15
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js +38 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.d.ts +9 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.js +31 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +6 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +49 -35
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Target.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Target.js +16 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js +9 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.d.ts +218 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.js +288 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebWorker.d.ts +4 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebWorker.js +28 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.d.ts +9 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.js +36 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts +0 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +5 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +7851 -6616
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +1017 -305
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +12 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.d.ts +74 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.js +64 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts +8 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Issue.d.ts +22 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Issue.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Issue.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Issue.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +35 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Realm.d.ts +106 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Realm.js +29 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/WebWorker.d.ts +24 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/WebWorker.js +14 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +8 -46
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +8 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +14 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js +22 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Target.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Realm.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Realm.js +18 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.d.ts +28 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.js +62 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +9 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +56 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpIssue.d.ts +17 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpIssue.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpIssue.js +23 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpIssue.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.d.ts +16 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.js +75 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.d.ts +10 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.js +26 -15
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js +38 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.d.ts +9 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.js +31 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +6 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +49 -35
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Target.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Target.js +16 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js +9 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.d.ts +218 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.js +282 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebWorker.d.ts +4 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebWorker.js +29 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.d.ts +9 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.js +34 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts +0 -11
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +5 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core-browser.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core-browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Mutex.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Mutex.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +7851 -6616
- package/front_end/third_party/puppeteer/package/package.json +5 -6
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +13 -0
- package/front_end/third_party/puppeteer/package/src/api/Extension.ts +98 -0
- package/front_end/third_party/puppeteer/package/src/api/Frame.ts +9 -0
- package/front_end/third_party/puppeteer/package/src/api/Issue.ts +24 -0
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +38 -0
- package/front_end/third_party/puppeteer/package/src/api/Realm.ts +111 -12
- package/front_end/third_party/puppeteer/package/src/api/WebWorker.ts +26 -4
- package/front_end/third_party/puppeteer/package/src/api/api.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +12 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +7 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +13 -67
- package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +0 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +21 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +39 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Target.ts +2 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/Realm.ts +23 -0
- package/front_end/third_party/puppeteer/package/src/bidi/util.ts +94 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +75 -2
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/cdp/CdpIssue.ts +30 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Extension.ts +101 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +32 -22
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +44 -3
- package/front_end/third_party/puppeteer/package/src/cdp/IsolatedWorld.ts +40 -2
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +61 -47
- package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +17 -7
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +14 -1
- package/front_end/third_party/puppeteer/package/src/cdp/WebMCP.ts +441 -0
- package/front_end/third_party/puppeteer/package/src/cdp/WebWorker.ts +38 -12
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +52 -0
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +7 -0
- package/front_end/third_party/puppeteer/package/src/common/types.ts +0 -14
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +7 -0
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +0 -1
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/Mutex.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +5 -0
- package/front_end/ui/kit/icons/Icon.ts +1 -0
- package/front_end/ui/legacy/Treeoutline.ts +16 -2
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +4 -3
- package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
- package/package.json +2 -2
|
@@ -6,6 +6,7 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
7
7
|
import type * as Protocol from '../../generated/protocol.js';
|
|
8
8
|
|
|
9
|
+
import {augmentRawFramesWithScriptIds, parseRawFramesFromErrorStack} from './DetailedErrorStackParser.js';
|
|
9
10
|
// eslint-disable-next-line @devtools/es-modules-import
|
|
10
11
|
import * as StackTrace from './stack_trace.js';
|
|
11
12
|
import {
|
|
@@ -14,6 +15,7 @@ import {
|
|
|
14
15
|
DebuggableFragmentImpl,
|
|
15
16
|
FragmentImpl,
|
|
16
17
|
FrameImpl,
|
|
18
|
+
ParsedErrorStackFragmentImpl,
|
|
17
19
|
StackTraceImpl
|
|
18
20
|
} from './StackTraceImpl.js';
|
|
19
21
|
import {type FrameNode, type RawFrame, Trie} from './Trie.js';
|
|
@@ -54,6 +56,23 @@ export class StackTraceModel extends SDK.SDKModel.SDKModel<unknown> {
|
|
|
54
56
|
return new StackTraceImpl(syncFragment, asyncFragments);
|
|
55
57
|
}
|
|
56
58
|
|
|
59
|
+
async createFromErrorStackLikeString(
|
|
60
|
+
stack: string, rawFramesToUIFrames: TranslateRawFrames,
|
|
61
|
+
exceptionDetails?: Protocol.Runtime.ExceptionDetails): Promise<StackTrace.StackTrace.ParsedErrorStackTrace> {
|
|
62
|
+
const rawFrames = parseRawFramesFromErrorStack(stack);
|
|
63
|
+
if (exceptionDetails?.stackTrace) {
|
|
64
|
+
augmentRawFramesWithScriptIds(rawFrames, exceptionDetails.stackTrace);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const [syncFragment, asyncFragments] = await Promise.all([
|
|
68
|
+
this.#createFragment(rawFrames, rawFramesToUIFrames),
|
|
69
|
+
exceptionDetails?.stackTrace ? this.#createAsyncFragments(exceptionDetails.stackTrace, rawFramesToUIFrames) :
|
|
70
|
+
Promise.resolve([]),
|
|
71
|
+
]);
|
|
72
|
+
|
|
73
|
+
return new StackTraceImpl(new ParsedErrorStackFragmentImpl(syncFragment), asyncFragments);
|
|
74
|
+
}
|
|
75
|
+
|
|
57
76
|
async createFromDebuggerPaused(
|
|
58
77
|
pausedDetails: SDK.DebuggerModel.DebuggerPausedDetails,
|
|
59
78
|
rawFramesToUIFrames: TranslateRawFrames): Promise<StackTrace.StackTrace.DebuggableStackTrace> {
|
|
@@ -162,12 +181,32 @@ export class StackTraceModel extends SDK.SDKModel.SDKModel<unknown> {
|
|
|
162
181
|
const uiFrames = await rawFramesToUIFrames(rawFrames, this.target());
|
|
163
182
|
console.assert(rawFrames.length === uiFrames.length, 'Broken rawFramesToUIFrames implementation');
|
|
164
183
|
|
|
184
|
+
const evalOriginPromises: Array<ReturnType<TranslateRawFrames>> = [];
|
|
185
|
+
for (const node of fragment.node.getCallStack()) {
|
|
186
|
+
if (node.parsedFrameInfo?.evalOrigin) {
|
|
187
|
+
// Evaluate each eval origin individually, as they are not a contiguous stack trace.
|
|
188
|
+
evalOriginPromises.push(rawFramesToUIFrames([node.parsedFrameInfo.evalOrigin], this.target()));
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
const evalUiFrames = await Promise.all(evalOriginPromises);
|
|
193
|
+
|
|
165
194
|
let i = 0;
|
|
195
|
+
let evalI = 0;
|
|
166
196
|
for (const node of fragment.node.getCallStack()) {
|
|
167
197
|
node.frames = uiFrames[i++].map(
|
|
168
198
|
frame => new FrameImpl(
|
|
169
199
|
frame.url, frame.uiSourceCode, frame.name, frame.line, frame.column, frame.missingDebugInfo,
|
|
170
200
|
node.rawFrame.functionName));
|
|
201
|
+
|
|
202
|
+
if (node.parsedFrameInfo?.evalOrigin) {
|
|
203
|
+
const evalOriginRawFrame = node.parsedFrameInfo.evalOrigin;
|
|
204
|
+
// evalUiFrames[evalI] is Array<Array<Frame>>, and since we passed a 1-element array, we take [0]
|
|
205
|
+
node.evalOriginFrames = evalUiFrames[evalI++][0].map(
|
|
206
|
+
frame => new FrameImpl(
|
|
207
|
+
frame.url, frame.uiSourceCode, frame.name, frame.line, frame.column, frame.missingDebugInfo,
|
|
208
|
+
evalOriginRawFrame.functionName));
|
|
209
|
+
}
|
|
171
210
|
}
|
|
172
211
|
}
|
|
173
212
|
|
|
@@ -13,6 +13,18 @@ import {MarkdownRendererWithCodeBlock} from './MarkdownRendererWithCodeBlock.js'
|
|
|
13
13
|
const {html} = Lit.StaticHtml;
|
|
14
14
|
const {until} = Lit.Directives;
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Represents the different types of links that can be parsed from the AI agent's response.
|
|
18
|
+
* The agent can linkify a node either by its backend node ID or by its full DOM path.
|
|
19
|
+
*/
|
|
20
|
+
type ParsedLink = {
|
|
21
|
+
type: 'path',
|
|
22
|
+
path: string,
|
|
23
|
+
}|{
|
|
24
|
+
type: 'node',
|
|
25
|
+
nodeId: Protocol.DOM.BackendNodeId,
|
|
26
|
+
};
|
|
27
|
+
|
|
16
28
|
export class AccessibilityAgentMarkdownRenderer extends MarkdownRendererWithCodeBlock {
|
|
17
29
|
constructor(
|
|
18
30
|
private mainFrameId = '',
|
|
@@ -22,28 +34,54 @@ export class AccessibilityAgentMarkdownRenderer extends MarkdownRendererWithCode
|
|
|
22
34
|
|
|
23
35
|
override templateForToken(token: Marked.Marked.MarkedToken): Lit.LitTemplate|null {
|
|
24
36
|
if (token.type === 'link' && token.href.startsWith('#')) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
37
|
+
const parsed = this.#parseLink(token.href);
|
|
38
|
+
if (parsed) {
|
|
39
|
+
const resultPromise = parsed.type === 'path' ? this.#linkifyPath(parsed.path, token.text) :
|
|
40
|
+
this.#linkifyNode(parsed.nodeId, token.text);
|
|
30
41
|
|
|
31
|
-
|
|
32
|
-
if (token.href.startsWith('#node-')) {
|
|
33
|
-
nodeId = Number(token.href.replace('#node-', '')) as Protocol.DOM.BackendNodeId;
|
|
34
|
-
} else if (token.href.startsWith('#')) {
|
|
35
|
-
nodeId = Number(token.href.replace('#', '')) as Protocol.DOM.BackendNodeId;
|
|
42
|
+
return html`<span>${until(resultPromise.then(node => node || token.text), token.text)}</span>`;
|
|
36
43
|
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return super.templateForToken(token);
|
|
47
|
+
}
|
|
37
48
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Parses a link href to determine if it's a node ID or a DOM path.
|
|
51
|
+
*
|
|
52
|
+
* The AI agent is instructed to use #node-ID or #path-PATH, but
|
|
53
|
+
* sometimes it omits the prefixes, in which case we try to detect
|
|
54
|
+
* paths by looking for `#1,HTML` which is often how paths in LH
|
|
55
|
+
* start.
|
|
56
|
+
*/
|
|
57
|
+
#parseLink(href: string): ParsedLink|null {
|
|
58
|
+
if (href.startsWith('#path-')) {
|
|
59
|
+
return {type: 'path', path: href.replace('#path-', '')};
|
|
60
|
+
}
|
|
61
|
+
if (href.startsWith('#1,HTML')) {
|
|
62
|
+
return {type: 'path', path: href.slice(1)};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
let nodeIdStr = '';
|
|
66
|
+
if (href.startsWith('#node-')) {
|
|
67
|
+
nodeIdStr = href.replace('#node-', '');
|
|
68
|
+
} else if (href.startsWith('#')) {
|
|
69
|
+
nodeIdStr = href.slice(1);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (nodeIdStr.trim() !== '') {
|
|
73
|
+
const nodeId = Number(nodeIdStr);
|
|
74
|
+
if (Number.isInteger(nodeId)) {
|
|
75
|
+
return {type: 'node', nodeId: nodeId as Protocol.DOM.BackendNodeId};
|
|
41
76
|
}
|
|
42
77
|
}
|
|
43
78
|
|
|
44
|
-
return
|
|
79
|
+
return null;
|
|
45
80
|
}
|
|
46
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Linkifies a node using its backend node ID.
|
|
84
|
+
*/
|
|
47
85
|
async #linkifyNode(backendNodeId: Protocol.DOM.BackendNodeId, label: string): Promise<Lit.LitTemplate|undefined> {
|
|
48
86
|
if (backendNodeId === undefined) {
|
|
49
87
|
return;
|
|
@@ -68,6 +106,9 @@ export class AccessibilityAgentMarkdownRenderer extends MarkdownRendererWithCode
|
|
|
68
106
|
return linkedNode;
|
|
69
107
|
}
|
|
70
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Linkifies a node using its full DOM path (e.g. "1,HTML,1,BODY,...").
|
|
111
|
+
*/
|
|
71
112
|
async #linkifyPath(path: string, label: string): Promise<Lit.LitTemplate|undefined> {
|
|
72
113
|
const target = SDK.TargetManager.TargetManager.instance().primaryPageTarget();
|
|
73
114
|
const domModel = target?.model(SDK.DOMModel.DOMModel);
|
|
@@ -13,7 +13,7 @@ import * as Root from '../../../core/root/root.js';
|
|
|
13
13
|
import * as SDK from '../../../core/sdk/sdk.js';
|
|
14
14
|
import type * as Protocol from '../../../generated/protocol.js';
|
|
15
15
|
import type {
|
|
16
|
-
AiWidget, BottomUpTreeAiWidget, ComputedStyleAiWidget, CoreVitalsAiWidget, DomTreeAiWidget,
|
|
16
|
+
AiWidget, BottomUpTreeAiWidget, ComputedStyleAiWidget, CoreVitalsAiWidget, DomTreeAiWidget, PerfInsightAiWidget,
|
|
17
17
|
PerformanceTraceAiWidget, StylePropertiesAiWidget,
|
|
18
18
|
TimelineRangeSummaryAiWidget} from '../../../models/ai_assistance/agents/AiAgent.js';
|
|
19
19
|
import * as AiAssistanceModel from '../../../models/ai_assistance/ai_assistance.js';
|
|
@@ -879,27 +879,32 @@ async function makeStylePropertiesWidget(widgetData: StylePropertiesAiWidget): P
|
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
881
|
|
|
882
|
-
async function
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
882
|
+
async function makePerfInsightWidget(widgetData: PerfInsightAiWidget): Promise<WidgetMakerResponse|null> {
|
|
883
|
+
switch (widgetData.data.insight) {
|
|
884
|
+
case 'lcp': {
|
|
885
|
+
const insight = widgetData.data.insightData;
|
|
886
|
+
if (!insight || !Trace.Insights.Models.LCPBreakdown.isLCPBreakdownInsight(insight)) {
|
|
887
|
+
return null;
|
|
888
|
+
}
|
|
889
|
+
// clang-format off
|
|
890
|
+
const renderedWidget = html`<devtools-widget
|
|
891
|
+
class="lcp-breakdown-widget"
|
|
892
|
+
${widget(TimelineInsights.LCPBreakdown.LCPBreakdown, {
|
|
893
|
+
model: insight,
|
|
894
|
+
minimal: true,
|
|
895
|
+
})}></devtools-widget>`;
|
|
896
|
+
// clang-format on
|
|
897
|
+
|
|
898
|
+
return {
|
|
899
|
+
renderedWidget,
|
|
900
|
+
revealable: new TimelineUtils.Helpers.RevealableInsight(insight),
|
|
901
|
+
title: lockedString(UIStringsNotTranslate.lcpBreakdown),
|
|
902
|
+
jslogContext: 'lcp-breakdown',
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
default:
|
|
906
|
+
return null;
|
|
886
907
|
}
|
|
887
|
-
|
|
888
|
-
// clang-format off
|
|
889
|
-
const renderedWidget = html`<devtools-widget
|
|
890
|
-
class="lcp-breakdown-widget"
|
|
891
|
-
${widget(TimelineInsights.LCPBreakdown.LCPBreakdown, {
|
|
892
|
-
model: insight,
|
|
893
|
-
minimal: true,
|
|
894
|
-
})}></devtools-widget>`;
|
|
895
|
-
// clang-format on
|
|
896
|
-
|
|
897
|
-
return {
|
|
898
|
-
renderedWidget,
|
|
899
|
-
revealable: new TimelineUtils.Helpers.RevealableInsight(insight),
|
|
900
|
-
title: lockedString(UIStringsNotTranslate.lcpBreakdown),
|
|
901
|
-
jslogContext: 'lcp-breakdown',
|
|
902
|
-
};
|
|
903
908
|
}
|
|
904
909
|
|
|
905
910
|
async function makeBottomUpTimelineTreeWidget(widgetData: BottomUpTreeAiWidget): Promise<WidgetMakerResponse|null> {
|
|
@@ -1097,8 +1102,8 @@ async function renderWidgets(
|
|
|
1097
1102
|
case 'PERFORMANCE_TRACE':
|
|
1098
1103
|
response = await makePerformanceTraceWidget(widgetData);
|
|
1099
1104
|
break;
|
|
1100
|
-
case '
|
|
1101
|
-
response = await
|
|
1105
|
+
case 'PERF_INSIGHT':
|
|
1106
|
+
response = await makePerfInsightWidget(widgetData);
|
|
1102
1107
|
break;
|
|
1103
1108
|
case 'TIMELINE_RANGE_SUMMARY':
|
|
1104
1109
|
response = await makeTimelineRangeSummaryWidget(widgetData);
|
|
@@ -11,6 +11,7 @@ import '../../ui/legacy/legacy.js';
|
|
|
11
11
|
import type {JSONSchema7, JSONSchema7Definition} from 'json-schema';
|
|
12
12
|
|
|
13
13
|
import * as Common from '../../core/common/common.js';
|
|
14
|
+
import * as Host from '../../core/host/host.js';
|
|
14
15
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
15
16
|
import * as Platform from '../../core/platform/platform.js';
|
|
16
17
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
@@ -158,6 +159,14 @@ const UIStrings = {
|
|
|
158
159
|
* @example {1} PH1
|
|
159
160
|
*/
|
|
160
161
|
inProgressCount: '{PH1} In Progress',
|
|
162
|
+
/**
|
|
163
|
+
* @description Context menu action to copy the name of a tool
|
|
164
|
+
*/
|
|
165
|
+
copyName: 'Copy name',
|
|
166
|
+
/**
|
|
167
|
+
* @description Context menu action to copy the description of a tool
|
|
168
|
+
*/
|
|
169
|
+
copyDescription: 'Copy description',
|
|
161
170
|
} as const;
|
|
162
171
|
const str_ = i18n.i18n.registerUIStrings('panels/application/WebMCPView.ts', UIStrings);
|
|
163
172
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -350,6 +359,16 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
350
359
|
return i18nString(UIStrings.inProgress);
|
|
351
360
|
}
|
|
352
361
|
};
|
|
362
|
+
const onToolContextMenu = (event: Event, tool: WebMCP.WebMCPModel.Tool): void => {
|
|
363
|
+
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
364
|
+
contextMenu.defaultSection().appendItem(i18nString(UIStrings.copyName), () => {
|
|
365
|
+
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(tool.name);
|
|
366
|
+
}, {jslogContext: 'webmcp.copy-tool-name'});
|
|
367
|
+
contextMenu.defaultSection().appendItem(i18nString(UIStrings.copyDescription), () => {
|
|
368
|
+
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(tool.description);
|
|
369
|
+
}, {jslogContext: 'webmcp.copy-tool-description'});
|
|
370
|
+
void contextMenu.show();
|
|
371
|
+
};
|
|
353
372
|
// clang-format off
|
|
354
373
|
render(html`
|
|
355
374
|
<style>${webMCPViewStyles}</style>
|
|
@@ -491,7 +510,8 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
491
510
|
const groups = getIconGroupsFromStats(toolStats);
|
|
492
511
|
return html`
|
|
493
512
|
<div class=${Directives.classMap({'tool-item': true, selected: tool === input.selectedTool})}
|
|
494
|
-
@click=${() => input.onToolSelect(tool)}
|
|
513
|
+
@click=${() => input.onToolSelect(tool)}
|
|
514
|
+
@contextmenu=${(e: Event) => onToolContextMenu(e, tool)}>
|
|
495
515
|
<div class="tool-name-container">
|
|
496
516
|
<div class="tool-name source-code">${tool.name}</div>
|
|
497
517
|
${groups.length > 0 ? html`<icon-button .data=${
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
height: 100%;
|
|
78
78
|
display: flex;
|
|
79
79
|
flex-direction: column;
|
|
80
|
-
overflow:
|
|
80
|
+
overflow: hidden;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.tool-details-grid {
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
gap: 0 var(--sys-size-16);
|
|
87
87
|
padding: calc(0.5*var(--sys-size-6)) var(--sys-size-8);
|
|
88
88
|
align-items: flex-start;
|
|
89
|
+
overflow-y: auto;
|
|
89
90
|
|
|
90
91
|
.label {
|
|
91
92
|
color: var(--sys-color-on-surface-subtle);
|
|
@@ -94,6 +95,8 @@
|
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
.value {
|
|
98
|
+
user-select: text;
|
|
99
|
+
|
|
97
100
|
&.source-code {
|
|
98
101
|
color: var(--sys-color-token-attribute);
|
|
99
102
|
}
|
|
@@ -1592,7 +1592,10 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
1592
1592
|
const label = document.createElement('div');
|
|
1593
1593
|
label.classList.add('button-label');
|
|
1594
1594
|
const text = document.createElement('div');
|
|
1595
|
-
|
|
1595
|
+
// We use a data attribute and a CSS pseudo-element for the button label
|
|
1596
|
+
// to prevent the text from being picked up by the console's custom
|
|
1597
|
+
// copy-to-clipboard traversal, which only collects actual text nodes.
|
|
1598
|
+
text.setAttribute('data-text', this.getExplainLabel());
|
|
1596
1599
|
label.append(text);
|
|
1597
1600
|
button.append(label);
|
|
1598
1601
|
button.classList.add('hover-button');
|
|
@@ -1615,7 +1618,10 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
1615
1618
|
const label = document.createElement('div');
|
|
1616
1619
|
label.classList.add('button-label');
|
|
1617
1620
|
const text = document.createElement('div');
|
|
1618
|
-
|
|
1621
|
+
// We use a data attribute and a CSS pseudo-element for the button label
|
|
1622
|
+
// to prevent the text from being picked up by the console's custom
|
|
1623
|
+
// copy-to-clipboard traversal, which only collects actual text nodes.
|
|
1624
|
+
text.setAttribute('data-text', 'Debug with breakpoint AI');
|
|
1619
1625
|
label.append(text);
|
|
1620
1626
|
button.append(label);
|
|
1621
1627
|
button.classList.add('hover-button');
|
|
@@ -103,7 +103,7 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
103
103
|
${input.objectTree && input.allChildrenFiltered ? html`
|
|
104
104
|
<div class="gray-info-message">${i18nString(UIStrings.noMatchingProperty)}</div>
|
|
105
105
|
` : nothing}
|
|
106
|
-
<devtools-tree .template=${html`
|
|
106
|
+
<devtools-tree @treeelementexpand=${onExpand} .template=${html`
|
|
107
107
|
<ul role=tree class="source-code object-properties-section">
|
|
108
108
|
<style>${ObjectUI.ObjectPropertiesSection.objectValueStyles}</style>;
|
|
109
109
|
<style>${ObjectUI.ObjectPropertiesSection.objectPropertiesSectionStyles}</style>;
|
|
@@ -121,10 +121,16 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
121
121
|
const getShowAllPropertiesSetting = (): Common.Settings.Setting<boolean> =>
|
|
122
122
|
Common.Settings.Settings.instance().createSetting('show-all-properties', /* defaultValue */ false);
|
|
123
123
|
|
|
124
|
+
function onExpand(event: Event): void {
|
|
125
|
+
const expanded = (event as CustomEvent<{expanded: boolean}>).detail.expanded;
|
|
126
|
+
if (expanded) {
|
|
127
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.DOMPropertiesExpanded);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
124
131
|
export class PropertiesWidget extends UI.Widget.VBox {
|
|
125
132
|
private readonly showAllPropertiesSetting: Common.Settings.Setting<boolean>;
|
|
126
133
|
private filterRegex: RegExp|null = null;
|
|
127
|
-
private readonly treeOutline: ObjectUI.ObjectPropertiesSection.ObjectPropertiesSectionsTreeOutline;
|
|
128
134
|
#lastRequestedNode: SDK.DOMModel.DOMNode|null = null;
|
|
129
135
|
readonly #view: View;
|
|
130
136
|
#pendingNodeUpdate = true;
|
|
@@ -150,12 +156,6 @@ export class PropertiesWidget extends UI.Widget.VBox {
|
|
|
150
156
|
UI.Context.Context.instance().addFlavorChangeListener(SDK.DOMModel.DOMNode, this.setNode, this);
|
|
151
157
|
|
|
152
158
|
this.#view = view;
|
|
153
|
-
this.treeOutline = new ObjectUI.ObjectPropertiesSection.ObjectPropertiesSectionsTreeOutline();
|
|
154
|
-
this.treeOutline.setShowSelectionOnKeyboardFocus(/* show */ true, /* preventTabOrder */ false);
|
|
155
|
-
|
|
156
|
-
this.treeOutline.addEventListener(UI.TreeOutline.Events.ElementExpanded, () => {
|
|
157
|
-
Host.userMetrics.actionTaken(Host.UserMetrics.Action.DOMPropertiesExpanded);
|
|
158
|
-
});
|
|
159
159
|
|
|
160
160
|
this.requestUpdate();
|
|
161
161
|
}
|
|
@@ -410,7 +410,7 @@ export class JSONEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
410
410
|
typeRef: schema?.typeRef,
|
|
411
411
|
value,
|
|
412
412
|
description,
|
|
413
|
-
} as Parameter;
|
|
413
|
+
} as unknown as Parameter;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
#convertPrimitiveParameter(key: string, value: unknown, schema?: Parameter): Parameter {
|
|
@@ -133,7 +133,7 @@ export class RecordingPlayer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
133
133
|
throw new Error('could not find main page!');
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
browser.on('targetdiscovered', (targetInfo:
|
|
136
|
+
browser.on('targetdiscovered', (targetInfo: ReturnType<puppeteer.Target['_getTargetInfo']>) => {
|
|
137
137
|
// Pop-ups opened by the main target won't be auto-attached. Therefore,
|
|
138
138
|
// we need to create a session for them explicitly. We user openedId
|
|
139
139
|
// and type to classify a target as requiring a session.
|
|
@@ -91,7 +91,7 @@ export class PuppeteerConnectionHelper {
|
|
|
91
91
|
undefined /* process */,
|
|
92
92
|
undefined /* closeCallback */,
|
|
93
93
|
undefined /* targetFilterCallback */,
|
|
94
|
-
target => isPageTargetCallback((target as puppeteer.Target)._getTargetInfo()),
|
|
94
|
+
target => isPageTargetCallback((target as puppeteer.Target)._getTargetInfo() as Protocol.Target.TargetInfo),
|
|
95
95
|
false /* waitForInitiallyDiscoveredTargets */,
|
|
96
96
|
);
|
|
97
97
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: Internal
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: 51d2ca75455bc423dcffd32c427849f3181d01ac
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Name: Puppeteer Core
|
|
2
2
|
Short Name: Puppeteer Core
|
|
3
3
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
|
|
4
|
-
Version: 24.
|
|
4
|
+
Version: 24.41.0
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
License File: LICENSE
|
|
7
|
-
Revision:
|
|
7
|
+
Revision: 2d05dfcfa321f7e6289e4658cd6f0cced3d62fe2
|
|
8
8
|
Security Critical: no
|
|
9
9
|
Shipped: yes
|
|
10
10
|
Update Mechanism: Autoroll
|
|
@@ -24,6 +24,8 @@ npm i puppeteer-core # Alternatively, install as a library, without downloading
|
|
|
24
24
|
Install [`chrome-devtools-mcp`](https://github.com/ChromeDevTools/chrome-devtools-mcp),
|
|
25
25
|
a Puppeteer-based MCP server for browser automation and debugging.
|
|
26
26
|
|
|
27
|
+
Puppeteer also supports the experimental [WebMCP](https://pptr.dev/guides/webmcp) API.
|
|
28
|
+
|
|
27
29
|
## Example
|
|
28
30
|
|
|
29
31
|
```ts
|
|
@@ -12,6 +12,7 @@ import type { DownloadBehavior } from '../common/DownloadBehavior.js';
|
|
|
12
12
|
import { EventEmitter, type EventType } from '../common/EventEmitter.js';
|
|
13
13
|
import { asyncDisposeSymbol, disposeSymbol } from '../util/disposable.js';
|
|
14
14
|
import type { BrowserContext } from './BrowserContext.js';
|
|
15
|
+
import type { Extension } from './Extension.js';
|
|
15
16
|
import type { Page } from './Page.js';
|
|
16
17
|
import type { Target } from './Target.js';
|
|
17
18
|
/**
|
|
@@ -545,5 +546,16 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
|
|
|
545
546
|
* @internal
|
|
546
547
|
*/
|
|
547
548
|
abstract isNetworkEnabled(): boolean;
|
|
549
|
+
/**
|
|
550
|
+
* Retrieves a map of all extensions installed in the browser, where the keys
|
|
551
|
+
* are extension IDs and the values are the corresponding {@link Extension} instances.
|
|
552
|
+
*
|
|
553
|
+
* @public
|
|
554
|
+
*/
|
|
555
|
+
abstract extensions(): Promise<Map<string, Extension>>;
|
|
556
|
+
/**
|
|
557
|
+
* @internal
|
|
558
|
+
*/
|
|
559
|
+
abstract isIssuesEnabled(): boolean;
|
|
548
560
|
}
|
|
549
561
|
//# sourceMappingURL=Browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAQhD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAC,YAAY,EAAE,KAAK,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAQvE,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,uBAAuB,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IG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAEtD;;OAEG;IACH,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAEzC;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAEhE;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAEtD;;;;OAIG;IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,QAAQ,KAAK,SAAS,IAAI,OAAO,CAAC;IAElC,gBAAgB;IACP,CAAC,aAAa,CAAC,IAAI,IAAI;IAOhC,gBAAgB;IAChB,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAOrC;;OAEG;IACH,QAAQ,KAAK,QAAQ,IAAI,YAAY,CAAC;IAEtC;;;;;;;;;OASG;IACH,QAAQ,KAAK,SAAS,IAAI,SAAS,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,gBAAgB,IAAI,OAAO;IAEpC;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtD;;OAEG;IACH,QAAQ,CAAC,eAAe,IAAI,OAAO;CACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":";;;AAUA,4DAKwC;AAQxC,+DAAuE;AACvE,+CAM2B;AAC3B,yDAAwE;
|
|
1
|
+
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":";;;AAUA,4DAKwC;AAQxC,+DAAuE;AACvE,+CAM2B;AAC3B,yDAAwE;AA2CxE;;GAEG;AACU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,IAAI,CAAC,qBAAqB,EAAE,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,aAAa,CACjB,MAAc,EACd,GAAG,WAGD;QAEF,OAAO,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAC,aAAa,CACrD,MAAM,EACN,GAAG,WAAW,CACf,CAAC;IACJ,CAAC;IAuCD;;;;OAIG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAOD,gBAAgB;IACP,CAAC,6BAAa,CAAC;QACtB,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YACnB,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,oBAAU,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,oBAAU,CAAC,CAAC;IAClD,CAAC;IAED,gBAAgB;IAChB,CAAC,kCAAkB,CAAC;QAClB,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;QACtB,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;CAmCF;AAxXD,0BAwXC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Google Inc.
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { Page } from './Page.js';
|
|
7
|
+
import type { WebWorker } from './WebWorker.js';
|
|
8
|
+
/**
|
|
9
|
+
* {@link Extension} represents a browser extension installed in the browser.
|
|
10
|
+
* It provides access to the extension's ID, name, and version, as well as
|
|
11
|
+
* methods for interacting with the extension's background workers and pages.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* To get all extensions installed in the browser:
|
|
15
|
+
*
|
|
16
|
+
* ```ts
|
|
17
|
+
* const extensions = await browser.extensions();
|
|
18
|
+
* for (const [id, extension] of extensions) {
|
|
19
|
+
* console.log(extension.name, id);
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @experimental
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare abstract class Extension {
|
|
27
|
+
#private;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
constructor(id: string, version: string, name: string);
|
|
32
|
+
/**
|
|
33
|
+
* The version of the extension as specified in its manifest.
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
get version(): string;
|
|
38
|
+
/**
|
|
39
|
+
* The name of the extension as specified in its manifest.
|
|
40
|
+
*
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
get name(): string;
|
|
44
|
+
/**
|
|
45
|
+
* The unique identifier of the extension.
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
get id(): string;
|
|
50
|
+
/**
|
|
51
|
+
* Returns a list of the currently active service workers belonging
|
|
52
|
+
* to the extension.
|
|
53
|
+
*
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
abstract workers(): Promise<WebWorker[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Returns a list of the currently active and visible pages belonging
|
|
59
|
+
* to the extension.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
abstract pages(): Promise<Page[]>;
|
|
64
|
+
/**
|
|
65
|
+
* Triggers the default action of the extension for a specified page.
|
|
66
|
+
* This typically simulates a user clicking the extension's action icon
|
|
67
|
+
* in the browser toolbar, potentially opening a popup or executing an action script.
|
|
68
|
+
*
|
|
69
|
+
* @param page - The page to trigger the action on.
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
abstract triggerAction(page: Page): Promise<void>;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=Extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Extension.d.ts","sourceRoot":"","sources":["../../../../src/api/Extension.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAE9C;;;;;;;;;;;;;;;;;GAiBG;AACH,8BAAsB,SAAS;;IAK7B;;OAEG;gBACS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAUrD;;;;OAIG;IACH,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED;;;;OAIG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;OAIG;IACH,IAAI,EAAE,IAAI,MAAM,CAEf;IAED;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IAExC;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;IAEjC;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAClD"}
|