Joshua Rogers' Scribbles

Quick UX note: Firefox's QR code dialog should close when you click outside it

Firefox can show a QR code for the current page, with “File” > “Share” > “Create QR Code”. Click it, and the QR code opens in a dialog in the middle of the page, while the mouse stays over on the left, where the menu was. This is extremely useful, because Airdropping URLs to my phone rarely works.

Firefox's File > Share menu with Create QR Code highlighted, next to the QR code dialog
Clicking “Create QR Code”

Then you pick up your phone and scan the code. To close the dialog afterwards, you either press Esc (if your hand is on the keyboard), or move the mouse more than halfway across the screen to the tiny “X” in the dialog’s top-right corner.

The mouse cursor left of the QR code dialog, with a dashed arrow to the small X button in the dialog's top-right corner
Where the mouse is after clicking “Create QR Code”, and where it has to go to close the dialog

Very annoying.

Once the QR code is up, you’re not going to do anything else with the mouse, because you’re busy with your phone. Sure, there are “Save” and “Copy” buttons, but that’s not why anybody opens a QR code. And the “X” is small and far away, which is about the slowest kind of thing to click (see Fitts’s law!)

I filed bug 2098971 to make it so clicking outside the area of the QR popup will close the popup, with a patch (D347166).

Yes for micro-productivity gains!