Closed Bug 1552700 Opened 5 years ago Closed 5 years ago

Unclosable calendar conflict dialog blocks Thunderbird [SyntaxError: redeclaration of var cal][ReferenceError: onLoad is not defined] in calendar-conflicts-dialog.xul

Categories

(Calendar :: Dialogs, defect)

Lightning 6.9
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: memmie, Assigned: darktrojan)

References

Details

(Keywords: hang, regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0

Steps to reproduce:

Start Thunderbird with Lightning extension enabled

Actual results:

Unclosable blank modal apprears and block Thunderbird UI

Expected results:

The modal shouldn't be blank and should be closable (at least with "OK" or "cancel" buttons)

Attached image of browser console shows:

SyntaxError: redeclaration of var cal calendar-conflicts-dialog.xul:17

ReferenceError: onLoad is not defined calendar-conflicts-dialog.xul:1

Might be the same dialog as in Bug 1551860.

Summary: Unclosable blank modal appears at startup → Unclosable blank modal appears at startup [SyntaxError: redeclaration of var cal][ReferenceError: onLoad is not defined] in calendar-conflicts-dialog.xul

@Geoff: in Bug 1520643 https://hg.mozilla.org/comm-central/rev/4dbbf88b2d37d3347e73ba7c5f7c055d6d687994 you changed a lot of imports like
const { Services } = ChromeUtils.import... into
var { Services } = ChromeUtils.import...

Is this required for calendar code too? Could this be cause of error: redeclaration of var cal?

When looking at https://searchfox.org/comm-central/search?q=calUtils.jsm I see lot of "var { cal } = ChromeUtils.import" but still several "const { cal } = ChromeUtils.import".

Flags: needinfo?(geoff)

Yes, if the line in calendar-conflicts-dialog.xul was using var instead of const this problem would go away.

As a general rule I've been using const where I know the variable won't be declared again (such as in a JSM) and var everywhere else.

I don't think it's worth doing a mass change for the sake of it.

Flags: needinfo?(geoff)

Confirm based on duplicates.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: hang, regression
Summary: Unclosable blank modal appears at startup [SyntaxError: redeclaration of var cal][ReferenceError: onLoad is not defined] in calendar-conflicts-dialog.xul → Unclosable calendar conflict dialog blocks Thunderbird [SyntaxError: redeclaration of var cal][ReferenceError: onLoad is not defined] in calendar-conflicts-dialog.xul

Sorry that this sat for so long, I was under the impression somebody was working on it.

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #9070451 - Flags: review?(philipp)
Attachment #9070451 - Flags: approval-calendar-beta?(philipp)

This is now a critical bug. It occurred on 67.0b3, and reappeared every time I restarted TB as soon as I entered my password. I had to revert to the release version of TB. Not sure if a reboot will clear this since I can't do one now.

Attachment #9070451 - Flags: review?(philipp)
Attachment #9070451 - Flags: review+
Attachment #9070451 - Flags: approval-calendar-beta?(philipp)
Attachment #9070451 - Flags: approval-calendar-beta+
Keywords: checkin-needed

(In reply to James Rome from comment #9)

This is now a critical bug. It occurred on 67.0b3, and reappeared every time I restarted TB as soon as I entered my password. I had to revert to the release version of TB. Not sure if a reboot will clear this since I can't do one now.

I had this same OK dialogue box loop happen to me recently. I seemed to have fixed it in https://bugzilla.mozilla.org/show_bug.cgi?id=1541304#c8.

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/3b41b90ba85a
Change two instances of "const { cal }" to "var { cal }" to fix "SyntaxError: redeclaration of var cal". r=philipp

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 7.1

(In reply to Arthur K. from comment #10)

(In reply to James Rome from comment #9)

This is now a critical bug. It occurred on 67.0b3, and reappeared every time I restarted TB as soon as I entered my password. I had to revert to the release version of TB. Not sure if a reboot will clear this since I can't do one now.

I had this same OK dialogue box loop happen to me recently. I seemed to have fixed it in https://bugzilla.mozilla.org/show_bug.cgi?id=1541304#c8.

Correction: https://bugzilla.mozilla.org/show_bug.cgi?id=1541304#c9.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: