Closed Bug 1536473 Opened 6 years ago Closed 6 years ago

ext-menus onWindowOpen listener triggers 'this._box is null' exception on every new window opened

Categories

(WebExtensions :: Frontend, enhancement)

enhancement
Not set
normal

Tracking

(firefox68 verified)

VERIFIED FIXED
mozilla68
Tracking Status
firefox68 --- verified

People

(Reporter: rpl, Assigned: rpl)

Details

Attachments

(1 file)

I'm not sure if this exception is also actually breaking any expected behavior (e.g. for the menus API), nevertheless browser-sidebar.js is throwing and so it sounds like something that we should fix.

The code that is triggering the exception has been introduced in Bug 1419195, in particular where it is accessing window.SidebarUI.currentID right after a new window has been opened.

My guess is that the error is raised because the SidebarUI may not be yet initialized on the new window when the currentID getter is accessed.

Assignee: nobody → lgreco
Status: NEW → ASSIGNED
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/d974001a427e ext-menu onWindowOpen handler should wait for SidebarUI to be fully initialized. r=mixedpuppy,Gijs
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68

Can you please provide some STR for this issue so we can check it manually? If no manual testing is needed please mark it as "qe-verify- "

Flags: needinfo?(lgreco)

I'm not sure what was the exact STR to trigger the error message 'this._box is null' (and if there was any additional side-effect of this issue besides the error logged in the console), but it may be good to verify manually given that the patch doesn't include any new automated test.

Madalin, Would you mind to try the following STR:

  • open the browser console
  • then open some new windows (both non-private and private windows)
  • look in the browser console for the 'this._box is null' error.
Flags: needinfo?(lgreco)

I have done some exploratory testing following the above steps using the latest nightly on Win7x64, Mac OS X 10.14.1 and In was not able to reproduce the issue. I'm marking the bug as verified fixed.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: