Share via


IE7 Tabbed Browsing Q & A

I'm working on some long-overdue posts about tabbed browsing, but before I get too deep into them what I'd like to know most is: what do you want to know about IE7's tabbed browsing implementation?

If you have questions, please post them as comments. For the smaller questions I may reply as a comment, but the bigger questions will be answered as future blog posts. In the end I plan to wrap everything up in a "FAQ" for future reference.

Please keep in mind that I have to use a certain amount of discretion in answering the questions, and I can't really talk about future releases, but I'll do the best I can.

My expertise is mainly in the underlying architecture/implementation, but if you have UI-specific questions I'll ask my colleague if I don't know the answers.

Finally, if there are things you'd like to see in future versions, feel free to comment on those too.

Comments

  • Anonymous
    December 06, 2006
    Why is "Open tab" gone when I right click the link?

  • Anonymous
    December 06, 2006
    You know the most useful feature that you can embed in IE is a download manager. I have seen so many people including me, complaining about the matter. So i think it is really needed.

  • Anonymous
    December 06, 2006
    @elleryq, most likely you have an add-on that decided to override IDocHostUIHandler in order to provide a custom context menu. The fix is to look at your add-ons and upgrade or un-install them. Some, such as the Google toolbar, have fixed this in the newest versions. To provide more detail, the problem is that they're loading the IE6 version of the context menu out of shdoclc.dll, which is no longer part of IE, but is still part of Windows Explorer. There was some bad documentation on our part (well, legacy) which suggested loading otherwise undocumented IE resources out of shdoclc.dll, which a handful of add-ons followed. IDocHostUIHandler was primarily intended to be used by 3rd party browsers such as Maxthon, and not IE extensions. The recommended advice for 3rd party developers is to use standard context menu extensions whenever possible (see the "Context Menus and Extensions" section in http://msdn2.microsoft.com/en-us/library/aa770042.aspx) and if you really have to override IDocHostUIHandler, load your own resources for the context menus.

  • Anonymous
    December 06, 2006
    The comment has been removed

  • Anonymous
    December 06, 2006
    The comment has been removed

  • Anonymous
    December 06, 2006
    One of my tabs requires authorization. This seems to mean that in order to do anything on another tab that requires authorization I need to enter authorization information (or cancel) for this tab. Why? (Similarly to close down all tabs I need to clear this authorization either by completing name/password or clicking cancel) I'm also not sure if this (requiring authentication) is the reason why I often get the entire IE7 set of tabs showing "connecting to" and process usage hovering around 99% leading to me being forced to delete the task after which the next IE7 start works fine.

  • Anonymous
    December 07, 2006
    How do I protect tabs/force new tabs when opening links?  For example, open up google and configure it to open links in a new tab.  Now do a search and click on a link.  The link will open up in a new tab.  Now click another link.  This new link will open in the same tab as the last link, rather than in a new tab.  This behavior is HIGHLY annoying.  I want to be able to open up several different links on a single page in multiple new tab windows, not in the same tab window.

  • Anonymous
    December 07, 2006
    Why is the "New Tab" tab so limited?  :-) It basically has two modes - open to a blank page or open to a pre-set page. It would be extremely helpful if the "New Tab" tab would accept drag and drop and pasting (via ctrl-v) of URL's. Chris

  • Anonymous
    December 07, 2006
    @MikeWal2, I'm not sure what you're running into. I can say that as with multiple windows in the IE process, tabs share the same session cookies so technically if you log-in to a site and then open a link from that site in a new tab, you should continue to be authorized. For the hang, if you can find a reproducable scenario please send it to me. It's not a known issue.

  • Anonymous
    December 07, 2006
    @Will Sullivan, If you configure Google to open links in a new browser window by default, they specify a window target name. When you try to open subsequent links they use the same target name, so the tab that is already open will be targeted and the link will open in that window. Google could fix this by using a target of "_blank" instead of "nw". In IE there isn't anyway I know of to disable frame targeting. From your end, you could simply disable this setting and middle-click or ctrl-click links to open them in separate tabs. (A subtle feature this reminds me of -- when a background tab is navigated as a result of frame targeting, we blink that tab to let you know something has happened.)

  • Anonymous
    December 07, 2006
    @Christopher G. Lewis, Drag-and-drop on individual tabs (including the new tab button) was cut due to time constraints, but may make an appearance in future versions. For the Ctrl+V scenario, keep in mind that you can paste the URL into the address bar and then use Alt+Enter to open it in a new tab. This is a shortcut to opening a new tab switching tabs, pasting the URL, and hitting Enter.

  • Anonymous
    December 11, 2006
    I would love to know why when tabbed browsing is enabled but opening new links in a new tab is disabled, a seemingly random IE window pops up and gets focus before a new IE window is spawned and loaded. Hope that makes sense (contact me if it doesn't -- michael at michaelteper.com). Thanks!!

  • Anonymous
    December 15, 2006
    The comment has been removed

  • Anonymous
    December 18, 2006
    @tonyschr Thanks. I follow your suggestion and update Google toolbar to latest version. "Open in new tab" appear again!

  • Anonymous
    December 19, 2006
    How do i get rid of the tab browsing?

  • Anonymous
    December 30, 2006
    How can you configure IE7 to activate the windows last visited, after closing the current window? Instead it activate the next tab to the right. When right clicking on messenger to view your hotmail inbox, it always opens a new window instead of opening a new tab in the current window. Using the search toolbar should open a new tab in the current window and not active the current tab.

  • Anonymous
    December 30, 2006
    Oh and Jamie to disable tabbed browsing: Click Tools > Internet Options > Settings (under Tabs) > clear the checkbox for "Enable tabbed browsing

  • Anonymous
    December 31, 2006
    I found an answer to one of my questions on tab activation after closing other tabs. Under Advanced > Browsing > Check: "Use most recent order when switching tab with Ctrl+Tab"

  • Anonymous
    January 05, 2007
    is there any way I can tell ie7 to ALWAYS open the tabs open at closing next time a default that I can set ....maybe in the registry if needs be thanks douglas

  • Anonymous
    January 11, 2007
    New Tab can be open by using Ctrl+T and what I supposed that it behaves same as Ctrl+N and use same session as the parent Browser (or the first Tab used)?

  • Anonymous
    January 17, 2007
    Hi! I have a BHO that has problems with tabs. Basically what I would like to do is that in the DISPID_NAVIGATECOMPLETE2 event, I would like to create a map of (URL) - (Internet Explorer_Server HWND) The problem is that if I call spWebBrowser2->get_HWND() it returns the root HWND and not the "Internet Explorer_Server" HWND. Thanks

  • Anonymous
    January 17, 2007
    We use s GPO set homepage for IE. Is there a way to create a shortcut that will open IE7 using 3 other home page tabs or add them to the GPO set one?

  • Anonymous
    January 17, 2007
    Hi Tony I'm a developer in a big company that has a toolbar for IE. I read your "IE7 Tabbed Browsing Implementation" post and I have a general question that i'm quite surprised didn't come up more often, since i know for a fact that other toolbars have the same "problem". You wrote: " ... We considered a variety of approaches and built a couple prototypes, and the solution we settled on was to essentially push a large part of what you see in IE6 into a tab. We built a new frame to host the browsers and wrote a bunch of internal plumbing to manage them and cache state. This is a bit of a simplification; the address bar and so on won’t be part of the tab of course, but 3rd party toolbars and Browser Helper Objects (BHOs) are because they are tied to a single browser and sometimes make deep assumptions about how they are hosted. ... " -- This means that every tab (which is on its own thread) will have its own toolbar. I'm aware of the fact that my toolbar is thread-based and my question would be: As far as IE is concerned, is it possible to have one toolbar per IE Frame window (just like the address bar)? The "problem" I was referring to above is a user-experience problem: I have the option of enabling/disabling buttons on the toolbar, so a user chooses to disable the popup-blocker and then navigates to another tab .. and there it is again. As far as the user is concerned, that's a bug. I understand the need to have add-ons belong to a thread as opposed to the Frame window - what i'm asking is if its possible to design my toolbar differently, and if it is, what should i look for as a design solution (as opposed to a "bandaid fix"). Thank you.

  • Anonymous
    January 19, 2007
    OMagen, in IE7 there is no support for per-frame extensions. This is something we're considering for future versions of IE. For the scenario of keeping state in sync across tabs, my recommendation for IE7 is to use the new DWebBrowserEvents2::OnWindowStateChanged event to detect when the tab is being made visible and then update the UI to reflect the settings/states that are shared across tabs. (You can use techniques such as a global counter that's only incremented when the state is changed on one tab in order to avoid unnecessarily re-reading all settings on every tab switch.)

  • Anonymous
    January 19, 2007
    pablo, the MSDN documentation for get_HWND has been updated with a code snippet for getting the per-tab HWND. See http://msdn2.microsoft.com/en-us/library/aa752126.aspx. As an aside, note that once you start looking for HWNDs it becomes easy to accidentally rely on internal implementation details of IE (i.e. which HWNDs are where, z-order, etc.) which change over time. This is one of the most common sources of compatibility issues.

  • Anonymous
    January 19, 2007
    Marty, I don't think there's a simple way to do this, but depending on your scenario you have a few options:

  1. Create a tab group as a favorite, but that of course requires user action.
  2. Use IE automation to create the instance of IE, and then call IWebBrowser2::Navigate with the flag  navOpenInNewTab or navOpenInBackgroundTab. You can do this very easily using Windows Script Host (wscript.exe) and a few lines of JavaScript.
  3. Do the same as #2, but using a BHO. (However, #2 is much simpler for most scenarios.)
  4. Set IE to "Always open windows in new tabs" or "Let IE decide" and then have an initial page that does a window.open() to open the subsequent pages. You would need to disable the pop-up blocker for this to work of course.
  • Anonymous
    January 19, 2007
    Mujahid, the ability to clone the Travel Log like Ctrl+N does for Ctrl+T is not possible in IE7, but it's something were considering in the future. (It actually got cut because I didn't have time to implement it.)

  • Anonymous
    January 19, 2007
    douglas, no, currently there is not a way to make the option to re-open tabs on next launch persistent.

  • Anonymous
    January 19, 2007
    When clicking on a link within an email in Outlook Express, it opens in a new Window in IE7. I would like it to open an new tab.  I have tried changing the Tabbed Browsing Setting, but nothing makes any difference.  I certainly like the tab feature, but would like it to work with email links too.  Your help is appreciated.

  • Anonymous
    January 19, 2007
    Hi, I wonder why I get a new IE7 window when I click a link in an email for instance. I already have IE open but get another window on the desktop. Used to Avant Browser and also FireFox until IE7 got out. Regards, Niklas

  • Anonymous
    January 24, 2007
    Hello Tony, I am running Vista Enterprise at work.  When closing IE7, I choose to "Open these the next time I start Internet Explorer."  This works fine until i reboot.  After a reboot, I start IE7 and only one tab is displayed with my startup page.   Thanks, Tony S.

  • Anonymous
    January 24, 2007
    Is there a way to disable tabbed browsing for one user account via the registry?  GPO and or logon scripts will not work, because the user account is never used to logon via the console.  In short, the account is used to "runas" IE.

  • Anonymous
    January 30, 2007
    Hi Tony, Thanks for the chance to ask some questions. *System IE7 7.0.6000.16386 Windows Vista Business *Intended Behaviour: Open my favourites one at a time and end up with them all as tabs within one Window *Observed Behaviour IE7 forces 'some' of the pages to be opened in a new Window, starting a new lot of tabs there. It happens to be 'mostly' https pages that open in the second window, however it also occurs with other pages I try to launch from a new tab in the initial windows such as Live Search and/or Google. *Steps to Reproduce For Example:

  1. Launch IE7
  2. From favourites open support.microsoft.com 2.5) You can open other tabs after this step to be sure that tabbing is working if you wish
  3. Click on the 'New Tab' button (or Ctrl-T)
  4. Either type in, or launch from favourites, http://www.live.com. This creates a new Window and starts a new series of tabs.
  5. Click on the 'New Tab' button (or Ctrl-T)
  6. On this new tab in the NEW window, type in support.microsoft.com. This will leave a blank tab in your NEW window, and launch another tabbed instance of support.microsoft.com in the ORIGINAL window. *IE7 Settings (all of the below are 'ticked') -Enable Tabbed Browsing --Warn me when closing multiple tabs --Always switch to new tabs when they are created --Enable Quick Tabs --Open only the first home page when... --Open new tabs next to current tabs --open home page for new tabs instead of blank page So my experience is that whilst running IE7 under Windows Vista Business, it seems to decide somehow that it will launch pages in a new Window (with it's own set of tabs) rather than all in the same Window. -> I thought initially that IE seperated secure tabs from standard http, however the new window includes a mix of https and http tabs that were 'forced over' from the original window. -> It's the same sites (e.g. Live search) that are forced open in a new Window whenever I try to open them in a new tab -> I don't recall this occuring under XP (although I didn't have much time to experiement with it). -> This occurs on all of the PCs in my office that run Vista. Thank you for your thoughts and help with this issue. Tim S
  • Anonymous
    January 30, 2007
    Wow. I've been trying to figure out and research the above issue for days with no luck. Then within an hour of posting that massive wall of text above I figued it out for myself. Doh! ;P IE7 forces seperate Windows for any websites listed in your trusted sites (Tools ->Internet Options -> Security -> Trusted sites). So sorry for the unecessary question above, but I hope my reply can help out someone looking for assitance with the same issue I was experiencing. As a feature request I would still like to be able to open all sites in tabs within one Window, but I can guess perhaps why you wouldn't have trusted and untrusted sites in the same window.