The current tab will remain on google.com, and at your current location on the page. Yahoo.com will be opened in a new tab. The new tab will become cuurent (or not) according to the option you selected in Firefox's preferences. This is the standard behavior for Firefox IF your extension doesn't modify it.