function updateSearchBox(view)
        {
            console.assert(view && view instanceof WebInspector.AdvancedSearchView);
            var searchView = /** @type {!WebInspector.AdvancedSearchView} */(view);
            if (searchView._search !== searchView.element.window().document.activeElement) {
                WebInspector.inspectorView.setCurrentPanel(WebInspector.SourcesPanel.instance());
                searchView._toggle(queryCandidate);
                searchView.focus();
            }
            return searchView;
        }
@param {?WebInspector.Widget} view
@return {!WebInspector.AdvancedSearchView}