Title: [295074] trunk/Source/WebInspectorUI
Revision
295074
Author
[email protected]
Date
2022-05-31 18:16:36 -0700 (Tue, 31 May 2022)

Log Message

Web Inspector: Timelines Tab: Screenshots: enable by default
https://bugs.webkit.org/show_bug.cgi?id=241144

Reviewed by Patrick Angle.

* Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js:
* Source/WebInspectorUI/UserInterface/Base/Setting.js:
* Source/WebInspectorUI/UserInterface/Models/ScreenshotsInstrument.js:
(WI.ScreenshotsInstrument.supported):
* Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js:
(WI.SettingsTabContentView.prototype._createExperimentalSettingsView):

Canonical link: https://commits.webkit.org/251169@main

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js (295073 => 295074)


--- trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js	2022-05-31 23:42:14 UTC (rev 295073)
+++ trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js	2022-06-01 01:16:36 UTC (rev 295074)
@@ -1387,7 +1387,6 @@
 localizedStrings["Show Path"] = "Show Path";
 localizedStrings["Show Remaining (%d)"] = "Show Remaining (%d)";
 localizedStrings["Show Scope Chain on pause"] = "Show Scope Chain on pause";
-localizedStrings["Show Screenshots"] = "Show Screenshots";
 localizedStrings["Show all actions"] = "Show all actions";
 localizedStrings["Show all resources"] = "Show all resources";
 localizedStrings["Show changes only for selected node"] = "Show changes only for selected node";
@@ -1593,7 +1592,6 @@
 localizedStrings["Timeline Recording Import Error: %s"] = "Timeline Recording Import Error: %s";
 /* Name of Timelines Tab */
 localizedStrings["Timelines Tab Name"] = "Timelines";
-localizedStrings["Timelines:"] = "Timelines:";
 /* Text indicating that the local override will block the network activity with an timeout error. */
 localizedStrings["Timeout @ Local Override Type"] = "Timeout";
 localizedStrings["Timer %d Fired"] = "Timer %d Fired";

Modified: trunk/Source/WebInspectorUI/UserInterface/Base/Setting.js (295073 => 295074)


--- trunk/Source/WebInspectorUI/UserInterface/Base/Setting.js	2022-05-31 23:42:14 UTC (rev 295073)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/Setting.js	2022-06-01 01:16:36 UTC (rev 295074)
@@ -233,7 +233,6 @@
     experimentalAllowInspectingInspector: new WI.Setting("experimental-allow-inspecting-inspector", false),
     experimentalCSSCompletionFuzzyMatching: new WI.Setting("experimental-css-completion-fuzzy-matching", true),
     experimentalCSSSortPropertyNameAutocompletionByUsage: new WI.Setting("experimental-css-sort-property-name-autocompletion-by-usage", false),
-    experimentalShowScreenshotsTimeline: new WI.Setting("experimental-show-screenshots-timeline", false),
 
     // Protocol
     protocolLogAsText: new WI.Setting("protocol-log-as-text", false),

Modified: trunk/Source/WebInspectorUI/UserInterface/Models/ScreenshotsInstrument.js (295073 => 295074)


--- trunk/Source/WebInspectorUI/UserInterface/Models/ScreenshotsInstrument.js	2022-05-31 23:42:14 UTC (rev 295073)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/ScreenshotsInstrument.js	2022-06-01 01:16:36 UTC (rev 295074)
@@ -37,7 +37,7 @@
     static supported()
     {
         // COMPATIBILITY (iOS 15.4): Timeline.Instrument.Screenshot did not exist yet.
-        return InspectorBackend.Enum.Timeline.Instrument.Screenshot && (WI.settings.experimentalShowScreenshotsTimeline.value || window.InspectorTest);
+        return InspectorBackend.Enum.Timeline.Instrument.Screenshot;
     }
 
     // Protected

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js (295073 => 295074)


--- trunk/Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js	2022-05-31 23:42:14 UTC (rev 295073)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js	2022-06-01 01:16:36 UTC (rev 295074)
@@ -401,9 +401,6 @@
         diagnosticsGroup.addSetting(WI.settings.experimentalAllowInspectingInspector, WI.UIString("Allow Inspecting Web Inspector", "Allow Inspecting Web Inspector @ Experimental Settings", "Label for setting that allows the user to inspect the Web Inspector user interface."));
         experimentalSettingsView.addSeparator();
 
-        let timelinesGroup = experimentalSettingsView.addGroup(WI.UIString("Timelines:"));
-        timelinesGroup.addSetting(WI.settings.experimentalShowScreenshotsTimeline, WI.UIString("Show Screenshots"));
-
         let reloadInspectorButton = document.createElement("button");
         reloadInspectorButton.textContent = WI.UIString("Reload Web Inspector");
         reloadInspectorButton.addEventListener("click", (event) => {
@@ -420,8 +417,6 @@
             }, reloadInspectorContainerElement);
         }
 
-        listenForChange(WI.settings.experimentalShowScreenshotsTimeline);
-
         if (hasCSSDomain) {
             listenForChange(WI.settings.experimentalEnableStylesJumpToEffective);
             listenForChange(WI.settings.experimentalEnableStylesJumpToVariableDeclaration);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to