From b9e3b530ee14bb7f7d6db2c680f25ea279fb5d3a Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Wed, 17 May 2017 00:09:09 +0200 Subject: [PATCH] Fixes lion badge when disabled Resolves #8889 Auditors: @bsclifton Test Plan: - Visit any site - Disable shields - Lion head is grayed out --- .../components/navigation/navigator.js | 4 ++- js/components/braveryPanel.js | 11 ++++-- test/navbar-components/navigatorTest.js | 34 +++++++++++++++++++ 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 test/navbar-components/navigatorTest.js diff --git a/app/renderer/components/navigation/navigator.js b/app/renderer/components/navigation/navigator.js index c198ba4d4ef..137d7a21272 100644 --- a/app/renderer/components/navigation/navigator.js +++ b/app/renderer/components/navigation/navigator.js @@ -153,7 +153,8 @@ class Navigator extends React.Component { const activeTab = tabState.getByTabId(state, activeTabId) const activeTabShowingMessageBox = !!(activeTab && tabState.isShowingMessageBox(state, activeTabId)) const allSiteSettings = siteSettingsState.getAllSiteSettings(state, activeFrame) - const braverySettings = siteSettings.activeSettings(allSiteSettings, state, appConfig) + const activeSiteSettings = siteSettings.getSiteSettingsForURL(allSiteSettings, activeFrame.get('location')) + const braverySettings = siteSettings.activeSettings(activeSiteSettings, state, appConfig) const enabledExtensions = extensionState.getEnabledExtensions(state) const extensionBrowserActions = enabledExtensions .map((extension) => { @@ -254,6 +255,7 @@ class Navigator extends React.Component {