Closed Bug 1447830 Opened 6 years ago Closed 6 years ago

JS Type error on opening attendees dialog (Input is null)

Categories

(Calendar :: Dialogs, defect)

Lightning 6.3
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Taraman, Assigned: MakeMyDay)

References

Details

(Keywords: regression)

Attachments

(1 file)

Full error message:
>TypeError: input is null[Learn More]  calendar-event-dialog-attendees.xml:199:1
>	appendAttendee chrome://calendar/content/calendar-event-dialog-attendees.xml:199:1
>	onInitialize chrome://calendar/content/calendar-event-dialog-attendees.xml:160:17
>	onLoad chrome://calendar/content/calendar-event-dialog-attendees.xml:81:13
>	onLoad self-hosted:975:17
>	editAttendees chrome://lightning/content/lightning-item-iframe.js:1835:5
>	receiveMessage chrome://lightning/content/lightning-item-iframe.js:189:31

Introduced in Nightly Build: 2018-03-15-03-02-01-comm-central/ [1]

Most likely caused by bug463402



[1]: https://ftp.mozilla.org/pub/thunderbird/nightly/2018/03/2018-03-15-03-02-01-comm-central/
Blocks: ltn62
Flags: needinfo?(makemyday)
Keywords: regression
I haven't looked at the issue itself, but I don't think this is a regression from bug 463402. There hasn't been a change in this file or the attendee dialog at all from these patches and I have all patches applied on top of changeset 1cb55e399e91 (a few pushed before the landed chahnegsets of bug 463402) and I cannot reproduce the reported behaviour in this setup - regardless of having or not an email identity associated to the calendar. It's more likely we're suffering from an mc change here.
Flags: needinfo?(makemyday)
This is likely a fallout of 1444580, but I haven't proved by backing out that change, though.
Can somebody please check whether or not this is an issue in 60b1/6.2b1, too?
I don't see the error using Lightning 6.2b1 (BuildID 20180323052656).
Version: Trunk → Lightning 6.3
Unblocking bug 1414612 since this is not an issue in 6.2 based on comment 4.
No longer blocks: ltn62
Brian, can you maybe help to find out if this is indeed related to Bug 1443948 as speculated in comment 5?
And maybe even give a hint, how this can be fixed...

Debugging shows that at [1], the getAnonymousElementByAttribute() calls do not return anything.

[1]: https://dxr.mozilla.org/comm-central/rev/304145e6e1ce10ddab2fc911a1a98e397cab816e/calendar/base/content/dialogs/calendar-event-dialog-attendees.xml#180
Flags: needinfo?(bgrinstead)
(In reply to Markus Adrario [:Taraman] from comment #7)
> Brian, can you maybe help to find out if this is indeed related to Bug
> 1443948 as speculated in comment 5?
> And maybe even give a hint, how this can be fixed...
> 
> Debugging shows that at [1], the getAnonymousElementByAttribute() calls do
> not return anything.
> 
> [1]:
> https://dxr.mozilla.org/comm-central/rev/
> 304145e6e1ce10ddab2fc911a1a98e397cab816e/calendar/base/content/dialogs/
> calendar-event-dialog-attendees.xml#180

Yeah this looks exactly like something that Bug 1443948 would have broken. Before, the binding would get attached to the cloned node (even though it wasn't in the document and thus didn't match the CSS selector needed to attach -moz-binding). Now, you'd need to do `aParentNode.appendChild(newNode);` to cause the XBL binding to get attached to `newNode` and make things like `document.getAnonymousElementByAttribute` work.
Blocks: 1443948
Flags: needinfo?(bgrinstead)
Assignee: nobody → Mozilla
Thanks Brian, I will give it a try.
Since Lightning is not wworking currently I cannot test, but I stay on it.
Attached patch FixAttendeeDialog-V1.diff — — Splinter Review
This is a band-aid patch that brings at least the capability to add or remove attendees back. Freebusy has still some flaws and the background-color vanished.  

Since Wayne is pushing for a beta and adding attendees wouldn't work without this patch, we should take that for now and follow-up.
Assignee: Mozilla → makemyday
Status: NEW → ASSIGNED
Attachment #8993496 - Flags: review?(philipp)
Attachment #8993496 - Flags: approval-calendar-beta?(philipp)
Attachment #8993496 - Flags: review?(philipp)
Attachment #8993496 - Flags: review+
Attachment #8993496 - Flags: approval-calendar-beta?(philipp)
Attachment #8993496 - Flags: approval-calendar-beta+
Keywords: checkin-needed
The flaws I mentioned in comment 10 are related to the use of listboxes, which will be removed with 1477478. I mark this bug to depend on it with regard to the user experience, though technically the reported issue is already fixed here.
Depends on: 1477478
(In reply to [:MakeMyDay] from comment #10)
> Since Wayne is pushing for a beta and adding attendees wouldn't work without
> this patch, we should take that for now and follow-up.
I don't understand how Wayne can be pushing for beta 62. Calendar will *not* work on beta since the overlay loader conflicts with the native overlay loader that was discontinued at mozilla63. Check the beta tree to see that it's full of failures.

This is a discussion we should have elsewhere, but I had to mention it.
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/9d5db359adf0
Make attendee dialog usable again (band-aid patch). r=philipp
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 6.5
Comment on attachment 8993496 [details] [diff] [review]
FixAttendeeDialog-V1.diff

TB 62 beta won't happen.
Attachment #8993496 - Flags: approval-calendar-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: