chrome-devtools-frontend 1.0.1528866 → 1.0.1529904
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/Gzip.ts +10 -8
- package/front_end/core/host/UserMetrics.ts +2 -1
- package/front_end/core/root/Runtime.ts +10 -0
- package/front_end/core/sdk/NetworkManager.ts +85 -35
- package/front_end/core/sdk/SourceMap.ts +14 -0
- package/front_end/core/sdk/SourceMapScopesInfo.ts +32 -2
- package/front_end/entrypoints/main/MainImpl.ts +23 -4
- package/front_end/generated/SupportedCSSProperties.js +9 -0
- package/front_end/models/ai_assistance/BuiltInAi.ts +1 -1
- package/front_end/models/ai_assistance/ConversationHandler.ts +15 -14
- package/front_end/models/bindings/CompilerScriptMapping.ts +54 -4
- package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
- package/front_end/models/persistence/NetworkPersistenceManager.ts +3 -5
- package/front_end/models/persistence/PersistenceImpl.ts +0 -5
- package/front_end/models/persistence/persistence-meta.ts +0 -31
- package/front_end/models/persistence/persistence.ts +0 -6
- package/front_end/{models/persistence → panels/common}/PersistenceUtils.ts +15 -17
- package/front_end/panels/common/common.ts +1 -0
- package/front_end/panels/console/ConsoleInsightTeaser.ts +285 -22
- package/front_end/panels/console/ConsolePrompt.ts +10 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +18 -1
- package/front_end/panels/console/console-meta.ts +14 -0
- package/front_end/panels/console/consoleInsightTeaser.css +28 -0
- package/front_end/panels/console/consolePrompt.css +3 -2
- package/front_end/panels/console/consoleView.css +10 -5
- package/front_end/panels/explain/ActionDelegate.ts +3 -0
- package/front_end/panels/explain/explain-meta.ts +7 -0
- package/front_end/panels/network/BlockedURLsPane.ts +139 -36
- package/front_end/panels/network/NetworkLogView.ts +1 -1
- package/front_end/{models/persistence → panels/settings}/EditFileSystemView.ts +2 -6
- package/front_end/panels/settings/WorkspaceSettingsTab.ts +2 -1
- package/front_end/panels/settings/settings.ts +2 -0
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +9 -4
- package/front_end/{models/persistence → panels/sources}/PersistenceActions.ts +8 -12
- package/front_end/panels/sources/TabbedEditorContainer.ts +2 -1
- package/front_end/panels/sources/sources-meta.ts +15 -0
- package/front_end/panels/sources/sources.ts +2 -0
- package/front_end/panels/timeline/TimelinePanel.ts +2 -3
- package/front_end/panels/utils/utils.ts +2 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/diff/diff_match_patch.js +1 -1
- package/front_end/ui/legacy/ListWidget.ts +2 -2
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +1 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +9 -0
- package/package.json +1 -1
- /package/front_end/{models/persistence → panels/settings}/editFileSystemView.css +0 -0
|
@@ -2092,3 +2092,18 @@ QuickOpen.FilteredListWidget.registerProvider({
|
|
|
2092
2092
|
titlePrefix: i18nLazyString(UIStrings.open),
|
|
2093
2093
|
titleSuggestion: i18nLazyString(UIStrings.file),
|
|
2094
2094
|
});
|
|
2095
|
+
|
|
2096
|
+
UI.ContextMenu.registerProvider({
|
|
2097
|
+
contextTypes() {
|
|
2098
|
+
return [
|
|
2099
|
+
Workspace.UISourceCode.UISourceCode,
|
|
2100
|
+
SDK.Resource.Resource,
|
|
2101
|
+
SDK.NetworkRequest.NetworkRequest,
|
|
2102
|
+
];
|
|
2103
|
+
},
|
|
2104
|
+
async loadProvider() {
|
|
2105
|
+
const Sources = await loadSourcesModule();
|
|
2106
|
+
return new Sources.PersistenceActions.ContextMenuProvider();
|
|
2107
|
+
},
|
|
2108
|
+
experiment: undefined,
|
|
2109
|
+
});
|
|
@@ -22,6 +22,7 @@ import * as InplaceFormatterEditorAction from './InplaceFormatterEditorAction.js
|
|
|
22
22
|
import * as NavigatorView from './NavigatorView.js';
|
|
23
23
|
import * as OpenFileQuickOpen from './OpenFileQuickOpen.js';
|
|
24
24
|
import * as OutlineQuickOpen from './OutlineQuickOpen.js';
|
|
25
|
+
import * as PersistenceActions from './PersistenceActions.js';
|
|
25
26
|
import * as Plugin from './Plugin.js';
|
|
26
27
|
import * as ResourceOriginPlugin from './ResourceOriginPlugin.js';
|
|
27
28
|
import * as ScopeChainSidebarPane from './ScopeChainSidebarPane.js';
|
|
@@ -57,6 +58,7 @@ export {
|
|
|
57
58
|
NavigatorView,
|
|
58
59
|
OpenFileQuickOpen,
|
|
59
60
|
OutlineQuickOpen,
|
|
61
|
+
PersistenceActions,
|
|
60
62
|
Plugin,
|
|
61
63
|
ResourceOriginPlugin,
|
|
62
64
|
ScopeChainSidebarPane,
|
|
@@ -1468,9 +1468,8 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
1468
1468
|
metadata.enhancedTraceVersion =
|
|
1469
1469
|
includeScriptContent ? SDK.EnhancedTracesParser.EnhancedTracesParser.enhancedTraceVersion : undefined;
|
|
1470
1470
|
|
|
1471
|
-
let fileName =
|
|
1472
|
-
|
|
1473
|
-
`Trace-${isoDate}.json`) as Platform.DevToolsPath.RawPathString;
|
|
1471
|
+
let fileName =
|
|
1472
|
+
(isCpuProfile ? `CPU-${isoDate}.cpuprofile` : `Trace-${isoDate}.json`) as Platform.DevToolsPath.RawPathString;
|
|
1474
1473
|
|
|
1475
1474
|
let blobParts: string[] = [];
|
|
1476
1475
|
if (isCpuProfile) {
|
|
@@ -13,6 +13,7 @@ import type * as Workspace from '../../models/workspace/workspace.js';
|
|
|
13
13
|
import type * as Diff from '../../third_party/diff/diff.js';
|
|
14
14
|
import * as DiffView from '../../ui/components/diff_view/diff_view.js';
|
|
15
15
|
import {Directives, html, type TemplateResult} from '../../ui/lit/lit.js';
|
|
16
|
+
import * as PanelCommon from '../common/common.js';
|
|
16
17
|
import * as Snippets from '../snippets/snippets.js';
|
|
17
18
|
|
|
18
19
|
const {ref, styleMap, ifDefined} = Directives;
|
|
@@ -212,7 +213,7 @@ export class PanelUtils {
|
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
const title =
|
|
215
|
-
binding ?
|
|
216
|
+
binding ? PanelCommon.PersistenceUtils.PersistenceUtils.tooltipForUISourceCode(uiSourceCode) : undefined;
|
|
216
217
|
// clang-format off
|
|
217
218
|
return html`<devtools-file-source-icon
|
|
218
219
|
name=${iconType} title=${ifDefined(title)} .data=${{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: https://source.chromium.org/chromium/chromium/src/+/main:components/variations/proto/devtools/
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: f5bb0cd608ece3474fa780146f397334b24689b2
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -50,4 +50,4 @@ j=!1):-1===g&&1==h.diffs.length&&0==h.diffs[0][0]&&i.length>2*b?(h.length1+=i.le
|
|
|
50
50
|
diff_match_patch.prototype.patch_fromText=function(a){var b=[];if(!a)return b;a=a.split("\n");for(var c=0,d=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;c<a.length;){var e=a[c].match(d);if(!e)throw Error("Invalid patch string: "+a[c]);var f=new diff_match_patch.patch_obj;b.push(f);f.start1=parseInt(e[1],10);""===e[2]?(f.start1--,f.length1=1):"0"==e[2]?f.length1=0:(f.start1--,f.length1=parseInt(e[2],10));f.start2=parseInt(e[3],10);""===e[4]?(f.start2--,f.length2=1):"0"==e[4]?f.length2=0:(f.start2--,f.length2=
|
|
51
51
|
parseInt(e[4],10));for(c++;c<a.length;){e=a[c].charAt(0);try{var g=decodeURI(a[c].substring(1))}catch(h){throw Error("Illegal escape in patch_fromText: "+g);}if("-"==e)f.diffs.push([-1,g]);else if("+"==e)f.diffs.push([1,g]);else if(" "==e)f.diffs.push([0,g]);else if("@"==e)break;else if(""!==e)throw Error('Invalid patch mode "'+e+'" in: '+g);c++}}return b};diff_match_patch.patch_obj=function(){this.diffs=[];this.start2=this.start1=null;this.length2=this.length1=0};
|
|
52
52
|
diff_match_patch.patch_obj.prototype.toString=function(){var a,b;a=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1;b=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2;a=["@@ -"+a+" +"+b+" @@\n"];var c;for(b=0;b<this.diffs.length;b++){switch(this.diffs[b][0]){case 1:c="+";break;case -1:c="-";break;case 0:c=" "}a[b+1]=c+encodeURI(this.diffs[b][1])+"\n"}return a.join("").replace(/%20/g," ")};
|
|
53
|
-
|
|
53
|
+
globalThis.diff_match_patch=diff_match_patch;globalThis.DIFF_DELETE=-1;globalThis.DIFF_INSERT=1;globalThis.DIFF_EQUAL=0;})()
|
|
@@ -118,7 +118,7 @@ export class ListWidget<T> extends VBox {
|
|
|
118
118
|
if (this.isTable) {
|
|
119
119
|
element.role = 'rowgroup';
|
|
120
120
|
}
|
|
121
|
-
const content = this.delegate.renderItem(item, editable);
|
|
121
|
+
const content = this.delegate.renderItem(item, editable, this.items.length - 1);
|
|
122
122
|
if (!content.hasAttribute('jslog')) {
|
|
123
123
|
element.setAttribute('jslog', `${VisualLogging.item()}`);
|
|
124
124
|
}
|
|
@@ -297,7 +297,7 @@ export class ListWidget<T> extends VBox {
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
export interface Delegate<T> {
|
|
300
|
-
renderItem(item: T, editable: boolean): Element;
|
|
300
|
+
renderItem(item: T, editable: boolean, index: number): Element;
|
|
301
301
|
removeItemRequested(item: T, index: number): void;
|
|
302
302
|
beginEdit(item: T): Editor<T>;
|
|
303
303
|
commitEdit(item: T, editor: Editor<T>, isNew: boolean): void;
|
|
@@ -845,6 +845,7 @@ export const knownContextValues = new Set([
|
|
|
845
845
|
'console-group-similar-false',
|
|
846
846
|
'console-history-autocomplete',
|
|
847
847
|
'console-history-autocomplete-false',
|
|
848
|
+
'console-insight-teasers-enabled',
|
|
848
849
|
'console-insights',
|
|
849
850
|
'console-insights-enabled',
|
|
850
851
|
'console-insights-setting',
|
|
@@ -1508,6 +1509,10 @@ export const knownContextValues = new Set([
|
|
|
1508
1509
|
'explain.console-message.context.other',
|
|
1509
1510
|
'explain.console-message.context.warning',
|
|
1510
1511
|
'explain.console-message.hover',
|
|
1512
|
+
'explain.console-message.teaser',
|
|
1513
|
+
'explain.teaser.code-snippets-explainer',
|
|
1514
|
+
'explain.teaser.dont-show',
|
|
1515
|
+
'explain.teaser.learn-more',
|
|
1511
1516
|
'explanation',
|
|
1512
1517
|
'export-ai-conversation',
|
|
1513
1518
|
'export-har',
|
|
@@ -1896,6 +1901,7 @@ export const knownContextValues = new Set([
|
|
|
1896
1901
|
'insights-deprecation-learn-more',
|
|
1897
1902
|
'insights-deprecation-open-performance-panel',
|
|
1898
1903
|
'insights-deprecation-send-feedback',
|
|
1904
|
+
'insights-teaser-tell-me-more',
|
|
1899
1905
|
'inspect',
|
|
1900
1906
|
'inspect-prerendered-page',
|
|
1901
1907
|
'inspector-main.focus-debuggee',
|
|
@@ -3157,6 +3163,7 @@ export const knownContextValues = new Set([
|
|
|
3157
3163
|
'ruby-overhang',
|
|
3158
3164
|
'ruby-position',
|
|
3159
3165
|
'rule',
|
|
3166
|
+
'rule-break',
|
|
3160
3167
|
'rule-color',
|
|
3161
3168
|
'rule-set',
|
|
3162
3169
|
'rule-set-details',
|
|
@@ -3410,6 +3417,7 @@ export const knownContextValues = new Set([
|
|
|
3410
3417
|
'show-adorner-settings',
|
|
3411
3418
|
'show-all-properties',
|
|
3412
3419
|
'show-as-javascript-object',
|
|
3420
|
+
'show-console-insight-teasers',
|
|
3413
3421
|
'show-content-scripts',
|
|
3414
3422
|
'show-css-property-documentation-on-hover',
|
|
3415
3423
|
'show-debug-borders',
|
|
@@ -4042,6 +4050,7 @@ export const knownContextValues = new Set([
|
|
|
4042
4050
|
'upload-image',
|
|
4043
4051
|
'ur',
|
|
4044
4052
|
'url',
|
|
4053
|
+
'url-pattern',
|
|
4045
4054
|
'usage',
|
|
4046
4055
|
'usb',
|
|
4047
4056
|
'use-code-with-caution',
|
package/package.json
CHANGED
|
File without changes
|