Bug 1412837 - check in searchbox but not in toolbar
MozReview-Commit-ID: E9W2zVpnuGw
--- a/devtools/client/netmonitor/src/components/Toolbar.js
+++ b/devtools/client/netmonitor/src/components/Toolbar.js
@@ -87,27 +87,24 @@ class Toolbar extends Component {
componentDidMount() {
Services.prefs.addObserver(DEVTOOLS_ENABLE_PERSISTENT_LOG_PREF,
this.updatePersistentLogsEnabled);
Services.prefs.addObserver(DEVTOOLS_DISABLE_CACHE_PREF,
this.updateBrowserCacheDisabled);
}
- shouldComponentUpdate(nextProps) {
- return this.props.networkDetailsOpen !== nextProps.networkDetailsOpen
- || this.props.networkDetailsToggleDisabled !== nextProps.networkDetailsToggleDisabled
- || this.props.persistentLogsEnabled !== nextProps.persistentLogsEnabled
- || this.props.browserCacheDisabled !== nextProps.browserCacheDisabled
- || this.props.recording !== nextProps.recording
- || !I.is(this.props.requestFilterTypes, nextProps.requestFilterTypes)
-
- // Filtered requests are useful only when searchbox is focused
- || this.refs.searchbox.focused;
- }
+ // shouldComponentUpdate(nextProps) {
+ // return this.props.networkDetailsOpen !== nextProps.networkDetailsOpen
+ // || this.props.networkDetailsToggleDisabled !== nextProps.networkDetailsToggleDisabled
+ // || this.props.persistentLogsEnabled !== nextProps.persistentLogsEnabled
+ // || this.props.browserCacheDisabled !== nextProps.browserCacheDisabled
+ // || this.props.recording !== nextProps.recording
+ // || !I.is(this.props.requestFilterTypes, nextProps.requestFilterTypes)
+ // }
componentWillUnmount() {
Services.prefs.removeObserver(DEVTOOLS_ENABLE_PERSISTENT_LOG_PREF,
this.updatePersistentLogsEnabled);
Services.prefs.removeObserver(DEVTOOLS_DISABLE_CACHE_PREF,
this.updateBrowserCacheDisabled);
}