Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Firefox - Using ITaskbarList::ActivateTab

07 Dec 2014   #1

Windows 7 Ultimate x32
Firefox - Using ITaskbarList::ActivateTab

I use a toolbar button to toggle between normal and private windows.
Here is the code:
OpenBrowserWindow({private: !PrivateBrowsingUtils.isWindowPrivate(window)});
setTimeout(BrowserTryToCloseWindow, 80);
I use 'setTimeout' in order to prevent some flickering.

When the new window opens, it gets the focus.
When the command 'BrowserTryToCloseWindow' is executed, the focus returns to the old window.
When the old window is closed, the new one does have the focus, but it isn't 'checked / active' in Windows Task Bar.

I suppose I need to use ITaskbarList::ActivateTab in order to activate the new window in the task bar.
I have the (very) basic direction:
var lib ="shell32.dll");
var taskBar = lib.declare(---
I'd appreciate your help.

Win 7, 32-bit, Classic Theme.

Posted here too.

My System SpecsSystem Spec
07 Dec 2014   #2

Dual Boot: Windows 8.1 & Server 2012r2 VMs: Kali Linux, Backbox, Matriux, Windows 8.1

You may find someone who knows this answer here, but its more likely to find help on a Firefox developers forum or a place like Stack Overflow
My System SpecsSystem Spec
07 Dec 2014   #3

Windows 7 Ultimate x32

My System SpecsSystem Spec


 Firefox - Using ITaskbarList::ActivateTab

Thread Tools

Similar help and support threads
Thread Forum
Firefox crashing (plugin container for firefox has stopped working)
After having it freezing now its crashing here's the crash report,the only plugin that i have is the shockwave flash 1500189,ff version:33.1 this happened on older versions too Problem signature: Problem...
Browsers & Mail
Firefox Metro UI Preview reveals how Firefox will look in Windows 8
Firefox Metro UI Preview reveals how Firefox will look in Windows 8 - PC & Tech Authority
Plugin container for firefox and firefox eating up memory
I was having problems with too high physical memory usage(highest was 73%) causing my PC to respond slower even during winexplore. I started uninstalling unnecessary programs and disabling unnecessary processes, when I noticed that plugin-container.exe is taking up 23,xxx KB memory while firefox...
Performance & Maintenance
Firefox - Workarounds for Add-On incompatiblities with Firefox updates
Various methods for getting incompatible Firefox Add-Ons to work in newer browser versions Firefox Add-Ons depend on the developer of the Add-Ons to keep them up-to-date with current and future Firefox browser versions. There are some Add-Ons that that we may use and depend on that are poorly...
How to give suggestions for Firefox and Firefox Sync?
Hello! Do you know how to give my suggestions for "Firefox and Firefox Sync" developers?:o:o
Browsers & Mail

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:19.
Twitter Facebook Google+