chrome-devtools-frontend 1.0.957495 → 1.0.957983
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/extension-api/ExtensionAPI.d.ts +7 -0
- package/front_end/Tests.js +14 -0
- package/front_end/core/common/Debouncer.ts +1 -1
- package/front_end/core/common/Settings.ts +33 -0
- package/front_end/core/host/InspectorFrontendHost.ts +7 -3
- package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
- package/front_end/core/host/UserMetrics.ts +2 -2
- package/front_end/core/i18n/i18nImpl.ts +1 -1
- package/front_end/core/protocol_client/InspectorBackend.ts +3 -3
- package/front_end/core/sdk/Connections.ts +1 -1
- package/front_end/core/sdk/IsolateManager.ts +1 -1
- package/front_end/core/sdk/PageResourceLoader.ts +4 -2
- package/front_end/devtools_compatibility.js +9 -0
- package/front_end/entrypoints/main/MainImpl.ts +7 -2
- package/front_end/models/extensions/ExtensionAPI.ts +33 -5
- package/front_end/models/extensions/ExtensionServer.ts +28 -0
- package/front_end/models/logs/LogManager.ts +1 -1
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +1 -1
- package/front_end/models/workspace/UISourceCode.ts +1 -1
- package/front_end/panels/application/StorageView.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/elements/ComputedStyleModel.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +2 -2
- package/front_end/panels/network/NetworkItemView.ts +1 -1
- package/front_end/panels/profiler/HeapTimelineOverview.ts +2 -2
- package/front_end/panels/profiler/LiveHeapProfileView.ts +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +2 -2
- package/front_end/panels/settings/SettingsScreen.ts +1 -1
- package/front_end/panels/settings/settingsScreen.css +8 -3
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/SourcesSearchScope.ts +1 -1
- package/front_end/panels/timeline/TimelineController.ts +2 -2
- package/front_end/panels/timeline/TimelineLoader.ts +3 -3
- package/front_end/panels/timeline/TimelinePanel.ts +1 -1
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +76 -12
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +13 -13
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +2 -2
- package/front_end/ui/components/text_editor/TextEditor.ts +1 -1
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/javascript.ts +1 -1
- package/front_end/ui/legacy/SearchableView.ts +1 -1
- package/front_end/ui/legacy/SoftDropDown.ts +2 -2
- package/front_end/ui/legacy/TextPrompt.ts +2 -1
- package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +1 -1
- package/package.json +1 -1
|
@@ -80,14 +80,14 @@ export class TimelineLoader implements Common.StringOutputStream.OutputStream {
|
|
|
80
80
|
static loadFromEvents(events: SDK.TracingManager.EventPayload[], client: Client): TimelineLoader {
|
|
81
81
|
const loader = new TimelineLoader(client);
|
|
82
82
|
|
|
83
|
-
setTimeout(async () => {
|
|
83
|
+
window.setTimeout(async () => {
|
|
84
84
|
const eventsPerChunk = 5000;
|
|
85
85
|
client.loadingStarted();
|
|
86
86
|
for (let i = 0; i < events.length; i += eventsPerChunk) {
|
|
87
87
|
const chunk = events.slice(i, i + eventsPerChunk);
|
|
88
88
|
(loader.tracingModel as SDK.TracingModel.TracingModel).addEvents(chunk);
|
|
89
89
|
client.loadingProgress((i + chunk.length) / events.length);
|
|
90
|
-
await new Promise(r => setTimeout(r)); // Yield event loop to paint.
|
|
90
|
+
await new Promise(r => window.setTimeout(r)); // Yield event loop to paint.
|
|
91
91
|
}
|
|
92
92
|
void loader.close();
|
|
93
93
|
});
|
|
@@ -228,7 +228,7 @@ export class TimelineLoader implements Common.StringOutputStream.OutputStream {
|
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
230
|
this.client.processingStarted();
|
|
231
|
-
setTimeout(() => this.finalizeTrace(), 0);
|
|
231
|
+
window.setTimeout(() => this.finalizeTrace(), 0);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
private finalizeTrace(): void {
|
|
@@ -1148,7 +1148,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
|
|
|
1148
1148
|
return;
|
|
1149
1149
|
}
|
|
1150
1150
|
const controller = this.controller;
|
|
1151
|
-
await new Promise(r => setTimeout(r, this.millisecondsToRecordAfterLoadEvent));
|
|
1151
|
+
await new Promise(r => window.setTimeout(r, this.millisecondsToRecordAfterLoadEvent));
|
|
1152
1152
|
|
|
1153
1153
|
// Check if we're still in the same recording session.
|
|
1154
1154
|
if (controller !== this.controller || this.state !== State.Recording) {
|
|
@@ -404,7 +404,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
// TODO(crbug.com/1112528): Add back-end events for credential creation and removal to avoid polling.
|
|
407
|
-
setTimeout(this.#updateCredentials.bind(this, authenticatorId), TIMEOUT);
|
|
407
|
+
window.setTimeout(this.#updateCredentials.bind(this, authenticatorId), TIMEOUT);
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
#maybeAddEmptyNode(dataGrid: DataGrid.DataGrid.DataGridImpl<DataGridNode>): void {
|