chrome-devtools-frontend 1.0.1002543 → 1.0.1003496
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 +1 -0
- package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -0
- package/front_end/core/host/UserMetrics.ts +17 -1
- package/front_end/core/i18n/locales/en-US.json +20 -35
- package/front_end/core/i18n/locales/en-XL.json +20 -35
- package/front_end/core/sdk/TracingModel.ts +5 -4
- package/front_end/devtools_compatibility.js +1 -0
- package/front_end/entrypoints/main/MainImpl.ts +1 -0
- package/front_end/generated/InspectorBackendCommands.js +4 -2
- package/front_end/generated/SupportedCSSProperties.js +3 -5
- package/front_end/generated/protocol.ts +18 -4
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +4 -1
- package/front_end/models/issues_manager/DeprecationIssue.ts +84 -103
- package/front_end/models/issues_manager/descriptions/arInvalidHeader.md +3 -0
- package/front_end/models/persistence/NetworkPersistenceManager.ts +20 -0
- package/front_end/models/timeline_model/TimelineModel.ts +2 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +21 -5
- package/front_end/panels/elements/stylesSidebarPane.css +3 -0
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +14 -0
- package/front_end/panels/lighthouse/LighthouseController.ts +2 -1
- package/front_end/panels/network/NetworkLogView.ts +32 -0
- package/front_end/panels/sources/SourcesNavigator.ts +1 -1
- package/front_end/panels/sources/SourcesPanel.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -12
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +409 -409
- package/front_end/third_party/lighthouse/locales/en-US.json +3 -0
- package/front_end/third_party/lighthouse/locales/en-XL.json +3 -0
- package/front_end/third_party/lighthouse/report/bundle.d.ts +2 -22
- package/front_end/third_party/lighthouse/report/bundle.js +5 -354
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
- package/front_end/ui/components/text_editor/javascript.ts +6 -15
- package/front_end/ui/legacy/InspectorView.ts +29 -0
- package/package.json +1 -1
- package/scripts/whitespaces.txt +1 -0
@@ -216,8 +216,8 @@ export async function javascriptCompletionSource(cx: CodeMirror.CompletionContex
|
|
216
216
|
};
|
217
217
|
}
|
218
218
|
|
219
|
-
const SPAN_IDENT = /^#?[\
|
220
|
-
SPAN_DOUBLE_QUOTE = /^"(\\.|[^\\"\n])*"?$/;
|
219
|
+
const SPAN_IDENT = /^#?(?:[$_\p{ID_Start}])(?:[$_\u200C\u200D\p{ID_Continue}])*$/u,
|
220
|
+
SPAN_SINGLE_QUOTE = /^\'(\\.|[^\\'\n])*'?$/, SPAN_DOUBLE_QUOTE = /^"(\\.|[^\\"\n])*"?$/;
|
221
221
|
|
222
222
|
function getExecutionContext(): SDK.RuntimeModel.ExecutionContext|null {
|
223
223
|
return UI.Context.Context.instance().flavor(SDK.RuntimeModel.ExecutionContext);
|
@@ -340,8 +340,6 @@ async function completeProperties(
|
|
340
340
|
return result;
|
341
341
|
}
|
342
342
|
|
343
|
-
const prototypePropertyPenalty = -80;
|
344
|
-
|
345
343
|
async function completePropertiesInner(
|
346
344
|
expression: string,
|
347
345
|
context: SDK.RuntimeModel.ExecutionContext,
|
@@ -382,17 +380,10 @@ async function completePropertiesInner(
|
|
382
380
|
(!prop.private || expression === 'this') && (quoted || SPAN_IDENT.test(prop.name))) {
|
383
381
|
const label =
|
384
382
|
quoted ? quoted + prop.name.replaceAll('\\', '\\\\').replaceAll(quoted, '\\' + quoted) + quoted : prop.name;
|
385
|
-
const
|
386
|
-
|
387
|
-
|
388
|
-
};
|
389
|
-
if (quoted && !hasBracket) {
|
390
|
-
completion.apply = label + ']';
|
391
|
-
}
|
392
|
-
if (!prop.isOwn) {
|
393
|
-
completion.boost = prototypePropertyPenalty;
|
394
|
-
}
|
395
|
-
result.add(completion);
|
383
|
+
const apply = (quoted && !hasBracket) ? `${label}]` : undefined;
|
384
|
+
const boost = 2 * Number(prop.isOwn) + 1 * Number(prop.enumerable);
|
385
|
+
const type = prop.value?.type === 'function' ? functionType : otherType;
|
386
|
+
result.add({apply, label, type, boost});
|
396
387
|
}
|
397
388
|
}
|
398
389
|
}
|
@@ -115,6 +115,15 @@ const UIStrings = {
|
|
115
115
|
*@description The aria label for the drawer hidden.
|
116
116
|
*/
|
117
117
|
drawerHidden: 'Drawer hidden',
|
118
|
+
/**
|
119
|
+
* @description Request for the user to select a local file system folder for DevTools
|
120
|
+
* to store local overrides in.
|
121
|
+
*/
|
122
|
+
selectOverrideFolder: 'Select a folder to store override files in.',
|
123
|
+
/**
|
124
|
+
*@description Label for a button which opens a file picker.
|
125
|
+
*/
|
126
|
+
selectFolder: 'Select folder',
|
118
127
|
};
|
119
128
|
const str_ = i18n.i18n.registerUIStrings('ui/legacy/InspectorView.ts', UIStrings);
|
120
129
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
@@ -133,6 +142,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
|
|
133
142
|
private focusRestorer?: WidgetFocusRestorer|null;
|
134
143
|
private ownerSplitWidget?: SplitWidget;
|
135
144
|
private reloadRequiredInfobar?: Infobar;
|
145
|
+
#selectOverrideFolderInfobar?: Infobar;
|
136
146
|
|
137
147
|
constructor() {
|
138
148
|
super();
|
@@ -439,6 +449,25 @@ export class InspectorView extends VBox implements ViewLocationResolver {
|
|
439
449
|
}
|
440
450
|
}
|
441
451
|
|
452
|
+
displaySelectOverrideFolderInfobar(callback: () => void): void {
|
453
|
+
if (!this.#selectOverrideFolderInfobar) {
|
454
|
+
const infobar = new Infobar(InfobarType.Info, i18nString(UIStrings.selectOverrideFolder), [
|
455
|
+
{
|
456
|
+
text: i18nString(UIStrings.selectFolder),
|
457
|
+
highlight: true,
|
458
|
+
delegate: (): void => callback(),
|
459
|
+
dismiss: true,
|
460
|
+
},
|
461
|
+
]);
|
462
|
+
infobar.setParentView(this);
|
463
|
+
this.attachInfobar(infobar);
|
464
|
+
this.#selectOverrideFolderInfobar = infobar;
|
465
|
+
infobar.setCloseCallback(() => {
|
466
|
+
this.#selectOverrideFolderInfobar = undefined;
|
467
|
+
});
|
468
|
+
}
|
469
|
+
}
|
470
|
+
|
442
471
|
private createInfoBarDiv(): void {
|
443
472
|
if (!this.infoBarDiv) {
|
444
473
|
this.infoBarDiv = document.createElement('div');
|
package/package.json
CHANGED
package/scripts/whitespaces.txt
CHANGED