Skip to content

Comments

calendar: provide deterministic editor context for item action clicks and editor item handling#65

Draft
DeBaschdi wants to merge 2 commits intothunderbird:mainfrom
DeBaschdi:editor_context
Draft

calendar: provide deterministic editor context for item action clicks and editor item handling#65
DeBaschdi wants to merge 2 commits intothunderbird:mainfrom
DeBaschdi:editor_context

Conversation

@DeBaschdi
Copy link

This proposal improves editor-context handling for calendar add-ons in dialog and tab editors:

  • include editorRef/editorType in calendarItemAction.onClicked info
  • support deterministic editor-targeted item access/update in calendar.items APIs
  • expose editor close lifecycle signaling for persisted/discarded/superseded flows

Goal: enable add-ons to work with open editors (including unsaved items) without custom experiments.

Improves calendarItemAction toolbar persistence across restart and upgrade in calendar event editors (dialog + tab).

Stop mutating xulStore in onShutdown().
Ensure button placement on ADDON_INSTALL and ADDON_UPGRADE. Cover both toolbars: event-toolbar and event-tab-toolbar.
… and editor item handling

This proposal improves editor-context handling for calendar add-ons in dialog and tab editors:

- include editorRef/editorType in calendarItemAction.onClicked info
- support deterministic editor-targeted item access/update in calendar.items APIs
- expose editor close lifecycle signaling for persisted/discarded/superseded flows

Goal: enable add-ons to work with open editors (including unsaved items) without custom experiments.
@DeBaschdi DeBaschdi requested a review from kewisch as a code owner February 23, 2026 03:58
@DeBaschdi DeBaschdi marked this pull request as draft February 23, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant