chrome-devtools-frontend 1.0.1515446 → 1.0.1515988
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/docs/contributing/infrastructure.md +131 -82
- package/front_end/Tests.js +3 -29
- package/front_end/core/common/Progress.ts +73 -55
- package/front_end/core/host/UserMetrics.ts +0 -1
- package/front_end/core/protocol_client/InspectorBackend.ts +2 -0
- package/front_end/core/root/Runtime.ts +0 -1
- package/front_end/core/sdk/CSSMatchedStyles.ts +12 -10
- package/front_end/core/sdk/CSSModel.ts +1 -31
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +27 -7
- package/front_end/core/sdk/DebuggerModel.ts +1 -31
- package/front_end/core/sdk/EnhancedTracesParser.ts +81 -50
- package/front_end/core/sdk/NetworkManager.ts +1 -31
- package/front_end/core/sdk/NetworkRequest.ts +1 -31
- package/front_end/core/sdk/RehydratingConnection.snapshot.txt +1003 -0
- package/front_end/core/sdk/RehydratingConnection.ts +13 -18
- package/front_end/core/sdk/RehydratingObject.ts +8 -31
- package/front_end/core/sdk/RemoteObject.ts +1 -31
- package/front_end/core/sdk/ResourceTreeModel.ts +1 -31
- package/front_end/core/sdk/RuntimeModel.ts +1 -31
- package/front_end/core/sdk/ServiceWorkerManager.ts +1 -31
- package/front_end/core/sdk/SourceMap.ts +1 -31
- package/front_end/core/sdk/TraceObject.ts +8 -3
- package/front_end/entrypoints/main/MainImpl.ts +0 -2
- package/front_end/entrypoints/main/main-meta.ts +2 -2
- package/front_end/generated/InspectorBackendCommands.js +4 -4
- package/front_end/generated/SupportedCSSProperties.js +12 -0
- package/front_end/generated/protocol.ts +10 -1
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +1 -3
- package/front_end/models/ai_assistance/ConversationHandler.ts +4 -6
- package/front_end/models/ai_assistance/agents/AiAgent.ts +4 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +107 -72
- package/front_end/models/ai_assistance/agents/PerformanceAnnotationsAgent.ts +2 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +2 -2
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +178 -85
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +308 -218
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +161 -97
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +78 -58
- package/front_end/models/ai_assistance/data_formatters/UnitFormatters.ts +10 -1
- package/front_end/models/ai_assistance/performance/AIContext.ts +19 -21
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +123 -55
- package/front_end/models/bindings/ContentProviderBasedProject.ts +6 -4
- package/front_end/models/breakpoints/BreakpointManager.ts +3 -3
- package/front_end/models/har/Writer.ts +11 -11
- package/front_end/models/javascript_metadata/NativeFunctions.js +7 -7
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
- package/front_end/models/persistence/IsolatedFileSystem.ts +4 -4
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +7 -7
- package/front_end/models/persistence/PersistenceImpl.ts +8 -8
- package/front_end/models/persistence/PlatformFileSystem.ts +1 -1
- package/front_end/models/text_utils/TextUtils.ts +26 -0
- package/front_end/models/trace/ModelImpl.ts +2 -16
- package/front_end/models/trace/Processor.ts +14 -8
- package/front_end/models/trace/handlers/AuctionWorkletsHandler.ts +4 -4
- package/front_end/models/trace/handlers/FramesHandler.ts +2 -2
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +7 -10
- package/front_end/models/trace/handlers/MetaHandler.ts +11 -9
- package/front_end/models/trace/handlers/ScreenshotsHandler.ts +1 -1
- package/front_end/models/trace/handlers/ScriptsHandler.ts +5 -5
- package/front_end/models/trace/handlers/UserInteractionsHandler.ts +2 -14
- package/front_end/models/trace/handlers/UserTimingsHandler.ts +3 -4
- package/front_end/models/trace/insights/CLSCulprits.ts +1 -1
- package/front_end/models/trace/insights/DocumentLatency.ts +8 -7
- package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -1
- package/front_end/models/trace/insights/INPBreakdown.ts +1 -1
- package/front_end/models/trace/insights/ImageDelivery.ts +1 -1
- package/front_end/models/trace/insights/LCPBreakdown.ts +1 -1
- package/front_end/models/trace/insights/LCPDiscovery.ts +1 -1
- package/front_end/models/trace/insights/ModernHTTP.ts +1 -1
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +1 -1
- package/front_end/models/trace/insights/RenderBlocking.ts +1 -1
- package/front_end/models/trace/insights/types.ts +2 -0
- package/front_end/models/trace/types/Configuration.ts +12 -0
- package/front_end/models/trace/types/TraceEvents.ts +41 -64
- package/front_end/models/trace_source_maps_resolver/trace_source_maps_resolver.ts +1 -1
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +21 -99
- package/front_end/panels/application/ServiceWorkersView.ts +0 -1
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +8 -2
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -3
- package/front_end/panels/common/BadgeNotification.ts +10 -8
- package/front_end/panels/common/GdpSignUpDialog.ts +30 -14
- package/front_end/panels/common/gdpSignUpDialog.css +4 -0
- package/front_end/panels/console/ConsoleView.ts +23 -28
- package/front_end/panels/console/ConsoleViewport.ts +2 -2
- package/front_end/panels/console/consoleView.css +11 -1
- package/front_end/panels/coverage/CoverageView.ts +2 -2
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
- package/front_end/panels/elements/StyleEditorWidget.ts +8 -19
- package/front_end/panels/elements/StylePropertyTreeElement.ts +39 -25
- package/front_end/panels/elements/StylesSidebarPane.ts +2 -2
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +4 -3
- package/front_end/panels/layer_viewer/Layers3DView.ts +2 -2
- package/front_end/panels/layers/LayerTreeModel.ts +3 -3
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +4 -4
- package/front_end/panels/network/NetworkLogView.ts +1 -1
- package/front_end/panels/network/NetworkLogViewColumns.ts +3 -3
- package/front_end/panels/network/NetworkSearchScope.ts +6 -6
- package/front_end/panels/search/SearchView.ts +220 -159
- package/front_end/panels/settings/components/SyncSection.ts +64 -10
- package/front_end/panels/settings/components/syncSection.css +6 -0
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +1 -4
- package/front_end/panels/sources/SourcesSearchScope.ts +4 -4
- package/front_end/panels/sources/TabbedEditorContainer.ts +5 -5
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +10 -5
- package/front_end/panels/timeline/TimelineFlameChartView.ts +18 -15
- package/front_end/panels/timeline/TimelinePanel.ts +41 -22
- package/front_end/panels/timeline/TracingLayerTree.ts +4 -5
- package/front_end/panels/timeline/components/ExportTraceOptions.ts +37 -22
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +17 -7
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/third_party/axe-core/README.chromium +1 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/codemirror/README.chromium +1 -0
- package/front_end/third_party/codemirror.next/README.chromium +1 -0
- package/front_end/third_party/csp_evaluator/README.chromium +1 -0
- package/front_end/third_party/diff/README.chromium +1 -0
- package/front_end/third_party/i18n/README.chromium +1 -0
- package/front_end/third_party/intl-messageformat/README.chromium +1 -0
- package/front_end/third_party/json5/README.chromium +1 -0
- package/front_end/third_party/legacy-javascript/README.chromium +1 -0
- package/front_end/third_party/lighthouse/README.chromium +1 -0
- package/front_end/third_party/lit/README.chromium +1 -0
- package/front_end/third_party/marked/README.chromium +1 -0
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/README.md +6 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +11 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +30 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +12 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +22 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +11 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +30 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +12 -2
- package/front_end/third_party/puppeteer/package/package.json +4 -4
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +13 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +50 -8
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +0 -1
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +8 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +21 -5
- package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +12 -0
- package/front_end/third_party/puppeteer-replay/README.chromium +1 -0
- package/front_end/third_party/third-party-web/README.chromium +1 -0
- package/front_end/third_party/vscode.web-custom-data/README.chromium +1 -0
- package/front_end/third_party/wasmparser/README.chromium +1 -0
- package/front_end/third_party/web-vitals/README.chromium +1 -0
- package/front_end/ui/components/text_editor/config.ts +66 -16
- package/front_end/ui/components/tooltips/Tooltip.ts +17 -1
- package/front_end/ui/legacy/ContextMenu.ts +2 -2
- package/front_end/ui/legacy/GlassPane.ts +7 -3
- package/front_end/ui/legacy/ProgressIndicator.ts +33 -21
- package/front_end/ui/legacy/TabbedPane.ts +2 -2
- package/front_end/ui/legacy/Treeoutline.ts +10 -5
- package/front_end/ui/legacy/UIUtils.ts +42 -10
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +14 -14
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +6 -6
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +4 -2
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +3 -29
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +14 -14
- package/front_end/ui/visual_logging/Debugging.ts +24 -12
- package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
- package/inspector_overlay/highlight_common.ts +1 -27
- package/inspector_overlay/highlight_grid_common.ts +1 -27
- package/inspector_overlay/tool_highlight.ts +1 -27
- package/inspector_overlay/tool_persistent.ts +1 -27
- package/inspector_overlay/tool_source_order.ts +1 -27
- package/package.json +3 -3
@@ -399,7 +399,7 @@ class DataGridElementNode extends SortableDataGridNode<DataGridElementNode> {
|
|
399
399
|
const cell = cells[i];
|
400
400
|
const column = this.#dataGridElement.columns[i];
|
401
401
|
if (column.dataType === DataType.BOOLEAN) {
|
402
|
-
this.data[column.id] = hasBooleanAttribute(cell, 'data-value');
|
402
|
+
this.data[column.id] = hasBooleanAttribute(cell, 'data-value') || cell.textContent === 'true';
|
403
403
|
} else {
|
404
404
|
this.data[column.id] = cell.dataset.value ?? cell.textContent ?? '';
|
405
405
|
}
|
@@ -472,7 +472,9 @@ class DataGridElementNode extends SortableDataGridNode<DataGridElementNode> {
|
|
472
472
|
override createCell(columnId: string): HTMLElement {
|
473
473
|
const index = this.#dataGridElement.columns.findIndex(({id}) => id === columnId);
|
474
474
|
if (this.#dataGridElement.columns[index].dataType === DataType.BOOLEAN) {
|
475
|
-
|
475
|
+
const cell = super.createCell(columnId);
|
476
|
+
cell.setAttribute('part', `${columnId}-column`);
|
477
|
+
return cell;
|
476
478
|
}
|
477
479
|
const cell = this.createTD(columnId);
|
478
480
|
cell.setAttribute('part', `${columnId}-column`);
|
@@ -1,32 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
* Redistribution and use in source and binary forms, with or without
|
5
|
-
* modification, are permitted provided that the following conditions are
|
6
|
-
* met:
|
7
|
-
*
|
8
|
-
* * Redistributions of source code must retain the above copyright
|
9
|
-
* notice, this list of conditions and the following disclaimer.
|
10
|
-
* * Redistributions in binary form must reproduce the above
|
11
|
-
* copyright notice, this list of conditions and the following disclaimer
|
12
|
-
* in the documentation and/or other materials provided with the
|
13
|
-
* distribution.
|
14
|
-
* * Neither the name of Google Inc. nor the names of its
|
15
|
-
* contributors may be used to endorse or promote products derived from
|
16
|
-
* this software without specific prior written permission.
|
17
|
-
*
|
18
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
19
|
-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
20
|
-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
21
|
-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
22
|
-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
23
|
-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
24
|
-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
25
|
-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
26
|
-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
-
*/
|
1
|
+
// Copyright 2013 The Chromium Authors
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
3
|
+
// found in the LICENSE file.
|
30
4
|
|
31
5
|
/* eslint-disable rulesdir/no-imperative-dom-api */
|
32
6
|
|
@@ -526,11 +526,11 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
526
526
|
protected async setContentDataOrError(contentDataPromise: Promise<TextUtils.ContentData.ContentDataOrError>):
|
527
527
|
Promise<void> {
|
528
528
|
const progressIndicator = document.createElement('devtools-progress');
|
529
|
-
progressIndicator.
|
530
|
-
progressIndicator.
|
529
|
+
progressIndicator.title = i18nString(UIStrings.loading);
|
530
|
+
progressIndicator.totalWork = 100;
|
531
531
|
this.progressToolbarItem.element.appendChild(progressIndicator);
|
532
532
|
|
533
|
-
progressIndicator.
|
533
|
+
progressIndicator.worked = 1;
|
534
534
|
const contentData = await contentDataPromise;
|
535
535
|
|
536
536
|
let error: string|undefined;
|
@@ -557,8 +557,8 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
557
557
|
this.wasmDisassemblyInternal = null;
|
558
558
|
}
|
559
559
|
|
560
|
-
progressIndicator.
|
561
|
-
progressIndicator.done
|
560
|
+
progressIndicator.worked = 100;
|
561
|
+
progressIndicator.done = true;
|
562
562
|
|
563
563
|
if (this.rawContent === content && error === undefined) {
|
564
564
|
return;
|
@@ -599,10 +599,10 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
599
599
|
} else {
|
600
600
|
this.positionToReveal = {...position, shouldHighlight};
|
601
601
|
}
|
602
|
-
this
|
602
|
+
this.#revealPositionIfNeeded();
|
603
603
|
}
|
604
604
|
|
605
|
-
|
605
|
+
#revealPositionIfNeeded(): void {
|
606
606
|
if (!this.positionToReveal) {
|
607
607
|
return;
|
608
608
|
}
|
@@ -627,10 +627,10 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
627
627
|
scrollToLine(line: number): void {
|
628
628
|
this.clearPositionToReveal();
|
629
629
|
this.lineToScrollTo = line;
|
630
|
-
this
|
630
|
+
this.#scrollToLineIfNeeded();
|
631
631
|
}
|
632
632
|
|
633
|
-
|
633
|
+
#scrollToLineIfNeeded(): void {
|
634
634
|
if (this.lineToScrollTo !== null) {
|
635
635
|
if (this.loaded && this.isShowing()) {
|
636
636
|
const {textEditor} = this;
|
@@ -643,10 +643,10 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
643
643
|
|
644
644
|
setSelection(textRange: TextUtils.TextRange.TextRange): void {
|
645
645
|
this.selectionToSet = textRange;
|
646
|
-
this
|
646
|
+
this.#setSelectionIfNeeded();
|
647
647
|
}
|
648
648
|
|
649
|
-
|
649
|
+
#setSelectionIfNeeded(): void {
|
650
650
|
const sel = this.selectionToSet;
|
651
651
|
if (sel && this.loaded && this.isShowing()) {
|
652
652
|
const {textEditor} = this;
|
@@ -660,9 +660,9 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
660
660
|
}
|
661
661
|
|
662
662
|
private wasShownOrLoaded(): void {
|
663
|
-
this
|
664
|
-
this
|
665
|
-
this
|
663
|
+
this.#revealPositionIfNeeded();
|
664
|
+
this.#setSelectionIfNeeded();
|
665
|
+
this.#scrollToLineIfNeeded();
|
666
666
|
this.textEditor.shadowRoot?.querySelector('.cm-lineNumbers')
|
667
667
|
?.setAttribute('jslog', `${VisualLogging.gutter('line-numbers').track({click: true})}`);
|
668
668
|
this.textEditor.shadowRoot?.querySelector('.cm-foldGutter')
|
@@ -731,7 +731,7 @@ function compareVeEvents(actual: TestLogEntry, expected: TestLogEntry): boolean
|
|
731
731
|
interface PendingEventExpectation {
|
732
732
|
expectedEvents: TestLogEntry[];
|
733
733
|
missingEvents?: TestLogEntry[];
|
734
|
-
|
734
|
+
unmatchedEvents: TestLogEntry[];
|
735
735
|
success: () => void;
|
736
736
|
fail: (arg0: Error) => void;
|
737
737
|
}
|
@@ -785,20 +785,33 @@ export async function expectVeEvents(expectedEvents: TestLogEntry[]): Promise<vo
|
|
785
785
|
throw new Error('VE events expectation already set. Cannot set another one until the previous is resolved');
|
786
786
|
}
|
787
787
|
const {promise, resolve: success, reject: fail} = Promise.withResolvers<void>();
|
788
|
-
pendingEventExpectation = {expectedEvents, success, fail,
|
788
|
+
pendingEventExpectation = {expectedEvents, success, fail, unmatchedEvents: []};
|
789
789
|
checkPendingEventExpectation();
|
790
790
|
|
791
791
|
const timeout = setTimeout(() => {
|
792
792
|
if (pendingEventExpectation?.missingEvents) {
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
793
|
+
const allLogs = veDebugEventsLog.filter(ve => {
|
794
|
+
if ('interaction' in ve) {
|
795
|
+
// Very noisy in the error and not providing context
|
796
|
+
return ve.interaction !== 'SettingAccess';
|
797
|
+
}
|
798
|
+
|
799
|
+
return true;
|
800
|
+
});
|
801
|
+
pendingEventExpectation.fail(new Error(`
|
802
|
+
Missing VE Events:
|
803
|
+
${formatVeEvents(pendingEventExpectation.missingEvents)}
|
804
|
+
Unmatched VE Events:
|
805
|
+
${formatVeEvents(pendingEventExpectation.unmatchedEvents)}
|
806
|
+
All events:
|
807
|
+
${JSON.stringify(allLogs, null, 2)}
|
808
|
+
`));
|
797
809
|
}
|
798
810
|
}, EVENT_EXPECTATION_TIMEOUT);
|
799
811
|
|
800
812
|
return await promise.finally(() => {
|
801
813
|
clearTimeout(timeout);
|
814
|
+
pendingEventExpectation = null;
|
802
815
|
});
|
803
816
|
}
|
804
817
|
|
@@ -811,7 +824,7 @@ function checkPendingEventExpectation(): void {
|
|
811
824
|
const actualEvents = [...veDebugEventsLog] as TestLogEntry[];
|
812
825
|
let partialMatch = false;
|
813
826
|
const matchedImpressions = new Set<string>();
|
814
|
-
pendingEventExpectation.
|
827
|
+
pendingEventExpectation.unmatchedEvents = [];
|
815
828
|
for (let i = 0; i < pendingEventExpectation.expectedEvents.length; ++i) {
|
816
829
|
const expectedEvent = pendingEventExpectation.expectedEvents[i];
|
817
830
|
while (true) {
|
@@ -826,9 +839,9 @@ function checkPendingEventExpectation(): void {
|
|
826
839
|
}
|
827
840
|
if (!compareVeEvents(actualEvents[i], expectedEvent)) {
|
828
841
|
if (partialMatch) {
|
829
|
-
const
|
830
|
-
if ('impressions' in
|
831
|
-
|
842
|
+
const unmatched = {...actualEvents[i]};
|
843
|
+
if ('impressions' in unmatched && 'impressions' in expectedEvent) {
|
844
|
+
unmatched.impressions = unmatched.impressions.filter(impression => {
|
832
845
|
const matched = expectedEvent.impressions.includes(impression);
|
833
846
|
if (matched) {
|
834
847
|
matchedImpressions.add(impression);
|
@@ -836,7 +849,7 @@ function checkPendingEventExpectation(): void {
|
|
836
849
|
return !matched;
|
837
850
|
});
|
838
851
|
}
|
839
|
-
pendingEventExpectation.
|
852
|
+
pendingEventExpectation.unmatchedEvents.push(unmatched);
|
840
853
|
}
|
841
854
|
actualEvents.splice(i, 1);
|
842
855
|
} else {
|
@@ -847,7 +860,6 @@ function checkPendingEventExpectation(): void {
|
|
847
860
|
}
|
848
861
|
numMatchedEvents = veDebugEventsLog.length - actualEvents.length + pendingEventExpectation.expectedEvents.length;
|
849
862
|
pendingEventExpectation.success();
|
850
|
-
pendingEventExpectation = null;
|
851
863
|
}
|
852
864
|
|
853
865
|
function getUnmatchedVeEvents(): string {
|
@@ -1598,6 +1598,7 @@ export const knownContextValues = new Set([
|
|
1598
1598
|
'font-family',
|
1599
1599
|
'font-feature-settings',
|
1600
1600
|
'font-kerning',
|
1601
|
+
'font-language-override',
|
1601
1602
|
'font-optical-sizing',
|
1602
1603
|
'font-palette',
|
1603
1604
|
'font-size',
|
@@ -2739,6 +2740,7 @@ export const knownContextValues = new Set([
|
|
2739
2740
|
'overscroll-behavior-inline',
|
2740
2741
|
'overscroll-behavior-x',
|
2741
2742
|
'overscroll-behavior-y',
|
2743
|
+
'overscroll-position',
|
2742
2744
|
'p3',
|
2743
2745
|
'pa',
|
2744
2746
|
'packetLoss',
|
@@ -3770,6 +3772,7 @@ export const knownContextValues = new Set([
|
|
3770
3772
|
'timeline.export-trace-options',
|
3771
3773
|
'timeline.export-trace-options.annotations-checkbox',
|
3772
3774
|
'timeline.export-trace-options.script-content-checkbox',
|
3775
|
+
'timeline.export-trace-options.should-compress-checkbox',
|
3773
3776
|
'timeline.export-trace-options.source-maps-checkbox',
|
3774
3777
|
'timeline.extension',
|
3775
3778
|
'timeline.field-data.configure',
|
@@ -1,33 +1,7 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2012 The Chromium Authors
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
-
// Copyright (C) 2012 Google Inc. All rights reserved.
|
6
|
-
|
7
|
-
// Redistribution and use in source and binary forms, with or without
|
8
|
-
// modification, are permitted provided that the following conditions
|
9
|
-
// are met:
|
10
|
-
|
11
|
-
// 1. Redistributions of source code must retain the above copyright
|
12
|
-
// notice, this list of conditions and the following disclaimer.
|
13
|
-
// 2. Redistributions in binary form must reproduce the above copyright
|
14
|
-
// notice, this list of conditions and the following disclaimer in the
|
15
|
-
// documentation and/or other materials provided with the distribution.
|
16
|
-
// 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
|
17
|
-
// its contributors may be used to endorse or promote products derived
|
18
|
-
// from this software without specific prior written permission.
|
19
|
-
|
20
|
-
// THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
|
21
|
-
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
22
|
-
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
23
|
-
// DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
|
24
|
-
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
25
|
-
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
26
|
-
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
27
|
-
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
28
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
29
|
-
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30
|
-
|
31
5
|
import {
|
32
6
|
type Color4D,
|
33
7
|
rgbaToHsla,
|
@@ -1,33 +1,7 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2012 The Chromium Authors
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
-
// Copyright (C) 2012 Google Inc. All rights reserved.
|
6
|
-
|
7
|
-
// Redistribution and use in source and binary forms, with or without
|
8
|
-
// modification, are permitted provided that the following conditions
|
9
|
-
// are met:
|
10
|
-
|
11
|
-
// 1. Redistributions of source code must retain the above copyright
|
12
|
-
// notice, this list of conditions and the following disclaimer.
|
13
|
-
// 2. Redistributions in binary form must reproduce the above copyright
|
14
|
-
// notice, this list of conditions and the following disclaimer in the
|
15
|
-
// documentation and/or other materials provided with the distribution.
|
16
|
-
// 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
|
17
|
-
// its contributors may be used to endorse or promote products derived
|
18
|
-
// from this software without specific prior written permission.
|
19
|
-
|
20
|
-
// THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
|
21
|
-
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
22
|
-
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
23
|
-
// DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
|
24
|
-
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
25
|
-
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
26
|
-
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
27
|
-
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
28
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
29
|
-
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30
|
-
|
31
5
|
import type {AreaBounds, Bounds} from './common.js';
|
32
6
|
import {drawGridLabels, type GridLabelState, isHorizontalWritingMode} from './css_grid_label_helpers.js';
|
33
7
|
import {applyMatrixToPoint, buildPath, emptyBounds, hatchFillPath} from './highlight_common.js';
|
@@ -1,33 +1,7 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2012 The Chromium Authors
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
-
// Copyright (C) 2012 Google Inc. All rights reserved.
|
6
|
-
|
7
|
-
// Redistribution and use in source and binary forms, with or without
|
8
|
-
// modification, are permitted provided that the following conditions
|
9
|
-
// are met:
|
10
|
-
|
11
|
-
// 1. Redistributions of source code must retain the above copyright
|
12
|
-
// notice, this list of conditions and the following disclaimer.
|
13
|
-
// 2. Redistributions in binary form must reproduce the above copyright
|
14
|
-
// notice, this list of conditions and the following disclaimer in the
|
15
|
-
// documentation and/or other materials provided with the distribution.
|
16
|
-
// 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
|
17
|
-
// its contributors may be used to endorse or promote products derived
|
18
|
-
// from this software without specific prior written permission.
|
19
|
-
|
20
|
-
// THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
|
21
|
-
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
22
|
-
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
23
|
-
// DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
|
24
|
-
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
25
|
-
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
26
|
-
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
27
|
-
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
28
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
29
|
-
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30
|
-
|
31
5
|
import {
|
32
6
|
contrastRatio,
|
33
7
|
contrastRatioAPCA,
|
@@ -1,33 +1,7 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2012 The Chromium Authors
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
-
// Copyright (C) 2012 Google Inc. All rights reserved.
|
6
|
-
|
7
|
-
// Redistribution and use in source and binary forms, with or without
|
8
|
-
// modification, are permitted provided that the following conditions
|
9
|
-
// are met:
|
10
|
-
|
11
|
-
// 1. Redistributions of source code must retain the above copyright
|
12
|
-
// notice, this list of conditions and the following disclaimer.
|
13
|
-
// 2. Redistributions in binary form must reproduce the above copyright
|
14
|
-
// notice, this list of conditions and the following disclaimer in the
|
15
|
-
// documentation and/or other materials provided with the distribution.
|
16
|
-
// 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
|
17
|
-
// its contributors may be used to endorse or promote products derived
|
18
|
-
// from this software without specific prior written permission.
|
19
|
-
|
20
|
-
// THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
|
21
|
-
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
22
|
-
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
23
|
-
// DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
|
24
|
-
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
25
|
-
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
26
|
-
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
27
|
-
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
28
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
29
|
-
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30
|
-
|
31
5
|
import {Overlay, type ResetData} from './common.js';
|
32
6
|
import {type Delegate, DragResizeHandler, ResizerType} from './drag_resize_handler.js';
|
33
7
|
import {type ContainerQueryHighlight, drawContainerQueryHighlight} from './highlight_container_query.js';
|
@@ -1,33 +1,7 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2012 The Chromium Authors
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
-
// Copyright (C) 2012 Google Inc. All rights reserved.
|
6
|
-
|
7
|
-
// Redistribution and use in source and binary forms, with or without
|
8
|
-
// modification, are permitted provided that the following conditions
|
9
|
-
// are met:
|
10
|
-
|
11
|
-
// 1. Redistributions of source code must retain the above copyright
|
12
|
-
// notice, this list of conditions and the following disclaimer.
|
13
|
-
// 2. Redistributions in binary form must reproduce the above copyright
|
14
|
-
// notice, this list of conditions and the following disclaimer in the
|
15
|
-
// documentation and/or other materials provided with the distribution.
|
16
|
-
// 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
|
17
|
-
// its contributors may be used to endorse or promote products derived
|
18
|
-
// from this software without specific prior written permission.
|
19
|
-
|
20
|
-
// THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
|
21
|
-
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
22
|
-
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
23
|
-
// DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
|
24
|
-
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
25
|
-
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
26
|
-
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
27
|
-
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
28
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
29
|
-
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30
|
-
|
31
5
|
import {type Bounds, createChild, Overlay, type ResetData} from './common.js';
|
32
6
|
import {buildPath, emptyBounds, type PathBounds} from './highlight_common.js';
|
33
7
|
|
package/package.json
CHANGED
@@ -23,8 +23,8 @@
|
|
23
23
|
"collect-strings": "vpython3 third_party/node/node.py --output third_party/i18n/collect-strings.js front_end",
|
24
24
|
"components-server": "vpython3 third_party/node/node.py --output scripts/component_server/server.js",
|
25
25
|
"debug-webtest": "vpython3 third_party/node/node.py --output scripts/npm_test.js --debug-devtools",
|
26
|
-
"generate-protocol-resources": "scripts/deps/generate_protocol_resources.py && git cl format --js",
|
27
|
-
"install-deps": "scripts/deps/manage_node_deps.py",
|
26
|
+
"generate-protocol-resources": "vpython3 scripts/deps/generate_protocol_resources.py && git cl format --js",
|
27
|
+
"install-deps": "vpython3 scripts/deps/manage_node_deps.py",
|
28
28
|
"lint": "vpython3 third_party/node/node.py --output --experimental-strip-types --no-warnings=ExperimentalWarning scripts/test/run_lint_check.mjs",
|
29
29
|
"prebuild": "gn gen out/Default",
|
30
30
|
"rdb": "rdb stream -new -realm chromium:public --",
|
@@ -102,5 +102,5 @@
|
|
102
102
|
"@eslint/core": "0.15.1"
|
103
103
|
}
|
104
104
|
},
|
105
|
-
"version": "1.0.
|
105
|
+
"version": "1.0.1515988"
|
106
106
|
}
|