Closed Bug 277406 Opened 20 years ago Closed 18 years ago

Thunderbird is raised on top (steals focus) after opening Word or Excel attachment

Categories

(Thunderbird :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: lduperval, Assigned: mscott)

References

Details

(Keywords: verified1.8.1.1)

Attachments

(1 file, 1 obsolete file)

When I open a Word or Excel attachment with TB 1.0,  the Thunderbird window is
raised on top and effectively covers the new window.

I haven't seen this with other types of attachments (I tested PDF, PowerPoint
and OpenOffice.org attachments). I tested it with Outlook and I don't get this
behaviour.

L
I have the same problem with TB 1.0.2 HU

phajdu@citromail.hu
same problem with trunk build on Win2K3.
same problem with trunk build on Win2K3.
The problem seems to be download progress dialog. When tb opens pdf file, file
download is done before launching acrobat reader. However, for xls, excel is
launched first and the progress dialog gets the focus. It would be more clear if
you open big file. 
(In reply to comment #4)
> The problem seems to be download progress dialog. When tb opens pdf file,
file
> download is done before launching acrobat reader. However, for xls, excel is
> launched first and the progress dialog gets the focus. It would be more clear
if
> you open big file. 
> 

It was my misunderstanding. The file download is done already when
::ShellExecute() is called. The problem seems to be 'opening dialog'. I could
get screenshot of it by putting breakpoint at right next line of ShellExecute()
in nsLocalFile::Launch().
Attachment #183246 - Attachment is obsolete: true
Finally, after several hours of research, I figured out cause of this bug. :-)
Actually, opening dialog is not an issue at all. The specialty of msoffice
documents here is that windows shell uses DDE to open them. This bug did not
happen when I chagned my system setting not to use DDE. However, unlike
thunderbird, mozilla mail works as expected whether shell use DDE or not. I
found that the key difference is parent of helper application dialog.

In 'show' function of 'nsHelperAppDlg.js.in', thunderbird specifies parent
window when it opens the dialog.  Due to this fact, the dialog acts like modal
dialog - it stays on top of main window.  More importantly, it gives focus back
to main window when it closed. This intention seems to be ignored when focus is
transferred to another application. However, it still in effect and turns out
this bug when windows shell uses DDE to open documents. 

So, a simple way to solve this bug is not to set parent of helper application
dialog. I created a patch for this. I understand that we will lose benefit of
modal-like behavior of the dialog by applying the patch. However, I believe it
is worth to fix this bug considering the fact that msoffice is still major
office application on windows platform.
Attachment #183276 - Flags: review? → review?(mscott)
*** Bug 257625 has been marked as a duplicate of this bug. ***
Confirmed
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.8b5?
Scott, the patch is working fine for me with a current branch build. Could you
give r= so that patch could fix this ugly bug for Thunderbird 1.5?
we wouldn't block the release for this. I'll put it in the milestone bucket for
consideration and will re-nominate if I think we need to take it. I"d like to
know what the down side to this change is since it also effects Firefox.
Flags: blocking1.8b5? → blocking1.8b5-
Target Milestone: --- → Thunderbird1.1
too late for 1.5 now and we still don't know what the ramifications are for
Firefox which also uses this code. 
Target Milestone: Thunderbird1.1 → Thunderbird2.0
*** Bug 286329 has been marked as a duplicate of this bug. ***
I have a customer that normally would prefer Firefox instead of Explorer.

This bug is really annoying for them, since they download and open Word and Excel files a lot.

Can someone confirm if this will be fixed in the next version of Firefox. And eventually when that new release is expected to be finished?

The customer is now using Firefox 1.5.0.1

We need this fix for Firefox!!!!!
This has been awaiting review for over a year now. Perhaps it was forgotten? Asking for blocking-tb2.
Flags: blocking-thunderbird2?
Looking for resolution to this bug.
Some customers are really disliking this FEATURE of Thunderbird
Please allow this to be fixed soon
Pretty sure this will be fixed by bug 259816.
Depends on: 259816
(In reply to comment #17)
> Pretty sure this will be fixed by bug 259816.

did this fix it? 

Summary: Thunderbird is raised on top after opening Word or Excel attachment → Thunderbird is raised on top (steals focus) after opening Word or Excel attachment
(In reply to comment #18)
>> Pretty sure this will be fixed by bug 259816.
> 
> did this fix it? 

Yes, this is fixed now. Tested with version 2 beta 1 (20061021).
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 183276 [details] [diff] [review]
patch to set parent of helper application dialog as null

looks like this issue was fixed in another bug so we don't need this now.
Attachment #183276 - Flags: review?(mscott) → review-
Flags: blocking-thunderbird2? → blocking-thunderbird2-
Keywords: fixed1.8.1.1
Target Milestone: Thunderbird2.0 → ---
Status: RESOLVED → VERIFIED
this issue is not fixed.  

Thunderbird version 2.0.0.4 (20070604) (windows)

Still doing it, doesn't matter what the attachment is.  ZIP, PDF, DOC, * - they all lose focus to the thunderbird main window when an attachement is opened.

This has been happening with all versions of Thunderbird.  Please re-open this bug and check the status of the focus-grabbing that occurs.
Sorry, I cannot reproduce this problem with 2.0.0.5 and WinXP. Please give us all necessary version information about Windows, Office and other affected applications.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: