chrome-devtools-frontend 1.0.1543082 → 1.0.1543472
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 +1 -0
- package/front_end/core/common/Gzip.ts +4 -4
- package/front_end/core/common/common.ts +0 -2
- package/front_end/core/root/DevToolsContext.ts +60 -0
- package/front_end/core/root/root.ts +6 -1
- package/front_end/core/sdk/TargetManager.ts +5 -6
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -13
- package/front_end/entrypoints/main/MainImpl.ts +3 -5
- package/front_end/foundation/Universe.ts +13 -1
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +11 -8
- package/front_end/models/trace/handlers/SamplesHandler.ts +64 -6
- package/front_end/models/trace/types/TraceEvents.ts +16 -0
- package/front_end/models/workspace/IgnoreListManager.ts +10 -9
- package/front_end/models/workspace/WorkspaceImpl.ts +5 -10
- package/front_end/panels/application/ApplicationPanelSidebar.ts +0 -1
- package/front_end/panels/application/OpenedWindowDetailsView.ts +0 -2
- package/front_end/panels/application/ServiceWorkersView.ts +0 -2
- package/front_end/panels/application/StorageView.ts +0 -1
- package/front_end/panels/application/components/FrameDetailsView.ts +468 -447
- package/front_end/panels/console/ConsoleView.ts +9 -7
- package/front_end/panels/console/ConsoleViewMessage.ts +19 -9
- package/front_end/panels/explain/components/ConsoleInsight.ts +314 -310
- package/front_end/panels/settings/SettingsScreen.ts +3 -6
- package/front_end/panels/settings/components/SyncSection.ts +218 -226
- package/front_end/panels/settings/components/syncSection.css +81 -80
- package/front_end/panels/sources/DebuggerPlugin.ts +3 -1
- package/front_end/panels/sources/ResourceOriginPlugin.ts +7 -3
- package/front_end/panels/timeline/TimelinePanel.ts +0 -21
- package/front_end/ui/components/docs/component_docs.ts +0 -4
- package/front_end/ui/components/report_view/ReportView.ts +4 -1
- package/front_end/ui/legacy/ReportView.ts +0 -5
- package/front_end/ui/legacy/TextPrompt.ts +65 -19
- package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +8 -4
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +90 -92
- package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +114 -184
- package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -1
- package/front_end/ui/{components/docs/theme_colors/basic.ts → legacy/theme_support/ThemeColors.docs.ts} +33 -23
- package/package.json +1 -1
- package/front_end/core/common/QueryParamHandler.ts +0 -7
- package/front_end/ui/components/docs/input/basic.html +0 -31
- package/front_end/ui/components/docs/input/basic.ts +0 -12
- package/front_end/ui/components/docs/report/basic.html +0 -27
- package/front_end/ui/components/docs/report/basic.ts +0 -48
- package/front_end/ui/components/docs/theme_colors/basic.html +0 -56
- package/front_end/ui/components/docs/toggle_dark_mode.ts +0 -36
- package/front_end/ui/components/docs/toggle_fonts.ts +0 -74
- package/front_end/ui/components/docs/user_agent_client_hints/basic.html +0 -25
- package/front_end/ui/components/docs/user_agent_client_hints/basic.ts +0 -26
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
|
|
9
|
-
<head>
|
|
10
|
-
<meta charset="UTF-8" />
|
|
11
|
-
<meta name="viewport" content="width=device-width" />
|
|
12
|
-
<title>DevTools Theme Colors</title>
|
|
13
|
-
<style>
|
|
14
|
-
body {
|
|
15
|
-
/**
|
|
16
|
-
* The injected themes switch off user-select. This switches
|
|
17
|
-
* it back on so that we can select colors.
|
|
18
|
-
*/
|
|
19
|
-
user-select: auto !important; /* stylelint-disable-line declaration-no-important */
|
|
20
|
-
overflow: auto !important; /* stylelint-disable-line declaration-no-important */
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
#container {
|
|
24
|
-
display: grid;
|
|
25
|
-
max-width: 600px;
|
|
26
|
-
grid-template-columns: repeat(2, 1fr);
|
|
27
|
-
row-gap: var(--sys-size-5);
|
|
28
|
-
column-gap: var(--sys-size-5);
|
|
29
|
-
|
|
30
|
-
> span {
|
|
31
|
-
font: var(--sys-typescale-headline1);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
> div {
|
|
35
|
-
display: block;
|
|
36
|
-
border-bottom-width: var(--sys-size-9);
|
|
37
|
-
border-bottom-style: solid;
|
|
38
|
-
text-align: center;
|
|
39
|
-
font: var(--sys-typescale-body1-regular);
|
|
40
|
-
margin-bottom: var(--sys-size-5);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
</style>
|
|
44
|
-
</head>
|
|
45
|
-
|
|
46
|
-
<body>
|
|
47
|
-
|
|
48
|
-
<div id="container">
|
|
49
|
-
<span>Light Mode</span>
|
|
50
|
-
<span>Dark Mode</span>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
<script type="module" src="./basic.js"></script>
|
|
54
|
-
</body>
|
|
55
|
-
|
|
56
|
-
</html>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 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.
|
|
4
|
-
|
|
5
|
-
const DARK_THEME_CLASS = 'theme-with-dark-background';
|
|
6
|
-
|
|
7
|
-
function toggleDarkMode(force?: boolean): void {
|
|
8
|
-
// Only use the second arg if its not undefined. The spec treats `undefined` as falsy. :/
|
|
9
|
-
document.body.classList.toggle(...[DARK_THEME_CLASS, ...force !== undefined ? [force] : []]);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function init(): void {
|
|
13
|
-
// To keep consistent test results, we don't auto-initialize darkmode. This'd do it, though:
|
|
14
|
-
// toggleDarkMode(window.matchMedia('(prefers-color-scheme: dark)').matches);
|
|
15
|
-
|
|
16
|
-
window.addEventListener('load', () => {
|
|
17
|
-
const button = document.createElement('button');
|
|
18
|
-
button.innerText = 'Toggle light/dark mode';
|
|
19
|
-
button.className = 'component-docs-ui';
|
|
20
|
-
|
|
21
|
-
button.style.position = 'fixed';
|
|
22
|
-
button.style.bottom = '10px';
|
|
23
|
-
button.style.right = '10px';
|
|
24
|
-
button.style.width = '200px';
|
|
25
|
-
button.style.fontSize = '16px';
|
|
26
|
-
button.style.padding = '5px';
|
|
27
|
-
button.style.cursor = 'pointer';
|
|
28
|
-
|
|
29
|
-
button.addEventListener('click', event => {
|
|
30
|
-
event.preventDefault();
|
|
31
|
-
toggleDarkMode();
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
document.body.appendChild(button);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// Copyright 2021 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.
|
|
4
|
-
|
|
5
|
-
const PLATFROM_SCREENSHOT_TESTS = 'platform-screenshot-test';
|
|
6
|
-
const PLATFORM_MAC_CLASS = 'platform-mac';
|
|
7
|
-
const PLATFORM_LINUX_CLASS = 'platform-linux';
|
|
8
|
-
const PLATFORM_WINDOWS_CLASS = 'platform-windows';
|
|
9
|
-
|
|
10
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
11
|
-
|
|
12
|
-
export function init(): void {
|
|
13
|
-
// fontFamily is provided by the interaction tests.
|
|
14
|
-
// While platform-specific class names define multiple font-families,
|
|
15
|
-
// we want a single font-family to be used by the tests.
|
|
16
|
-
if (urlParams.has('fontFamily')) {
|
|
17
|
-
const div = document.createElement('div');
|
|
18
|
-
div.className = 'component-docs-ui';
|
|
19
|
-
div.style.position = 'fixed';
|
|
20
|
-
div.style.bottom = '10px';
|
|
21
|
-
div.style.right = '230px';
|
|
22
|
-
div.style.width = '250px';
|
|
23
|
-
div.style.fontSize = '16px';
|
|
24
|
-
div.style.padding = '5px';
|
|
25
|
-
div.innerText = `font-family: ${urlParams.get('fontFamily')}`;
|
|
26
|
-
window.addEventListener('load', () => {
|
|
27
|
-
document.body.appendChild(div);
|
|
28
|
-
});
|
|
29
|
-
document.body.style.fontFamily = `${urlParams.get('fontFamily')}`;
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
document.documentElement.classList.add(PLATFORM_LINUX_CLASS);
|
|
34
|
-
const button = document.createElement('button');
|
|
35
|
-
button.className = 'component-docs-ui';
|
|
36
|
-
|
|
37
|
-
const loop = [
|
|
38
|
-
PLATFROM_SCREENSHOT_TESTS,
|
|
39
|
-
PLATFORM_LINUX_CLASS,
|
|
40
|
-
PLATFORM_MAC_CLASS,
|
|
41
|
-
PLATFORM_WINDOWS_CLASS,
|
|
42
|
-
];
|
|
43
|
-
|
|
44
|
-
function toggleFonts(): void {
|
|
45
|
-
for (const className of loop) {
|
|
46
|
-
if (className === loop[0]) {
|
|
47
|
-
document.documentElement.classList.add(className);
|
|
48
|
-
} else {
|
|
49
|
-
document.documentElement.classList.remove(className);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
loop.push(loop.shift() as string);
|
|
53
|
-
button.innerText = 'Turn on ' + loop[0] + ' fonts';
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
window.addEventListener('load', () => {
|
|
57
|
-
toggleFonts();
|
|
58
|
-
|
|
59
|
-
button.style.position = 'fixed';
|
|
60
|
-
button.style.bottom = '10px';
|
|
61
|
-
button.style.right = '230px';
|
|
62
|
-
button.style.width = '250px';
|
|
63
|
-
button.style.fontSize = '16px';
|
|
64
|
-
button.style.padding = '5px';
|
|
65
|
-
button.style.cursor = 'pointer';
|
|
66
|
-
|
|
67
|
-
button.addEventListener('click', event => {
|
|
68
|
-
event.preventDefault();
|
|
69
|
-
toggleFonts();
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
document.body.appendChild(button);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2021 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>User agent client hints form</title>
|
|
12
|
-
<style>
|
|
13
|
-
#user-agent-client-hints-container {
|
|
14
|
-
width: 500px;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
<body>
|
|
19
|
-
|
|
20
|
-
<div id="user-agent-client-hints-container">
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<script type="module" src="./basic.js"></script>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright 2021 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.
|
|
4
|
-
import * as EmulationComponents from '../../../../panels/settings/emulation/components/components.js';
|
|
5
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
6
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
7
|
-
|
|
8
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
9
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
10
|
-
|
|
11
|
-
const userAgentClientHintsContainer = document.getElementById('user-agent-client-hints-container');
|
|
12
|
-
|
|
13
|
-
const userAgentsForm = new EmulationComponents.UserAgentClientHintsForm.UserAgentClientHintsForm();
|
|
14
|
-
userAgentsForm.value = {
|
|
15
|
-
metaData: {
|
|
16
|
-
fullVersion: '',
|
|
17
|
-
platform: '',
|
|
18
|
-
platformVersion: '',
|
|
19
|
-
architecture: '',
|
|
20
|
-
model: '',
|
|
21
|
-
mobile: true,
|
|
22
|
-
},
|
|
23
|
-
showMobileCheckbox: true,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
userAgentClientHintsContainer?.appendChild(userAgentsForm);
|