chrome-devtools-frontend 1.0.1030070 → 1.0.1031400
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/config/gni/devtools_grd_files.gni +3 -0
- package/config/gni/devtools_image_files.gni +2 -0
- package/docs/workflows.md +1 -1
- package/front_end/Images/src/file-sync_icon.svg +62 -0
- package/front_end/Images/src/file_icon.svg +52 -0
- package/front_end/Tests.js +0 -28
- package/front_end/core/host/UserMetrics.ts +2 -1
- package/front_end/core/i18n/locales/en-US.json +18 -9
- package/front_end/core/i18n/locales/en-XL.json +18 -9
- package/front_end/core/platform/string-utilities.ts +2 -5
- package/front_end/core/root/Runtime.ts +1 -0
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +0 -4
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +0 -4
- package/front_end/core/sdk/NetworkRequest.ts +0 -4
- package/front_end/core/sdk/Resource.ts +0 -5
- package/front_end/core/sdk/Script.ts +71 -76
- package/front_end/core/sdk/Target.ts +4 -0
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -1
- package/front_end/entrypoints/main/MainImpl.ts +4 -0
- package/front_end/generated/InspectorBackendCommands.js +10 -8
- package/front_end/generated/protocol-mapping.d.ts +16 -2
- package/front_end/generated/protocol-proxy-api.d.ts +11 -1
- package/front_end/generated/protocol.ts +75 -1
- package/front_end/models/bindings/CompilerScriptMapping.ts +6 -3
- package/front_end/models/bindings/ContentProviderBasedProject.ts +2 -3
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -4
- package/front_end/models/bindings/IgnoreListManager.ts +10 -8
- package/front_end/models/bindings/ResourceMapping.ts +0 -4
- package/front_end/models/bindings/StylesSourceMapping.ts +0 -5
- package/front_end/models/extensions/ExtensionServer.ts +2 -3
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +8 -0
- package/front_end/models/issues_manager/DeprecationIssue.ts +5 -1
- package/front_end/models/issues_manager/descriptions/arTooManyConcurrentRequests.md +5 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +6 -2
- package/front_end/models/persistence/NetworkPersistenceManager.ts +4 -6
- package/front_end/models/persistence/PersistenceActions.ts +5 -4
- package/front_end/models/text_utils/CodeMirrorUtils.ts +17 -4
- package/front_end/models/text_utils/ContentProvider.ts +0 -1
- package/front_end/models/text_utils/StaticContentProvider.ts +0 -4
- package/front_end/models/workspace/UISourceCode.ts +10 -5
- package/front_end/panels/application/components/StackTrace.ts +2 -2
- package/front_end/panels/elements/CSSRuleValidator.ts +382 -63
- package/front_end/panels/elements/CSSRuleValidatorHelper.ts +34 -0
- package/front_end/panels/elements/ElementsTreeOutline.ts +23 -7
- package/front_end/panels/elements/StylePropertyTreeElement.ts +1 -1
- package/front_end/panels/elements/TopLayerContainer.ts +17 -28
- package/front_end/panels/elements/components/CSSHintDetailsView.ts +23 -20
- package/front_end/panels/elements/components/cssHintDetailsView.css +8 -2
- package/front_end/panels/elements/stylesSectionTree.css +1 -1
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +12 -0
- package/front_end/panels/network/components/RequestHeadersView.css +41 -8
- package/front_end/panels/network/components/RequestHeadersView.ts +102 -12
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +1 -0
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +7 -0
- package/front_end/panels/sources/NavigatorView.ts +22 -0
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
- package/front_end/third_party/codemirror.next/bundle.ts +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/java.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/json.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/php.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/python.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/wast.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/xml.js +1 -2
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1247 -116
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -2
- package/front_end/ui/components/data_grid/DataGrid.ts +15 -10
- package/front_end/ui/components/data_grid/DataGridController.ts +7 -0
- package/front_end/ui/components/docs/building-ui-documentation/StylingComponents.md +64 -0
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +2 -3
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +97 -17
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +1 -1
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewerUtils.ts +4 -0
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +9 -7
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +10 -11
- package/front_end/ui/legacy/components/source_frame/PreviewFactory.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +49 -0
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +18 -17
- package/package.json +6 -5
@@ -94,7 +94,6 @@ export function buildStackTraceRows(
|
|
94
94
|
updateCallback?: (arg0: (StackTraceRegularRow|StackTraceAsyncRow)[]) => void,
|
95
95
|
): (StackTraceRegularRow|StackTraceAsyncRow)[] {
|
96
96
|
const stackTraceRows: (StackTraceRegularRow|StackTraceAsyncRow)[] = [];
|
97
|
-
let regularRowCount = 0;
|
98
97
|
|
99
98
|
if (updateCallback) {
|
100
99
|
const throttler = new Common.Throttler.Throttler(100);
|
@@ -110,14 +109,11 @@ export function buildStackTraceRows(
|
|
110
109
|
asyncRow = {
|
111
110
|
asyncDescription: UI.UIUtils.asyncStackTraceLabel(stackTrace.description, previousCallFrames),
|
112
111
|
ignoreListHide: false,
|
113
|
-
rowCountHide: false,
|
114
112
|
};
|
115
113
|
stackTraceRows.push(asyncRow);
|
116
114
|
}
|
117
115
|
let hiddenCallFrames = 0;
|
118
116
|
for (const stackFrame of stackTrace.callFrames) {
|
119
|
-
regularRowCount++;
|
120
|
-
const rowCountHide = regularRowCount > 30 && stackTrace.callFrames.length > 31;
|
121
117
|
let ignoreListHide = false;
|
122
118
|
const functionName = UI.UIUtils.beautifyFunctionName(stackFrame.functionName);
|
123
119
|
const link =
|
@@ -125,10 +121,13 @@ export function buildStackTraceRows(
|
|
125
121
|
if (link) {
|
126
122
|
link.addEventListener('contextmenu', populateContextMenu.bind(null, link));
|
127
123
|
// TODO(crbug.com/1183325): fix race condition with uiLocation still being null here
|
124
|
+
// Note: This has always checked whether the call frame location *in the generated
|
125
|
+
// code* is ignore-listed or not. This can change after the live location updates,
|
126
|
+
// and is handled again in the linkifier live location update callback.
|
128
127
|
const uiLocation = Linkifier.uiLocation(link);
|
129
128
|
if (uiLocation &&
|
130
|
-
Bindings.IgnoreListManager.IgnoreListManager.instance().
|
131
|
-
uiLocation.uiSourceCode
|
129
|
+
Bindings.IgnoreListManager.IgnoreListManager.instance().isUserOrSourceMapIgnoreListedUISourceCode(
|
130
|
+
uiLocation.uiSourceCode)) {
|
132
131
|
ignoreListHide = true;
|
133
132
|
}
|
134
133
|
// Linkifier is using a workaround with the 'zero width space' (\u200b).
|
@@ -137,13 +136,13 @@ export function buildStackTraceRows(
|
|
137
136
|
link.textContent = i18nString(UIStrings.unknownSource);
|
138
137
|
}
|
139
138
|
}
|
140
|
-
if (
|
139
|
+
if (ignoreListHide) {
|
141
140
|
++hiddenCallFrames;
|
142
141
|
}
|
143
|
-
stackTraceRows.push({functionName, link, ignoreListHide
|
142
|
+
stackTraceRows.push({functionName, link, ignoreListHide});
|
144
143
|
}
|
145
144
|
if (asyncRow && hiddenCallFrames > 0 && hiddenCallFrames === stackTrace.callFrames.length) {
|
146
|
-
|
145
|
+
asyncRow.ignoreListHide = true;
|
147
146
|
}
|
148
147
|
}
|
149
148
|
|
@@ -173,20 +172,24 @@ function updateHiddenRows(
|
|
173
172
|
const row = stackTraceRows[i];
|
174
173
|
|
175
174
|
if ('link' in row && row.link) {
|
175
|
+
// Note: This checks whether the call frame location *in the live location* is
|
176
|
+
// ignore-listed or not. When a source map is present, this corresponds to the
|
177
|
+
// location in the original source, not the generated source. Therefore, the
|
178
|
+
// ignore-list status might be different now from when the row was created.
|
176
179
|
const uiLocation = Linkifier.uiLocation(row.link);
|
177
180
|
if (uiLocation &&
|
178
|
-
Bindings.IgnoreListManager.IgnoreListManager.instance().
|
179
|
-
uiLocation.uiSourceCode
|
181
|
+
Bindings.IgnoreListManager.IgnoreListManager.instance().isUserOrSourceMapIgnoreListedUISourceCode(
|
182
|
+
uiLocation.uiSourceCode)) {
|
180
183
|
row.ignoreListHide = true;
|
181
184
|
}
|
182
|
-
if (row.
|
185
|
+
if (row.ignoreListHide) {
|
183
186
|
shouldHideSubCount++;
|
184
187
|
}
|
185
188
|
}
|
186
189
|
if ('asyncDescription' in row) {
|
187
190
|
// hide current row if all (regular) rows since the previous asyncRow are hidden
|
188
191
|
if (shouldHideSubCount > 0 && shouldHideSubCount === indexOfAsyncRow - i - 1) {
|
189
|
-
|
192
|
+
row.ignoreListHide = true;
|
190
193
|
}
|
191
194
|
indexOfAsyncRow = i;
|
192
195
|
shouldHideSubCount = 0;
|
@@ -238,11 +241,11 @@ function renderStackTraceTable(
|
|
238
241
|
row.createChild('td').appendChild(item.link);
|
239
242
|
links.push(item.link);
|
240
243
|
}
|
241
|
-
if (item.
|
244
|
+
if (item.ignoreListHide) {
|
242
245
|
++hiddenCallFramesCount;
|
243
246
|
}
|
244
247
|
}
|
245
|
-
if (item.
|
248
|
+
if (item.ignoreListHide) {
|
246
249
|
row.classList.add('hidden-row');
|
247
250
|
}
|
248
251
|
container.appendChild(row);
|
@@ -271,11 +274,9 @@ export interface StackTraceRegularRow {
|
|
271
274
|
functionName: string;
|
272
275
|
ignoreListHide: boolean;
|
273
276
|
link: HTMLElement|null;
|
274
|
-
rowCountHide: boolean;
|
275
277
|
}
|
276
278
|
|
277
279
|
export interface StackTraceAsyncRow {
|
278
280
|
asyncDescription: string;
|
279
281
|
ignoreListHide: boolean;
|
280
|
-
rowCountHide: boolean;
|
281
282
|
}
|
package/package.json
CHANGED
@@ -19,12 +19,13 @@
|
|
19
19
|
"url": "git+https://github.com/ChromeDevTools/devtools-frontend.git"
|
20
20
|
},
|
21
21
|
"scripts": {
|
22
|
-
"auto-debug-e2etest": "
|
23
|
-
"auto-debug-interactionstest": "
|
22
|
+
"auto-debug-e2etest": "npm run build && npm run debug-e2etest --",
|
23
|
+
"auto-debug-interactionstest": "npm run build && npm run debug-interactionstest --",
|
24
24
|
"auto-debug-unittest": "DEBUG_TEST=1 npm run auto-unittest --",
|
25
|
-
"auto-e2etest": "
|
26
|
-
"auto-interactionstest": "
|
25
|
+
"auto-e2etest": "npm run build && npm run e2etest --",
|
26
|
+
"auto-interactionstest": "npm run build && npm run interactionstest --",
|
27
27
|
"auto-unittest": "scripts/test/run_auto_unittests.py --no-text-coverage",
|
28
|
+
"prebuild": "gn gen out/Default",
|
28
29
|
"build": "autoninja -C out/Default",
|
29
30
|
"build-release": "autoninja -C out/Release",
|
30
31
|
"check": "npm run check-lint && npm run check-loc",
|
@@ -55,5 +56,5 @@
|
|
55
56
|
"unittest": "scripts/test/run_unittests.py --no-text-coverage",
|
56
57
|
"watch": "vpython third_party/node/node.py --output scripts/watch_build.js"
|
57
58
|
},
|
58
|
-
"version": "1.0.
|
59
|
+
"version": "1.0.1031400"
|
59
60
|
}
|