Firefox logo

Firefox offers a simple way to enhance the browsing experience. With a little bit of configuration, you can turn the URL bar into a simple command-line tool to search bug databases, Internet RFCs, and CVEs. This comes in handy when you have an ID for a bug, but you do not have a link to click through. For example, if you have a Red Hat Bugzilla ID, just type rhbz <bugid> into Firefox's search bar and Firefox will take you directly to that bug in Bugzilla.

In this article, after I show how to set up keyword-based bookmarks, I share a list of my shortcuts that I think will be handy for developers working with Red Hat products, projects, and communities.

To use this feature, you must create a bookmark using the full New Bookmark dialog box. You can open this dialog box from the bookmark window. Press Ctrl+Shift+O to access that, or choose Show All Bookmarks from the Bookmarks menu. In that window, you need to choose New Bookmark … in the Organize menu, and the following dialog box will show.

New Bookmark dialog box

A keyword bookmark has a URL that contains a %s sequence (just as in printf) and a keyword name. When the keyword is entered into the URL bar, the URL is not used directly. Instead, the arguments following the keyword are spliced in the URL instead of the %s placeholder. For example, an example keyword bookmark with the URL will turn the URL bar command example sample.html into

I find the following keyword bookmarks particularly useful. They allow me to access information quickly when someone mentions an identifier on IRC, without pasting a full hyperlink (or a hyperlink going to a different resource that does not provide the information I want to view).

Keyword URL

The first entry works for bugs in Sourceware Bugzilla, which covers binutils, glibc, elfutils, and a few others. For example, swbz 18665 shows a glibc bug, and since we create CVE aliases for security bugs, you can get the same bug using swbz CVE-2015-7547.

rhbz works in a similar fashion, but with the Red Hat Bugzilla instance, which covers Fedora and most Red Hat products. For example, rhbz CVE-2015-7547 leads to the flaw bug maintained by Red Hat Product Security.

gcc is a little bit different. To view a bug, you need to use gcc PR89225. But you can also use gcc r268597 to view specific revisions in Subversion. (This relies on the fact that the web server has redirects for PR* and r* URLs at the root.)

The deb shortcut allows you to view individual bugs, such as deb 903514, or all bugs for a binary or source package by using deb libc6 or deb src:glibc.

IETF RFCs can be viewed using rfc 1035.

If you want to locate a package in Koji (Fedora's build system), you can use something like koji binutils.

bzsourceware allows you to perform a reverse lookup on Sourceware bugs in Red Hat Bugzilla (where these bugs have been linked manually). bzsourceware 18665 again provides information about the glibc vulnerability used as an example above. Such keyword bookmarks can be particularly powerful, but since they are derived from what are essentially web application implementation details, they can bitrot over time and need occasional tweaks to keep them working.

The following shortcuts for accessing information in the Customer Portal are specific to Red Hat:

Keyword URL

cve CVE-2015-7547 shows the same vulnerability in the Customer Portal. (These resources contain customer-facing vulnerability information.) If you have a valid subscription and a case number, you can enter it after case, and you will be directed to the case overview for that case. (Note that this is the customer-facing view; Red Hat associates working in Support have access to the backend, using different URLs and, unfortunately, different IDs as well.

Of course, there are many Red-Hat-internal resources (using internal, non-public URLs) that can be accessed in the same manner.

I hope this little Firefox feature can be as useful to you as it is to me.

Last updated: February 6, 2024