chrome-devtools-frontend 1.0.1666631 → 1.0.1667564
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/host/AidaClient.ts +6 -4
- package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -0
- package/front_end/core/host/InspectorFrontendHostStub.ts +3 -3
- package/front_end/core/host/UserMetrics.ts +49 -1
- package/front_end/core/sdk/CSSMatchedStyles.ts +2 -5
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +12 -0
- package/front_end/core/sdk/Connections.ts +1 -1
- package/front_end/core/sdk/DOMModel.test.api.ts +104 -0
- package/front_end/core/sdk/DOMModel.ts +23 -11
- package/front_end/core/sdk/DebuggerModel.ts +9 -9
- package/front_end/core/sdk/IsolateManager.ts +1 -1
- package/front_end/core/sdk/NetworkManager.ts +105 -4
- package/front_end/core/sdk/OverlayModel.ts +15 -14
- package/front_end/core/sdk/RemoteObject.ts +1 -1
- package/front_end/devtools_compatibility.js +1 -0
- package/front_end/entrypoints/main/MainImpl.ts +5 -2
- package/front_end/entrypoints/main/SimpleApp.ts +9 -3
- package/front_end/foundation/Universe.ts +6 -0
- package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +23 -10
- package/front_end/models/computed_style/ComputedStyleModel.ts +4 -7
- package/front_end/models/crux-manager/CrUXManager.ts +4 -0
- package/front_end/models/extensions/ExtensionAPI.ts +3 -3
- package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +2 -2
- package/front_end/models/live-metrics/LiveMetrics.ts +59 -19
- package/front_end/models/live-metrics/web-vitals-injected/README.md +1 -1
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +6 -1
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +11 -3
- package/front_end/models/logs/LogManager.ts +1 -1
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +1 -1
- package/front_end/models/source_map_scopes/FunctionCodeResolver.ts +6 -7
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +13 -14
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +15 -7
- package/front_end/panels/application/BackgroundServiceView.ts +18 -20
- package/front_end/panels/autofill/AutofillView.ts +17 -17
- package/front_end/panels/autofill/autofillView.css +7 -8
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +31 -31
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +15 -15
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +12 -12
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +27 -27
- package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +14 -6
- package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +14 -6
- package/front_end/panels/common/AiCodeCompletionTeaser.ts +13 -6
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +1 -1
- package/front_end/panels/console/ConsoleInsightTeaser.ts +13 -6
- package/front_end/panels/console/ConsoleView.ts +6 -6
- package/front_end/panels/console_counters/WarningErrorCounter.ts +4 -4
- package/front_end/panels/coverage/CoverageModel.ts +11 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +50 -17
- package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +18 -7
- package/front_end/panels/emulation/AdvancedApp.ts +18 -8
- package/front_end/panels/event_listeners/EventListenersView.ts +8 -8
- package/front_end/panels/explain/components/ConsoleInsight.ts +15 -7
- package/front_end/panels/network/NetworkLogView.ts +13 -14
- package/front_end/panels/screencast/ScreencastApp.ts +12 -6
- package/front_end/panels/screencast/ScreencastView.ts +37 -11
- package/front_end/panels/sensors/locationsSettingsTab.css +4 -0
- package/front_end/panels/settings/AISettingsTab.ts +13 -6
- package/front_end/panels/sources/DebuggerPlugin.ts +13 -2
- package/front_end/panels/timeline/components/LiveMetricsView.ts +14 -1
- package/front_end/panels/timeline/components/cpuThrottlingSelector.css +4 -0
- package/front_end/panels/timeline/components/liveMetricsView.css +28 -0
- package/front_end/panels/timeline/timeline-meta.ts +13 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/menus/menu.css +4 -0
- package/front_end/ui/components/menus/menuItem.css +4 -0
- package/front_end/ui/components/menus/selectMenu.css +4 -0
- package/front_end/ui/components/menus/selectMenuButton.css +4 -0
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +21 -10
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +22 -10
- package/front_end/ui/components/text_editor/config.ts +7 -0
- package/front_end/ui/legacy/AppProvider.ts +2 -1
- package/front_end/ui/legacy/RootView.ts +8 -1
- package/front_end/ui/legacy/UniverseRequestEvent.ts +19 -0
- package/front_end/ui/legacy/Widget.ts +49 -6
- package/front_end/ui/legacy/inspectorCommon.css +1 -1
- package/front_end/ui/legacy/legacy.ts +2 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
- package/package.json +1 -1
|
@@ -960,7 +960,8 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
960
960
|
const {forceNew} = opts;
|
|
961
961
|
if (!panelInstance || forceNew) {
|
|
962
962
|
const aidaClient = new Host.AidaClient.AidaClient();
|
|
963
|
-
const aidaAvailability =
|
|
963
|
+
const aidaAvailability = Host.AidaClient.HostConfigTracker.instance().aidaAvailability ??
|
|
964
|
+
await Host.AidaClient.AidaClient.checkAccessPreconditions();
|
|
964
965
|
panelInstance = new AiAssistancePanel(defaultView, {aidaClient, aidaAvailability});
|
|
965
966
|
}
|
|
966
967
|
|
|
@@ -1129,7 +1130,6 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
1129
1130
|
super.wasShown();
|
|
1130
1131
|
this.#viewOutput.chatView?.restoreScrollPosition();
|
|
1131
1132
|
this.#viewOutput.chatView?.focusTextInput();
|
|
1132
|
-
void this.#handleAidaAvailabilityChange();
|
|
1133
1133
|
this.#selectedElement =
|
|
1134
1134
|
createDOMNodeContext(selectedElementFilter(UI.Context.Context.instance().flavor(SDK.DOMModel.DOMNode)));
|
|
1135
1135
|
this.#selectedRequest =
|
|
@@ -1147,6 +1147,10 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
1147
1147
|
this.#aiAssistanceEnabledSetting?.addChangeListener(this.requestUpdate, this);
|
|
1148
1148
|
Host.AidaClient.HostConfigTracker.instance().addEventListener(
|
|
1149
1149
|
Host.AidaClient.Events.AIDA_AVAILABILITY_CHANGED, this.#handleAidaAvailabilityChange);
|
|
1150
|
+
const initialAvailability = Host.AidaClient.HostConfigTracker.instance().aidaAvailability;
|
|
1151
|
+
if (initialAvailability !== undefined) {
|
|
1152
|
+
this.#updateAidaAvailability(initialAvailability);
|
|
1153
|
+
}
|
|
1150
1154
|
this.#toggleSearchElementAction?.addEventListener(UI.ActionRegistration.Events.TOGGLED, this.requestUpdate, this);
|
|
1151
1155
|
|
|
1152
1156
|
UI.Context.Context.instance().addFlavorChangeListener(SDK.DOMModel.DOMNode, this.#handleDOMNodeFlavorChange);
|
|
@@ -1226,13 +1230,17 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
1226
1230
|
}
|
|
1227
1231
|
}
|
|
1228
1232
|
|
|
1229
|
-
#
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
this.#aidaAvailability = currentAidaAvailability;
|
|
1233
|
+
#updateAidaAvailability(aidaAvailability: Host.AidaClient.AidaAccessPreconditions): void {
|
|
1234
|
+
if (aidaAvailability !== this.#aidaAvailability) {
|
|
1235
|
+
this.#aidaAvailability = aidaAvailability;
|
|
1233
1236
|
this.requestUpdate();
|
|
1234
1237
|
}
|
|
1235
|
-
}
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
#handleAidaAvailabilityChange =
|
|
1241
|
+
(ev: Common.EventTarget.EventTargetEvent<Host.AidaClient.AidaAccessPreconditions>): void => {
|
|
1242
|
+
this.#updateAidaAvailability(ev.data);
|
|
1243
|
+
};
|
|
1236
1244
|
|
|
1237
1245
|
#handleDOMNodeFlavorChange = (ev: Common.EventTarget.EventTargetEvent<SDK.DOMModel.DOMNode>): void => {
|
|
1238
1246
|
if (this.#selectedElement?.getItem() === ev.data) {
|
|
@@ -17,6 +17,7 @@ import * as DataGrid from '../../ui/legacy/components/data_grid/data_grid.js';
|
|
|
17
17
|
// eslint-disable-next-line @devtools/es-modules-import
|
|
18
18
|
import emptyWidgetStyles from '../../ui/legacy/emptyWidget.css.js';
|
|
19
19
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
20
|
+
import {html, render} from '../../ui/lit/lit.js';
|
|
20
21
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
21
22
|
|
|
22
23
|
import {type BackgroundServiceModel, Events} from './BackgroundServiceModel.js';
|
|
@@ -554,26 +555,23 @@ export class EventDataNode extends DataGrid.DataGrid.DataGridNode<EventData> {
|
|
|
554
555
|
preview.element.classList.add('background-service-metadata');
|
|
555
556
|
preview.element.setAttribute('jslog', `${VisualLogging.section('metadata')}`);
|
|
556
557
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
i18nString(UIStrings.empty)
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
i18nString(UIStrings.noMetadataForThisEvent);
|
|
575
|
-
preview.element.appendChild(div);
|
|
576
|
-
}
|
|
558
|
+
// clang-format off
|
|
559
|
+
// eslint-disable-next-line @devtools/no-lit-render-outside-of-view
|
|
560
|
+
render(
|
|
561
|
+
html`${this.eventMetadata.length > 0 ? this.eventMetadata.map(entry => html`
|
|
562
|
+
<div class="background-service-metadata-entry">
|
|
563
|
+
<div class="background-service-metadata-name">${entry.key}: </div>${
|
|
564
|
+
entry.value ?
|
|
565
|
+
html`<div class="background-service-metadata-value source-code">${entry.value}</div>` :
|
|
566
|
+
html`<div class="background-service-metadata-value background-service-empty-value">${i18nString(UIStrings.empty)}</div>`}
|
|
567
|
+
</div>
|
|
568
|
+
`) : html`
|
|
569
|
+
<div class="background-service-metadata-entry">
|
|
570
|
+
<div class="background-service-metadata-name background-service-empty-value">${i18nString(UIStrings.noMetadataForThisEvent)}</div>
|
|
571
|
+
</div>
|
|
572
|
+
`}`,
|
|
573
|
+
preview.element, {host: this});
|
|
574
|
+
// clang-format on
|
|
577
575
|
|
|
578
576
|
return preview;
|
|
579
577
|
}
|
|
@@ -260,24 +260,24 @@ const DEFAULT_VIEW: View = (input: ViewInput, _output: ViewOutput, target: HTMLE
|
|
|
260
260
|
<style>${UI.inspectorCommonStyles}</style>
|
|
261
261
|
<main>
|
|
262
262
|
<div class="content-container" jslog=${VisualLogging.pane('autofill')}>
|
|
263
|
-
<div class="
|
|
264
|
-
<div class="
|
|
265
|
-
<
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
<
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
</devtools-checkbox>
|
|
278
|
-
</div>
|
|
279
|
-
<devtools-link href=${AUTOFILL_FEEDBACK_URL} class="feedback link" jslogcontext="feedback">${i18nString(UIStrings.sendFeedback)}</devtools-link>
|
|
263
|
+
<div class="header">
|
|
264
|
+
<div class="label-container">
|
|
265
|
+
<devtools-checkbox
|
|
266
|
+
${bindToSetting(input.showTestAddressesInAutofillMenuSetting)}
|
|
267
|
+
title=${i18nString(UIStrings.showTestAddressesInAutofillMenu)}>
|
|
268
|
+
${i18nString(UIStrings.showTestAddressesInAutofillMenu)}
|
|
269
|
+
</devtools-checkbox>
|
|
270
|
+
</div>
|
|
271
|
+
<div class="label-container">
|
|
272
|
+
<devtools-checkbox
|
|
273
|
+
${bindToSetting(input.autoOpenViewSetting)}
|
|
274
|
+
title=${i18nString(UIStrings.autoShowTooltip)}>
|
|
275
|
+
${i18nString(UIStrings.autoShow)}
|
|
276
|
+
</devtools-checkbox>
|
|
280
277
|
</div>
|
|
278
|
+
<devtools-link href=${AUTOFILL_FEEDBACK_URL} class="feedback link" jslogcontext="feedback">${i18nString(UIStrings.sendFeedback)}</devtools-link>
|
|
279
|
+
</div>
|
|
280
|
+
<div role="region" aria-label=${i18nString(UIStrings.addressPreview)}>
|
|
281
281
|
${renderAddress()}
|
|
282
282
|
</div>
|
|
283
283
|
${renderFilledFields()}
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
@scope to (devtools-widget > *) {
|
|
8
8
|
main {
|
|
9
9
|
height: 100%;
|
|
10
|
+
overflow: auto;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.header {
|
|
13
14
|
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
14
16
|
border-bottom: 1px solid var(--sys-color-divider);
|
|
15
17
|
width: 100%;
|
|
16
18
|
}
|
|
@@ -20,11 +22,12 @@
|
|
|
20
22
|
display: flex;
|
|
21
23
|
justify-content: center;
|
|
22
24
|
align-items: center;
|
|
25
|
+
overflow: auto;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
.address {
|
|
26
29
|
padding: 10px;
|
|
27
|
-
|
|
30
|
+
border-bottom: 1px solid var(--sys-color-divider);
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
.filled-fields-grid {
|
|
@@ -36,10 +39,12 @@
|
|
|
36
39
|
display: flex;
|
|
37
40
|
flex-flow: column;
|
|
38
41
|
height: 100%;
|
|
42
|
+
overflow: auto;
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
.grid-wrapper {
|
|
42
46
|
flex-grow: 1;
|
|
47
|
+
min-height: 0;
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
devtools-data-grid {
|
|
@@ -52,13 +57,6 @@
|
|
|
52
57
|
align-items: center;
|
|
53
58
|
}
|
|
54
59
|
|
|
55
|
-
.right-to-left {
|
|
56
|
-
border-bottom: 1px solid var(--sys-color-divider);
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-flow: row-reverse wrap;
|
|
59
|
-
justify-content: flex-end;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
60
|
.label-container {
|
|
63
61
|
padding: 5px;
|
|
64
62
|
display: flex;
|
|
@@ -68,6 +66,7 @@
|
|
|
68
66
|
.top-left-corner {
|
|
69
67
|
border-bottom: 1px solid var(--sys-color-divider);
|
|
70
68
|
display: flex;
|
|
69
|
+
flex-wrap: wrap;
|
|
71
70
|
padding: 5px;
|
|
72
71
|
gap: 10px;
|
|
73
72
|
}
|
|
@@ -14,23 +14,23 @@ import categorizedBreakpointsSidebarPaneStyles from './categorizedBreakpointsSid
|
|
|
14
14
|
|
|
15
15
|
const UIStrings = {
|
|
16
16
|
/**
|
|
17
|
-
* @description Category of breakpoints
|
|
17
|
+
* @description Category of event listener breakpoints for Ad Auction Worklet events.
|
|
18
18
|
*/
|
|
19
|
-
auctionWorklet: 'Ad
|
|
19
|
+
auctionWorklet: 'Ad auction worklet',
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Category of event listener breakpoints for animation events.
|
|
22
22
|
*/
|
|
23
23
|
animation: 'Animation',
|
|
24
24
|
/**
|
|
25
|
-
* @description Screen reader description of a hit breakpoint in the Sources panel
|
|
25
|
+
* @description Screen reader description of a hit breakpoint in the Sources panel.
|
|
26
26
|
*/
|
|
27
27
|
breakpointHit: 'breakpoint hit',
|
|
28
28
|
/**
|
|
29
|
-
* @description
|
|
29
|
+
* @description Category of event listener breakpoints for canvas events.
|
|
30
30
|
*/
|
|
31
31
|
canvas: 'Canvas',
|
|
32
32
|
/**
|
|
33
|
-
* @description
|
|
33
|
+
* @description Category of event listener breakpoints for clipboard events.
|
|
34
34
|
*/
|
|
35
35
|
clipboard: 'Clipboard',
|
|
36
36
|
/**
|
|
@@ -38,87 +38,87 @@ const UIStrings = {
|
|
|
38
38
|
*/
|
|
39
39
|
control: 'Control',
|
|
40
40
|
/**
|
|
41
|
-
* @description
|
|
41
|
+
* @description Category of event listener breakpoints for device events.
|
|
42
42
|
*/
|
|
43
43
|
device: 'Device',
|
|
44
44
|
/**
|
|
45
|
-
* @description
|
|
45
|
+
* @description Category of event listener breakpoints for DOM mutation events.
|
|
46
46
|
*/
|
|
47
|
-
domMutation: 'DOM
|
|
47
|
+
domMutation: 'DOM mutation',
|
|
48
48
|
/**
|
|
49
|
-
* @description
|
|
49
|
+
* @description Category of event listener breakpoints for drag and drop events.
|
|
50
50
|
*/
|
|
51
51
|
dragDrop: 'Drag / drop',
|
|
52
52
|
/**
|
|
53
|
-
* @description
|
|
53
|
+
* @description Category of event listener breakpoints for geolocation events.
|
|
54
54
|
*/
|
|
55
55
|
geolocation: 'Geolocation',
|
|
56
56
|
/**
|
|
57
|
-
* @description
|
|
57
|
+
* @description Category of event listener breakpoints for keyboard events.
|
|
58
58
|
*/
|
|
59
59
|
keyboard: 'Keyboard',
|
|
60
60
|
/**
|
|
61
|
-
* @description
|
|
61
|
+
* @description Category of event listener breakpoints for load events.
|
|
62
62
|
*/
|
|
63
63
|
load: 'Load',
|
|
64
64
|
/**
|
|
65
|
-
* @description
|
|
65
|
+
* @description Category of event listener breakpoints for media events.
|
|
66
66
|
*/
|
|
67
67
|
media: 'Media',
|
|
68
68
|
/**
|
|
69
|
-
* @description
|
|
69
|
+
* @description Category of event listener breakpoints for mouse events.
|
|
70
70
|
*/
|
|
71
71
|
mouse: 'Mouse',
|
|
72
72
|
/**
|
|
73
|
-
* @description
|
|
73
|
+
* @description Category of event listener breakpoints for notification events.
|
|
74
74
|
*/
|
|
75
75
|
notification: 'Notification',
|
|
76
76
|
/**
|
|
77
|
-
* @description
|
|
77
|
+
* @description Category of event listener breakpoints for parse events.
|
|
78
78
|
*/
|
|
79
79
|
parse: 'Parse',
|
|
80
80
|
/**
|
|
81
|
-
* @description
|
|
81
|
+
* @description Category of event listener breakpoints for picture-in-picture events.
|
|
82
82
|
*/
|
|
83
|
-
pictureinpicture: 'Picture-in-
|
|
83
|
+
pictureinpicture: 'Picture-in-picture',
|
|
84
84
|
/**
|
|
85
|
-
* @description
|
|
85
|
+
* @description Category of event listener breakpoints for pointer events.
|
|
86
86
|
*/
|
|
87
87
|
pointer: 'Pointer',
|
|
88
88
|
/**
|
|
89
|
-
* @description
|
|
89
|
+
* @description Category of event listener breakpoints for script events.
|
|
90
90
|
*/
|
|
91
91
|
script: 'Script',
|
|
92
92
|
/**
|
|
93
|
-
* @description Category of breakpoints
|
|
93
|
+
* @description Category of event listener breakpoints for shared storage worklet events.
|
|
94
94
|
*/
|
|
95
|
-
sharedStorageWorklet: 'Shared
|
|
95
|
+
sharedStorageWorklet: 'Shared storage worklet',
|
|
96
96
|
/**
|
|
97
|
-
* @description
|
|
97
|
+
* @description Category of event listener breakpoints for timer events.
|
|
98
98
|
*/
|
|
99
99
|
timer: 'Timer',
|
|
100
100
|
/**
|
|
101
|
-
* @description
|
|
101
|
+
* @description Category of event listener breakpoints for touch events.
|
|
102
102
|
*/
|
|
103
103
|
touch: 'Touch',
|
|
104
104
|
/**
|
|
105
|
-
* @description
|
|
105
|
+
* @description Category of event listener breakpoints for Trusted Type violations.
|
|
106
106
|
*/
|
|
107
|
-
trustedTypeViolations: 'Trusted Type
|
|
107
|
+
trustedTypeViolations: '`Trusted Type` violations',
|
|
108
108
|
/**
|
|
109
|
-
* @description
|
|
109
|
+
* @description Category of event listener breakpoints for WebAudio events.
|
|
110
110
|
*/
|
|
111
111
|
webaudio: 'WebAudio',
|
|
112
112
|
/**
|
|
113
|
-
* @description
|
|
113
|
+
* @description Category of event listener breakpoints for window events.
|
|
114
114
|
*/
|
|
115
115
|
window: 'Window',
|
|
116
116
|
/**
|
|
117
|
-
* @description
|
|
117
|
+
* @description Category of event listener breakpoints for worker events.
|
|
118
118
|
*/
|
|
119
119
|
worker: 'Worker',
|
|
120
120
|
/**
|
|
121
|
-
* @description
|
|
121
|
+
* @description Category of event listener breakpoints for XHR events.
|
|
122
122
|
*/
|
|
123
123
|
xhr: 'XHR',
|
|
124
124
|
} as const;
|
|
@@ -17,25 +17,25 @@ import domBreakpointsSidebarPaneStyles from './domBreakpointsSidebarPane.css.js'
|
|
|
17
17
|
|
|
18
18
|
const UIStrings = {
|
|
19
19
|
/**
|
|
20
|
-
* @description Header text to indicate there are no breakpoints
|
|
20
|
+
* @description Header text to indicate there are no DOM breakpoints.
|
|
21
21
|
*/
|
|
22
22
|
noBreakpoints: 'No DOM breakpoints',
|
|
23
23
|
/**
|
|
24
|
-
* @description
|
|
24
|
+
* @description Description shown when no DOM breakpoints are set.
|
|
25
25
|
*/
|
|
26
26
|
domBreakpointsDescription: 'DOM breakpoints pause on the code that changes a DOM node or its children.',
|
|
27
27
|
/**
|
|
28
|
-
* @description Accessibility label for the DOM breakpoints list in the Sources panel
|
|
28
|
+
* @description Accessibility label for the DOM breakpoints list in the Sources panel.
|
|
29
29
|
*/
|
|
30
|
-
domBreakpointsList: 'DOM
|
|
30
|
+
domBreakpointsList: 'DOM breakpoints list',
|
|
31
31
|
/**
|
|
32
|
-
* @description Text with two placeholders separated by a colon
|
|
32
|
+
* @description Text with two placeholders separated by a colon.
|
|
33
33
|
* @example {Node removed} PH1
|
|
34
34
|
* @example {div#id1} PH2
|
|
35
35
|
*/
|
|
36
36
|
sS: '{PH1}: {PH2}',
|
|
37
37
|
/**
|
|
38
|
-
* @description Text with three placeholders separated by a colon and a comma
|
|
38
|
+
* @description Text with three placeholders separated by a colon and a comma.
|
|
39
39
|
* @example {Node removed} PH1
|
|
40
40
|
* @example {div#id1} PH2
|
|
41
41
|
* @example {checked} PH3
|
|
@@ -55,7 +55,7 @@ const UIStrings = {
|
|
|
55
55
|
*/
|
|
56
56
|
sBreakpointHit: '{PH1} breakpoint hit',
|
|
57
57
|
/**
|
|
58
|
-
* @description Screen reader description of a hit breakpoint in the Sources panel
|
|
58
|
+
* @description Screen reader description of a hit breakpoint in the Sources panel.
|
|
59
59
|
*/
|
|
60
60
|
breakpointHit: 'breakpoint hit',
|
|
61
61
|
/**
|
|
@@ -63,30 +63,30 @@ const UIStrings = {
|
|
|
63
63
|
*/
|
|
64
64
|
revealDomNodeInElementsPanel: 'Reveal DOM node in Elements panel',
|
|
65
65
|
/**
|
|
66
|
-
* @description
|
|
66
|
+
* @description Context menu item to remove a breakpoint.
|
|
67
67
|
*/
|
|
68
68
|
removeBreakpoint: 'Remove breakpoint',
|
|
69
69
|
/**
|
|
70
|
-
* @description
|
|
70
|
+
* @description Context menu item in the DOM Breakpoints sidebar of the Sources panel or the Elements panel to remove all DOM breakpoints.
|
|
71
71
|
*/
|
|
72
72
|
removeAllDomBreakpoints: 'Remove all DOM breakpoints',
|
|
73
73
|
/**
|
|
74
|
-
* @description
|
|
74
|
+
* @description Label for subtree modified DOM breakpoint type.
|
|
75
75
|
*/
|
|
76
76
|
subtreeModified: 'Subtree modified',
|
|
77
77
|
/**
|
|
78
|
-
* @description
|
|
78
|
+
* @description Label for attribute modified DOM breakpoint type.
|
|
79
79
|
*/
|
|
80
80
|
attributeModified: 'Attribute modified',
|
|
81
81
|
/**
|
|
82
|
-
* @description
|
|
82
|
+
* @description Label for node removed DOM breakpoint type.
|
|
83
83
|
*/
|
|
84
84
|
nodeRemoved: 'Node removed',
|
|
85
85
|
/**
|
|
86
|
-
* @description Entry in context menu of the
|
|
86
|
+
* @description Entry in context menu of the Elements panel, allowing developers to select a DOM
|
|
87
87
|
* breakpoint for the element that they have right-clicked on. Short for the action 'set a
|
|
88
|
-
* breakpoint on this DOM
|
|
89
|
-
* specified line, or when a specific action
|
|
88
|
+
* breakpoint on this DOM element'. A breakpoint pauses the website when the code reaches a
|
|
89
|
+
* specified line, or when a specific action happens (in this case, when the DOM element is
|
|
90
90
|
* modified).
|
|
91
91
|
*/
|
|
92
92
|
breakOn: 'Break on',
|
|
@@ -18,11 +18,11 @@ const {classMap, ifDefined, ref} = Directives;
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description Title of the
|
|
21
|
+
* @description Title of the XHR/fetch breakpoints sidebar in the Sources panel.
|
|
22
22
|
*/
|
|
23
|
-
xhrfetchBreakpoints: 'XHR/fetch
|
|
23
|
+
xhrfetchBreakpoints: 'XHR/fetch breakpoints',
|
|
24
24
|
/**
|
|
25
|
-
* @description Text to indicate there are no breakpoints
|
|
25
|
+
* @description Text to indicate there are no XHR/fetch breakpoints.
|
|
26
26
|
*/
|
|
27
27
|
noBreakpoints: 'No breakpoints',
|
|
28
28
|
/**
|
|
@@ -30,36 +30,36 @@ const UIStrings = {
|
|
|
30
30
|
*/
|
|
31
31
|
addXhrfetchBreakpoint: 'Add XHR/fetch breakpoint',
|
|
32
32
|
/**
|
|
33
|
-
* @description
|
|
33
|
+
* @description Context menu item to add an XHR/fetch breakpoint.
|
|
34
34
|
*/
|
|
35
35
|
addBreakpoint: 'Add breakpoint',
|
|
36
36
|
/**
|
|
37
|
-
* @description
|
|
37
|
+
* @description Text preceding the input field to add an XHR/fetch breakpoint in the Sources panel.
|
|
38
38
|
*/
|
|
39
39
|
breakWhenUrlContains: 'Break when URL contains:',
|
|
40
40
|
/**
|
|
41
|
-
* @description Accessible label for XHR/fetch breakpoint text input
|
|
41
|
+
* @description Accessible label for XHR/fetch breakpoint text input.
|
|
42
42
|
*/
|
|
43
|
-
urlBreakpoint: 'URL
|
|
43
|
+
urlBreakpoint: 'URL breakpoint',
|
|
44
44
|
/**
|
|
45
|
-
* @description
|
|
45
|
+
* @description Label for an XHR/fetch breakpoint targeting a specific URL in the Sources panel.
|
|
46
46
|
* @example {example.com} PH1
|
|
47
47
|
*/
|
|
48
48
|
urlContainsS: 'URL contains "{PH1}"',
|
|
49
49
|
/**
|
|
50
|
-
* @description
|
|
50
|
+
* @description Label for an XHR/fetch breakpoint matching any XHR or fetch request in the Sources panel.
|
|
51
51
|
*/
|
|
52
52
|
anyXhrOrFetch: 'Any XHR or fetch',
|
|
53
53
|
/**
|
|
54
|
-
* @description Screen reader description of a hit breakpoint in the Sources panel
|
|
54
|
+
* @description Screen reader description of a hit breakpoint in the Sources panel.
|
|
55
55
|
*/
|
|
56
56
|
breakpointHit: 'breakpoint hit',
|
|
57
57
|
/**
|
|
58
|
-
* @description
|
|
58
|
+
* @description Context menu item to remove all XHR/fetch breakpoints.
|
|
59
59
|
*/
|
|
60
60
|
removeAllBreakpoints: 'Remove all breakpoints',
|
|
61
61
|
/**
|
|
62
|
-
* @description
|
|
62
|
+
* @description Context menu item to remove an XHR/fetch breakpoint.
|
|
63
63
|
*/
|
|
64
64
|
removeBreakpoint: 'Remove breakpoint',
|
|
65
65
|
} as const;
|
|
@@ -12,71 +12,71 @@ import type * as BrowserDebugger from './browser_debugger.js';
|
|
|
12
12
|
|
|
13
13
|
const UIStrings = {
|
|
14
14
|
/**
|
|
15
|
-
* @description Command for showing the
|
|
15
|
+
* @description Command for showing the Event listener breakpoints sidebar in the Sources panel.
|
|
16
16
|
*/
|
|
17
|
-
showEventListenerBreakpoints: 'Show Event
|
|
17
|
+
showEventListenerBreakpoints: 'Show Event listener breakpoints',
|
|
18
18
|
/**
|
|
19
|
-
* @description Title of the
|
|
19
|
+
* @description Title of the Event listener breakpoints sidebar in the Sources panel.
|
|
20
20
|
*/
|
|
21
|
-
eventListenerBreakpoints: 'Event
|
|
21
|
+
eventListenerBreakpoints: 'Event listener breakpoints',
|
|
22
22
|
/**
|
|
23
|
-
* @description
|
|
23
|
+
* @description Command for showing the CSP violation breakpoints sidebar in the Sources panel.
|
|
24
24
|
*/
|
|
25
|
-
showCspViolationBreakpoints: 'Show CSP
|
|
25
|
+
showCspViolationBreakpoints: 'Show CSP violation breakpoints',
|
|
26
26
|
/**
|
|
27
|
-
* @description Title of the
|
|
27
|
+
* @description Title of the CSP violation breakpoints sidebar in the Sources panel.
|
|
28
28
|
*/
|
|
29
|
-
cspViolationBreakpoints: 'CSP
|
|
29
|
+
cspViolationBreakpoints: 'CSP violation breakpoints',
|
|
30
30
|
/**
|
|
31
|
-
* @description Command for showing the
|
|
31
|
+
* @description Command for showing the XHR/fetch breakpoints sidebar in the Sources panel.
|
|
32
32
|
*/
|
|
33
|
-
showXhrfetchBreakpoints: 'Show XHR/fetch
|
|
33
|
+
showXhrfetchBreakpoints: 'Show XHR/fetch breakpoints',
|
|
34
34
|
/**
|
|
35
|
-
* @description Title of the
|
|
35
|
+
* @description Title of the XHR/fetch breakpoints sidebar in the Sources panel.
|
|
36
36
|
*/
|
|
37
|
-
xhrfetchBreakpoints: 'XHR/fetch
|
|
37
|
+
xhrfetchBreakpoints: 'XHR/fetch breakpoints',
|
|
38
38
|
/**
|
|
39
|
-
* @description Command for showing the
|
|
39
|
+
* @description Command for showing the DOM breakpoints sidebar.
|
|
40
40
|
*/
|
|
41
|
-
showDomBreakpoints: 'Show DOM
|
|
41
|
+
showDomBreakpoints: 'Show DOM breakpoints',
|
|
42
42
|
/**
|
|
43
|
-
* @description Title of the
|
|
43
|
+
* @description Title of the DOM breakpoints sidebar.
|
|
44
44
|
*/
|
|
45
|
-
domBreakpoints: 'DOM
|
|
45
|
+
domBreakpoints: 'DOM breakpoints',
|
|
46
46
|
/**
|
|
47
|
-
* @description Command for showing the
|
|
47
|
+
* @description Command for showing the Global listeners sidebar in the Sources panel.
|
|
48
48
|
*/
|
|
49
|
-
showGlobalListeners: 'Show Global
|
|
49
|
+
showGlobalListeners: 'Show Global listeners',
|
|
50
50
|
/**
|
|
51
|
-
* @description Title of the
|
|
51
|
+
* @description Title of the Global listeners sidebar in the Sources panel.
|
|
52
52
|
*/
|
|
53
|
-
globalListeners: 'Global
|
|
53
|
+
globalListeners: 'Global listeners',
|
|
54
54
|
/**
|
|
55
|
-
* @description
|
|
55
|
+
* @description Title of the Page tab in the Sources panel.
|
|
56
56
|
*/
|
|
57
57
|
page: 'Page',
|
|
58
58
|
/**
|
|
59
|
-
* @description Command for showing the
|
|
59
|
+
* @description Command for showing the Page tab in the Sources panel.
|
|
60
60
|
*/
|
|
61
61
|
showPage: 'Show Page',
|
|
62
62
|
/**
|
|
63
|
-
* @description Title
|
|
63
|
+
* @description Title of the Overrides tab in the Sources panel.
|
|
64
64
|
*/
|
|
65
65
|
overrides: 'Overrides',
|
|
66
66
|
/**
|
|
67
|
-
* @description Command for showing the
|
|
67
|
+
* @description Command for showing the Overrides tab in the Sources panel.
|
|
68
68
|
*/
|
|
69
69
|
showOverrides: 'Show Overrides',
|
|
70
70
|
/**
|
|
71
|
-
* @description Title
|
|
71
|
+
* @description Title of the Content scripts tab in the Sources panel.
|
|
72
72
|
*/
|
|
73
73
|
contentScripts: 'Content scripts',
|
|
74
74
|
/**
|
|
75
|
-
* @description Command for showing the
|
|
75
|
+
* @description Command for showing the Content scripts tab in the Sources panel.
|
|
76
76
|
*/
|
|
77
77
|
showContentScripts: 'Show Content scripts',
|
|
78
78
|
/**
|
|
79
|
-
* @description Label for a button in the
|
|
79
|
+
* @description Label for a button in the Sources panel that refreshes the list of global event listeners.
|
|
80
80
|
*/
|
|
81
81
|
refreshGlobalListeners: 'Refresh global listeners',
|
|
82
82
|
} as const;
|