@@ -289,7 +289,8 @@ export class ConsoleView extends UI.Widget.VBox implements
289289 private readonly timestampsSetting : Common . Settings . Setting < unknown > ;
290290 private readonly consoleHistoryAutocompleteSetting : Common . Settings . Setting < boolean > ;
291291 private selfXssWarningDisabledSetting : Common . Settings . Setting < boolean > ;
292- readonly pinPane : ConsolePinPane ;
292+ // TODO(T225263604): Restore Live Expressions panel
293+ // readonly pinPane: ConsolePinPane;
293294 private viewport : ConsoleViewport ;
294295 private messagesElement : HTMLElement ;
295296 private messagesCountElement : HTMLElement ;
@@ -406,8 +407,9 @@ export class ConsoleView extends UI.Widget.VBox implements
406407 toolbar . appendSeparator ( ) ;
407408 toolbar . appendToolbarItem ( this . consoleContextSelector . toolbarItem ( ) ) ;
408409 toolbar . appendSeparator ( ) ;
409- const liveExpressionButton = UI . Toolbar . Toolbar . createActionButtonForId ( 'console.create-pin' ) ;
410- toolbar . appendToolbarItem ( liveExpressionButton ) ;
410+ // TODO(T225263604): Restore Live Expressions panel
411+ // const liveExpressionButton = UI.Toolbar.Toolbar.createActionButtonForId('console.create-pin');
412+ // toolbar.appendToolbarItem(liveExpressionButton);
411413 toolbar . appendSeparator ( ) ;
412414 toolbar . appendToolbarItem ( this . filter . textFilterUI ) ;
413415 toolbar . appendToolbarItem ( this . filter . levelMenuButton ) ;
@@ -468,8 +470,9 @@ export class ConsoleView extends UI.Widget.VBox implements
468470
469471 ConsoleView . appendSettingsCheckboxToToolbar (
470472 settingsToolbarRight , monitoringXHREnabledSetting , i18nString ( UIStrings . logXMLHttpRequests ) ) ;
471- ConsoleView . appendSettingsCheckboxToToolbar (
472- settingsToolbarRight , 'console-eager-eval' , i18nString ( UIStrings . eagerlyEvaluateTextInThePrompt ) ) ;
473+ // TODO(T225263604): Restore this setting
474+ // ConsoleView.appendSettingsCheckboxToToolbar(
475+ // settingsToolbarRight, 'console-eager-eval', i18nString(UIStrings.eagerlyEvaluateTextInThePrompt));
473476 ConsoleView . appendSettingsCheckboxToToolbar (
474477 settingsToolbarRight , this . consoleHistoryAutocompleteSetting , i18nString ( UIStrings . autocompleteFromHistory ) ) ;
475478 ConsoleView . appendSettingsCheckboxToToolbar (
@@ -481,9 +484,10 @@ export class ConsoleView extends UI.Widget.VBox implements
481484 this . showSettingsPaneSetting . addChangeListener (
482485 ( ) => settingsPane . element . classList . toggle ( 'hidden' , ! this . showSettingsPaneSetting . get ( ) ) ) ;
483486
484- this . pinPane = new ConsolePinPane ( liveExpressionButton , ( ) => this . prompt . focus ( ) ) ;
485- this . pinPane . element . classList . add ( 'console-view-pinpane' ) ;
486- this . pinPane . show ( this . contentsElement ) ;
487+ // TODO(T225263604): Restore Live Expressions panel
488+ // this.pinPane = new ConsolePinPane(liveExpressionButton, () => this.prompt.focus());
489+ // this.pinPane.element.classList.add('console-view-pinpane');
490+ // this.pinPane.show(this.contentsElement);
487491
488492 this . viewport = new ConsoleViewport ( this ) ;
489493 this . viewport . setStickToBottom ( true ) ;
@@ -1827,9 +1831,10 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
18271831 case 'console.clear.history' :
18281832 ConsoleView . instance ( ) . clearHistory ( ) ;
18291833 return true ;
1830- case 'console.create-pin' :
1831- ConsoleView . instance ( ) . pinPane . addPin ( '' , true /* userGesture */ ) ;
1832- return true ;
1834+ // TODO(T225263604): Restore Live Expressions panel
1835+ // case 'console.create-pin':
1836+ // ConsoleView.instance().pinPane.addPin('', true /* userGesture */);
1837+ // return true;
18331838 }
18341839 return false ;
18351840 }
0 commit comments