Closed Bug 1946972 Opened 1 year ago Closed 1 year ago

Can't middle-click hyperlinks from an extension's options_ui page.

Categories

(WebExtensions :: Untriaged, defect)

Firefox 135
defect

Tracking

(firefox135 affected, firefox136 affected, firefox137 affected)

RESOLVED DUPLICATE of bug 1745374
Tracking Status
firefox135 --- affected
firefox136 --- affected
firefox137 --- affected

People

(Reporter: paul, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0

Steps to reproduce:

Install this trivial extension, open the Options page, and try to middle-click, ctrl-click, or shift-click on the link:

== manifest.json ==
{
"manifest_version": 3,
"name": "options test",
"version": "1.0",
"options_ui": {
"page": "options.html"
}
}

== options.html ==
<!DOCTYPE html>
<html>
<body>
<a href="https://mozilla.org" target="_blank">Mozilla</a>
</body>
</html>

Actual results:

The link doesn't do anything. The only action that works correctly is left-click.

Expected results:

The page should open in a background tab (middle-click, ctrl-click) or a new tab (shift-click).

The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Product: Firefox → WebExtensions

I reproduced the issue on the latest Nightly (137.0a1/20250210213927), Beta (136.0b4/20250210091604) and Release (135.0/20250130195129) under Windows 10 and Ubuntu 24.04 LTS.

Middle-click, Ctrl-click or Shift-click do not work on the link from the attached extension’s Options page. Only left click works and opens https://www.mozilla.org/en-US/ in a new tab.
However, Middle-click, Ctrl-click and Shift-click do work, for example, as expected on the “Learn more” link from the “Run in Private Windows” section from the “Details” page of the extension.

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1745374
Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1745374
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.