Thanks to intrusive advertising, we sometimes forget that the browser pop-up functionality can actually be useful. In this particular case, I was playing with the Notify New Mail Popup plug-in for SquirrelMail the other day and I came across an interesting “feature” of Firefox.
First of all, the purpose of this plug-in is to allow you to pop up another small window that periodically refreshes. When you get new mail it changes the title bar of the window to say “Email” (otherwise it says “No Email”, brilliant, I know.) This is really nice to have sitting in your taskbar so, at a glance, you know if you have new mail. This actually works just fine with IE, but with Firefox, it displays the URL of the window, followed by the window title.
As you can see, this is a problem if I want to know if I have new email.
Depending on your perspective, you can look at this as a bug or a feature. It’s a bug in the sense that the browser is modifying the page’s <TITLE> tag and pre-pending the url. It’s a feature because this window doesn’t have the location bar showing, therefore it puts the URL in the title for you.
To “fix” this particular problem, I added the “location” modifier.
This makes the window taller by adding the location bar, but it also removed the pre-pended URL from the title.
I’m sure this “feature” causes problems in other similar web applications. I’m curious to know if anyone else has found another way around this.
Maybe this should be a customizable setting in the user.js file for Firefox?