Closed Bug 1749134 Opened 2 years ago Closed 2 years ago

Uncaught TypeError: aEvent.currentTarget.menupopup is null when left-clicking on the new tab button with containers disabled

Categories

(Firefox :: Menus, defect, P3)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
98 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox95 --- wontfix
firefox96 --- wontfix
firefox97 --- wontfix
firefox98 --- verified

People

(Reporter: kernp25, Assigned: Gijs)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached image firefox_DXpaUxkmcG.png

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

Steps to reproduce:

  1. Set the pref privacy.userContext.enabled to false
  2. Left-click on the new tab button

Actual results:

Uncaught TypeError: aEvent.currentTarget.menupopup is null will show in the browser console.

Can you confirm this bug and set it to NEW (and provide a regression window?)

Flags: needinfo?(alice0775)

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

Component: Untriaged → New Tab Page

I cannot reproduce the issue.

Flags: needinfo?(alice0775)
Attached video firefox_5I7gAp6UKt.mp4

Can you reproduce?

Flags: needinfo?(acornestean)

Hello @kernp25,

I managed to reproduce the issue on the latest Nightly (97.0a1/20220109215539), Beta (96.0/20220106144528) and Release (95.0.2/20211218203254) under Windows 10 x64.

I did however have to flip the privacy.userContext.enabled pref to true (from it’s default state of false) and then flip it back to false in order to reproduce the issue. After this, left clicking on the new tab button produced the mentioned error.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(acornestean)
Attached image 2022-01-10_09h45_58.png

This looks to be related to menus being enabled / disabled

Component: New Tab Page → Menus
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Assignee: gijskruitbosch+bugs → nobody
Status: ASSIGNED → NEW
OS: Unspecified → All
Regressed by: 1613250
Hardware: Unspecified → Desktop
Has Regression Range: --- → yes
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 1613250

Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/91c1ba9787b4
fix error message when toggling containers caused by not removing from gClickAndHoldListenersOnElement, r=jaws
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
QA Whiteboard: [qa-98b-p2]

I managed to reproduce this issue on Firefox 97(20220202182137) using the STR from comment 5 on macOS Big Sur 11. This bug is fixed on Firefox 98.0b5(20220215194438) and Nightly 99.0a1(20220215210051) on macOS Big Sur 11, Linux x86_64(Ubuntu 20.04) and Win10.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-98b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: