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
Yaron

Windows 7 Ultimate x32
 
 
Firefox - Using ITaskbarList::ActivateTab

I use a toolbar button to toggle between normal and private windows.
Here is the code:
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:
Code:
Components.utils.import("resource://gre/modules/ctypes.jsm");
var lib = ctypes.open("shell32.dll");
var taskBar = lib.declare(---
taskBar---
lib.close();
I'd appreciate your help.

Win 7, 32-bit, Classic Theme.

Posted here too.


My System SpecsSystem Spec
.
07 Dec 2014   #2
Gator

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
Yaron

Windows 7 Ultimate x32
 
 

My System SpecsSystem Spec
.

Reply

 Firefox - Using ITaskbarList::ActivateTab




Thread Tools Search this Thread
Search this Thread:

Advanced Search




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 http://fc00.deviantart.net/fs71/f/2014/316/d/e/untitled_by_mkiiix-d865frk.png Problem signature: Problem...
Browsers & Mail
Help - FireFox Has Stopped Responding (I don't have FireFox installed)
Hi guys, I wasn't sure where to post this. Intermittently (every 2-3 days) when I start up my computer I constantly get a pop up stating that Firefox has stopped responding. The trouble is I don't even have Firefox installed. As a diagnostic step I downloaded and installed Firefox then used Revo...
General Discussion
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
News
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...
Tutorials
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 12:44.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App