Having debugger open Firefox in current tab instead of creating new tab - debugging

So every time I run a debug from my development IDE and Firefox is called to display my app, I get my app displayed in a new Firefox tab. That means one new tab every time I start a debug session and before long I've got 10-20 Firefox tabs open.
Can I have it so it reuses the existing tab open?
I could only find Firefox command line options to open new windows etc, not to use the current window/tab.

Just in case the above link disappears, it details going to the about:config screen in Firefox (just enter about:config in address bar) and changing the value of 'browser.link.open_newwindow' from 3 to 1.

Related

Is there a way to make the displayed tab in Firefox "follow" the opened Inspector window(s)?

When I am debugging frontend work, I frequently have multiple Inspector windows open at the same time, each inspecting a different page. As I change Inspector windows, I would like the displayed tab or window to follow me. In other words, I would like the browser to always automatically change to the page I am inspecting; I do not want to change Inspector windows, then go to the browser and find the corresponding tab or window myself.
Is this possible in Firefox? Is it possible in any browser?
(I realize I could dock the Inspector to each tab or window. I do not want to do that because I use the multiple Inspector windows side-by-side for comparison.)
While I am not aware of any way to switch to the target browser tab when selecting a given inspector window, you can certainly do it the other way around:
Say you have 3 tabs opened, and you have opened devtools for each them, in window-mode (undocked). Now, whenever you select any of these 3 tabs, if you just hit F12 (or ctrl+shift+I/cmd+alt+I), then the corresponding devtools window will be brought to the front.
That's an easy way to keep track of which devtools window is linked to which browser tab.
Now, doing this the other way around would require a new feature to be implemented. This can't really be automatic (or at least hidden behind a config of some sorts) because it could be considered frustrating to some users, having their current tab being switched away from each time they click in a devtools window.
I have filed this bug to get it done: https://bugzilla.mozilla.org/show_bug.cgi?id=1163646

Force Firefox to open new tab and not new window

My application sometimes opens URLs in a browser. I do this with Process.Start("http://www.example.com").
My default browser is Firefox. I notice that if the above code runs when no Firefox window is active, each URL (I open several URLs in one go) is opened in its own window.
However, if a Firefox window is already open, the URLs all get opened as new tabs.
How can I make it always open as tabs? Always as windows? Open a single new window and make everything a tab in that?
Because command-line arguments differ between browsers, to do this successfully you would need to launch Firefox explicitly and pass in the appropriate parameters. You would have to create a similar solution for each additional browser you wanted to drive.
If this is something you're doing just for yourself or in an environment where you have some control over what's installed on user machines, then it may be solvable. But if it's a general purpose program meant to work on any Windows PC, then it probably isn't practical.
For firefox, the command line arguments are:
-new-tab URL
Opens URL in a new tab.
-new-window URL
Opens URL in a new window.

Restarting firefox using the developer console (shift+F2) makes every restarted window have the developer console open

When I restart firefox using the developer console, i press shift+F2 and then I write
restart
in the command line that comes up at the bottom and press ENTER.
This is of course a very useful feature, every window dissapears and comes back, but each restarted window will also have the developer console opened as if I was pressing shift+F2 on everyone of them.
Why?
The Developer Toolbar is a global thing, just like any other toolbar (e.g. Nav Bar or Bookmarks Bar). Firefox will remember the visiblity state and will restore it when opening new windows, either the usual way, or after a restart.
Just close the toolbar in one window, and it will be closed in every other window as well.

How to keep Aptana tests in a single tab?

Each time I run or debug a webpage in Aptana, it opens a new tab or window in Firefox. After several runs, there are either a Firefox window with more than one tabs or multiple Firefox windows.
How could I let the Firefox reload a tab for each test run, instead of open a new tab/window each time?
You could just "save all changes" instead of make a test run. Then reload the page on firefox.

Internet Explorer 8 - Session Shared among Explorer Window

IE 8 sharing session among different Explorer Window for same domain.
Like if you are a logined at hotmail.com in IE 8, and you have open another explorer window for hotmail.com, you will automatically logined.
This was not in IE 7, In IE 7 session has shared in the same explorer tab rather different Explorer Window.
Can anyone have a idea about this, Whether it is bug or something else in IE 8
Use
File -> New Session
Well, it is not a bug. Browsers usually share data via cookies. IE8 have this 'new session' feature to let you use multiple email accounts (and similar services) with multiple browsers.
Modify IE8 Shortcut to Permanently Launch New IE Browser Window in New Session
Right click on the IE8 shortcut (all IE8 shortcuts or icons on desktop, Start Menu, Quick Launch bar or Taskbar that you want it to run as a new instance session have to be changed), and choose Properties from the right click context menu. Then, append -nomerge to the end of the of the program path in “Target” text box at “Shortcut” tab. For example,
“C:\Program Files\Internet Explorer\iexplore.exe” -nomerge
link
http://www.mydigitallife.info/2009/07/22/run-separate-isolated-ie8-window-frame-session-with-nomerge-switch-for-multiple-logins/
Create a new shortcut to ieplore.exe, add the -nomerge switch. This will always start a new session.
I prefer using "Run" and just type "iexplore.exe -nomerge"
Your question isn't that clear.
Are saying in IE8 when you open a new window that window shares the same session as the previous window hence any login made in one is shared by the other?
If so then that would be normal behaviour and not any different to the way IE7 handled it.
OTH are you saying that when you open a new window in IE8 it doesn't continue to share the same session as the previous window? If you mean using the New Window action from the Page menu then that would appear to be a bug to me but it doesn't happen on my copy of IE8.
If by new window you mean starting a new instance of IE from quick links or Start menu then it would be correct for that to start a new session and not share session cookies with the other session you have running.
I suspect this last is the real situation, previously the standard IE link added to Start Menu or Desktop would simply open a new window using one of any existing IE sessions currently running, IE8 doesn't do that it will invoke a new session from this link.
You can prevent new windows from sharing session cookies by File -> New Session, however you cannot prevent new tabs from sharing data by default.
Any new window that you open (using iexplore.exe and not openning from inside another window) shares the same session as any previous.
Open a window and log in into your bank account.
Open another window (blank window).
Close the bank account window by clicking on the X.
Wait 5 minutes (just to emphasize the problem).
open another window and type the bank account address.
Result => You are logged into the bank account.
Don't tell me that this is not a bug. This is a huge one! (maybe a design bug)
Most users do not expect this behavior and complain that there is a "problem with our site" because they have another window open on some radiostation which makes sure the session of another site is persisted, I then have to explain to them that Microsoft/Google decided that that's the "right" way. The default should be -nomerge and not the other way around.

Resources