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
+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
_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);