chrome-devtools-frontend 1.0.1625079 → 1.0.1626437
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/front_end/core/common/VersionController.ts +9 -7
- package/front_end/core/common/common.ts +0 -4
- package/front_end/core/host/AidaClient.ts +1 -1
- package/front_end/core/host/AidaClientTypes.ts +2 -0
- package/front_end/core/host/AidaGcaTranslation.ts +2 -2
- package/front_end/core/host/Platform.ts +0 -9
- package/front_end/core/host/UserMetrics.ts +0 -55
- package/front_end/core/root/ExperimentNames.ts +0 -1
- package/front_end/core/sdk/CPUThrottlingManager.ts +1 -1
- package/front_end/core/sdk/CSSMetadata.ts +60 -63
- package/front_end/core/sdk/CSSProperty.ts +1 -5
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +11 -32
- package/front_end/{panels/application → core/sdk}/DOMStorageModel.ts +12 -10
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/entrypoints/main/MainImpl.ts +12 -8
- package/front_end/entrypoints/main/SimpleApp.ts +3 -4
- package/front_end/entrypoints/main/main-meta.ts +1 -1
- package/front_end/generated/InspectorBackendCommands.ts +3 -3
- package/front_end/generated/SupportedCSSProperties.js +21 -21
- package/front_end/generated/protocol.ts +4 -1
- package/front_end/models/ai_assistance/StorageItem.ts +16 -0
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +82 -0
- package/front_end/models/ai_assistance/ai_assistance.ts +4 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +9 -37
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +26 -3
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +10 -2
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +5 -1
- package/front_end/models/issues_manager/CookieIssue.ts +0 -4
- package/front_end/models/issues_manager/RelatedIssue.ts +0 -14
- package/front_end/models/javascript_metadata/NativeFunctions.js +0 -4
- package/front_end/models/web_mcp/WebMCPModel.ts +11 -2
- package/front_end/models/workspace/IgnoreListManager.ts +1 -1
- package/front_end/models/workspace/UISourceCode.ts +10 -5
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +6 -1
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +26 -9
- package/front_end/panels/application/ApplicationPanelSidebar.ts +32 -42
- package/front_end/panels/application/BackForwardCacheTreeElement.ts +2 -2
- package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +2 -2
- package/front_end/panels/application/DOMStorageItemsView.ts +18 -13
- package/front_end/panels/application/InterestGroupTreeElement.ts +2 -2
- package/front_end/panels/application/ReportingApiTreeElement.ts +3 -3
- package/front_end/panels/application/ResourcesPanel.ts +1 -2
- package/front_end/panels/application/ServiceWorkerCacheTreeElement.ts +1 -2
- package/front_end/panels/application/StorageView.ts +1 -2
- package/front_end/panels/application/TrustTokensTreeElement.ts +2 -2
- package/front_end/panels/application/WebMCPTreeElement.ts +2 -2
- package/front_end/panels/application/WebMCPView.ts +74 -16
- package/front_end/panels/application/application.ts +0 -2
- package/front_end/panels/application/webMCPView.css +13 -2
- package/front_end/panels/console/ConsolePrompt.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +3 -4
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -152
- package/front_end/panels/elements/ElementsTreeElement.ts +4 -9
- package/front_end/panels/elements/StandaloneStylesContainer.ts +3 -0
- package/front_end/panels/elements/StylePropertiesSection.ts +0 -61
- package/front_end/panels/elements/StylePropertyTreeElement.ts +36 -23
- package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +6 -4
- package/front_end/panels/elements/StylesContainer.ts +1 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +12 -7
- package/front_end/panels/elements/stylesSidebarPane.css +0 -8
- package/front_end/panels/emulation/AdvancedApp.ts +3 -3
- package/front_end/panels/emulation/DeviceModeToolbar.ts +207 -377
- package/front_end/panels/emulation/emulation-meta.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +1 -1
- package/front_end/panels/profiler/HeapProfilerPanel.ts +1 -2
- package/front_end/panels/screencast/ScreencastApp.ts +3 -3
- package/front_end/panels/screencast/screencast-meta.ts +1 -2
- package/front_end/panels/settings/SettingsScreen.ts +2 -2
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +2 -4
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +5 -1
- package/front_end/panels/sources/SourcesNavigator.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +1 -3
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +179 -145
- package/front_end/panels/timeline/TimelinePanel.ts +2 -2
- package/front_end/panels/timeline/timelineTreeView.css +2 -2
- 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/lib/cjs/puppeteer/api/Page.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.js +53 -23
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +3 -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 +18 -8
- 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/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +4 -0
- 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/TargetManager.d.ts +1 -1
- 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 +54 -19
- 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 +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.js +2 -9
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +37 -1
- 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/injected/injected.d.ts +1 -1
- 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 +1 -0
- 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/util/Mutex.d.ts +2 -2
- 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 +47 -65
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +143 -55
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.js +53 -23
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +3 -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 +18 -8
- 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/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +4 -0
- 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/TargetManager.d.ts +1 -1
- 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 +54 -19
- 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 +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.js +2 -9
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +37 -1
- 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/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 +1 -0
- 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/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/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 +47 -65
- package/front_end/third_party/puppeteer/package/package.json +6 -6
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +69 -27
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +27 -8
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -2
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +60 -18
- package/front_end/third_party/puppeteer/package/src/cdp/WebMCP.ts +7 -9
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +3 -0
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +37 -1
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +7 -2
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +19 -14
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +8 -7
- package/front_end/ui/components/tooltips/Tooltip.ts +3 -3
- package/front_end/{core/common → ui/legacy}/AppProvider.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +4 -3
- package/front_end/ui/legacy/TabbedPane.ts +1 -1
- package/front_end/ui/legacy/UIUserMetrics.ts +70 -0
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +1 -8
- package/front_end/ui/legacy/components/inline_editor/inline_editor.ts +0 -6
- package/front_end/ui/legacy/legacy.ts +6 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
- package/package.json +1 -1
- package/front_end/Images/src/custom-typography.svg +0 -3
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +0 -798
- package/front_end/ui/legacy/components/inline_editor/FontEditorUnitConverter.ts +0 -250
- package/front_end/ui/legacy/components/inline_editor/FontEditorUtils.ts +0 -204
- package/front_end/ui/legacy/components/inline_editor/fontEditor.css +0 -185
- /package/front_end/{core/common → ui/legacy}/App.ts +0 -0
|
@@ -231,7 +231,7 @@ inspectorBackend.registerType("Browser.Histogram", [{"name": "name", "type": "st
|
|
|
231
231
|
inspectorBackend.registerEnum("CSS.StyleSheetOrigin", {Injected: "injected", UserAgent: "user-agent", Inspector: "inspector", Regular: "regular"});
|
|
232
232
|
inspectorBackend.registerEnum("CSS.CSSRuleType", {MediaRule: "MediaRule", SupportsRule: "SupportsRule", ContainerRule: "ContainerRule", LayerRule: "LayerRule", ScopeRule: "ScopeRule", StyleRule: "StyleRule", StartingStyleRule: "StartingStyleRule", NavigationRule: "NavigationRule"});
|
|
233
233
|
inspectorBackend.registerEnum("CSS.CSSMediaSource", {MediaRule: "mediaRule", ImportRule: "importRule", LinkedSheet: "linkedSheet", InlineSheet: "inlineSheet"});
|
|
234
|
-
inspectorBackend.registerEnum("CSS.CSSAtRuleType", {FontFace: "font-face", FontFeatureValues: "font-feature-values", FontPaletteValues: "font-palette-values"});
|
|
234
|
+
inspectorBackend.registerEnum("CSS.CSSAtRuleType", {FontFace: "font-face", FontFeatureValues: "font-feature-values", FontPaletteValues: "font-palette-values", CounterStyle: "counter-style"});
|
|
235
235
|
inspectorBackend.registerEnum("CSS.CSSAtRuleSubsection", {Swash: "swash", Annotation: "annotation", Ornaments: "ornaments", Stylistic: "stylistic", Styleset: "styleset", CharacterVariant: "character-variant"});
|
|
236
236
|
inspectorBackend.registerEvent("CSS.fontsUpdated", ["font"]);
|
|
237
237
|
inspectorBackend.registerEvent("CSS.mediaQueryResultChanged", []);
|
|
@@ -807,8 +807,8 @@ inspectorBackend.registerEnum("Network.ContentSecurityPolicySource", {HTTP: "HTT
|
|
|
807
807
|
inspectorBackend.registerEnum("Network.ReportStatus", {Queued: "Queued", Pending: "Pending", MarkedForRemoval: "MarkedForRemoval", Success: "Success"});
|
|
808
808
|
inspectorBackend.registerEnum("Network.DeviceBoundSessionWithUsageUsage", {NotInScope: "NotInScope", InScopeRefreshNotYetNeeded: "InScopeRefreshNotYetNeeded", InScopeRefreshNotAllowed: "InScopeRefreshNotAllowed", ProactiveRefreshNotPossible: "ProactiveRefreshNotPossible", ProactiveRefreshAttempted: "ProactiveRefreshAttempted", Deferred: "Deferred"});
|
|
809
809
|
inspectorBackend.registerEnum("Network.DeviceBoundSessionUrlRuleRuleType", {Exclude: "Exclude", Include: "Include"});
|
|
810
|
-
inspectorBackend.registerEnum("Network.DeviceBoundSessionFetchResult", {Success: "Success", KeyError: "KeyError", SigningError: "SigningError", ServerRequestedTermination: "ServerRequestedTermination", InvalidSessionId: "InvalidSessionId", InvalidChallenge: "InvalidChallenge", TooManyChallenges: "TooManyChallenges", InvalidFetcherUrl: "InvalidFetcherUrl", InvalidRefreshUrl: "InvalidRefreshUrl", TransientHttpError: "TransientHttpError", ScopeOriginSameSiteMismatch: "ScopeOriginSameSiteMismatch", RefreshUrlSameSiteMismatch: "RefreshUrlSameSiteMismatch", MismatchedSessionId: "MismatchedSessionId", MissingScope: "MissingScope", NoCredentials: "NoCredentials", SubdomainRegistrationWellKnownUnavailable: "SubdomainRegistrationWellKnownUnavailable", SubdomainRegistrationUnauthorized: "SubdomainRegistrationUnauthorized", SubdomainRegistrationWellKnownMalformed: "SubdomainRegistrationWellKnownMalformed", SessionProviderWellKnownUnavailable: "SessionProviderWellKnownUnavailable", RelyingPartyWellKnownUnavailable: "RelyingPartyWellKnownUnavailable", FederatedKeyThumbprintMismatch: "FederatedKeyThumbprintMismatch", InvalidFederatedSessionUrl: "InvalidFederatedSessionUrl", InvalidFederatedKey: "InvalidFederatedKey", TooManyRelyingOriginLabels: "TooManyRelyingOriginLabels", BoundCookieSetForbidden: "BoundCookieSetForbidden", NetError: "NetError", ProxyError: "ProxyError", EmptySessionConfig: "EmptySessionConfig", InvalidCredentialsConfig: "InvalidCredentialsConfig", InvalidCredentialsType: "InvalidCredentialsType", InvalidCredentialsEmptyName: "InvalidCredentialsEmptyName", InvalidCredentialsCookie: "InvalidCredentialsCookie", PersistentHttpError: "PersistentHttpError", RegistrationAttemptedChallenge: "RegistrationAttemptedChallenge", InvalidScopeOrigin: "InvalidScopeOrigin", ScopeOriginContainsPath: "ScopeOriginContainsPath", RefreshInitiatorNotString: "RefreshInitiatorNotString", RefreshInitiatorInvalidHostPattern: "RefreshInitiatorInvalidHostPattern", InvalidScopeSpecification: "InvalidScopeSpecification", MissingScopeSpecificationType: "MissingScopeSpecificationType", EmptyScopeSpecificationDomain: "EmptyScopeSpecificationDomain", EmptyScopeSpecificationPath: "EmptyScopeSpecificationPath", InvalidScopeSpecificationType: "InvalidScopeSpecificationType", InvalidScopeIncludeSite: "InvalidScopeIncludeSite", MissingScopeIncludeSite: "MissingScopeIncludeSite", FederatedNotAuthorizedByProvider: "FederatedNotAuthorizedByProvider", FederatedNotAuthorizedByRelyingParty: "FederatedNotAuthorizedByRelyingParty", SessionProviderWellKnownMalformed: "SessionProviderWellKnownMalformed", SessionProviderWellKnownHasProviderOrigin: "SessionProviderWellKnownHasProviderOrigin", RelyingPartyWellKnownMalformed: "RelyingPartyWellKnownMalformed", RelyingPartyWellKnownHasRelyingOrigins: "RelyingPartyWellKnownHasRelyingOrigins", InvalidFederatedSessionProviderSessionMissing: "InvalidFederatedSessionProviderSessionMissing", InvalidFederatedSessionWrongProviderOrigin: "InvalidFederatedSessionWrongProviderOrigin", InvalidCredentialsCookieCreationTime: "InvalidCredentialsCookieCreationTime", InvalidCredentialsCookieName: "InvalidCredentialsCookieName", InvalidCredentialsCookieParsing: "InvalidCredentialsCookieParsing", InvalidCredentialsCookieUnpermittedAttribute: "InvalidCredentialsCookieUnpermittedAttribute", InvalidCredentialsCookieInvalidDomain: "InvalidCredentialsCookieInvalidDomain", InvalidCredentialsCookiePrefix: "InvalidCredentialsCookiePrefix", InvalidScopeRulePath: "InvalidScopeRulePath", InvalidScopeRuleHostPattern: "InvalidScopeRuleHostPattern", ScopeRuleOriginScopedHostPatternMismatch: "ScopeRuleOriginScopedHostPatternMismatch", ScopeRuleSiteScopedHostPatternMismatch: "ScopeRuleSiteScopedHostPatternMismatch", SigningQuotaExceeded: "SigningQuotaExceeded", InvalidConfigJson: "InvalidConfigJson", InvalidFederatedSessionProviderFailedToRestoreKey: "InvalidFederatedSessionProviderFailedToRestoreKey", FailedToUnwrapKey: "FailedToUnwrapKey", SessionDeletedDuringRefresh: "SessionDeletedDuringRefresh"});
|
|
811
|
-
inspectorBackend.registerEnum("Network.RefreshEventDetailsRefreshResult", {Refreshed: "Refreshed",
|
|
810
|
+
inspectorBackend.registerEnum("Network.DeviceBoundSessionFetchResult", {Success: "Success", KeyError: "KeyError", SigningError: "SigningError", TransientSigningError: "TransientSigningError", ServerRequestedTermination: "ServerRequestedTermination", InvalidSessionId: "InvalidSessionId", InvalidChallenge: "InvalidChallenge", TooManyChallenges: "TooManyChallenges", InvalidFetcherUrl: "InvalidFetcherUrl", InvalidRefreshUrl: "InvalidRefreshUrl", TransientHttpError: "TransientHttpError", ScopeOriginSameSiteMismatch: "ScopeOriginSameSiteMismatch", RefreshUrlSameSiteMismatch: "RefreshUrlSameSiteMismatch", MismatchedSessionId: "MismatchedSessionId", MissingScope: "MissingScope", NoCredentials: "NoCredentials", SubdomainRegistrationWellKnownUnavailable: "SubdomainRegistrationWellKnownUnavailable", SubdomainRegistrationUnauthorized: "SubdomainRegistrationUnauthorized", SubdomainRegistrationWellKnownMalformed: "SubdomainRegistrationWellKnownMalformed", SessionProviderWellKnownUnavailable: "SessionProviderWellKnownUnavailable", RelyingPartyWellKnownUnavailable: "RelyingPartyWellKnownUnavailable", FederatedKeyThumbprintMismatch: "FederatedKeyThumbprintMismatch", InvalidFederatedSessionUrl: "InvalidFederatedSessionUrl", InvalidFederatedKey: "InvalidFederatedKey", TooManyRelyingOriginLabels: "TooManyRelyingOriginLabels", BoundCookieSetForbidden: "BoundCookieSetForbidden", NetError: "NetError", ProxyError: "ProxyError", EmptySessionConfig: "EmptySessionConfig", InvalidCredentialsConfig: "InvalidCredentialsConfig", InvalidCredentialsType: "InvalidCredentialsType", InvalidCredentialsEmptyName: "InvalidCredentialsEmptyName", InvalidCredentialsCookie: "InvalidCredentialsCookie", PersistentHttpError: "PersistentHttpError", RegistrationAttemptedChallenge: "RegistrationAttemptedChallenge", InvalidScopeOrigin: "InvalidScopeOrigin", ScopeOriginContainsPath: "ScopeOriginContainsPath", RefreshInitiatorNotString: "RefreshInitiatorNotString", RefreshInitiatorInvalidHostPattern: "RefreshInitiatorInvalidHostPattern", InvalidScopeSpecification: "InvalidScopeSpecification", MissingScopeSpecificationType: "MissingScopeSpecificationType", EmptyScopeSpecificationDomain: "EmptyScopeSpecificationDomain", EmptyScopeSpecificationPath: "EmptyScopeSpecificationPath", InvalidScopeSpecificationType: "InvalidScopeSpecificationType", InvalidScopeIncludeSite: "InvalidScopeIncludeSite", MissingScopeIncludeSite: "MissingScopeIncludeSite", FederatedNotAuthorizedByProvider: "FederatedNotAuthorizedByProvider", FederatedNotAuthorizedByRelyingParty: "FederatedNotAuthorizedByRelyingParty", SessionProviderWellKnownMalformed: "SessionProviderWellKnownMalformed", SessionProviderWellKnownHasProviderOrigin: "SessionProviderWellKnownHasProviderOrigin", RelyingPartyWellKnownMalformed: "RelyingPartyWellKnownMalformed", RelyingPartyWellKnownHasRelyingOrigins: "RelyingPartyWellKnownHasRelyingOrigins", InvalidFederatedSessionProviderSessionMissing: "InvalidFederatedSessionProviderSessionMissing", InvalidFederatedSessionWrongProviderOrigin: "InvalidFederatedSessionWrongProviderOrigin", InvalidCredentialsCookieCreationTime: "InvalidCredentialsCookieCreationTime", InvalidCredentialsCookieName: "InvalidCredentialsCookieName", InvalidCredentialsCookieParsing: "InvalidCredentialsCookieParsing", InvalidCredentialsCookieUnpermittedAttribute: "InvalidCredentialsCookieUnpermittedAttribute", InvalidCredentialsCookieInvalidDomain: "InvalidCredentialsCookieInvalidDomain", InvalidCredentialsCookiePrefix: "InvalidCredentialsCookiePrefix", InvalidScopeRulePath: "InvalidScopeRulePath", InvalidScopeRuleHostPattern: "InvalidScopeRuleHostPattern", ScopeRuleOriginScopedHostPatternMismatch: "ScopeRuleOriginScopedHostPatternMismatch", ScopeRuleSiteScopedHostPatternMismatch: "ScopeRuleSiteScopedHostPatternMismatch", SigningQuotaExceeded: "SigningQuotaExceeded", InvalidConfigJson: "InvalidConfigJson", InvalidFederatedSessionProviderFailedToRestoreKey: "InvalidFederatedSessionProviderFailedToRestoreKey", FailedToUnwrapKey: "FailedToUnwrapKey", SessionDeletedDuringRefresh: "SessionDeletedDuringRefresh"});
|
|
811
|
+
inspectorBackend.registerEnum("Network.RefreshEventDetailsRefreshResult", {Refreshed: "Refreshed", InitializedService: "InitializedService", Unreachable: "Unreachable", ServerError: "ServerError", RefreshQuotaExceeded: "RefreshQuotaExceeded", FatalError: "FatalError", SigningQuotaExceeded: "SigningQuotaExceeded", RefreshedAsWaiter: "RefreshedAsWaiter", TransientSigningError: "TransientSigningError"});
|
|
812
812
|
inspectorBackend.registerEnum("Network.TerminationEventDetailsDeletionReason", {Expired: "Expired", FailedToRestoreKey: "FailedToRestoreKey", FailedToUnwrapKey: "FailedToUnwrapKey", StoragePartitionCleared: "StoragePartitionCleared", ClearBrowsingData: "ClearBrowsingData", ServerRequested: "ServerRequested", InvalidSessionParams: "InvalidSessionParams", RefreshFatalError: "RefreshFatalError", DevTools: "DevTools"});
|
|
813
813
|
inspectorBackend.registerEnum("Network.ChallengeEventDetailsChallengeResult", {Success: "Success", NoSessionId: "NoSessionId", NoSessionMatch: "NoSessionMatch", CantSetBoundCookie: "CantSetBoundCookie"});
|
|
814
814
|
inspectorBackend.registerEvent("Network.dataReceived", ["requestId", "timestamp", "dataLength", "encodedDataLength", "data"]);
|
|
@@ -1951,6 +1951,22 @@ export const generatedProperties = [
|
|
|
1951
1951
|
],
|
|
1952
1952
|
"name": "continue"
|
|
1953
1953
|
},
|
|
1954
|
+
{
|
|
1955
|
+
"keywords": [
|
|
1956
|
+
"normal"
|
|
1957
|
+
],
|
|
1958
|
+
"longhands": [
|
|
1959
|
+
"border-top-left-radius",
|
|
1960
|
+
"corner-top-left-shape",
|
|
1961
|
+
"border-top-right-radius",
|
|
1962
|
+
"corner-top-right-shape",
|
|
1963
|
+
"border-bottom-right-radius",
|
|
1964
|
+
"corner-bottom-right-shape",
|
|
1965
|
+
"border-bottom-left-radius",
|
|
1966
|
+
"corner-bottom-left-shape"
|
|
1967
|
+
],
|
|
1968
|
+
"name": "corner"
|
|
1969
|
+
},
|
|
1954
1970
|
{
|
|
1955
1971
|
"longhands": [
|
|
1956
1972
|
"corner-end-start-shape",
|
|
@@ -2072,22 +2088,6 @@ export const generatedProperties = [
|
|
|
2072
2088
|
],
|
|
2073
2089
|
"name": "corner-top-shape"
|
|
2074
2090
|
},
|
|
2075
|
-
{
|
|
2076
|
-
"keywords": [
|
|
2077
|
-
"normal"
|
|
2078
|
-
],
|
|
2079
|
-
"longhands": [
|
|
2080
|
-
"border-top-left-radius",
|
|
2081
|
-
"corner-top-left-shape",
|
|
2082
|
-
"border-top-right-radius",
|
|
2083
|
-
"corner-top-right-shape",
|
|
2084
|
-
"border-bottom-right-radius",
|
|
2085
|
-
"corner-bottom-right-shape",
|
|
2086
|
-
"border-bottom-left-radius",
|
|
2087
|
-
"corner-bottom-left-shape"
|
|
2088
|
-
],
|
|
2089
|
-
"name": "corners"
|
|
2090
|
-
},
|
|
2091
2091
|
{
|
|
2092
2092
|
"keywords": [
|
|
2093
2093
|
"none"
|
|
@@ -5772,6 +5772,11 @@ export const generatedPropertyValues = {
|
|
|
5772
5772
|
"-webkit-legacy"
|
|
5773
5773
|
]
|
|
5774
5774
|
},
|
|
5775
|
+
"corner": {
|
|
5776
|
+
"values": [
|
|
5777
|
+
"normal"
|
|
5778
|
+
]
|
|
5779
|
+
},
|
|
5775
5780
|
"corner-bottom-left-shape": {
|
|
5776
5781
|
"values": [
|
|
5777
5782
|
"notch",
|
|
@@ -5812,11 +5817,6 @@ export const generatedPropertyValues = {
|
|
|
5812
5817
|
"square"
|
|
5813
5818
|
]
|
|
5814
5819
|
},
|
|
5815
|
-
"corners": {
|
|
5816
|
-
"values": [
|
|
5817
|
-
"normal"
|
|
5818
|
-
]
|
|
5819
|
-
},
|
|
5820
5820
|
"counter-increment": {
|
|
5821
5821
|
"values": [
|
|
5822
5822
|
"none"
|
|
@@ -3557,6 +3557,7 @@ export namespace CSS {
|
|
|
3557
3557
|
FontFace = 'font-face',
|
|
3558
3558
|
FontFeatureValues = 'font-feature-values',
|
|
3559
3559
|
FontPaletteValues = 'font-palette-values',
|
|
3560
|
+
CounterStyle = 'counter-style',
|
|
3560
3561
|
}
|
|
3561
3562
|
|
|
3562
3563
|
export const enum CSSAtRuleSubsection {
|
|
@@ -11813,6 +11814,7 @@ export namespace Network {
|
|
|
11813
11814
|
Success = 'Success',
|
|
11814
11815
|
KeyError = 'KeyError',
|
|
11815
11816
|
SigningError = 'SigningError',
|
|
11817
|
+
TransientSigningError = 'TransientSigningError',
|
|
11816
11818
|
ServerRequestedTermination = 'ServerRequestedTermination',
|
|
11817
11819
|
InvalidSessionId = 'InvalidSessionId',
|
|
11818
11820
|
InvalidChallenge = 'InvalidChallenge',
|
|
@@ -11926,13 +11928,14 @@ export namespace Network {
|
|
|
11926
11928
|
|
|
11927
11929
|
export const enum RefreshEventDetailsRefreshResult {
|
|
11928
11930
|
Refreshed = 'Refreshed',
|
|
11929
|
-
RefreshedAsWaiter = 'RefreshedAsWaiter',
|
|
11930
11931
|
InitializedService = 'InitializedService',
|
|
11931
11932
|
Unreachable = 'Unreachable',
|
|
11932
11933
|
ServerError = 'ServerError',
|
|
11933
11934
|
RefreshQuotaExceeded = 'RefreshQuotaExceeded',
|
|
11934
11935
|
FatalError = 'FatalError',
|
|
11935
11936
|
SigningQuotaExceeded = 'SigningQuotaExceeded',
|
|
11937
|
+
RefreshedAsWaiter = 'RefreshedAsWaiter',
|
|
11938
|
+
TransientSigningError = 'TransientSigningError',
|
|
11936
11939
|
}
|
|
11937
11940
|
|
|
11938
11941
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2026 The Chromium Authors
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
// The StorageItem is used as context for the Ai Assistance.
|
|
6
|
+
// If the user selects a row in e.g. the cookies table, the storageType and key
|
|
7
|
+
// will be populated. An empty {} StorageItem is used if the user asks general questions.
|
|
8
|
+
export type StorageItem = {
|
|
9
|
+
origin: string,
|
|
10
|
+
}&({
|
|
11
|
+
storageType?: never,
|
|
12
|
+
key?: never,
|
|
13
|
+
}|{
|
|
14
|
+
storageType: 'cookie' | 'localStorage' | 'sessionStorage',
|
|
15
|
+
key: string,
|
|
16
|
+
});
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Copyright 2026 The Chromium Authors
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
import * as Host from '../../../core/host/host.js';
|
|
6
|
+
import * as Root from '../../../core/root/root.js';
|
|
7
|
+
import type {StorageItem} from '../StorageItem.js';
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
AiAgent,
|
|
11
|
+
ConversationContext,
|
|
12
|
+
type RequestOptions,
|
|
13
|
+
} from './AiAgent.js';
|
|
14
|
+
|
|
15
|
+
// TODO(kimanh): Replace temporary preamble as soon as functions are implemented
|
|
16
|
+
const preamble =
|
|
17
|
+
`You are a Senior Software Engineer, specializing in state audit and storage analysis within Chrome DevTools. Your mission is to help developers debug storage-related issues faster by analyzing the evidence in Cookies, LocalStorage, and SessionStorage and connecting it to the application logic in the source code.
|
|
18
|
+
|
|
19
|
+
# Considerations
|
|
20
|
+
|
|
21
|
+
- **Raw Evidence**: Treat storage data as "raw evidence". Do not make assumptions without verifying code references.
|
|
22
|
+
- **Brevity**: Use the precision of Strunk & White, the brevity of Hemingway, and the simple clarity of Vonnegut. Keep answers short and actionable.
|
|
23
|
+
|
|
24
|
+
**CRITICAL** You are a debugging assistant in DevTools. NEVER provide answers to questions of unrelated topics such as legal advice, financial advice, personal opinions, medical advice, religion, race, politics, sexuality, gender, or any other non web-development topics. Answer "Sorry, I can't answer that. I'm best at questions about debugging web pages." to such questions.
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
export class StorageContext extends ConversationContext<StorageItem> {
|
|
28
|
+
#item: StorageItem;
|
|
29
|
+
|
|
30
|
+
constructor(item: StorageItem) {
|
|
31
|
+
super();
|
|
32
|
+
this.#item = item;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
override getOrigin(): string {
|
|
36
|
+
return this.#item.origin;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
override getItem(): StorageItem {
|
|
40
|
+
return this.#item;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
override getTitle(): string {
|
|
44
|
+
if (this.#item.key) {
|
|
45
|
+
return `${this.#item.storageType}: ${this.#item.key}`;
|
|
46
|
+
}
|
|
47
|
+
return `Storage for ${this.#item.origin}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class StorageAgent extends AiAgent<StorageItem> {
|
|
52
|
+
readonly preamble = preamble;
|
|
53
|
+
readonly clientFeature = Host.AidaClient.ClientFeature.CHROME_STORAGE_AGENT;
|
|
54
|
+
|
|
55
|
+
get userTier(): string|undefined {
|
|
56
|
+
return Root.Runtime.hostConfig.devToolsFreestyler?.userTier;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
get options(): RequestOptions {
|
|
60
|
+
const temperature = Root.Runtime.hostConfig.devToolsFreestyler?.temperature;
|
|
61
|
+
const modelId = Root.Runtime.hostConfig.devToolsFreestyler?.modelId;
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
temperature,
|
|
65
|
+
modelId,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
constructor(opts: {sessionId?: string, aidaClient?: Host.AidaClient.AidaClient} = {}) {
|
|
70
|
+
super({
|
|
71
|
+
aidaClient: opts.aidaClient ?? new Host.AidaClient.AidaClient(),
|
|
72
|
+
sessionId: opts.sessionId,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async * handleContextDetails(_context: ConversationContext<StorageItem>|null): AsyncGenerator<never, void, void> {
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
override async enhanceQuery(query: string, _context: ConversationContext<StorageItem>|null): Promise<string> {
|
|
80
|
+
return query;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -14,6 +14,7 @@ import * as NetworkAgent from './agents/NetworkAgent.js';
|
|
|
14
14
|
import * as PatchAgent from './agents/PatchAgent.js';
|
|
15
15
|
import * as PerformanceAgent from './agents/PerformanceAgent.js';
|
|
16
16
|
import * as PerformanceAnnotationsAgent from './agents/PerformanceAnnotationsAgent.js';
|
|
17
|
+
import * as StorageAgent from './agents/StorageAgent.js';
|
|
17
18
|
import * as StylingAgent from './agents/StylingAgent.js';
|
|
18
19
|
import * as AiConversation from './AiConversation.js';
|
|
19
20
|
import * as AiHistoryStorage from './AiHistoryStorage.js';
|
|
@@ -33,6 +34,7 @@ import * as Injected from './injected.js';
|
|
|
33
34
|
import * as AICallTree from './performance/AICallTree.js';
|
|
34
35
|
import * as AIContext from './performance/AIContext.js';
|
|
35
36
|
import * as AIQueries from './performance/AIQueries.js';
|
|
37
|
+
import * as StorageItem from './StorageItem.js';
|
|
36
38
|
|
|
37
39
|
export {
|
|
38
40
|
AccessibilityAgent,
|
|
@@ -64,6 +66,8 @@ export {
|
|
|
64
66
|
PerformanceAnnotationsAgent,
|
|
65
67
|
PerformanceInsightFormatter,
|
|
66
68
|
PerformanceTraceFormatter,
|
|
69
|
+
StorageAgent,
|
|
70
|
+
StorageItem,
|
|
67
71
|
StylingAgent,
|
|
68
72
|
UnitFormatters,
|
|
69
73
|
};
|
package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt
CHANGED
|
@@ -332,33 +332,21 @@ IMPORTANT: Never show eventKey to the user.
|
|
|
332
332
|
|
|
333
333
|
The following are markdown block(s) of code that ran in the page, each representing a separate function. <FUNCTION_START> and <FUNCTION_END> marks the exact function declaration, and everything outside that is provided for additional context. Comments at the end of each line indicate the runtime performance cost of that code. Do not show the user the function markers or the additional context.
|
|
334
334
|
|
|
335
|
-
Here
|
|
335
|
+
Here is the first line of 3 relevant functions:
|
|
336
336
|
|
|
337
|
-
(anonymous) @ https://s.yimg.com/aaq/prebid/prebid-2.0.js:12:53984
|
|
337
|
+
(anonymous) @ https://s.yimg.com/aaq/prebid/prebid-2.0.js:12:53984
|
|
338
338
|
```
|
|
339
|
-
// context ...
|
|
340
|
-
|
|
341
339
|
() => { /* some code from https://s.yimg.com/aaq/prebid/prebid-2.0.js... */ }
|
|
342
|
-
|
|
343
|
-
// context ...
|
|
344
340
|
```
|
|
345
341
|
|
|
346
|
-
(anonymous) @ https://s.yimg.com/aaq/f10d509c/d1irmdsmbztlvx.js:0:43042
|
|
342
|
+
(anonymous) @ https://s.yimg.com/aaq/f10d509c/d1irmdsmbztlvx.js:0:43042
|
|
347
343
|
```
|
|
348
|
-
// context ...
|
|
349
|
-
|
|
350
344
|
() => { /* some code from https://s.yimg.com/aaq/f10d509c/d1irmdsmbztlvx.js... */ }
|
|
351
|
-
|
|
352
|
-
// context ...
|
|
353
345
|
```
|
|
354
346
|
|
|
355
|
-
(anonymous) @ https://s.yimg.com/aaq/prebid/prebid-2.0.js:12:15854
|
|
347
|
+
(anonymous) @ https://s.yimg.com/aaq/prebid/prebid-2.0.js:12:15854
|
|
356
348
|
```
|
|
357
|
-
// context ...
|
|
358
|
-
|
|
359
349
|
() => { /* some code from https://s.yimg.com/aaq/prebid/prebid-2.0.js... */ }
|
|
360
|
-
|
|
361
|
-
// context ...
|
|
362
350
|
```
|
|
363
351
|
|
|
364
352
|
# Bottom-up main thread summary
|
|
@@ -1019,42 +1007,26 @@ IMPORTANT: Never show eventKey to the user.
|
|
|
1019
1007
|
|
|
1020
1008
|
The following are markdown block(s) of code that ran in the page, each representing a separate function. <FUNCTION_START> and <FUNCTION_END> marks the exact function declaration, and everything outside that is provided for additional context. Comments at the end of each line indicate the runtime performance cost of that code. Do not show the user the function markers or the additional context.
|
|
1021
1009
|
|
|
1022
|
-
Here
|
|
1010
|
+
Here is the first line of 4 relevant functions:
|
|
1023
1011
|
|
|
1024
|
-
(anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:0
|
|
1012
|
+
(anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:0
|
|
1025
1013
|
```
|
|
1026
|
-
// context ...
|
|
1027
|
-
|
|
1028
1014
|
() => { /* some code from https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js... */ }
|
|
1029
|
-
|
|
1030
|
-
// context ...
|
|
1031
1015
|
```
|
|
1032
1016
|
|
|
1033
|
-
(anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:231
|
|
1017
|
+
(anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:231
|
|
1034
1018
|
```
|
|
1035
|
-
// context ...
|
|
1036
|
-
|
|
1037
1019
|
() => { /* some code from https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js... */ }
|
|
1038
|
-
|
|
1039
|
-
// context ...
|
|
1040
1020
|
```
|
|
1041
1021
|
|
|
1042
|
-
(anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:292
|
|
1022
|
+
(anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:292
|
|
1043
1023
|
```
|
|
1044
|
-
// context ...
|
|
1045
|
-
|
|
1046
1024
|
() => { /* some code from https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js... */ }
|
|
1047
|
-
|
|
1048
|
-
// context ...
|
|
1049
1025
|
```
|
|
1050
1026
|
|
|
1051
|
-
(anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:155034
|
|
1027
|
+
(anonymous) @ https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js:0:155034
|
|
1052
1028
|
```
|
|
1053
|
-
// context ...
|
|
1054
|
-
|
|
1055
1029
|
() => { /* some code from https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js... */ }
|
|
1056
|
-
|
|
1057
|
-
// context ...
|
|
1058
1030
|
```
|
|
1059
1031
|
=== end content
|
|
1060
1032
|
|
|
@@ -901,6 +901,29 @@ The order of headers corresponds to an internal fixed list. If a header is not p
|
|
|
901
901
|
return parts.join('\n');
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
+
/**
|
|
905
|
+
* Formats only the first line of the function code to save space in summaries.
|
|
906
|
+
* The agent can use this information (url, line, column) to get the whole function source.
|
|
907
|
+
*/
|
|
908
|
+
#formatFunctionCodeSummary(code: SourceMapScopes.FunctionCodeResolver.FunctionCode): string {
|
|
909
|
+
this.#formattedFunctionCodes.add(this.#functionCodeToKey(code));
|
|
910
|
+
|
|
911
|
+
const {startLine, startColumn} = code.range;
|
|
912
|
+
const name = code.functionBounds.name || '(anonymous)';
|
|
913
|
+
const url = code.functionBounds.uiSourceCode.url();
|
|
914
|
+
|
|
915
|
+
const lines = code.code.split('\n');
|
|
916
|
+
const firstLine = lines[0] || '';
|
|
917
|
+
|
|
918
|
+
const parts = [];
|
|
919
|
+
parts.push(`${name} @ ${url}:${startLine}:${startColumn}`);
|
|
920
|
+
parts.push('```');
|
|
921
|
+
parts.push(firstLine);
|
|
922
|
+
parts.push('```');
|
|
923
|
+
|
|
924
|
+
return parts.join('\n');
|
|
925
|
+
}
|
|
926
|
+
|
|
904
927
|
/**
|
|
905
928
|
* Appends the code of each call frame's function, but only if the function was not
|
|
906
929
|
* serialized previously.
|
|
@@ -917,7 +940,7 @@ The order of headers corresponds to an internal fixed list. If a header is not p
|
|
|
917
940
|
resolveFunctionCode(frame.url as Platform.DevToolsPath.UrlString, frame.lineNumber, frame.columnNumber)));
|
|
918
941
|
for (const code of functionCodes) {
|
|
919
942
|
if (code && !this.#hasFormattedFunctionCode(code)) {
|
|
920
|
-
functionCodeStrings.push(this.#
|
|
943
|
+
functionCodeStrings.push(this.#formatFunctionCodeSummary(code));
|
|
921
944
|
}
|
|
922
945
|
}
|
|
923
946
|
|
|
@@ -927,8 +950,8 @@ The order of headers corresponds to an internal fixed list. If a header is not p
|
|
|
927
950
|
|
|
928
951
|
return '\n' + [
|
|
929
952
|
this.#getFormattedFunctionCodeExplainer(),
|
|
930
|
-
functionCodeStrings.length > 1 ? `Here
|
|
931
|
-
`Here is a relevant function:`,
|
|
953
|
+
functionCodeStrings.length > 1 ? `Here is the first line of ${functionCodeStrings.length} relevant functions:` :
|
|
954
|
+
`Here is the first line of a relevant function:`,
|
|
932
955
|
...functionCodeStrings,
|
|
933
956
|
].join('\n\n');
|
|
934
957
|
}
|
|
@@ -352,6 +352,10 @@ export class AiCodeCompletion {
|
|
|
352
352
|
this.#callbacks?.setAiAutoCompletion(null);
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
+
static isAiCodeCompletionAvailable(): boolean {
|
|
356
|
+
return Root.Runtime.hostConfig.devToolsAiCodeCompletion?.enabled ?? false;
|
|
357
|
+
}
|
|
358
|
+
|
|
355
359
|
static isAiCodeCompletionEnabled(locale: string): boolean {
|
|
356
360
|
if (!locale.startsWith('en-')) {
|
|
357
361
|
return false;
|
|
@@ -361,7 +365,11 @@ export class AiCodeCompletion {
|
|
|
361
365
|
aidaAvailability.blockedByEnterprisePolicy) {
|
|
362
366
|
return false;
|
|
363
367
|
}
|
|
364
|
-
return Boolean(aidaAvailability.enabled &&
|
|
368
|
+
return Boolean(aidaAvailability.enabled && AiCodeCompletion.isAiCodeCompletionAvailable());
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
static isAiCodeCompletionStylesAvailable(): boolean {
|
|
372
|
+
return Root.Runtime.hostConfig.devToolsAiCodeCompletionStyles?.enabled ?? false;
|
|
365
373
|
}
|
|
366
374
|
|
|
367
375
|
static isAiCodeCompletionStylesEnabled(locale: string): boolean {
|
|
@@ -373,7 +381,7 @@ export class AiCodeCompletion {
|
|
|
373
381
|
aidaAvailability.blockedByEnterprisePolicy) {
|
|
374
382
|
return false;
|
|
375
383
|
}
|
|
376
|
-
return Boolean(aidaAvailability.enabled &&
|
|
384
|
+
return Boolean(aidaAvailability.enabled && AiCodeCompletion.isAiCodeCompletionStylesAvailable());
|
|
377
385
|
}
|
|
378
386
|
}
|
|
379
387
|
|
|
@@ -169,6 +169,10 @@ export class AiCodeGeneration {
|
|
|
169
169
|
return response;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
static isAiCodeGenerationAvailable(): boolean {
|
|
173
|
+
return Root.Runtime.hostConfig.devToolsAiCodeGeneration?.enabled ?? false;
|
|
174
|
+
}
|
|
175
|
+
|
|
172
176
|
static isAiCodeGenerationEnabled(locale: string): boolean {
|
|
173
177
|
if (!locale.startsWith('en-')) {
|
|
174
178
|
return false;
|
|
@@ -178,6 +182,6 @@ export class AiCodeGeneration {
|
|
|
178
182
|
aidaAvailability.blockedByEnterprisePolicy) {
|
|
179
183
|
return false;
|
|
180
184
|
}
|
|
181
|
-
return Boolean(aidaAvailability.enabled &&
|
|
185
|
+
return Boolean(aidaAvailability.enabled && AiCodeGeneration.isAiCodeGenerationAvailable());
|
|
182
186
|
}
|
|
183
187
|
}
|
|
@@ -43,7 +43,6 @@ const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined
|
|
|
43
43
|
export const enum CookieIssueSubCategory {
|
|
44
44
|
GENERIC_COOKIE = 'GenericCookie',
|
|
45
45
|
SAME_SITE_COOKIE = 'SameSiteCookie',
|
|
46
|
-
THIRD_PARTY_PHASEOUT_COOKIE = 'ThirdPartyPhaseoutCookie',
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
/** Enum to show cookie status from the security panel's third-party cookie report tool **/
|
|
@@ -274,9 +273,6 @@ export class CookieIssue extends Issue<Protocol.Audits.CookieIssueDetails> {
|
|
|
274
273
|
if (code.includes('SameSite') || code.includes('Downgrade')) {
|
|
275
274
|
return CookieIssueSubCategory.SAME_SITE_COOKIE;
|
|
276
275
|
}
|
|
277
|
-
if (code.includes('ThirdPartyPhaseout')) {
|
|
278
|
-
return CookieIssueSubCategory.THIRD_PARTY_PHASEOUT_COOKIE;
|
|
279
|
-
}
|
|
280
276
|
return CookieIssueSubCategory.GENERIC_COOKIE;
|
|
281
277
|
}
|
|
282
278
|
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
7
7
|
|
|
8
|
-
import {CookieIssue, CookieIssueSubCategory} from './CookieIssue.js';
|
|
9
8
|
import type {Issue, IssueCategory} from './Issue.js';
|
|
10
9
|
import {IssuesManager} from './IssuesManager.js';
|
|
11
10
|
|
|
@@ -56,19 +55,6 @@ export function hasIssueOfCategory(obj: IssuesAssociatable, category: IssueCateg
|
|
|
56
55
|
return issuesAssociatedWith(issues, obj).some(issue => issue.getCategory() === category);
|
|
57
56
|
}
|
|
58
57
|
|
|
59
|
-
export function hasThirdPartyPhaseoutCookieIssue(obj: IssuesAssociatable): boolean {
|
|
60
|
-
const issues = Array.from(IssuesManager.instance().issues());
|
|
61
|
-
return issuesAssociatedWith(issues, obj)
|
|
62
|
-
.some(issue => CookieIssue.getSubCategory(issue.code()) === CookieIssueSubCategory.THIRD_PARTY_PHASEOUT_COOKIE);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function hasThirdPartyPhaseoutCookieIssueForDomain(domain: string): boolean {
|
|
66
|
-
const issues = Array.from(IssuesManager.instance().issues());
|
|
67
|
-
const issuesForDomain = issues.filter(issue => Array.from(issue.cookies()).some(cookie => cookie.domain === domain));
|
|
68
|
-
return issuesForDomain.some(
|
|
69
|
-
issue => CookieIssue.getSubCategory(issue.code()) === CookieIssueSubCategory.THIRD_PARTY_PHASEOUT_COOKIE);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
58
|
export async function reveal(obj: IssuesAssociatable, category?: IssueCategory): Promise<void|undefined> {
|
|
73
59
|
if (typeof obj === 'string') {
|
|
74
60
|
const issue = IssuesManager.instance().getIssueById(obj);
|
|
@@ -7960,10 +7960,6 @@ export const NativeFunctions = [
|
|
|
7960
7960
|
name: "strokeTextCluster",
|
|
7961
7961
|
signatures: [["textCluster","x","y","?options"]]
|
|
7962
7962
|
},
|
|
7963
|
-
{
|
|
7964
|
-
name: "transferToGPUTexture",
|
|
7965
|
-
signatures: [["options"]]
|
|
7966
|
-
},
|
|
7967
7963
|
{
|
|
7968
7964
|
name: "beginLayer",
|
|
7969
7965
|
signatures: [["?options"]]
|
|
@@ -147,12 +147,17 @@ export class Tool {
|
|
|
147
147
|
new SDK.DOMModel.DeferredDOMNode(target, this.#protocolTool.backendNodeId);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
async invoke(input: unknown): Promise<
|
|
151
|
-
|
|
150
|
+
async invoke(input: unknown): Promise<string|undefined> {
|
|
151
|
+
const target = this.#target.deref();
|
|
152
|
+
const response = await target?.webMCPAgent().invoke_invokeTool({
|
|
152
153
|
toolName: this.name,
|
|
153
154
|
frameId: this.#protocolTool.frameId,
|
|
154
155
|
input,
|
|
155
156
|
});
|
|
157
|
+
if (!response || response.getError()) {
|
|
158
|
+
return undefined;
|
|
159
|
+
}
|
|
160
|
+
return response.invocationId;
|
|
156
161
|
}
|
|
157
162
|
}
|
|
158
163
|
export interface EventTypes {
|
|
@@ -190,6 +195,10 @@ export class WebMCPModel extends SDK.SDKModel.SDKModel<EventTypes> implements Pr
|
|
|
190
195
|
return [...this.#calls.values()];
|
|
191
196
|
}
|
|
192
197
|
|
|
198
|
+
toolCallForId(invocationId: string): Call|undefined {
|
|
199
|
+
return this.#calls.get(invocationId);
|
|
200
|
+
}
|
|
201
|
+
|
|
193
202
|
clearCalls(): void {
|
|
194
203
|
this.#calls.clear();
|
|
195
204
|
}
|
|
@@ -419,7 +419,7 @@ export class IgnoreListManager extends Common.ObjectWrapper.ObjectWrapper<EventT
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
let regexPatterns = this.getSkipStackFramesPatternSetting().getAsArray();
|
|
422
|
-
const regexValue =
|
|
422
|
+
const regexValue = this.urlToRegExpString(url);
|
|
423
423
|
if (!regexValue) {
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
@@ -214,7 +214,7 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
|
214
214
|
if (!content) {
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
|
-
return content.isEncoded && content.content ?
|
|
217
|
+
return content.isEncoded && content.content ? atob(content.content) : content.content;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/** Only used to compare whether content changed */
|
|
@@ -222,7 +222,7 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
|
222
222
|
if (!content || TextUtils.ContentData.ContentData.isError(content)) {
|
|
223
223
|
return null;
|
|
224
224
|
}
|
|
225
|
-
return content.createdFromBase64 ?
|
|
225
|
+
return content.createdFromBase64 ? atob(content.base64) : content.text;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
async checkContentUpdated(): Promise<void> {
|
|
@@ -264,9 +264,14 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
|
264
264
|
await Common.Revealer.reveal(this);
|
|
265
265
|
|
|
266
266
|
// Make sure we are in the next frame before stopping the world with confirm
|
|
267
|
-
await new Promise(resolve =>
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
await new Promise(resolve => setTimeout(resolve, 0));
|
|
268
|
+
|
|
269
|
+
// FIXME: we should not call confirm() from the models.
|
|
270
|
+
const shouldUpdate = typeof (globalThis as unknown as {confirm: (msg: string) => boolean}).confirm === 'function' ?
|
|
271
|
+
(globalThis as unknown as {
|
|
272
|
+
confirm: (msg: string) => boolean,
|
|
273
|
+
}).confirm(i18nString(UIStrings.thisFileWasChangedExternally)) :
|
|
274
|
+
true;
|
|
270
275
|
if (shouldUpdate) {
|
|
271
276
|
this.#contentCommitted(updatedContent.content, false);
|
|
272
277
|
} else {
|
|
@@ -115,9 +115,14 @@ function isFileAgentFeatureAvailable(config?: Root.Runtime.HostConfig): boolean
|
|
|
115
115
|
return (config?.aidaAvailability?.enabled && (config?.devToolsAiAssistanceFileAgent?.enabled)) === true;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
function isStorageAgentFeatureAvailable(config?: Root.Runtime.HostConfig): boolean {
|
|
119
|
+
return (config?.aidaAvailability?.enabled && (config?.devToolsAiAssistanceStorageAgent?.enabled)) === true;
|
|
120
|
+
}
|
|
121
|
+
|
|
118
122
|
function isAnyFeatureAvailable(config?: Root.Runtime.HostConfig): boolean {
|
|
119
123
|
return isStylingAgentFeatureAvailable(config) || isNetworkAgentFeatureAvailable(config) ||
|
|
120
|
-
isPerformanceAgentFeatureAvailable(config) || isFileAgentFeatureAvailable(config)
|
|
124
|
+
isPerformanceAgentFeatureAvailable(config) || isFileAgentFeatureAvailable(config) ||
|
|
125
|
+
isStorageAgentFeatureAvailable(config);
|
|
121
126
|
}
|
|
122
127
|
|
|
123
128
|
UI.ViewManager.registerViewExtension({
|