Closed Bug 1694947 Opened 3 years ago Closed 3 years ago

starting with --addressbook is broken

Categories

(Thunderbird :: Address Book, defect)

defect

Tracking

(thunderbird_esr78 unaffected)

RESOLVED FIXED
88 Branch
Tracking Status
thunderbird_esr78 --- unaffected

People

(Reporter: mkmelin, Assigned: henry-x)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Starting with --addressbook doesn't work.
It's due to this line: https://searchfox.org/comm-central/rev/7dcededfeafb2a0c052c7329cc7cfdcbc7f1111c/mail/components/addrbook/content/addressbook.js#112 - we don't have an opener.

Given that this is not a super common use case, and it wouldn't be a problem once we moved the address book into a tab (later), me and Geoff agreed it's likely best just to make sure the line above doesn't throw, and the disable printing if you opened the address book from here.
I think the disabling is around here: https://searchfox.org/comm-central/rev/7dcededfeafb2a0c052c7329cc7cfdcbc7f1111c/mail/components/addrbook/content/abCommon.js#135

Assignee: nobody → henry

When the --addressbook command option is passed to thunderbird, the address book is launched without an opener.

The opener is needed for setting browserDOMWindow, which is used for printing.

The lack of an opener will no longer be a problem when the address book opens in a tab. So for the time being, printing is disabled or silently fails without an opener.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/c49ecc44a835
Handle null opener in addressbook. r=darktrojan

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: