chrome-devtools-frontend 1.0.960314 → 1.0.961907
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/.vscode/devtools-workspace-launch.json +29 -0
- package/.vscode/devtools-workspace-settings.json +6 -1
- package/.vscode/devtools-workspace-tasks.json +28 -0
- package/config/gni/devtools_grd_files.gni +1 -3
- package/front_end/core/common/ParsedURL.ts +5 -2
- package/front_end/core/host/UserMetrics.ts +2 -1
- package/front_end/core/i18n/locales/en-US.json +36 -24
- package/front_end/core/i18n/locales/en-XL.json +36 -24
- package/front_end/core/sdk/DebuggerModel.ts +8 -1
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +3 -0
- package/front_end/core/sdk/SourceMap.ts +9 -1
- package/front_end/entrypoints/main/MainImpl.ts +5 -0
- package/front_end/generated/InspectorBackendCommands.js +21 -2
- package/front_end/generated/SupportedCSSProperties.js +3 -1
- package/front_end/generated/protocol-mapping.d.ts +17 -1
- package/front_end/generated/protocol-proxy-api.d.ts +18 -1
- package/front_end/generated/protocol.d.ts +79 -0
- package/front_end/models/emulation/EmulatedDevices.ts +3 -3
- package/front_end/models/issues_manager/IssuesManager.ts +0 -5
- package/front_end/models/issues_manager/issues_manager.ts +0 -2
- package/front_end/panels/application/IndexedDBModel.ts +3 -0
- package/front_end/panels/application/components/FrameDetailsView.ts +5 -1
- package/front_end/panels/application/components/PermissionsPolicySection.ts +16 -4
- package/front_end/panels/console/ConsoleView.ts +10 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +5 -106
- package/front_end/panels/console/ErrorStackParser.ts +117 -0
- package/front_end/panels/console/console.ts +2 -0
- package/front_end/panels/elements/ElementsPanel.ts +10 -1
- package/front_end/panels/issues/IssueAggregator.ts +0 -10
- package/front_end/panels/issues/IssueView.ts +0 -2
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +5 -0
- package/front_end/panels/sources/SourcesPanel.ts +20 -2
- package/front_end/panels/timeline/TimelineTreeView.ts +10 -1
- package/front_end/third_party/additional_readme_paths.json +1 -0
- package/front_end/third_party/puppeteer/README.chromium +1 -1
- package/front_end/third_party/puppeteer/package/README.md +11 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/package.json +1 -1
- package/front_end/ui/components/buttons/Button.ts +6 -1
- package/front_end/ui/components/buttons/button.css +0 -1
- package/front_end/ui/components/docs/button/basic.ts +1 -0
- package/front_end/ui/components/docs/icon_button/basic.ts +2 -7
- package/front_end/ui/components/icon_button/IconButton.ts +1 -1
- package/front_end/ui/components/text_editor/TextEditor.ts +8 -1
- package/front_end/ui/components/text_editor/config.ts +3 -2
- package/front_end/ui/legacy/SplitWidget.ts +6 -2
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +10 -8
- package/package.json +1 -1
- package/scripts/build/assert_third_party_readmes.py +2 -1
- package/front_end/models/issues_manager/WasmCrossOriginModuleSharingIssue.ts +0 -67
- package/front_end/models/issues_manager/descriptions/wasmCrossOriginModuleSharing.md +0 -5
- package/front_end/panels/issues/WasmCrossOriginModuleSharingAffectedResourcesView.ts +0 -90
package/package.json
CHANGED
@@ -49,7 +49,8 @@ def main(argv):
|
|
49
49
|
for listed_directory in listed_third_party_directories_json:
|
50
50
|
if (listed_directory not in found_directories
|
51
51
|
# TODO(crbug.com/1287519): Remove exception for codemirror 5
|
52
|
-
and not listed_directory == "codemirror"
|
52
|
+
and not listed_directory == "codemirror"
|
53
|
+
and not listed_directory == "puppeteer"):
|
53
54
|
print(
|
54
55
|
"Directory `" + listed_directory + "`" +
|
55
56
|
" is not included in `config/gni/devtools_grd_files.gni`." +
|
@@ -1,67 +0,0 @@
|
|
1
|
-
// Copyright 2021 The Chromium Authors. All rights reserved.
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
3
|
-
// found in the LICENSE file.
|
4
|
-
|
5
|
-
import * as i18n from '../../core/i18n/i18n.js';
|
6
|
-
import * as Protocol from '../../generated/protocol.js';
|
7
|
-
import type * as SDK from '../../core/sdk/sdk.js';
|
8
|
-
import {Issue, IssueCategory, IssueKind} from './Issue.js';
|
9
|
-
import type {MarkdownIssueDescription} from './MarkdownIssueDescription.js';
|
10
|
-
|
11
|
-
const UIStrings = {
|
12
|
-
/**
|
13
|
-
* @description Label for the link in the description of Wasm cross-origin module sharing issues, that is, issues
|
14
|
-
* that are related to the upcoming deprecation of cross-origin sharing of Wasm modules.
|
15
|
-
*/
|
16
|
-
linkTitle: 'Restricting Wasm module sharing to same-origin',
|
17
|
-
};
|
18
|
-
const str_ = i18n.i18n.registerUIStrings('models/issues_manager/WasmCrossOriginModuleSharingIssue.ts', UIStrings);
|
19
|
-
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
20
|
-
|
21
|
-
export class WasmCrossOriginModuleSharingIssue extends
|
22
|
-
Issue<Protocol.Audits.InspectorIssueCode.WasmCrossOriginModuleSharingIssue> {
|
23
|
-
#issueDetails: Protocol.Audits.WasmCrossOriginModuleSharingIssueDetails;
|
24
|
-
|
25
|
-
constructor(
|
26
|
-
issueDetails: Protocol.Audits.WasmCrossOriginModuleSharingIssueDetails,
|
27
|
-
issuesModel: SDK.IssuesModel.IssuesModel) {
|
28
|
-
super(Protocol.Audits.InspectorIssueCode.WasmCrossOriginModuleSharingIssue, issuesModel);
|
29
|
-
this.#issueDetails = issueDetails;
|
30
|
-
}
|
31
|
-
|
32
|
-
getCategory(): IssueCategory {
|
33
|
-
return IssueCategory.Other;
|
34
|
-
}
|
35
|
-
|
36
|
-
details(): Protocol.Audits.WasmCrossOriginModuleSharingIssueDetails {
|
37
|
-
return this.#issueDetails;
|
38
|
-
}
|
39
|
-
|
40
|
-
getDescription(): MarkdownIssueDescription|null {
|
41
|
-
return {
|
42
|
-
file: 'wasmCrossOriginModuleSharing.md',
|
43
|
-
links: [{
|
44
|
-
link: 'https://developer.chrome.com/blog/wasm-module-sharing-restricted-to-same-origin/',
|
45
|
-
linkTitle: i18nString(UIStrings.linkTitle),
|
46
|
-
}],
|
47
|
-
};
|
48
|
-
}
|
49
|
-
|
50
|
-
primaryKey(): string {
|
51
|
-
return JSON.stringify(this.#issueDetails);
|
52
|
-
}
|
53
|
-
|
54
|
-
getKind(): IssueKind {
|
55
|
-
return this.#issueDetails.isWarning ? IssueKind.BreakingChange : IssueKind.PageError;
|
56
|
-
}
|
57
|
-
|
58
|
-
static fromInspectorIssue(issuesModel: SDK.IssuesModel.IssuesModel, inspectorIssue: Protocol.Audits.InspectorIssue):
|
59
|
-
WasmCrossOriginModuleSharingIssue[] {
|
60
|
-
const details = inspectorIssue.details.wasmCrossOriginModuleSharingIssue;
|
61
|
-
if (!details) {
|
62
|
-
console.warn('WasmCrossOriginModuleSharing issue without details received.');
|
63
|
-
return [];
|
64
|
-
}
|
65
|
-
return [new WasmCrossOriginModuleSharingIssue(details, issuesModel)];
|
66
|
-
}
|
67
|
-
}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
# Share WebAssembly modules only between same-origin environments
|
2
|
-
|
3
|
-
Starting in Chrome M95, WebAssembly modules may only be shared between same-origin environments. This means that [same-site but cross-origin](sameSiteAndSameOrigin) environments won't be able to share WebAssembly modules via `postMessage` anymore.
|
4
|
-
|
5
|
-
To fix this, ensure that WebAssembly modules are only transferred between environments of the same origin. If this is not possible, serve the WebAssembly module from the same origin.
|
@@ -1,90 +0,0 @@
|
|
1
|
-
// Copyright 2021 The Chromium Authors. All rights reserved.
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
3
|
-
// found in the LICENSE file.
|
4
|
-
|
5
|
-
import * as i18n from '../../core/i18n/i18n.js';
|
6
|
-
import type * as Platform from '../../core/platform/platform.js';
|
7
|
-
import type * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
8
|
-
import type * as Protocol from '../../generated/protocol.js';
|
9
|
-
|
10
|
-
import {AffectedResourcesView} from './AffectedResourcesView.js';
|
11
|
-
|
12
|
-
const UIStrings = {
|
13
|
-
/**
|
14
|
-
* @description Label for number of affected resources indication in issue view. The number designates the number of attempts to transfer a module to cross-origin context.
|
15
|
-
*
|
16
|
-
*/
|
17
|
-
nModuleTransfers: '{n, plural, =1 {# module} other {# modules}}',
|
18
|
-
/**
|
19
|
-
*@description Title for a column in an Wasm cross-origin module sharing affected resource view
|
20
|
-
*/
|
21
|
-
wasmModuleUrl: 'Wasm Module URL',
|
22
|
-
/**
|
23
|
-
* @description Title for a column in an Wasm cross-origin module sharing affected resource view.
|
24
|
-
* The issue is about a transfer of a module between different origins (see https://developer.mozilla.org/en-US/docs/Glossary/Origin).
|
25
|
-
* The transfer occurs from a source origin to a target origin.
|
26
|
-
*/
|
27
|
-
sourceOrigin: 'Source Origin',
|
28
|
-
/**
|
29
|
-
* @description Title for a column in an Wasm cross-origin module sharing affected resource view.
|
30
|
-
* The issue is about a transfer of a module between different origins (see https://developer.mozilla.org/en-US/docs/Glossary/Origin).
|
31
|
-
* The transfer occurs from a source origin to a target origin.
|
32
|
-
*/
|
33
|
-
targetOrigin: 'Target Origin',
|
34
|
-
/**
|
35
|
-
*@description Title for a column in an Wasm cross-origin module sharing affected resource view
|
36
|
-
*/
|
37
|
-
status: 'Status',
|
38
|
-
/**
|
39
|
-
* @description Indicates that the Wasm module transfer was blocked.
|
40
|
-
*/
|
41
|
-
blocked: 'blocked',
|
42
|
-
/**
|
43
|
-
* @description Indicated that the Wasm module transfer was not blocked, but only warned about.
|
44
|
-
*/
|
45
|
-
warned: 'warning',
|
46
|
-
};
|
47
|
-
const str_ =
|
48
|
-
i18n.i18n.registerUIStrings('panels/issues/WasmCrossOriginModuleSharingAffectedResourcesView.ts', UIStrings);
|
49
|
-
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
50
|
-
|
51
|
-
export class WasmCrossOriginModuleSharingAffectedResourcesView extends AffectedResourcesView {
|
52
|
-
#appendIssues(issues: Iterable<IssuesManager.WasmCrossOriginModuleSharingIssue.WasmCrossOriginModuleSharingIssue>):
|
53
|
-
void {
|
54
|
-
const header = document.createElement('tr');
|
55
|
-
this.appendColumnTitle(header, i18nString(UIStrings.wasmModuleUrl));
|
56
|
-
this.appendColumnTitle(header, i18nString(UIStrings.sourceOrigin));
|
57
|
-
this.appendColumnTitle(header, i18nString(UIStrings.targetOrigin));
|
58
|
-
this.appendColumnTitle(header, i18nString(UIStrings.status));
|
59
|
-
|
60
|
-
this.affectedResources.appendChild(header);
|
61
|
-
|
62
|
-
let count = 0;
|
63
|
-
for (const issue of issues) {
|
64
|
-
this.#appendDetails(issue.details());
|
65
|
-
count++;
|
66
|
-
}
|
67
|
-
this.updateAffectedResourceCount(count);
|
68
|
-
}
|
69
|
-
|
70
|
-
protected getResourceNameWithCount(count: number): Platform.UIString.LocalizedString {
|
71
|
-
return i18nString(UIStrings.nModuleTransfers, {n: count});
|
72
|
-
}
|
73
|
-
|
74
|
-
#appendDetails(details: Protocol.Audits.WasmCrossOriginModuleSharingIssueDetails): void {
|
75
|
-
const element = document.createElement('tr');
|
76
|
-
|
77
|
-
element.appendChild(this.createIssueDetailCell(details.wasmModuleUrl));
|
78
|
-
element.appendChild(this.createIssueDetailCell(details.sourceOrigin));
|
79
|
-
element.appendChild(this.createIssueDetailCell(details.targetOrigin));
|
80
|
-
element.appendChild(
|
81
|
-
this.createIssueDetailCell(details.isWarning ? i18nString(UIStrings.warned) : i18nString(UIStrings.blocked)));
|
82
|
-
|
83
|
-
this.affectedResources.appendChild(element);
|
84
|
-
}
|
85
|
-
|
86
|
-
update(): void {
|
87
|
-
this.clear();
|
88
|
-
this.#appendIssues(this.issue.getWasmCrossOriginModuleSharingIssue());
|
89
|
-
}
|
90
|
-
}
|