Web Inspector: Timeline recording start button missing when WEB_REPLAY disabled ...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Oct 2015 20:41:57 +0000 (20:41 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Oct 2015 20:41:57 +0000 (20:41 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150633

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-10-28
Reviewed by Timothy Hatcher.

* UserInterface/Views/TimelineSidebarPanel.js:
(WebInspector.TimelineSidebarPanel.prototype._updateReplayInterfaceVisibility):
Ensure we pass a boolean to classList.toggle.

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

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/TimelineSidebarPanel.js

index 0be533ab9d5ae9f93cb61ff10e30c0a5036457ed..26d28b966912609c34d44efb13ccc48b23a4aa16 100644 (file)
@@ -1,3 +1,14 @@
+2015-10-28  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Timeline recording start button missing when WEB_REPLAY disabled (no ReplayAgent)
+        https://bugs.webkit.org/show_bug.cgi?id=150633
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/TimelineSidebarPanel.js:
+        (WebInspector.TimelineSidebarPanel.prototype._updateReplayInterfaceVisibility):
+        Ensure we pass a boolean to classList.toggle.
+
 2015-10-27  Joseph Pecoraro  <pecoraro@apple.com>
 
         Web Inspector: Remove Timeline MarkDOMContent and MarkLoad, data is already available
index 454df47abf6fb0e44fe6dffedf24e3f861eb0788..48dab3c9b1319a904edde2fa06877719bb8efe13 100644 (file)
@@ -937,7 +937,7 @@ WebInspector.TimelineSidebarPanel = class TimelineSidebarPanel extends WebInspec
 
     _updateReplayInterfaceVisibility()
     {
-        var shouldShowReplayInterface = window.ReplayAgent && WebInspector.showReplayInterfaceSetting.value;
+        var shouldShowReplayInterface = !!(window.ReplayAgent && WebInspector.showReplayInterfaceSetting.value);
 
         this._statusBarElement.classList.toggle(WebInspector.TimelineSidebarPanel.HiddenStyleClassName, shouldShowReplayInterface);
         this._replayNavigationBar.element.classList.toggle(WebInspector.TimelineSidebarPanel.HiddenStyleClassName, !shouldShowReplayInterface);