Closed Bug 1717254 Opened 4 years ago Closed 4 years ago

Middle mouse click loads previous page in history

Categories

(Core :: DOM: UI Events & Focus Handling, enhancement, P5)

Firefox 89
enhancement

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: john.perry, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

Open a new tab, navigate through through at least one page. For instance, mail.yahoo.com, then mozilla.org.

Actual results:

Browser loads previous page in history. In the example above, the browser would reload mail.yahoo.com.

Expected results:

I want nothing to happen. That is, I'd like to be able to set the middle mouse click to do nothing.

Suppose, for example, that someone accidentally presses the wrong mouse key while filling out a text form. In some circumstances, the text entered in that form will be lost: navigating forward will not restore it. (This has happened to me repeatedly.) There are other instances where this behavior has an undesirable effect. Providing a way to disable this behavior would allow people who like it to continue using it, and people who don't to enjoy life without it.

This is not a security issue.

Group: firefox-core-security

The Bugbug bot thinks this bug should belong to the 'Firefox::Bookmarks & History' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Bookmarks & History

Are you sure this is not actually a setting in your mouse app (if it has one) or system preferences? the middle button usually just does a couple things, on a link it would open that link into a new tab, otherwise if autoscroll is enabled it would show the autoscroll widget and start scrolling.
I don't know of a case where the middle button would go back, and that's why I wonder if it's something set by the system.

Component: Bookmarks & History → DOM: Navigation
Product: Firefox → Core

(In reply to Marco Bonardo [:mak] from comment #3)

Are you sure this is not actually a setting in your mouse app (if it has one) or system preferences? the middle button usually just does a couple things, on a link it would open that link into a new tab, otherwise if autoscroll is enabled it would show the autoscroll widget and start scrolling.
I don't know of a case where the middle button would go back, and that's why I wonder if it's something set by the system.

I'm running on Linux, would that matter? Normally I use KDE, but I didn't find any preferences that would affect that, so I wondered if it's an issue with Gnome, since Firefox seems to be built using GLib, but I didn't find any settings for that, either. (Sorry if that's not the case.)

Middle click doesn't load previous page by default. Do you have somehow middle button mapped to some other mouse button like is it 4th or 5th button which might be back or forward?

Severity: -- → N/A
Component: DOM: Navigation → DOM: UI Events & Focus Handling
Priority: -- → P5

(In reply to Olli Pettay [:smaug] from comment #5)

Middle click doesn't load previous page by default. Do you have somehow middle button mapped to some other mouse button like is it 4th or 5th button which might be back or forward?

Or is the previous page's URL in your clipboard? And if so, if you check the preference middlemouse.contentLoadURL in about:config, is that set to true? Changing it to false (the default, even on Linux as of bug 366945, Firefox 57) would fix it if so.

Hi everyone

I recently encountered this issue in another circumstance, so I'm reasonably sure it's not caused by Firefox thing. For some reason I was certain it was a Firefox issue, sorry.

I'm afraid I'm away from that computer for a week, so I can't answer your questions about settings. Do you want to wait until I return, or just go ahead & close it?

(In reply to john.perry from comment #7)

Hi everyone

I recently encountered this issue in another circumstance, so I'm reasonably sure it's not caused by Firefox thing. For some reason I was certain it was a Firefox issue, sorry.

I'm afraid I'm away from that computer for a week, so I can't answer your questions about settings. Do you want to wait until I return, or just go ahead & close it?

We can close it now. Thanks for the update, and let us know if any further information sheds new light on this. :-)

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.