Uncaught Exception: Unexpected enum value: CPU
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Jul 2019 02:22:30 +0000 (02:22 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Jul 2019 02:22:30 +0000 (02:22 +0000)
https://bugs.webkit.org/show_bug.cgi?id=199564

Reviewed by Joseph Pecoraro.

* UserInterface/Controllers/TimelineManager.js:
(WI.TimelineManager.prototype._updateAutoCaptureInstruments):
Filter the list of auto-capture instruments based on what's actually supported, instead of
directly using the saved list from the `WI.Setting`.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247249 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js

index 23d22f4..611ddd8 100644 (file)
@@ -1,5 +1,17 @@
 2019-07-08  Devin Rousso  <drousso@apple.com>
 
+        Uncaught Exception: Unexpected enum value: CPU
+        https://bugs.webkit.org/show_bug.cgi?id=199564
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Controllers/TimelineManager.js:
+        (WI.TimelineManager.prototype._updateAutoCaptureInstruments):
+        Filter the list of auto-capture instruments based on what's actually supported, instead of
+        directly using the saved list from the `WI.Setting`.
+
+2019-07-08  Devin Rousso  <drousso@apple.com>
+
         Enabling the Layers tab hides the paint flashing button
         https://bugs.webkit.org/show_bug.cgi?id=199549
 
index 874efba..b161a65 100644 (file)
@@ -1206,7 +1206,7 @@ WI.TimelineManager = class TimelineManager extends WI.Object
 
     _updateAutoCaptureInstruments(targets)
     {
-        let enabledTimelineTypes = this._enabledTimelineTypesSetting.value;
+        let enabledTimelineTypes = this.enabledTimelineTypes;
 
         for (let target of targets) {
             if (!target.TimelineAgent)