Firefox – Fix Clipped URLs in Status Bar

firefoxwindows

I'm using Firefox(version 12) on Windows 7.

I have disabled trimming URLs via about:config setting:

browser.urlbar.trimURLs

i.e., the above key is set to false

If I close the browser, open it and go to a URL on a page, and point the mouse to it, it still shows it trimmed (i.e. when I move the mouse to the URL, but do not click yet, and look below the page, where the URL is displayed in the little box that comes up, the tooltip style box). I'd like to see the full URL in the tooltip box there.

I see something like http:/abs.../file.htm notice the dots in the name. It shortened it. Even though the URL is not large and can fit in the window, it still trims it by putting these dots.

What else can I do so that Firefox does not trim the URL?

Best Answer

browser.urlbar.trimURLs shows or hides the protocol (e.g. http://) in the address bar. It does not affect URLs in the status bar. There is no preference in about:config to stop the status bar from clipping text, so we'll have to inspect the Firefox Chrome to see what's going on.

After some investigating, I see that the status bar is represented as an XUL statuspanel element and with the following CSS:

statuspanel {
  -moz-binding: url("chrome://browser/content/tabbrowser.xml#statuspanel");
  position: fixed;
  margin-top: -3em;
  left: 0;
  max-width: 50%;
  pointer-events: none;
}

So, using the Stylish add-on, we can define the following rule to stop the status bar from clipping the URL in most cases (i.e. when the URL is shorter than your window):

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

statuspanel
{
    max-width: 100% !important;
}
Related Question