I demo tabbed browsing by searching Google, opening a couple of results, then opening a new tab and doing the same search on Yahoo.
Also, to add to the complication of the code, I now have the search box in my own profile set to always open results in a new tab, so your clearing would have to depend on how the tab was opened, something ugly like passing a bool to addTab saying whether or not to clone the history attached to the opening browser. Yuck.
I demo tabbed browsing by searching Google, opening a couple of results, then opening a new tab and doing the same search on Yahoo.
Also, to add to the complication of the code, I now have the search box in my own profile set to always open results in a new tab, so your clearing would have to depend on how the tab was opened, something ugly like passing a bool to addTab saying whether or not to clone the history attached to the opening browser. Yuck.