chrome-devtools-frontend 1.0.1628368 → 1.0.1629211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/front_end/core/host/UserMetrics.ts +0 -1
  2. package/front_end/core/root/ExperimentNames.ts +0 -2
  3. package/front_end/core/sdk/DOMModel.ts +0 -5
  4. package/front_end/entrypoints/greendev_floaty/FloatyEntrypoint.ts +0 -2
  5. package/front_end/entrypoints/greendev_floaty/greendev_floaty.ts +0 -2
  6. package/front_end/entrypoints/main/MainImpl.ts +0 -3
  7. package/front_end/generated/InspectorBackendCommands.ts +2 -2
  8. package/front_end/generated/protocol.ts +5 -0
  9. package/front_end/models/emulation/DeviceModeModel.ts +4 -0
  10. package/front_end/models/issues_manager/GenericIssue.ts +18 -1
  11. package/front_end/models/issues_manager/descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
  12. package/front_end/panels/common/freDialog.css +1 -0
  13. package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
  14. package/front_end/panels/elements/elements-meta.ts +0 -25
  15. package/front_end/panels/elements/elements.ts +0 -3
  16. package/front_end/panels/emulation/DeviceModeToolbar.ts +335 -248
  17. package/front_end/panels/profiler/ProfilesPanel.ts +7 -1
  18. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +29 -18
  19. package/front_end/panels/sources/sources-meta.ts +7 -0
  20. package/front_end/third_party/chromium/README.chromium +1 -1
  21. package/front_end/ui/legacy/TabbedPane.ts +142 -16
  22. package/front_end/ui/legacy/TextPrompt.docs.ts +51 -0
  23. package/front_end/ui/legacy/TextPrompt.ts +55 -6
  24. package/front_end/ui/legacy/Toolbar.ts +2 -1
  25. package/front_end/ui/legacy/View.ts +2 -1
  26. package/front_end/ui/legacy/ViewManager.ts +11 -5
  27. package/front_end/ui/legacy/textPrompt.css +4 -0
  28. package/mcp/mcp.ts +1 -0
  29. package/package.json +1 -1
  30. package/front_end/panels/elements/NodeStackTraceWidget.ts +0 -76
  31. package/front_end/panels/elements/nodeStackTraceWidget.css +0 -11
@@ -762,7 +762,6 @@ export const enum IssueOpener {
762
762
  */
763
763
  export enum DevtoolsExperiments {
764
764
  /* eslint-disable @typescript-eslint/naming-convention */
765
- 'capture-node-creation-stacks' = 1,
766
765
  'protocol-monitor' = 13,
767
766
  'instrumentation-breakpoints' = 61,
768
767
  'use-source-map-scopes' = 76,
@@ -4,8 +4,6 @@
4
4
 
5
5
  export enum ExperimentName {
6
6
  ALL = '*',
7
- CAPTURE_NODE_CREATION_STACKS = 'capture-node-creation-stacks',
8
-
9
7
  PROTOCOL_MONITOR = 'protocol-monitor',
10
8
  INSTRUMENTATION_BREAKPOINTS = 'instrumentation-breakpoints',
11
9
  USE_SOURCE_MAP_SCOPES = 'use-source-map-scopes',
@@ -38,7 +38,6 @@ import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
38
38
  import * as Protocol from '../../generated/protocol.js';
39
39
  import * as Common from '../common/common.js';
40
40
  import * as Platform from '../platform/platform.js';
41
- import * as Root from '../root/root.js';
42
41
 
43
42
  import {CSSModel} from './CSSModel.js';
44
43
  import {FrameManager} from './FrameManager.js';
@@ -1461,10 +1460,6 @@ export class DOMModel extends SDKModel<EventTypes> {
1461
1460
  if (!target.suspended()) {
1462
1461
  void this.agent.invoke_enable({});
1463
1462
  }
1464
-
1465
- if (Root.Runtime.experiments.isEnabled(Root.ExperimentNames.ExperimentName.CAPTURE_NODE_CREATION_STACKS)) {
1466
- void this.agent.invoke_setNodeStackTracesEnabled({enable: true});
1467
- }
1468
1463
  }
1469
1464
 
1470
1465
  runtimeModel(): RuntimeModel {
@@ -528,8 +528,6 @@ async function init(): Promise<void> {
528
528
  ]);
529
529
  Object.assign(Root.Runtime.hostConfig, config);
530
530
 
531
- safeRegisterExperiment(
532
- Root.ExperimentNames.ExperimentName.CAPTURE_NODE_CREATION_STACKS, 'Capture node creation stacks');
533
531
  safeRegisterExperiment(
534
532
  Root.ExperimentNames.ExperimentName.INSTRUMENTATION_BREAKPOINTS, 'Enable instrumentation breakpoints');
535
533
  safeRegisterExperiment(
@@ -244,8 +244,6 @@ async function init(): Promise<void> {
244
244
  Object.assign(Root.Runtime.hostConfig, config);
245
245
 
246
246
  // Register necessary experiments to avoid "Unknown experiment" errors.
247
- Root.Runtime.experiments.register(
248
- Root.ExperimentNames.ExperimentName.CAPTURE_NODE_CREATION_STACKS, 'Capture node creation stacks');
249
247
  Root.Runtime.experiments.register(
250
248
  Root.ExperimentNames.ExperimentName.INSTRUMENTATION_BREAKPOINTS, 'Enable instrumentation breakpoints');
251
249
  Root.Runtime.experiments.register(
@@ -348,9 +348,6 @@ export class MainImpl {
348
348
  }
349
349
 
350
350
  #initializeExperiments(): void {
351
- Root.Runtime.experiments.register(
352
- Root.ExperimentNames.ExperimentName.CAPTURE_NODE_CREATION_STACKS, 'Capture node creation stacks');
353
-
354
351
  const enableProtocolMonitor = (Root.Runtime.hostConfig.devToolsProtocolMonitor?.enabled ?? false) ||
355
352
  Boolean(Root.Runtime.Runtime.queryParam('isChromeForTesting'));
356
353
  const protocolMonitorExperiment = Root.Runtime.experiments.registerHostExperiment({
@@ -80,7 +80,7 @@ inspectorBackend.registerEnum("Audits.ContentSecurityPolicyViolationType", {KInl
80
80
  inspectorBackend.registerEnum("Audits.SharedArrayBufferIssueType", {TransferIssue: "TransferIssue", CreationIssue: "CreationIssue"});
81
81
  inspectorBackend.registerEnum("Audits.AttributionReportingIssueType", {PermissionPolicyDisabled: "PermissionPolicyDisabled", UntrustworthyReportingOrigin: "UntrustworthyReportingOrigin", InsecureContext: "InsecureContext", InvalidHeader: "InvalidHeader", InvalidRegisterTriggerHeader: "InvalidRegisterTriggerHeader", SourceAndTriggerHeaders: "SourceAndTriggerHeaders", SourceIgnored: "SourceIgnored", TriggerIgnored: "TriggerIgnored", OsSourceIgnored: "OsSourceIgnored", OsTriggerIgnored: "OsTriggerIgnored", InvalidRegisterOsSourceHeader: "InvalidRegisterOsSourceHeader", InvalidRegisterOsTriggerHeader: "InvalidRegisterOsTriggerHeader", WebAndOsHeaders: "WebAndOsHeaders", NoWebOrOsSupport: "NoWebOrOsSupport", NavigationRegistrationWithoutTransientUserActivation: "NavigationRegistrationWithoutTransientUserActivation", InvalidInfoHeader: "InvalidInfoHeader", NoRegisterSourceHeader: "NoRegisterSourceHeader", NoRegisterTriggerHeader: "NoRegisterTriggerHeader", NoRegisterOsSourceHeader: "NoRegisterOsSourceHeader", NoRegisterOsTriggerHeader: "NoRegisterOsTriggerHeader", NavigationRegistrationUniqueScopeAlreadySet: "NavigationRegistrationUniqueScopeAlreadySet"});
82
82
  inspectorBackend.registerEnum("Audits.SharedDictionaryError", {UseErrorCrossOriginNoCorsRequest: "UseErrorCrossOriginNoCorsRequest", UseErrorDictionaryLoadFailure: "UseErrorDictionaryLoadFailure", UseErrorMatchingDictionaryNotUsed: "UseErrorMatchingDictionaryNotUsed", UseErrorUnexpectedContentDictionaryHeader: "UseErrorUnexpectedContentDictionaryHeader", WriteErrorCossOriginNoCorsRequest: "WriteErrorCossOriginNoCorsRequest", WriteErrorDisallowedBySettings: "WriteErrorDisallowedBySettings", WriteErrorExpiredResponse: "WriteErrorExpiredResponse", WriteErrorFeatureDisabled: "WriteErrorFeatureDisabled", WriteErrorInsufficientResources: "WriteErrorInsufficientResources", WriteErrorInvalidMatchField: "WriteErrorInvalidMatchField", WriteErrorInvalidStructuredHeader: "WriteErrorInvalidStructuredHeader", WriteErrorInvalidTTLField: "WriteErrorInvalidTTLField", WriteErrorNavigationRequest: "WriteErrorNavigationRequest", WriteErrorNoMatchField: "WriteErrorNoMatchField", WriteErrorNonIntegerTTLField: "WriteErrorNonIntegerTTLField", WriteErrorNonListMatchDestField: "WriteErrorNonListMatchDestField", WriteErrorNonSecureContext: "WriteErrorNonSecureContext", WriteErrorNonStringIdField: "WriteErrorNonStringIdField", WriteErrorNonStringInMatchDestList: "WriteErrorNonStringInMatchDestList", WriteErrorNonStringMatchField: "WriteErrorNonStringMatchField", WriteErrorNonTokenTypeField: "WriteErrorNonTokenTypeField", WriteErrorRequestAborted: "WriteErrorRequestAborted", WriteErrorShuttingDown: "WriteErrorShuttingDown", WriteErrorTooLongIdField: "WriteErrorTooLongIdField", WriteErrorUnsupportedType: "WriteErrorUnsupportedType"});
83
- inspectorBackend.registerEnum("Audits.SRIMessageSignatureError", {MissingSignatureHeader: "MissingSignatureHeader", MissingSignatureInputHeader: "MissingSignatureInputHeader", InvalidSignatureHeader: "InvalidSignatureHeader", InvalidSignatureInputHeader: "InvalidSignatureInputHeader", SignatureHeaderValueIsNotByteSequence: "SignatureHeaderValueIsNotByteSequence", SignatureHeaderValueIsParameterized: "SignatureHeaderValueIsParameterized", SignatureHeaderValueIsIncorrectLength: "SignatureHeaderValueIsIncorrectLength", SignatureInputHeaderMissingLabel: "SignatureInputHeaderMissingLabel", SignatureInputHeaderValueNotInnerList: "SignatureInputHeaderValueNotInnerList", SignatureInputHeaderValueMissingComponents: "SignatureInputHeaderValueMissingComponents", SignatureInputHeaderInvalidComponentType: "SignatureInputHeaderInvalidComponentType", SignatureInputHeaderInvalidComponentName: "SignatureInputHeaderInvalidComponentName", SignatureInputHeaderInvalidHeaderComponentParameter: "SignatureInputHeaderInvalidHeaderComponentParameter", SignatureInputHeaderInvalidDerivedComponentParameter: "SignatureInputHeaderInvalidDerivedComponentParameter", SignatureInputHeaderKeyIdLength: "SignatureInputHeaderKeyIdLength", SignatureInputHeaderInvalidParameter: "SignatureInputHeaderInvalidParameter", SignatureInputHeaderMissingRequiredParameters: "SignatureInputHeaderMissingRequiredParameters", ValidationFailedSignatureExpired: "ValidationFailedSignatureExpired", ValidationFailedInvalidLength: "ValidationFailedInvalidLength", ValidationFailedSignatureMismatch: "ValidationFailedSignatureMismatch", ValidationFailedIntegrityMismatch: "ValidationFailedIntegrityMismatch"});
83
+ inspectorBackend.registerEnum("Audits.SRIMessageSignatureError", {MissingSignatureHeader: "MissingSignatureHeader", MissingSignatureInputHeader: "MissingSignatureInputHeader", InvalidSignatureHeader: "InvalidSignatureHeader", InvalidSignatureInputHeader: "InvalidSignatureInputHeader", SignatureHeaderValueIsNotByteSequence: "SignatureHeaderValueIsNotByteSequence", SignatureHeaderValueIsParameterized: "SignatureHeaderValueIsParameterized", SignatureHeaderValueIsIncorrectLength: "SignatureHeaderValueIsIncorrectLength", SignatureInputHeaderMissingLabel: "SignatureInputHeaderMissingLabel", SignatureInputHeaderValueNotInnerList: "SignatureInputHeaderValueNotInnerList", SignatureInputHeaderValueMissingComponents: "SignatureInputHeaderValueMissingComponents", SignatureInputHeaderInvalidComponentType: "SignatureInputHeaderInvalidComponentType", SignatureInputHeaderInvalidComponentName: "SignatureInputHeaderInvalidComponentName", SignatureInputHeaderInvalidHeaderComponentParameter: "SignatureInputHeaderInvalidHeaderComponentParameter", SignatureInputHeaderInvalidDerivedComponentParameter: "SignatureInputHeaderInvalidDerivedComponentParameter", SignatureInputHeaderKeyIdLength: "SignatureInputHeaderKeyIdLength", SignatureInputHeaderInvalidParameter: "SignatureInputHeaderInvalidParameter", SignatureInputHeaderMissingRequiredParameters: "SignatureInputHeaderMissingRequiredParameters", ValidationFailedSignatureExpired: "ValidationFailedSignatureExpired", ValidationFailedInvalidLength: "ValidationFailedInvalidLength", ValidationFailedSignatureMismatch: "ValidationFailedSignatureMismatch", ValidationFailedIntegrityMismatch: "ValidationFailedIntegrityMismatch", SignatureBaseUnknownDerivedComponent: "SignatureBaseUnknownDerivedComponent", SignatureBaseMissingHeader: "SignatureBaseMissingHeader", SignatureBaseInvalidUnencodedDigest: "SignatureBaseInvalidUnencodedDigest", SignatureBaseUnsupportedComponent: "SignatureBaseUnsupportedComponent"});
84
84
  inspectorBackend.registerEnum("Audits.UnencodedDigestError", {MalformedDictionary: "MalformedDictionary", UnknownAlgorithm: "UnknownAlgorithm", IncorrectDigestType: "IncorrectDigestType", IncorrectDigestLength: "IncorrectDigestLength"});
85
85
  inspectorBackend.registerEnum("Audits.ConnectionAllowlistError", {InvalidHeader: "InvalidHeader", MoreThanOneList: "MoreThanOneList", ItemNotInnerList: "ItemNotInnerList", InvalidAllowlistItemType: "InvalidAllowlistItemType", ReportingEndpointNotToken: "ReportingEndpointNotToken", InvalidUrlPattern: "InvalidUrlPattern"});
86
86
  inspectorBackend.registerEnum("Audits.GenericIssueErrorType", {FormLabelForNameError: "FormLabelForNameError", FormDuplicateIdForInputError: "FormDuplicateIdForInputError", FormInputWithNoLabelError: "FormInputWithNoLabelError", FormAutocompleteAttributeEmptyError: "FormAutocompleteAttributeEmptyError", FormEmptyIdAndNameAttributesForInputError: "FormEmptyIdAndNameAttributesForInputError", FormAriaLabelledByToNonExistingIdError: "FormAriaLabelledByToNonExistingIdError", FormInputAssignedAutocompleteValueToIdOrNameAttributeError: "FormInputAssignedAutocompleteValueToIdOrNameAttributeError", FormLabelHasNeitherForNorNestedInputError: "FormLabelHasNeitherForNorNestedInputError", FormLabelForMatchesNonExistingIdError: "FormLabelForMatchesNonExistingIdError", FormInputHasWrongButWellIntendedAutocompleteValueError: "FormInputHasWrongButWellIntendedAutocompleteValueError", ResponseWasBlockedByORB: "ResponseWasBlockedByORB", NavigationEntryMarkedSkippable: "NavigationEntryMarkedSkippable", BackUINavigationWouldSkipAd: "BackUINavigationWouldSkipAd", AutofillAndManualTextPolicyControlledFeaturesInfo: "AutofillAndManualTextPolicyControlledFeaturesInfo", AutofillPolicyControlledFeatureInfo: "AutofillPolicyControlledFeatureInfo", ManualTextPolicyControlledFeatureInfo: "ManualTextPolicyControlledFeatureInfo", FormModelContextParameterMissingTitleAndDescription: "FormModelContextParameterMissingTitleAndDescription", FormModelContextMissingToolName: "FormModelContextMissingToolName", FormModelContextMissingToolDescription: "FormModelContextMissingToolDescription", FormModelContextRequiredParameterMissingName: "FormModelContextRequiredParameterMissingName", FormModelContextParameterMissingName: "FormModelContextParameterMissingName"});
@@ -1210,7 +1210,7 @@ inspectorBackend.registerType("PerformanceTimeline.TimelineEvent", [{"name": "fr
1210
1210
  inspectorBackend.registerEnum("Preload.RuleSetErrorType", {SourceIsNotJsonObject: "SourceIsNotJsonObject", InvalidRulesSkipped: "InvalidRulesSkipped", InvalidRulesetLevelTag: "InvalidRulesetLevelTag"});
1211
1211
  inspectorBackend.registerEnum("Preload.SpeculationAction", {Prefetch: "Prefetch", Prerender: "Prerender", PrerenderUntilScript: "PrerenderUntilScript"});
1212
1212
  inspectorBackend.registerEnum("Preload.SpeculationTargetHint", {Blank: "Blank", Self: "Self"});
1213
- inspectorBackend.registerEnum("Preload.PrerenderFinalStatus", {Activated: "Activated", Destroyed: "Destroyed", LowEndDevice: "LowEndDevice", InvalidSchemeRedirect: "InvalidSchemeRedirect", InvalidSchemeNavigation: "InvalidSchemeNavigation", NavigationRequestBlockedByCsp: "NavigationRequestBlockedByCsp", MojoBinderPolicy: "MojoBinderPolicy", RendererProcessCrashed: "RendererProcessCrashed", RendererProcessKilled: "RendererProcessKilled", Download: "Download", TriggerDestroyed: "TriggerDestroyed", NavigationNotCommitted: "NavigationNotCommitted", NavigationBadHttpStatus: "NavigationBadHttpStatus", ClientCertRequested: "ClientCertRequested", NavigationRequestNetworkError: "NavigationRequestNetworkError", CancelAllHostsForTesting: "CancelAllHostsForTesting", DidFailLoad: "DidFailLoad", Stop: "Stop", SslCertificateError: "SslCertificateError", LoginAuthRequested: "LoginAuthRequested", UaChangeRequiresReload: "UaChangeRequiresReload", BlockedByClient: "BlockedByClient", AudioOutputDeviceRequested: "AudioOutputDeviceRequested", MixedContent: "MixedContent", TriggerBackgrounded: "TriggerBackgrounded", MemoryLimitExceeded: "MemoryLimitExceeded", DataSaverEnabled: "DataSaverEnabled", TriggerUrlHasEffectiveUrl: "TriggerUrlHasEffectiveUrl", ActivatedBeforeStarted: "ActivatedBeforeStarted", InactivePageRestriction: "InactivePageRestriction", StartFailed: "StartFailed", TimeoutBackgrounded: "TimeoutBackgrounded", CrossSiteRedirectInInitialNavigation: "CrossSiteRedirectInInitialNavigation", CrossSiteNavigationInInitialNavigation: "CrossSiteNavigationInInitialNavigation", SameSiteCrossOriginRedirectNotOptInInInitialNavigation: "SameSiteCrossOriginRedirectNotOptInInInitialNavigation", SameSiteCrossOriginNavigationNotOptInInInitialNavigation: "SameSiteCrossOriginNavigationNotOptInInInitialNavigation", ActivationNavigationParameterMismatch: "ActivationNavigationParameterMismatch", ActivatedInBackground: "ActivatedInBackground", EmbedderHostDisallowed: "EmbedderHostDisallowed", ActivationNavigationDestroyedBeforeSuccess: "ActivationNavigationDestroyedBeforeSuccess", TabClosedByUserGesture: "TabClosedByUserGesture", TabClosedWithoutUserGesture: "TabClosedWithoutUserGesture", PrimaryMainFrameRendererProcessCrashed: "PrimaryMainFrameRendererProcessCrashed", PrimaryMainFrameRendererProcessKilled: "PrimaryMainFrameRendererProcessKilled", ActivationFramePolicyNotCompatible: "ActivationFramePolicyNotCompatible", PreloadingDisabled: "PreloadingDisabled", BatterySaverEnabled: "BatterySaverEnabled", ActivatedDuringMainFrameNavigation: "ActivatedDuringMainFrameNavigation", PreloadingUnsupportedByWebContents: "PreloadingUnsupportedByWebContents", CrossSiteRedirectInMainFrameNavigation: "CrossSiteRedirectInMainFrameNavigation", CrossSiteNavigationInMainFrameNavigation: "CrossSiteNavigationInMainFrameNavigation", SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation: "SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation", SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation: "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation", MemoryPressureOnTrigger: "MemoryPressureOnTrigger", MemoryPressureAfterTriggered: "MemoryPressureAfterTriggered", PrerenderingDisabledByDevTools: "PrerenderingDisabledByDevTools", SpeculationRuleRemoved: "SpeculationRuleRemoved", ActivatedWithAuxiliaryBrowsingContexts: "ActivatedWithAuxiliaryBrowsingContexts", MaxNumOfRunningEagerPrerendersExceeded: "MaxNumOfRunningEagerPrerendersExceeded", MaxNumOfRunningNonEagerPrerendersExceeded: "MaxNumOfRunningNonEagerPrerendersExceeded", MaxNumOfRunningEmbedderPrerendersExceeded: "MaxNumOfRunningEmbedderPrerendersExceeded", PrerenderingUrlHasEffectiveUrl: "PrerenderingUrlHasEffectiveUrl", RedirectedPrerenderingUrlHasEffectiveUrl: "RedirectedPrerenderingUrlHasEffectiveUrl", ActivationUrlHasEffectiveUrl: "ActivationUrlHasEffectiveUrl", JavaScriptInterfaceAdded: "JavaScriptInterfaceAdded", JavaScriptInterfaceRemoved: "JavaScriptInterfaceRemoved", AllPrerenderingCanceled: "AllPrerenderingCanceled", WindowClosed: "WindowClosed", SlowNetwork: "SlowNetwork", OtherPrerenderedPageActivated: "OtherPrerenderedPageActivated", V8OptimizerDisabled: "V8OptimizerDisabled", PrerenderFailedDuringPrefetch: "PrerenderFailedDuringPrefetch", BrowsingDataRemoved: "BrowsingDataRemoved", PrerenderHostReused: "PrerenderHostReused", FormSubmitWhenPrerendering: "FormSubmitWhenPrerendering"});
1213
+ inspectorBackend.registerEnum("Preload.PrerenderFinalStatus", {Activated: "Activated", Destroyed: "Destroyed", LowEndDevice: "LowEndDevice", InvalidSchemeRedirect: "InvalidSchemeRedirect", InvalidSchemeNavigation: "InvalidSchemeNavigation", NavigationRequestBlockedByCsp: "NavigationRequestBlockedByCsp", MojoBinderPolicy: "MojoBinderPolicy", RendererProcessCrashed: "RendererProcessCrashed", RendererProcessKilled: "RendererProcessKilled", Download: "Download", TriggerDestroyed: "TriggerDestroyed", NavigationNotCommitted: "NavigationNotCommitted", NavigationBadHttpStatus: "NavigationBadHttpStatus", ClientCertRequested: "ClientCertRequested", NavigationRequestNetworkError: "NavigationRequestNetworkError", CancelAllHostsForTesting: "CancelAllHostsForTesting", DidFailLoad: "DidFailLoad", Stop: "Stop", SslCertificateError: "SslCertificateError", LoginAuthRequested: "LoginAuthRequested", UaChangeRequiresReload: "UaChangeRequiresReload", BlockedByClient: "BlockedByClient", AudioOutputDeviceRequested: "AudioOutputDeviceRequested", MixedContent: "MixedContent", TriggerBackgrounded: "TriggerBackgrounded", MemoryLimitExceeded: "MemoryLimitExceeded", DataSaverEnabled: "DataSaverEnabled", TriggerUrlHasEffectiveUrl: "TriggerUrlHasEffectiveUrl", ActivatedBeforeStarted: "ActivatedBeforeStarted", InactivePageRestriction: "InactivePageRestriction", StartFailed: "StartFailed", TimeoutBackgrounded: "TimeoutBackgrounded", CrossSiteRedirectInInitialNavigation: "CrossSiteRedirectInInitialNavigation", CrossSiteNavigationInInitialNavigation: "CrossSiteNavigationInInitialNavigation", SameSiteCrossOriginRedirectNotOptInInInitialNavigation: "SameSiteCrossOriginRedirectNotOptInInInitialNavigation", SameSiteCrossOriginNavigationNotOptInInInitialNavigation: "SameSiteCrossOriginNavigationNotOptInInInitialNavigation", ActivationNavigationParameterMismatch: "ActivationNavigationParameterMismatch", ActivatedInBackground: "ActivatedInBackground", EmbedderHostDisallowed: "EmbedderHostDisallowed", ActivationNavigationDestroyedBeforeSuccess: "ActivationNavigationDestroyedBeforeSuccess", TabClosedByUserGesture: "TabClosedByUserGesture", TabClosedWithoutUserGesture: "TabClosedWithoutUserGesture", PrimaryMainFrameRendererProcessCrashed: "PrimaryMainFrameRendererProcessCrashed", PrimaryMainFrameRendererProcessKilled: "PrimaryMainFrameRendererProcessKilled", ActivationFramePolicyNotCompatible: "ActivationFramePolicyNotCompatible", PreloadingDisabled: "PreloadingDisabled", BatterySaverEnabled: "BatterySaverEnabled", ActivatedDuringMainFrameNavigation: "ActivatedDuringMainFrameNavigation", PreloadingUnsupportedByWebContents: "PreloadingUnsupportedByWebContents", CrossSiteRedirectInMainFrameNavigation: "CrossSiteRedirectInMainFrameNavigation", CrossSiteNavigationInMainFrameNavigation: "CrossSiteNavigationInMainFrameNavigation", SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation: "SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation", SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation: "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation", MemoryPressureOnTrigger: "MemoryPressureOnTrigger", MemoryPressureAfterTriggered: "MemoryPressureAfterTriggered", PrerenderingDisabledByDevTools: "PrerenderingDisabledByDevTools", SpeculationRuleRemoved: "SpeculationRuleRemoved", ActivatedWithAuxiliaryBrowsingContexts: "ActivatedWithAuxiliaryBrowsingContexts", MaxNumOfRunningEagerPrerendersExceeded: "MaxNumOfRunningEagerPrerendersExceeded", MaxNumOfRunningNonEagerPrerendersExceeded: "MaxNumOfRunningNonEagerPrerendersExceeded", MaxNumOfRunningEmbedderPrerendersExceeded: "MaxNumOfRunningEmbedderPrerendersExceeded", PrerenderingUrlHasEffectiveUrl: "PrerenderingUrlHasEffectiveUrl", RedirectedPrerenderingUrlHasEffectiveUrl: "RedirectedPrerenderingUrlHasEffectiveUrl", ActivationUrlHasEffectiveUrl: "ActivationUrlHasEffectiveUrl", JavaScriptInterfaceAdded: "JavaScriptInterfaceAdded", JavaScriptInterfaceRemoved: "JavaScriptInterfaceRemoved", AllPrerenderingCanceled: "AllPrerenderingCanceled", WindowClosed: "WindowClosed", SlowNetwork: "SlowNetwork", OtherPrerenderedPageActivated: "OtherPrerenderedPageActivated", V8OptimizerDisabled: "V8OptimizerDisabled", PrerenderFailedDuringPrefetch: "PrerenderFailedDuringPrefetch", BrowsingDataRemoved: "BrowsingDataRemoved", PrerenderHostReused: "PrerenderHostReused", FormSubmitWhenPrerendering: "FormSubmitWhenPrerendering", CrossDocumentRestart: "CrossDocumentRestart"});
1214
1214
  inspectorBackend.registerEnum("Preload.PreloadingStatus", {Pending: "Pending", Running: "Running", Ready: "Ready", Success: "Success", Failure: "Failure", NotSupported: "NotSupported"});
1215
1215
  inspectorBackend.registerEnum("Preload.PrefetchStatus", {PrefetchAllowed: "PrefetchAllowed", PrefetchFailedIneligibleRedirect: "PrefetchFailedIneligibleRedirect", PrefetchFailedInvalidRedirect: "PrefetchFailedInvalidRedirect", PrefetchFailedMIMENotSupported: "PrefetchFailedMIMENotSupported", PrefetchFailedNetError: "PrefetchFailedNetError", PrefetchFailedNon2XX: "PrefetchFailedNon2XX", PrefetchEvictedAfterBrowsingDataRemoved: "PrefetchEvictedAfterBrowsingDataRemoved", PrefetchEvictedAfterCandidateRemoved: "PrefetchEvictedAfterCandidateRemoved", PrefetchEvictedForNewerPrefetch: "PrefetchEvictedForNewerPrefetch", PrefetchHeldback: "PrefetchHeldback", PrefetchIneligibleRetryAfter: "PrefetchIneligibleRetryAfter", PrefetchIsPrivacyDecoy: "PrefetchIsPrivacyDecoy", PrefetchIsStale: "PrefetchIsStale", PrefetchNotEligibleBrowserContextOffTheRecord: "PrefetchNotEligibleBrowserContextOffTheRecord", PrefetchNotEligibleDataSaverEnabled: "PrefetchNotEligibleDataSaverEnabled", PrefetchNotEligibleExistingProxy: "PrefetchNotEligibleExistingProxy", PrefetchNotEligibleHostIsNonUnique: "PrefetchNotEligibleHostIsNonUnique", PrefetchNotEligibleNonDefaultStoragePartition: "PrefetchNotEligibleNonDefaultStoragePartition", PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy: "PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy", PrefetchNotEligibleSchemeIsNotHttps: "PrefetchNotEligibleSchemeIsNotHttps", PrefetchNotEligibleUserHasCookies: "PrefetchNotEligibleUserHasCookies", PrefetchNotEligibleUserHasServiceWorker: "PrefetchNotEligibleUserHasServiceWorker", PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler: "PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler", PrefetchNotEligibleRedirectFromServiceWorker: "PrefetchNotEligibleRedirectFromServiceWorker", PrefetchNotEligibleRedirectToServiceWorker: "PrefetchNotEligibleRedirectToServiceWorker", PrefetchNotEligibleBatterySaverEnabled: "PrefetchNotEligibleBatterySaverEnabled", PrefetchNotEligiblePreloadingDisabled: "PrefetchNotEligiblePreloadingDisabled", PrefetchNotFinishedInTime: "PrefetchNotFinishedInTime", PrefetchNotStarted: "PrefetchNotStarted", PrefetchNotUsedCookiesChanged: "PrefetchNotUsedCookiesChanged", PrefetchProxyNotAvailable: "PrefetchProxyNotAvailable", PrefetchResponseUsed: "PrefetchResponseUsed", PrefetchSuccessfulButNotUsed: "PrefetchSuccessfulButNotUsed", PrefetchNotUsedProbeFailed: "PrefetchNotUsedProbeFailed"});
1216
1216
  inspectorBackend.registerEvent("Preload.ruleSetUpdated", ["ruleSet"]);
@@ -1120,6 +1120,10 @@ export namespace Audits {
1120
1120
  ValidationFailedInvalidLength = 'ValidationFailedInvalidLength',
1121
1121
  ValidationFailedSignatureMismatch = 'ValidationFailedSignatureMismatch',
1122
1122
  ValidationFailedIntegrityMismatch = 'ValidationFailedIntegrityMismatch',
1123
+ SignatureBaseUnknownDerivedComponent = 'SignatureBaseUnknownDerivedComponent',
1124
+ SignatureBaseMissingHeader = 'SignatureBaseMissingHeader',
1125
+ SignatureBaseInvalidUnencodedDigest = 'SignatureBaseInvalidUnencodedDigest',
1126
+ SignatureBaseUnsupportedComponent = 'SignatureBaseUnsupportedComponent',
1123
1127
  }
1124
1128
 
1125
1129
  export const enum UnencodedDigestError {
@@ -17077,6 +17081,7 @@ export namespace Preload {
17077
17081
  BrowsingDataRemoved = 'BrowsingDataRemoved',
17078
17082
  PrerenderHostReused = 'PrerenderHostReused',
17079
17083
  FormSubmitWhenPrerendering = 'FormSubmitWhenPrerendering',
17084
+ CrossDocumentRestart = 'CrossDocumentRestart',
17080
17085
  }
17081
17086
 
17082
17087
  /**
@@ -200,6 +200,10 @@ export class DeviceModeModel extends Common.ObjectWrapper.ObjectWrapper<EventTyp
200
200
  }
201
201
  }
202
202
 
203
+ dispose(): void {
204
+ SDK.TargetManager.TargetManager.instance().unobserveModels(SDK.EmulationModel.EmulationModel, this);
205
+ }
206
+
203
207
  static widthValidator(value: string): {
204
208
  valid: boolean,
205
209
  errorMessage: (string|undefined),
@@ -42,7 +42,12 @@ const UIStrings = {
42
42
  /**
43
43
  * @description title for history intervention documentation page.
44
44
  */
45
- historyManipulationInterventionPageTitle: 'History manipulation intervention explainer'
45
+ historyManipulationInterventionPageTitle: 'History manipulation intervention explainer',
46
+
47
+ /**
48
+ * @description title for back-to-ad intervention documentation page.
49
+ */
50
+ backToAdInterventionPageTitle: 'Back-to-ad intervention explainer',
46
51
  } as const;
47
52
 
48
53
  const str_ = i18n.i18n.registerUIStrings('models/issues_manager/GenericIssue.ts', UIStrings);
@@ -193,6 +198,14 @@ export const genericNavigationEntryMarkedSkippable = {
193
198
  }],
194
199
  };
195
200
 
201
+ export const genericBackUINavigationWouldSkipAd = {
202
+ file: 'genericBackUINavigationWouldSkipAd.md',
203
+ links: [{
204
+ link: 'https://chromium.googlesource.com/chromium/src/+/main/docs/history_manipulation_intervention.md',
205
+ linkTitle: i18nLazyString(UIStrings.backToAdInterventionPageTitle),
206
+ }],
207
+ };
208
+
196
209
  export const genericFormModelContextMissingToolName = {
197
210
  file: 'genericFormModelContextMissingToolName.md',
198
211
  links: [],
@@ -258,6 +271,10 @@ const issueDescriptions = new Map<Protocol.Audits.GenericIssueErrorType, LazyMar
258
271
  Protocol.Audits.GenericIssueErrorType.NavigationEntryMarkedSkippable,
259
272
  genericNavigationEntryMarkedSkippable,
260
273
  ],
274
+ [
275
+ Protocol.Audits.GenericIssueErrorType.BackUINavigationWouldSkipAd,
276
+ genericBackUINavigationWouldSkipAd,
277
+ ],
261
278
  [
262
279
  Protocol.Audits.GenericIssueErrorType.FormModelContextMissingToolName,
263
280
  genericFormModelContextMissingToolName,
@@ -0,0 +1,4 @@
1
+ # Back UI Navigation Will Skip Ad
2
+
3
+ An ad-related entry was found in the session history. If the user navigates back
4
+ via the browser UI, this ad entry will be skipped.
@@ -6,6 +6,7 @@
6
6
 
7
7
 
8
8
  .fre-disclaimer {
9
+ overflow-y: auto;
9
10
  width: var(--sys-size-33);
10
11
  padding: var(--sys-size-9);
11
12
 
@@ -971,11 +971,11 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
971
971
 
972
972
  this.linkifier.reset();
973
973
  const prevSections = this.sectionBlocks.map(block => block.sections).flat();
974
- this.sectionBlocks = [];
975
974
 
976
975
  const node = this.node();
977
976
  this.hasMatchedStyles = matchedStyles !== null && node !== null;
978
977
  if (!this.hasMatchedStyles) {
978
+ this.sectionBlocks = [];
979
979
  this.sectionsContainer.contentElement.removeChildren();
980
980
  this.sectionsContainer.detachChildWidgets();
981
981
  this.noMatchesElement.classList.remove('hidden');
@@ -37,17 +37,6 @@ const UIStrings = {
37
37
  * properties.
38
38
  */
39
39
  properties: 'Properties',
40
- /**
41
- * @description Command for showing the 'Stack Trace' tool. Stack trace refers to the location in
42
- * the code where the program was at a point in time.
43
- */
44
- showStackTrace: 'Show Stack Trace',
45
- /**
46
- * @description Text for the execution stack trace tool, which shows the stack trace from when this
47
- * HTML element was created. Stack trace refers to the location in the code where the program was
48
- * at a point in time.
49
- */
50
- stackTrace: 'Stack Trace',
51
40
  /**
52
41
  * @description Command for showing the 'Layout' tool
53
42
  */
@@ -245,20 +234,6 @@ UI.ViewManager.registerViewExtension({
245
234
  },
246
235
  });
247
236
 
248
- UI.ViewManager.registerViewExtension({
249
- experiment: Root.ExperimentNames.ExperimentName.CAPTURE_NODE_CREATION_STACKS,
250
- location: UI.ViewManager.ViewLocationValues.ELEMENTS_SIDEBAR,
251
- id: 'elements.dom-creation',
252
- commandPrompt: i18nLazyString(UIStrings.showStackTrace),
253
- title: i18nLazyString(UIStrings.stackTrace),
254
- order: 10,
255
- persistence: UI.ViewManager.ViewPersistence.PERMANENT,
256
- async loadView() {
257
- const Elements = await loadElementsModule();
258
- return new Elements.NodeStackTraceWidget.NodeStackTraceWidget();
259
- },
260
- });
261
-
262
237
  UI.ViewManager.registerViewExtension({
263
238
  location: UI.ViewManager.ViewLocationValues.ELEMENTS_SIDEBAR,
264
239
  id: 'elements.layout',
@@ -16,7 +16,6 @@ import './MarkerDecorator.js';
16
16
  import './MetricsSidebarPane.js';
17
17
  import './PlatformFontsWidget.js';
18
18
  import './PropertiesWidget.js';
19
- import './NodeStackTraceWidget.js';
20
19
  import './StylePropertiesSection.js';
21
20
  import './StylePropertyHighlighter.js';
22
21
  import './StylesSidebarPane.js';
@@ -52,7 +51,6 @@ import * as LayersWidget from './LayersWidget.js';
52
51
  import * as LayoutPane from './LayoutPane.js';
53
52
  import * as MarkerDecorator from './MarkerDecorator.js';
54
53
  import * as MetricsSidebarPane from './MetricsSidebarPane.js';
55
- import * as NodeStackTraceWidget from './NodeStackTraceWidget.js';
56
54
  import * as PlatformFontsWidget from './PlatformFontsWidget.js';
57
55
  import * as PropertiesWidget from './PropertiesWidget.js';
58
56
  import * as PropertyRenderer from './PropertyRenderer.js';
@@ -90,7 +88,6 @@ export {
90
88
  LayoutPane,
91
89
  MarkerDecorator,
92
90
  MetricsSidebarPane,
93
- NodeStackTraceWidget,
94
91
  PlatformFontsWidget,
95
92
  PropertiesWidget,
96
93
  PropertyRenderer,