Skip to content

Commit 85e196b

Browse files
hashseedCommit Bot
authored andcommitted
Only enable custom formatters for the current session.
[email protected] Bug: 1016755 Change-Id: Id551e01153ba638a7d79319be5608f412980b7bb Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2156350 Commit-Queue: Yang Guo <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]>
1 parent ae8e6db commit 85e196b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

front_end/sdk/RuntimeModel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ export class RuntimeModel extends SDKModel {
6161
/** @type {?boolean} */
6262
this._hasSideEffectSupport = null;
6363

64-
if (Common.Settings.Settings.instance().moduleSetting('customFormatters').get()) {
65-
this._agent.setCustomObjectFormatterEnabled(true);
66-
}
64+
// TODO(1016755): remove custom formatters altogether.
65+
Common.Settings.Settings.instance().moduleSetting('customFormatters').set(false);
66+
this._agent.setCustomObjectFormatterEnabled(false);
6767

6868
Common.Settings.Settings.instance()
6969
.moduleSetting('customFormatters')

front_end/sdk/module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
{
363363
"type": "setting",
364364
"category": "Console",
365-
"title": "Enable custom formatters",
365+
"title": "Temporarily enable deprecated custom formatters",
366366
"settingName": "customFormatters",
367367
"settingType": "boolean",
368368
"defaultValue": false

front_end/sdk/sdk_strings.grdp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252
<message name="IDS_DEVTOOLS_1826966037c093803f9bd475b362057d" desc="Tooltip to explain why a cookie was blocked">
5353
This Set-Cookie was blocked because it was not sent over a secure connection and would have overwritten a cookie with the Secure attribute.
5454
</message>
55-
<message name="IDS_DEVTOOLS_185bf49541541933dc3fd1fb89d3fea3" desc="Title of a setting under the Console category in Settings">
56-
Enable custom formatters
57-
</message>
5855
<message name="IDS_DEVTOOLS_1985576209a186984f171efd81e91e3d" desc="Text in Network Log">
5956
&lt;anonymous&gt;
6057
</message>
@@ -551,6 +548,9 @@
551548
<message name="IDS_DEVTOOLS_f2a47c6809d88e175dade0ef7b16aa13" desc="Text in DOMDebugger Model">
552549
Mouse
553550
</message>
551+
<message name="IDS_DEVTOOLS_f45d84159df792235cfe12839b868a26" desc="Title of a setting under the Console category in Settings">
552+
Temporarily enable deprecated custom formatters
553+
</message>
554554
<message name="IDS_DEVTOOLS_f6137609f4decf877ede5bd3a3125629" desc="Text in CPUProfile Data Model">
555555
<ph name="LOCKED_1">DevTools</ph>: CPU profile parser is fixing <ph name="COUNT">$1s<ex>2</ex></ph> missing samples.
556556
</message>

0 commit comments

Comments
 (0)