Closed Bug 2043115 Opened 3 months ago Closed 18 minutes ago

Wikipedia: CTRL+Click by username in site notification leads to /wiki/Null

Categories

(Firefox :: Menus, defect, P1)

Firefox 151
Desktop
All
defect

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox-esr153 --- affected
firefox154 --- wontfix
firefox155 --- wontfix
firefox156 --- wontfix
firefox157 --- fixed

People

(Reporter: dartraiden, Assigned: Gijs, NeedInfo)

References

(Regression)

Details

(Keywords: regression, testcase)

Attachments

(3 files, 1 obsolete file)

Attached image mstsc_M5MqwKKm0E.png

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

Steps to reproduce:

  • Got some notification on Wikipedia (for example, someone thanks me for editing)
  • CTRL+Click by author name or page name (marked red on screenshot)

Actual results:

wikipedia.org/wiki/Null is opened in a new tab

Expected results:

The corresponding page opens in a new tab

The Bugbug bot thinks this bug should belong to the 'Toolkit::Alerts Service' component, but is not confident enough to move the bug to that component.

Component: Untriaged → General

moz-regression
Differential Revision: https://phabricator.services.mozilla.com/D291163

The severity field is not set for this bug.
:Mardak, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(edilee)
Component: General → Menus
Flags: needinfo?(edilee) → needinfo?(gijskruitbosch+bugs)
Keywords: regression
Regressed by: 2027969

Can you provide a testcase that reproduces the problem (either link to public webpage that doesn't require further actions, or attaching an HTML page here)?

I have a mostly inactive wikipedia account and I appear to have no notifications, and don't understand how to create some (seems to depend on other users' actions?). Using the markup linked in this comment, to create a data url like so:

data:text/html,<a%20class="oo-ui-widget%20oo-ui-widget-enabled%20mw-echo-ui-notificationItemWidget"%20href="https://de.wikipedia.org/w/index.php?title=Irene_Koki_Mutungi&amp;oldid=prev&amp;diff=267116898&amp;markasread=69860213&amp;markasreadwiki=dewiki">%20...%20<a%20class="oo-ui-widget%20oo-ui-widget-enabled%20oo-ui-labelElement%20oo-ui-optionWidget%20oo-ui-buttonElement%20oo-ui-buttonElement-frameless%20oo-ui-buttonElement-size-medium%20oo-ui-iconElement%20oo-ui-buttonOptionWidget%20mw-echo-ui-menuItemWidget%20mw-echo-ui-menuItemWidget-prioritized"%20aria-selected="false"%20tabindex="-1"%20role="option"%20href="https://de.wikipedia.org/wiki/Benutzerin:Tetraeder"%20title="">...%20</a>%20<a%20class="oo-ui-widget%20oo-ui-widget-enabled%20oo-ui-labelElement%20oo-ui-optionWidget%20oo-ui-buttonElement%20oo-ui-buttonElement-frameless%20oo-ui-buttonElement-size-medium%20oo-ui-iconElement%20oo-ui-buttonOptionWidget%20mw-echo-ui-menuItemWidget%20mw-echo-ui-menuItemWidget-prioritized"%20aria-selected="false"%20tabindex="-1"%20role="option"%20href="https://de.wikipedia.org/wiki/Irene_Koki_Mutungi"%20title="Irene%20Koki%20Mutungi"><a%20class="oo-ui-buttonElement-button"%20role="button">...</a>%20...%20</a>

Does not reproduce the problem for me. (Tested on Firefox 154 beta on Windows)

Without a testcase it's difficult to know what is going on and to be confident any changes would actually fix the issue.

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(wowemuh)
Keywords: testcase-wanted

Enable or disable 2FA in Wikipedia
https://en.wikipedia.org/wiki/Special:AccountSecurity

The system will immediately generate a notification

Ctrl+Click on the "Help" link in this notification

Flags: needinfo?(wowemuh)

:fwang, since you are the author of the regressor, bug 2027969, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(fwang)

Heading out on a break, will try to get to this when I get back if nobody else gets there first.

Flags: needinfo?(gijskruitbosch+bugs)
Attached file test case

a standalone HTML file that uses JavaScript to create nested <a> elements as in the Wikipedia notifications

Attachment #9627046 - Attachment mime type: application/octet-stream → text/html

Thanks very much for the standalone testcase, that's very helpful.

Workaround is using the context menu, which appears to work correctly. In terms of severity, I'm dithering a bit between S2 and S3 here but I suppose in practice it doesn't matter as long as we fix this soon. Hoping to dig more tonight or tomorrow (digging out of post-vacation backlog).

I still need to actually debug but let's get some tracking flags set.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Priority: -- → P1
Hardware: Unspecified → Desktop
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Flags: needinfo?(gijskruitbosch+bugs)
Flags: needinfo?(fwang)
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/30d71d4c45a9 https://hg.mozilla.org/integration/autoland/rev/9730adb51ba0 Revert "Bug 2043115 - fix modifier/middle clicks on nested links without an href attribute, r=mossop" for causing failures at browser_trust_panel.js.
Attachment #9635284 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 18 minutes ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: