I am updating my extension that adds search buttons to the toolbar so that you do not need to keep first clicking on the search box for the search options to show up, but there is no function that I have seen in the new API to capture the searchbox’s contents. How do I grab its contents in the new api? The separate search box is the main reason I use Firefox – I don’t understand why people like to type same content over and over again, every time they want to do the same search in a different engine.
Here is my old code - will this still work in the new API? (Just beginning the redesign)
//this function fires when a search button is clicked function returnURL(tabURL) { return function () { tabs.activeTab.url = tabURL + getMostRecentBrowserWindow().document.getElementById("searchbar").value; }; }