Closed Bug 1698143 Opened 3 years ago Closed 3 years ago

Calendar: Dialog persistence stopped working

Categories

(Calendar :: Dialogs, defect)

defect

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
89 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: neil, Assigned: neil)

References

(Regression)

Details

Attachments

(1 file)

Bug 1598050 converted some Lightning dialogs so that their <dialog> element was no longer the root element. Unfortunately, the id was an important persistence attribute on the root element which should not have been moved to the <dialog> element.

Attached patch Proposed patch — — Splinter Review

Some places were actually using the id to refer to the <dialog> element. I've changed these to document.querySelector("dialog"), as used e.g. https://searchfox.org/mozilla-central/search?q=document.querySelector%28%22dialog%22%29

Assignee: nobody → neil
Attachment #9208734 - Flags: review?(geoff)

Bug 1659117 and Bug 1675981 for two specific dialogs had already been created with the same diagnostics. These should probably be marked as duplicate of this bug then.

Status: NEW → ASSIGNED

Comment on attachment 9208734 [details] [diff] [review]
Proposed patch

@neil: Could you please (or confirm that you already did):

  • Test each dialog you touch
  • Search for each ID that you move, whether you forgot/overlooked a code instance that needs to be adapted?
Attachment #9208734 - Flags: review+

(In reply to Ben Bucksch from comment #5)

  • Test each dialog you touch

I only tested the ones I know how to open.

  • Search for each ID that you move, whether you forgot/overlooked a code instance that needs to be adapted?

Every time I moved an ID, I searched for it so that I could fix up any code instances that were using it.

Comment on attachment 9208734 [details] [diff] [review]
Proposed patch

Thanks. This should've happened at the time, but better late than never I guess.

Attachment #9208734 - Flags: review?(geoff) → review+

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/a114a7fd9c58
Restore id attributes to dialog root elements (to fix persistance). r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/8fc1b044f9eb
follow-up - Fix broken test browser_customMinimonthCount.js. rs=bustage-fix

(In reply to Pulsebot from comment #8)

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/a114a7fd9c58
Restore id attributes to dialog root elements (to fix persistance). r=darktrojan

Would have been good to mention in the commit message and bug summary that his has been fixed only for our Calendar component.

Summary: Dialog persistence stopped working → Calendar: Dialog persistence stopped working
See Also: → 1717235
See Also: → 1717236
Blocks: 1585545
See Also: → 1717238, 1652290
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: