The preferences I've come to use in Firefox, which I believe are fully enabled by one of the tab preference extensions, are to open all ordinary "new window" links and "unresized" _javascript_-opened windows in tabs. This allows things like resized calendar popups to open as nicely behaving windows with the _javascript_-specified window values applied, while plain window.open commands go to a new tab.