chrome-devtools-frontend 1.0.1701636 → 1.0.1702515
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/eslint.config.mjs +3 -1
- package/front_end/core/host/UserMetricsEnums.ts +2 -1
- package/front_end/core/root/ExperimentNames.ts +1 -0
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +2 -7
- package/front_end/devtools_compatibility.js +2 -1
- package/front_end/entrypoints/main/MainImpl.ts +8 -0
- package/front_end/generated/InspectorBackendCommands.ts +3 -3
- package/front_end/generated/protocol.ts +0 -3
- package/front_end/models/ai_assistance/AiAgent2.ts +13 -1
- package/front_end/models/ai_assistance/AiConversation.ts +1 -1
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +13 -19
- package/front_end/models/change_tracker/ChangeTracker.ts +5 -64
- package/front_end/models/comment_manager/CommentManager.ts +3 -5
- package/front_end/models/comment_manager/CommentThread.ts +30 -13
- package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +6 -7
- package/front_end/models/issues_manager/DeprecationIssue.ts +1 -1
- package/front_end/models/issues_manager/MarkdownIssueDescription.ts +14 -5
- package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +2 -4
- package/front_end/models/issues_manager/descriptions/cookieWarnMetadataGrantRead.md +0 -1
- package/front_end/models/issues_manager/descriptions/cookieWarnMetadataGrantReadOptOut.md +5 -0
- package/front_end/models/issues_manager/descriptions/cookieWarnMetadataGrantSet.md +0 -1
- package/front_end/models/issues_manager/descriptions/cookieWarnMetadataGrantSetOptOut.md +5 -0
- package/front_end/models/issues_manager/descriptions/deprecation.md +1 -1
- package/front_end/models/issues_manager/descriptions/sriValidationFailedIntegrityMismatch.md +2 -0
- package/front_end/models/persistence/NetworkPersistenceManager.ts +14 -2
- package/front_end/panels/common/CommentThreadWidget.ts +29 -10
- package/front_end/panels/common/CommentsOverlayWidget.ts +50 -14
- package/front_end/panels/common/commentThreadWidget.css +11 -0
- package/front_end/panels/elements/StylePropertiesSection.ts +10 -0
- package/front_end/panels/elements/StylePropertyTreeElement.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +101 -49
- package/front_end/panels/elements/components/CSSQuery.ts +1 -1
- package/front_end/panels/elements/components/cssQuery.css +4 -0
- package/front_end/panels/elements/elements.ts +0 -1
- package/front_end/panels/elements/stylesSidebarPane.css +6 -0
- package/front_end/panels/sources/ResourceOriginPlugin.ts +8 -3
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -4
- package/front_end/panels/sources/TabbedEditorContainer.ts +339 -126
- package/front_end/panels/sources/UISourceCodeFrame.ts +9 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/chromium/client-variations/ClientVariations.js +25 -96
- package/front_end/third_party/codemirror.next/chunk/angular.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/java.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/java.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/legacy.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/less.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/less.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/php.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/php.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/python.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/sass.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/sass.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/svelte.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/svelte.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/vue.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/wast.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/wast.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js.map +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +4 -1
- package/front_end/third_party/codemirror.next/rebuild.sh +1 -1
- package/front_end/ui/comments/CommentOverlayManager.ts +11 -10
- package/front_end/ui/components/markdown_view/MarkdownPlaceholderLitRenderer.ts +117 -0
- package/front_end/ui/components/markdown_view/markdown_view.ts +2 -0
- package/front_end/ui/legacy/Treeoutline.ts +28 -19
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +228 -343
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -27
- package/mcp/mcp.ts +1 -0
- package/package.json +1 -1
|
@@ -171,7 +171,7 @@ export class CSSQuery extends HTMLElement {
|
|
|
171
171
|
<slot name="indent"></slot>
|
|
172
172
|
${this.#queryPrefix ? html`<span>${this.#queryPrefix + ' '}</span>` : Lit.nothing}
|
|
173
173
|
${this.#queryName ? html`<span>${this.#queryName + ' '}</span>` : Lit.nothing}
|
|
174
|
-
${queryText} {
|
|
174
|
+
${queryText}<slot></slot> <span class="sidebar-pane-open-brace">{</span>
|
|
175
175
|
</div>`,
|
|
176
176
|
this.#shadow, {host: this});
|
|
177
177
|
// clang-format on
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
& .section-collapse-icon {
|
|
116
116
|
width: var(--sys-size-6);
|
|
117
117
|
height: var(--sys-size-6);
|
|
118
|
+
margin-block: calc(-1 * var(--sys-size-3));
|
|
118
119
|
margin-right: var(--sys-size-2);
|
|
119
120
|
margin-left: calc(-1 * var(--sys-size-2));
|
|
120
121
|
vertical-align: middle;
|
|
@@ -122,6 +123,11 @@
|
|
|
122
123
|
display: none;
|
|
123
124
|
}
|
|
124
125
|
|
|
126
|
+
& .styles-section-status {
|
|
127
|
+
margin-block: calc(-1 * var(--sys-size-4));
|
|
128
|
+
vertical-align: middle;
|
|
129
|
+
}
|
|
130
|
+
|
|
125
131
|
&.collapsible .section-collapse-icon {
|
|
126
132
|
display: inline-block;
|
|
127
133
|
}
|
|
@@ -49,11 +49,15 @@ export class ResourceOriginPlugin extends Plugin {
|
|
|
49
49
|
const url = uiSourceCode.url();
|
|
50
50
|
const text = Bindings.ResourceUtils.displayNameForURL(url);
|
|
51
51
|
const title = i18nString(UIStrings.sourceMappedFromS, {PH1: text});
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
const link = Components.Linkifier.Linkifier.linkifyRevealable(uiSourceCode, text, url, title, undefined,
|
|
53
|
+
'original-script-location');
|
|
54
|
+
link.tabIndex = 0;
|
|
55
|
+
links.push(link);
|
|
54
56
|
}
|
|
55
57
|
for (const originURL of Bindings.SASSSourceMapping.SASSSourceMapping.uiSourceOrigin(this.uiSourceCode)) {
|
|
56
|
-
|
|
58
|
+
const link = Components.Linkifier.Linkifier.linkifyURL(originURL);
|
|
59
|
+
link.tabIndex = 0;
|
|
60
|
+
links.push(link);
|
|
57
61
|
}
|
|
58
62
|
if (links.length === 0) {
|
|
59
63
|
return [];
|
|
@@ -72,6 +76,7 @@ export class ResourceOriginPlugin extends Plugin {
|
|
|
72
76
|
for (const script of debuggerWorkspaceBinding.scriptsForUISourceCode(this.uiSourceCode)) {
|
|
73
77
|
if (script.originStackTrace?.callFrames.length) {
|
|
74
78
|
const link = this.#linkifier.linkifyStackTraceTopFrame(script.debuggerModel.target(), script.originStackTrace);
|
|
79
|
+
link.tabIndex = 0;
|
|
75
80
|
return [new UI.Toolbar.ToolbarItem(uiI18n.getFormatLocalizedString(str_, UIStrings.fromS, {PH1: link}))];
|
|
76
81
|
}
|
|
77
82
|
}
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
import type * as Common from '../../core/common/common.js';
|
|
32
31
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
33
32
|
import type * as SDK from '../../core/sdk/sdk.js';
|
|
34
33
|
import * as Protocol from '../../generated/protocol.js';
|
|
@@ -38,7 +37,7 @@ import * as StackTrace from '../../models/stack_trace/stack_trace.js';
|
|
|
38
37
|
import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
|
|
39
38
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
40
39
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
41
|
-
import {html, nothing, render, type TemplateResult} from '../../ui/lit/lit.js';
|
|
40
|
+
import {html, type LitTemplate, nothing, render, type TemplateResult} from '../../ui/lit/lit.js';
|
|
42
41
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
43
42
|
|
|
44
43
|
import scopeChainSidebarPaneStyles from './scopeChainSidebarPane.css.js';
|
|
@@ -89,9 +88,9 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
89
88
|
scope: SDK.DebuggerModel.ScopeChainEntry,
|
|
90
89
|
objectTree: ObjectUI.ObjectPropertiesSection.ObjectTree,
|
|
91
90
|
}): TemplateResult => {
|
|
92
|
-
let emptyPlaceholder:
|
|
91
|
+
let emptyPlaceholder: LitTemplate|undefined;
|
|
93
92
|
if (scope.type() === Protocol.Debugger.ScopeType.Local || scope.type() === Protocol.Debugger.ScopeType.Closure) {
|
|
94
|
-
emptyPlaceholder = i18nString(UIStrings.noVariables)
|
|
93
|
+
emptyPlaceholder = html`${i18nString(UIStrings.noVariables)}`;
|
|
95
94
|
}
|
|
96
95
|
const icon = scope.icon();
|
|
97
96
|
const {title, subtitle} = scopeTitle(scope);
|