Event/task dialog does nothing upon "Save and close" when Thunderbird main window is closed

NEW
Unassigned

Status

Calendar
Dialogs
11 years ago
5 years ago

People

(Reporter: Raymond, Unassigned)

Tracking

Details

(Whiteboard: [no l10n impact])

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Build Identifier: lightning 0.7pre (build 2007073003)

If you have the "new event" dialog open and press "Save and close" but Thunderbird is exited, there appears a progress-bar in the status-bar of the dialog but nothing happens

Reproducible: Always

Steps to Reproduce:
1. Open the "new event" dialog
2. Exit Thunderbird
3. Fill out the details
4. push "Save and close"
Actual Results:  
A progress-bar appears in the status-bar of the dialog but nothing happens.


Expected Results:  
The event is saved and the dialog closed.

I was using thunderbird 2.0.0.5 (20070716)
Summary: The "new event" dialog does nothing when I press "Save and close" when Thunderbird is exited → [Proto] Event dialog: Dialog does nothing when I press "Save and close" when Thunderbird is exited
I can confirm. Console shows:

  Error: doTransaction is not defined
  Source File: chrome://calendar/content/calendar-item-editing.js
  Line: 59
Status: UNCONFIRMED → NEW
Ever confirmed: true
This happens because the calendar code is loaded into the xul-context of Thunderbird's window. If the window will be closed all relevant parts of the calendar engine will be unloaded as well (e.g. code from calendar-item-editing.js). That's why we fail later if the event dialog tries to call back to the code that opened the window. One particular solution I could imagine would to make all the calendar code contained in a service.
Component: General → Theme
Product: Calendar → Firefox
Target Milestone: --- → Firefox 3
Version: unspecified → Trunk
Oops, sorry, my bad, returning to the right component, awfully sorry about stomping your target milestone, please send hatemail to this address :(
Component: Theme → General
Product: Firefox → Calendar
Target Milestone: Firefox 3 → ---
Version: Trunk → Sunbird 0.7
Duplicate of this bug: 430444
OS: Windows XP → All
Hardware: PC → All
Summary: [Proto] Event dialog: Dialog does nothing when I press "Save and close" when Thunderbird is exited → [Proto] Event dialog does nothing upon "Save and close" when Thunderbird window is closed
Version: Sunbird 0.7 → unspecified
Duplicate of this bug: 446565
Summary: [Proto] Event dialog does nothing upon "Save and close" when Thunderbird window is closed → Event/task dialog does nothing upon "Save and close" when Thunderbird/Sunbird main window is closed
Component: General → Dialogs
QA Contact: general → dialogs
Flags: blocking-calendar1.0+
Whiteboard: [not needed beta][no l10n impact]

Comment 6

7 years ago
Under  Lightning/1.0b3pre, Lightning ask for saving and do the job when thunderbird is closed from the main windows (File->Exit). 

Looking at the code for ln 0.7:
-------------------------------
File calendar-event-dialog.js
window.tryToClose = function calItemDialogAttemptClose() {
...
promptService.confirm
}

Code in ln 1.0b3pre:
--------------------
window.tryToClose = onCancel;
onCancel:
if (!gConfirmCancel || (gConfirmCancel && onCommandCancel())) {

onCommandCancel:
promptService.confirmEx
case 0: // Save
  onCommandSave(true);
Blocks: 373251
This could be fixed together with bug 373251, please see my comments there.

Philippe, this bug is not about File > Exit, but rather using the following steps:


1. Open an event dialog
2. Close the main window using the [X] on the window.
-- Now you have Thunderbird still running, but the main window is closed
3. Save and Close in the event dialog
4. Get error messages
Taking off the blocking list, I see this as part of bug 373251, which is also on the blocking list.
Flags: blocking-calendar1.0+
Whiteboard: [not needed beta][no l10n impact] → [no l10n impact]
Summary: Event/task dialog does nothing upon "Save and close" when Thunderbird/Sunbird main window is closed → Event/task dialog does nothing upon "Save and close" when Thunderbird main window is closed

Comment 9

5 years ago
Why was Sunbird taken off of the summary? This bug is still present in Sunbird last I checked.

I can see two solutions for Sunbird: A) Sunbird is split into a service and a UI wherein the service would sit in the system tray as the Sunbird icon and double-clicking it would open the UI, or B) prevent the main window from closing if there are any child windows open.

I prefer the former.
Sunbird development was stopped in 2010. Don't expect any new Sunbird releases or bug fixes.

Comment 11

5 years ago
Thank you for telling me. I knew development was halted, but I only just now read the reasons why it was halted.
You need to log in before you can comment on or make changes to this bug.