Unable to change default email client preference from Messenger.



MailNews Core
Simple MAPI
17 years ago
4 years ago


(Reporter: Trix Supremo, Assigned: Srilatha Moturi)


Windows 2000

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [PDT+])


(1 attachment, 1 obsolete attachment)



17 years ago
If you attempt to change the preference setting from within Messenger, that
setting will fail to change.  But if you attempt to change the preference
setting from the browser, the change is saved.

1. Launch Browser.
2. Select Mozilla to be the default email client in Edit|Preferences|Mail &
3. Close and reopen pref panel to verify preference was saved.
4. Open Messenger.
5. Now unselect Mozilla mail to be the default email client from Messenger.
6. Close and reopen Messenger's pref panel.

The pref change was not changed and remains checked.

Comment 1

17 years ago
I just ran into this.  I think it'll be hard for the user to figure out that
s/he has to go to the browser window to change this preference.  Nominate nsbranch.
Keywords: nsbranch

Comment 2

17 years ago
Actually, I just went to the browser (mail window was still open though) and
brought up the Preferences dialog.  I checked the box to use Netscape as the
default mail client.  Click OK.  Open the Preferences dlg again.  Change is not

2001-10-05 0.9.4 branch.  WinNT 4.0.

Comment 3

17 years ago
Interesting.  It works now from the browser after a restart.

Comment 4

17 years ago
I looked into this little bit more and I think this is happening because we are 
getting a javascript error
JavaScript error:
chrome://messenger/content/pref-mailnewsOverlay.js line 23: parent.hPrefWindow 
has no properties.
I get this error only when the preferences dialog is launched from messenger.
but not when it is launched from browser.
I'm looking into this right now.

Comment 5

17 years ago
Will fix it.
Severity: normal → major
Priority: -- → P1

Comment 6

17 years ago
Created attachment 52296 [details] [diff] [review]
patch v1

Comment 7

17 years ago
The problem is when preferences window is launched from messenger, hPrefWindow 
is not initailized by the time Init() gets called. SO I moved the 
registerOKCallbackFunc to startup.
Rajiv anc you review the path
Seth can you do the sr
why do you need a new attribute on the check box?

why not just move this line:

+ parent.hPrefWindow.registerOKCallbackFunc( onOK );

into mailnewsOverlayInit()?

over aim, srilatha explained to me that the initFunc is evaluated too early, so 
doing what I suggest would not work.



17 years ago
Keywords: nsbranch → nsbranch+

Comment 10

17 years ago
pls check this into the branch - PDT+ 
Whiteboard: [PDT+]

Comment 11

17 years ago
Fix checked into the 0.9.4 branch


17 years ago
Attachment #52296 - Flags: superreview+
Attachment #52296 - Flags: review+

Comment 12

17 years ago
Fixed in 0.9.4 branch.
Last Resolved: 17 years ago
Resolution: --- → FIXED

Comment 13

17 years ago
verified on 2001-10-12-05-0.9.4

Comment 14

17 years ago
The patch here needs to be checked into the trunk along with MAPI trunk landing.
Seth can u please sr this for the trunk ?
thanks,  - Rajiv.

Comment 15

16 years ago
I don't know what build this was fixed on, but I just downloaded build
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7+) Gecko/20020108 and
though the default mail client box stays checked now, it does not change it in
the registry.  I still show netscape communicators messenger (4.0) as my default
mail client.  And windows still brings up the Netscape 4.0 messenger as the
default mail application.

Windows 2000 pro with latest critical updates and service pack 2.

Product: MailNews → Core
Product: Core → MailNews Core
Attachment #8448433 - Flags: review?(jsantell)
Comment on attachment 8448433 [details]
Link to Github pull-request: https://github.com/mozilla/addon-sdk/pull/1532/files

oops, meant for bug 1032606
Attachment #8448433 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.