chrome-devtools-frontend 1.0.1531367 → 1.0.1532228
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/AUTHORS +2 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +15 -6
- package/front_end/core/protocol_client/protocol_client.ts +0 -10
- package/front_end/generated/ARIAProperties.js +1301 -174
- package/front_end/generated/Deprecation.ts +7 -0
- package/front_end/generated/InspectorBackendCommands.js +1 -0
- package/front_end/generated/protocol-mapping.d.ts +4 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +1 -1
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +4 -3
- package/front_end/models/issues_manager/BounceTrackingIssue.ts +4 -3
- package/front_end/models/issues_manager/ClientHintIssue.ts +4 -3
- package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +4 -3
- package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +5 -3
- package/front_end/models/issues_manager/CookieIssue.ts +4 -4
- package/front_end/models/issues_manager/CorsIssue.ts +3 -3
- package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +2 -1
- package/front_end/models/issues_manager/DeprecationIssue.ts +4 -3
- package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +4 -3
- package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +4 -3
- package/front_end/models/issues_manager/GenericIssue.ts +3 -3
- package/front_end/models/issues_manager/HeavyAdIssue.ts +3 -3
- package/front_end/models/issues_manager/IssuesManager.ts +3 -3
- package/front_end/models/issues_manager/LowTextContrastIssue.ts +5 -3
- package/front_end/models/issues_manager/MixedContentIssue.ts +4 -3
- package/front_end/models/issues_manager/PartitioningBlobURLIssue.ts +5 -3
- package/front_end/models/issues_manager/PropertyRuleIssue.ts +4 -3
- package/front_end/models/issues_manager/QuirksModeIssue.ts +4 -3
- package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +5 -3
- package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +5 -3
- package/front_end/models/issues_manager/SharedDictionaryIssue.ts +5 -3
- package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +5 -3
- package/front_end/models/issues_manager/UnencodedDigestIssue.ts +5 -3
- package/front_end/models/issues_manager/UserReidentificationIssue.ts +4 -3
- package/front_end/models/javascript_metadata/NativeFunctions.js +1 -1
- package/front_end/models/trace/insights/ForcedReflow.ts +1 -1
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +16 -3
- package/front_end/panels/network/{BlockedURLsPane.ts → RequestConditionsDrawer.ts} +34 -17
- package/front_end/panels/network/network-meta.ts +33 -9
- package/front_end/panels/network/network.ts +3 -3
- package/front_end/panels/recorder/components/stepView.css +2 -2
- package/front_end/panels/sources/SourcesSearchScope.ts +5 -0
- package/front_end/panels/timeline/components/insights/ForcedReflow.ts +2 -2
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +31 -5
- package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +3 -0
- package/package.json +1 -1
- /package/front_end/panels/network/{blockedURLsPane.css → requestConditionsDrawer.css} +0 -0
|
@@ -31,7 +31,7 @@ export const UIStrings = {
|
|
|
31
31
|
/**
|
|
32
32
|
* @description Title of a list to provide related stack trace data
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
reflowCallFrames: 'Call frames that trigger reflow',
|
|
35
35
|
/**
|
|
36
36
|
* @description Text to describe the top time-consuming function call
|
|
37
37
|
*/
|
|
@@ -1091,7 +1091,16 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
1091
1091
|
// Node picker is using linkifier.
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
|
-
|
|
1094
|
+
#canExecuteQuery(): boolean {
|
|
1095
|
+
const isBrandedBuild = Boolean(Root.Runtime.hostConfig.aidaAvailability?.enabled);
|
|
1096
|
+
const isBlockedByAge = Boolean(Root.Runtime.hostConfig.aidaAvailability?.blockedByAge);
|
|
1097
|
+
const isAidaAvailable = Boolean(this.#aidaAvailability === Host.AidaClient.AidaAccessPreconditions.AVAILABLE);
|
|
1098
|
+
const isUserOptedIn = Boolean(this.#aiAssistanceEnabledSetting?.getIfNotDisabled());
|
|
1099
|
+
|
|
1100
|
+
return isBrandedBuild && isAidaAvailable && isUserOptedIn && !isBlockedByAge;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
async handleAction(actionId: string, opts?: Record<string, unknown>): Promise<void> {
|
|
1095
1104
|
if (this.#isLoading && !opts?.['prompt']) {
|
|
1096
1105
|
// If running some queries already, and this action doesn't contain a predefined prompt, focus the input with the abort
|
|
1097
1106
|
// button and do nothing.
|
|
@@ -1160,13 +1169,17 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
1160
1169
|
this.#updateConversationState({agent});
|
|
1161
1170
|
const predefinedPrompt = opts?.['prompt'];
|
|
1162
1171
|
if (predefinedPrompt && typeof predefinedPrompt === 'string') {
|
|
1172
|
+
if (!this.#canExecuteQuery()) {
|
|
1173
|
+
return;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1163
1176
|
this.#imageInput = undefined;
|
|
1164
1177
|
this.#isTextInputEmpty = true;
|
|
1165
1178
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.AiAssistanceQuerySubmitted);
|
|
1166
1179
|
if (this.#blockedByCrossOrigin) {
|
|
1167
1180
|
this.#handleNewChatRequest();
|
|
1168
1181
|
}
|
|
1169
|
-
|
|
1182
|
+
await this.#startConversation(predefinedPrompt);
|
|
1170
1183
|
} else {
|
|
1171
1184
|
this.#viewOutput.chatView?.focusTextInput();
|
|
1172
1185
|
}
|
|
@@ -1671,7 +1684,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
|
1671
1684
|
}
|
|
1672
1685
|
|
|
1673
1686
|
const widget = (await view.widget()) as AiAssistancePanel;
|
|
1674
|
-
widget.handleAction(actionId, opts);
|
|
1687
|
+
void widget.handleAction(actionId, opts);
|
|
1675
1688
|
})();
|
|
1676
1689
|
return true;
|
|
1677
1690
|
}
|
|
@@ -19,7 +19,7 @@ import {Directives, html, type LitTemplate, nothing, render} from '../../ui/lit/
|
|
|
19
19
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
20
20
|
import * as MobileThrottling from '../mobile_throttling/mobile_throttling.js';
|
|
21
21
|
|
|
22
|
-
import
|
|
22
|
+
import requestConditionsDrawerStyles from './requestConditionsDrawer.css.js';
|
|
23
23
|
|
|
24
24
|
const {ref} = Directives;
|
|
25
25
|
|
|
@@ -28,6 +28,10 @@ const UIStrings = {
|
|
|
28
28
|
* @description Text to enable blocking of network requests
|
|
29
29
|
*/
|
|
30
30
|
enableNetworkRequestBlocking: 'Enable network request blocking',
|
|
31
|
+
/**
|
|
32
|
+
* @description Text to enable blocking of network requests
|
|
33
|
+
*/
|
|
34
|
+
enableBlockingAndThrottling: 'Enable blocking and throttling',
|
|
31
35
|
/**
|
|
32
36
|
* @description Tooltip text that appears when hovering over the plus button in the Blocked URLs Pane of the Network panel
|
|
33
37
|
*/
|
|
@@ -36,15 +40,23 @@ const UIStrings = {
|
|
|
36
40
|
* @description Accessible label for the button to add request blocking patterns in the network request blocking tool
|
|
37
41
|
*/
|
|
38
42
|
addNetworkRequestBlockingPattern: 'Add network request blocking pattern',
|
|
43
|
+
/**
|
|
44
|
+
* @description Accessible label for the button to add request blocking patterns in the network request blocking tool
|
|
45
|
+
*/
|
|
46
|
+
addPatternLabel: 'Add network request throttling or blocking pattern',
|
|
39
47
|
/**
|
|
40
48
|
* @description Text that shows in the network request blocking panel if no pattern has yet been added.
|
|
41
49
|
*/
|
|
42
50
|
noNetworkRequestsBlocked: 'No blocked network requests',
|
|
51
|
+
/**
|
|
52
|
+
* @description Text that shows in the network request blocking panel if no pattern has yet been added.
|
|
53
|
+
*/
|
|
54
|
+
noPattern: 'No request throttling or blocking patterns',
|
|
43
55
|
/**
|
|
44
56
|
* @description Text that shows in the network request blocking panel if no pattern has yet been added.
|
|
45
57
|
* @example {Add pattern} PH1
|
|
46
58
|
*/
|
|
47
|
-
addPatternToBlock: 'Add a pattern
|
|
59
|
+
addPatternToBlock: 'Add a pattern by clicking on the "{PH1}" button.',
|
|
48
60
|
/**
|
|
49
61
|
* @description Text in Blocked URLs Pane of the Network panel
|
|
50
62
|
* @example {4} PH1
|
|
@@ -57,7 +69,7 @@ const UIStrings = {
|
|
|
57
69
|
/**
|
|
58
70
|
* @description Text in Blocked URLs Pane of the Network panel
|
|
59
71
|
*/
|
|
60
|
-
|
|
72
|
+
textEditPattern: 'Text pattern to block or throttle matching requests; use URLPattern syntax.',
|
|
61
73
|
/**
|
|
62
74
|
* @description Error text for empty list widget input in Request Blocking tool
|
|
63
75
|
*/
|
|
@@ -88,7 +100,7 @@ const UIStrings = {
|
|
|
88
100
|
*/
|
|
89
101
|
learnMore: 'Learn more',
|
|
90
102
|
} as const;
|
|
91
|
-
const str_ = i18n.i18n.registerUIStrings('panels/network/
|
|
103
|
+
const str_ = i18n.i18n.registerUIStrings('panels/network/RequestConditionsDrawer.ts', UIStrings);
|
|
92
104
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
93
105
|
|
|
94
106
|
const NETWORK_REQUEST_BLOCKING_EXPLANATION_URL =
|
|
@@ -106,23 +118,27 @@ interface ViewInput {
|
|
|
106
118
|
}
|
|
107
119
|
type View = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
108
120
|
export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
121
|
+
const individualThrottlingEnabled = Boolean(Root.Runtime.hostConfig.devToolsIndividualRequestThrottling?.enabled);
|
|
109
122
|
render(
|
|
110
123
|
// clang-format off
|
|
111
124
|
html`
|
|
112
|
-
<style>${
|
|
125
|
+
<style>${RequestConditionsDrawer}</style>
|
|
113
126
|
<devtools-toolbar jslog=${VisualLogging.toolbar()}>
|
|
114
127
|
<devtools-checkbox
|
|
115
128
|
?checked=${input.enabled}
|
|
116
129
|
@click=${input.toggleEnabled}
|
|
117
130
|
.jslogContext=${'network.enable-request-blocking'}>
|
|
118
|
-
${i18nString(UIStrings.
|
|
131
|
+
${individualThrottlingEnabled ? i18nString(UIStrings.enableBlockingAndThrottling)
|
|
132
|
+
: i18nString(UIStrings.enableNetworkRequestBlocking)}
|
|
119
133
|
</devtools-checkbox>
|
|
120
134
|
<div class="toolbar-divider"></div>
|
|
121
135
|
<devtools-button ${bindToAction('network.add-network-request-blocking-pattern')}></devtools-button>
|
|
122
136
|
<devtools-button ${bindToAction('network.remove-all-network-request-blocking-patterns')}></devtools-button>
|
|
123
137
|
</devtools-toolbar>
|
|
124
138
|
<div class=empty-state ${ref(e => input.list.setEmptyPlaceholder(e ?? null))}>
|
|
125
|
-
<span class=empty-state-header>${
|
|
139
|
+
<span class=empty-state-header>${individualThrottlingEnabled
|
|
140
|
+
? i18nString(UIStrings.noPattern)
|
|
141
|
+
: i18nString(UIStrings.noNetworkRequestsBlocked)}</span>
|
|
126
142
|
<div class=empty-state-description>
|
|
127
143
|
<span>${i18nString(UIStrings.addPatternToBlock, {PH1: i18nString(UIStrings.addPattern)})}</span>
|
|
128
144
|
<x-link
|
|
@@ -137,7 +153,8 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
137
153
|
@click=${input.addPattern}
|
|
138
154
|
class=add-button
|
|
139
155
|
.jslogContext=${'network.add-network-request-blocking-pattern'}
|
|
140
|
-
aria-label=${i18nString(UIStrings.
|
|
156
|
+
aria-label=${individualThrottlingEnabled ? i18nString(UIStrings.addPatternLabel)
|
|
157
|
+
: i18nString(UIStrings.addNetworkRequestBlockingPattern)}
|
|
141
158
|
.variant=${Buttons.Button.Variant.TONAL}>
|
|
142
159
|
${i18nString(UIStrings.addPattern)}
|
|
143
160
|
</devtools-button>
|
|
@@ -158,7 +175,7 @@ function learnMore(): LitTemplate {
|
|
|
158
175
|
</x-link>`;
|
|
159
176
|
}
|
|
160
177
|
|
|
161
|
-
export class
|
|
178
|
+
export class RequestConditionsDrawer extends UI.Widget.VBox implements
|
|
162
179
|
UI.ListWidget.Delegate<SDK.NetworkManager.RequestCondition> {
|
|
163
180
|
private manager: SDK.NetworkManager.MultitargetNetworkManager;
|
|
164
181
|
private readonly list: UI.ListWidget.ListWidget<SDK.NetworkManager.RequestCondition>;
|
|
@@ -178,7 +195,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
178
195
|
SDK.NetworkManager.MultitargetNetworkManager.Events.BLOCKED_PATTERNS_CHANGED, this.update, this);
|
|
179
196
|
|
|
180
197
|
this.list = new UI.ListWidget.ListWidget(this);
|
|
181
|
-
this.list.registerRequiredCSS(
|
|
198
|
+
this.list.registerRequiredCSS(requestConditionsDrawerStyles);
|
|
182
199
|
this.list.element.classList.add('blocked-urls');
|
|
183
200
|
|
|
184
201
|
this.editor = null;
|
|
@@ -357,7 +374,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
357
374
|
const titles = content.createChild('div', 'blocked-url-edit-row');
|
|
358
375
|
const label = titles.createChild('div');
|
|
359
376
|
if (Root.Runtime.hostConfig.devToolsIndividualRequestThrottling?.enabled) {
|
|
360
|
-
label.textContent = i18nString(UIStrings.
|
|
377
|
+
label.textContent = i18nString(UIStrings.textEditPattern);
|
|
361
378
|
label.append(UI.XLink.XLink.create(
|
|
362
379
|
PATTERN_API_DOCS_URL, i18nString(UIStrings.learnMore), undefined, undefined, 'learn-more'));
|
|
363
380
|
} else {
|
|
@@ -446,30 +463,30 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
|
446
463
|
}
|
|
447
464
|
}
|
|
448
465
|
override wasShown(): void {
|
|
449
|
-
UI.Context.Context.instance().setFlavor(
|
|
466
|
+
UI.Context.Context.instance().setFlavor(RequestConditionsDrawer, this);
|
|
450
467
|
super.wasShown();
|
|
451
468
|
}
|
|
452
469
|
|
|
453
470
|
override willHide(): void {
|
|
454
471
|
super.willHide();
|
|
455
|
-
UI.Context.Context.instance().setFlavor(
|
|
472
|
+
UI.Context.Context.instance().setFlavor(RequestConditionsDrawer, null);
|
|
456
473
|
}
|
|
457
474
|
}
|
|
458
475
|
|
|
459
476
|
export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
460
477
|
handleAction(context: UI.Context.Context, actionId: string): boolean {
|
|
461
|
-
const
|
|
462
|
-
if (
|
|
478
|
+
const drawer = context.flavor(RequestConditionsDrawer);
|
|
479
|
+
if (drawer === null) {
|
|
463
480
|
return false;
|
|
464
481
|
}
|
|
465
482
|
switch (actionId) {
|
|
466
483
|
case 'network.add-network-request-blocking-pattern': {
|
|
467
|
-
|
|
484
|
+
drawer.addPattern();
|
|
468
485
|
return true;
|
|
469
486
|
}
|
|
470
487
|
|
|
471
488
|
case 'network.remove-all-network-request-blocking-patterns': {
|
|
472
|
-
|
|
489
|
+
drawer.removeAllPatterns();
|
|
473
490
|
return true;
|
|
474
491
|
}
|
|
475
492
|
}
|
|
@@ -27,10 +27,18 @@ const UIStrings = {
|
|
|
27
27
|
* @description Command for showing the 'Network request blocking' tool
|
|
28
28
|
*/
|
|
29
29
|
showNetworkRequestBlocking: 'Show Network request blocking',
|
|
30
|
+
/**
|
|
31
|
+
* @description Command for showing the 'Network request blocking' tool
|
|
32
|
+
*/
|
|
33
|
+
showRequestConditions: 'Show Request conditions',
|
|
30
34
|
/**
|
|
31
35
|
* @description Title of the 'Network request blocking' tool in the bottom drawer
|
|
32
36
|
*/
|
|
33
37
|
networkRequestBlocking: 'Network request blocking',
|
|
38
|
+
/**
|
|
39
|
+
* @description Title of the 'Request conditions' tool in the bottom drawer
|
|
40
|
+
*/
|
|
41
|
+
networkRequestConditions: 'Request conditions',
|
|
34
42
|
/**
|
|
35
43
|
* @description Command for showing the 'Network conditions' tool
|
|
36
44
|
*/
|
|
@@ -123,6 +131,14 @@ const UIStrings = {
|
|
|
123
131
|
* @description Title of an action in the Network request blocking panel to clear all URL patterns.
|
|
124
132
|
*/
|
|
125
133
|
removeAllNetworkRequestBlockingPatterns: 'Remove all network request blocking patterns',
|
|
134
|
+
/**
|
|
135
|
+
* @description Title of an action in the Network request blocking panel to add a new URL pattern to the blocklist.
|
|
136
|
+
*/
|
|
137
|
+
addNetworkRequestBlockingOrThrottlingPattern: 'Add network request blocking or throttling pattern',
|
|
138
|
+
/**
|
|
139
|
+
* @description Title of an action in the Network request blocking panel to clear all URL patterns.
|
|
140
|
+
*/
|
|
141
|
+
removeAllNetworkRequestBlockingOrThrottlingPatterns: 'Remove all network request blocking or throttling patterns',
|
|
126
142
|
/**
|
|
127
143
|
* @description Title of an action in the Network panel (and title of a setting in the Network category)
|
|
128
144
|
* that enables options in the UI to copy or export HAR (not translatable) with sensitive data.
|
|
@@ -142,6 +158,7 @@ const UIStrings = {
|
|
|
142
158
|
} as const;
|
|
143
159
|
const str_ = i18n.i18n.registerUIStrings('panels/network/network-meta.ts', UIStrings);
|
|
144
160
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
161
|
+
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
145
162
|
let loadedNetworkModule: (typeof Network|undefined);
|
|
146
163
|
|
|
147
164
|
const isNode = Root.Runtime.Runtime.isNode();
|
|
@@ -173,16 +190,20 @@ UI.ViewManager.registerViewExtension({
|
|
|
173
190
|
},
|
|
174
191
|
});
|
|
175
192
|
|
|
193
|
+
const individualThrottlingEnabled = (): boolean =>
|
|
194
|
+
Boolean(Root.Runtime.hostConfig.devToolsIndividualRequestThrottling?.enabled);
|
|
176
195
|
UI.ViewManager.registerViewExtension({
|
|
177
196
|
location: UI.ViewManager.ViewLocationValues.DRAWER_VIEW,
|
|
178
197
|
id: 'network.blocked-urls',
|
|
179
|
-
commandPrompt:
|
|
180
|
-
|
|
198
|
+
commandPrompt: () => individualThrottlingEnabled() ? i18nString(UIStrings.showRequestConditions) :
|
|
199
|
+
i18nString(UIStrings.showNetworkRequestBlocking),
|
|
200
|
+
title: () => individualThrottlingEnabled() ? i18nString(UIStrings.networkRequestConditions) :
|
|
201
|
+
i18nString(UIStrings.networkRequestBlocking),
|
|
181
202
|
persistence: UI.ViewManager.ViewPersistence.CLOSEABLE,
|
|
182
203
|
order: 60,
|
|
183
204
|
async loadView() {
|
|
184
205
|
const Network = await loadNetworkModule();
|
|
185
|
-
return new Network.
|
|
206
|
+
return new Network.RequestConditionsDrawer.RequestConditionsDrawer();
|
|
186
207
|
},
|
|
187
208
|
});
|
|
188
209
|
|
|
@@ -329,28 +350,31 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
329
350
|
UI.ActionRegistration.registerActionExtension({
|
|
330
351
|
actionId: 'network.add-network-request-blocking-pattern',
|
|
331
352
|
category: UI.ActionRegistration.ActionCategory.NETWORK,
|
|
332
|
-
title:
|
|
353
|
+
title: () => individualThrottlingEnabled() ? i18nString(UIStrings.addNetworkRequestBlockingOrThrottlingPattern) :
|
|
354
|
+
i18nString(UIStrings.addNetworkRequestBlockingPattern),
|
|
333
355
|
iconClass: UI.ActionRegistration.IconClass.PLUS,
|
|
334
356
|
contextTypes() {
|
|
335
|
-
return maybeRetrieveContextTypes(Network => [Network.
|
|
357
|
+
return maybeRetrieveContextTypes(Network => [Network.RequestConditionsDrawer.RequestConditionsDrawer]);
|
|
336
358
|
},
|
|
337
359
|
async loadActionDelegate() {
|
|
338
360
|
const Network = await loadNetworkModule();
|
|
339
|
-
return new Network.
|
|
361
|
+
return new Network.RequestConditionsDrawer.ActionDelegate();
|
|
340
362
|
},
|
|
341
363
|
});
|
|
342
364
|
|
|
343
365
|
UI.ActionRegistration.registerActionExtension({
|
|
344
366
|
actionId: 'network.remove-all-network-request-blocking-patterns',
|
|
345
367
|
category: UI.ActionRegistration.ActionCategory.NETWORK,
|
|
346
|
-
title:
|
|
368
|
+
title: () => individualThrottlingEnabled() ?
|
|
369
|
+
i18nString(UIStrings.removeAllNetworkRequestBlockingOrThrottlingPatterns) :
|
|
370
|
+
i18nString(UIStrings.removeAllNetworkRequestBlockingPatterns),
|
|
347
371
|
iconClass: UI.ActionRegistration.IconClass.CLEAR,
|
|
348
372
|
contextTypes() {
|
|
349
|
-
return maybeRetrieveContextTypes(Network => [Network.
|
|
373
|
+
return maybeRetrieveContextTypes(Network => [Network.RequestConditionsDrawer.RequestConditionsDrawer]);
|
|
350
374
|
},
|
|
351
375
|
async loadActionDelegate() {
|
|
352
376
|
const Network = await loadNetworkModule();
|
|
353
|
-
return new Network.
|
|
377
|
+
return new Network.RequestConditionsDrawer.ActionDelegate();
|
|
354
378
|
},
|
|
355
379
|
});
|
|
356
380
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import './BinaryResourceView.js';
|
|
6
|
-
import './
|
|
6
|
+
import './RequestConditionsDrawer.js';
|
|
7
7
|
import './EventSourceMessagesView.js';
|
|
8
8
|
import './NetworkConfigView.js';
|
|
9
9
|
import './NetworkDataGridNode.js';
|
|
@@ -28,7 +28,6 @@ import './NetworkOverview.js';
|
|
|
28
28
|
import './NetworkPanel.js';
|
|
29
29
|
|
|
30
30
|
import * as BinaryResourceView from './BinaryResourceView.js';
|
|
31
|
-
import * as BlockedURLsPane from './BlockedURLsPane.js';
|
|
32
31
|
import * as EventSourceMessagesView from './EventSourceMessagesView.js';
|
|
33
32
|
import * as NetworkConfigView from './NetworkConfigView.js';
|
|
34
33
|
import * as NetworkDataGridNode from './NetworkDataGridNode.js';
|
|
@@ -41,6 +40,7 @@ import * as NetworkOverview from './NetworkOverview.js';
|
|
|
41
40
|
import * as NetworkPanel from './NetworkPanel.js';
|
|
42
41
|
import * as NetworkSearchScope from './NetworkSearchScope.js';
|
|
43
42
|
import * as NetworkWaterfallColumn from './NetworkWaterfallColumn.js';
|
|
43
|
+
import * as RequestConditionsDrawer from './RequestConditionsDrawer.js';
|
|
44
44
|
import * as RequestCookiesView from './RequestCookiesView.js';
|
|
45
45
|
import * as RequestHTMLView from './RequestHTMLView.js';
|
|
46
46
|
import * as RequestInitiatorView from './RequestInitiatorView.js';
|
|
@@ -54,7 +54,6 @@ import * as SignedExchangeInfoView from './SignedExchangeInfoView.js';
|
|
|
54
54
|
|
|
55
55
|
export {
|
|
56
56
|
BinaryResourceView,
|
|
57
|
-
BlockedURLsPane,
|
|
58
57
|
EventSourceMessagesView,
|
|
59
58
|
NetworkConfigView,
|
|
60
59
|
NetworkDataGridNode,
|
|
@@ -67,6 +66,7 @@ export {
|
|
|
67
66
|
NetworkPanel,
|
|
68
67
|
NetworkSearchScope,
|
|
69
68
|
NetworkWaterfallColumn,
|
|
69
|
+
RequestConditionsDrawer,
|
|
70
70
|
RequestCookiesView,
|
|
71
71
|
RequestHTMLView,
|
|
72
72
|
RequestInitiatorView,
|
|
@@ -72,6 +72,8 @@ export class SourcesSearchScope implements Search.SearchScope.SearchScope {
|
|
|
72
72
|
private projects(): Workspace.Workspace.Project[] {
|
|
73
73
|
const searchInAnonymousAndContentScripts =
|
|
74
74
|
Common.Settings.Settings.instance().moduleSetting('search-in-anonymous-and-content-scripts').get();
|
|
75
|
+
const localOverridesEnabled =
|
|
76
|
+
Common.Settings.Settings.instance().moduleSetting('persistence-network-overrides-enabled').get();
|
|
75
77
|
|
|
76
78
|
return Workspace.Workspace.WorkspaceImpl.instance().projects().filter(project => {
|
|
77
79
|
if (project.type() === Workspace.Workspace.projectTypes.Service) {
|
|
@@ -84,6 +86,9 @@ export class SourcesSearchScope implements Search.SearchScope.SearchScope {
|
|
|
84
86
|
if (!searchInAnonymousAndContentScripts && project.type() === Workspace.Workspace.projectTypes.ContentScripts) {
|
|
85
87
|
return false;
|
|
86
88
|
}
|
|
89
|
+
if (!localOverridesEnabled && project.type() === Workspace.Workspace.projectTypes.FileSystem) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
87
92
|
return true;
|
|
88
93
|
});
|
|
89
94
|
}
|
|
@@ -41,7 +41,7 @@ export class ForcedReflow extends BaseInsightComponent<ForcedReflowInsightModel>
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
#linkifyUrl(callFrame: Trace.Types.Events.CallFrame|Protocol.Runtime.CallFrame|null): Lit.LitTemplate {
|
|
44
|
-
const style = 'display: flex; gap: 4px;
|
|
44
|
+
const style = 'display: flex; gap: 4px; overflow: hidden; white-space: nowrap';
|
|
45
45
|
if (!callFrame) {
|
|
46
46
|
return html`<div style=${style}>${i18nString(UIStrings.unattributed)}</div>`;
|
|
47
47
|
}
|
|
@@ -105,7 +105,7 @@ export class ForcedReflow extends BaseInsightComponent<ForcedReflowInsightModel>
|
|
|
105
105
|
<devtools-performance-table
|
|
106
106
|
.data=${{
|
|
107
107
|
insight: this,
|
|
108
|
-
headers: [i18nString(UIStrings.
|
|
108
|
+
headers: [i18nString(UIStrings.reflowCallFrames)],
|
|
109
109
|
rows,
|
|
110
110
|
} as TableData}>
|
|
111
111
|
</devtools-performance-table>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: https://source.chromium.org/chromium/chromium/src/+/main:components/variations/proto/devtools/
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: d9f4be1af20015ff4b3850d8e33f8038de6b5c2c
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -98,6 +98,32 @@ const UIStrings = {
|
|
|
98
98
|
* @description Text for the size of something
|
|
99
99
|
*/
|
|
100
100
|
size: 'Size',
|
|
101
|
+
/**
|
|
102
|
+
* @description Text for the "Domain" of the cookie
|
|
103
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie#domaindomain-value
|
|
104
|
+
*/
|
|
105
|
+
domain: 'Domain',
|
|
106
|
+
/**
|
|
107
|
+
* @description Text for the "Path" of the cookie
|
|
108
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie#pathpath-value
|
|
109
|
+
*/
|
|
110
|
+
path: 'Path',
|
|
111
|
+
/**
|
|
112
|
+
* @description Text for the "Secure" property of the cookie
|
|
113
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie#secure
|
|
114
|
+
*/
|
|
115
|
+
secure: 'Secure',
|
|
116
|
+
/**
|
|
117
|
+
* @description Text for the "Partition Key Site" property of the cookie
|
|
118
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie#partitioned
|
|
119
|
+
*/
|
|
120
|
+
partitionKeySite: 'Partition Key Site',
|
|
121
|
+
/**
|
|
122
|
+
* @description Text for the "Priority" property of the cookie
|
|
123
|
+
* Contains Low, Medium (default), or High if using deprecated cookie Priority attribute.
|
|
124
|
+
* https://bugs.chromium.org/p/chromium/issues/detail?id=232693
|
|
125
|
+
*/
|
|
126
|
+
priority: 'Priority',
|
|
101
127
|
/**
|
|
102
128
|
* @description Data grid name for Editable Cookies data grid
|
|
103
129
|
*/
|
|
@@ -195,10 +221,10 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
195
221
|
${i18nString(UIStrings.value)}
|
|
196
222
|
</th>
|
|
197
223
|
<th id=${SDK.Cookie.Attribute.DOMAIN} sortable weight="7" ?editable=${input.editable}>
|
|
198
|
-
|
|
224
|
+
${i18nString(UIStrings.domain)}
|
|
199
225
|
</th>
|
|
200
226
|
<th id=${SDK.Cookie.Attribute.PATH} sortable weight="7" ?editable=${input.editable}>
|
|
201
|
-
|
|
227
|
+
${i18nString(UIStrings.path)}
|
|
202
228
|
</th>
|
|
203
229
|
<th id=${SDK.Cookie.Attribute.EXPIRES} sortable weight="7" ?editable=${input.editable}>
|
|
204
230
|
Expires / Max-Age
|
|
@@ -210,19 +236,19 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
210
236
|
HttpOnly
|
|
211
237
|
</th>
|
|
212
238
|
<th id=${SDK.Cookie.Attribute.SECURE} sortable align="center" weight="7" ?editable=${input.editable} type="boolean">
|
|
213
|
-
|
|
239
|
+
${i18nString(UIStrings.secure)}
|
|
214
240
|
</th>
|
|
215
241
|
<th id=${SDK.Cookie.Attribute.SAME_SITE} sortable weight="7" ?editable=${input.editable}>
|
|
216
242
|
SameSite
|
|
217
243
|
</th>
|
|
218
244
|
<th id=${SDK.Cookie.Attribute.PARTITION_KEY_SITE} sortable weight="7" ?editable=${input.editable}>
|
|
219
|
-
|
|
245
|
+
${i18nString(UIStrings.partitionKeySite)}
|
|
220
246
|
</th>
|
|
221
247
|
<th id=${SDK.Cookie.Attribute.HAS_CROSS_SITE_ANCESTOR} sortable align="center" weight="7" ?editable=${input.editable} type="boolean">
|
|
222
248
|
Cross Site
|
|
223
249
|
</th>
|
|
224
250
|
<th id=${SDK.Cookie.Attribute.PRIORITY} sortable weight="7" ?editable=${input.editable}>
|
|
225
|
-
|
|
251
|
+
${i18nString(UIStrings.priority)}
|
|
226
252
|
</th>
|
|
227
253
|
${input.schemeBindingEnabled ? html`
|
|
228
254
|
<th id=${SDK.Cookie.Attribute.SOURCE_SCHEME} sortable align="center" weight="7" ?editable=${input.editable} type="string">
|
|
@@ -21,6 +21,9 @@ export class TargetDetachedDialog extends SDK.SDKModel.SDKModel<void> implements
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
workerScriptLoaded(): void {
|
|
25
|
+
}
|
|
26
|
+
|
|
24
27
|
detached({reason}: Protocol.Inspector.DetachedEvent): void {
|
|
25
28
|
UI.RemoteDebuggingTerminatedScreen.RemoteDebuggingTerminatedScreen.show(reason);
|
|
26
29
|
}
|
package/package.json
CHANGED
|
File without changes
|