Closed Bug 66533 Opened 24 years ago Closed 23 years ago

Add profile switching dialogs/code to winEmbed

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: adamlock, Assigned: adamlock)

References

Details

Attachments

(4 files)

Add some dialogs to the winEmbed app that demonstrate how to select/switch 
profiles from an embedding app but also for smoketesting purposes. Add 
command-line options so the initial profile can be specified.
This is work in progress profile switching code for winEmbed. The code works as 
it stands in this patch but I should polish it up a little bit before review.

Note you must manually build mozilla/profile to get the profile service because 
embed.mak doesn't build it at the moment.

Comments please.
Blocks: 63999
I've also got profile management code for mfcEmbed. Adam, I'll send that for
reference.
Hi Conrad,

Can you review these diffs please? They enable profile switching when winEmbed 
starts up.

The behaviour is this:

If there are no profiles, a "winEmbed" profile is created and used
If there is one profile, it is selected and used
If there are multiple profiles a dialog appears to allow the user to choose a 
profile.

I also fixed a problem with the WM_COMMAND handling code for the profile chooser 
dialog which meant it didn't work from "File|Choose Profile..." previously
Thanks, I'll take a look soon.
The piece that's missing from this is an application-level profile change
observer. This observer needs to do some things, whithout which profile
switching won't work. Check out what mfcEmbed does with that.
Conrad, the latest patch adds observer notifications to monitor for profile 
changes. The behaviour is to close all the windows on a profile change and open 
a new one with the initial URL in it.
Marking for 0.9. As winEmbed is no longer the default smoketester I may checkin 
what I've done on this so far to enable profiles to be activated even if 
switching from another doesn't work. This should enable me to clear bug 63999.

However I'll leave the bug open until profile switching is done in a 
satisfactory manner.
Target Milestone: --- → mozilla0.9
winEmbed just received an update with new profile switching code. It isn't as 
sophisticated as mfcEmbed but seems to work reasonably well.

A couple of notes:

1. At startup don't double-click on a profile from the dialog. Click on it and 
hit the "Select" button, otherwise it thinks you hit cancel and quits. One 
line fix is pending.

2. Sometimes dynamically switching profiles causes a crash on exit. It looks as 
though one of the chrome objects is still registered with the observer service 
even though it's been destroyed. I thought weak pointers meant that couldn't 
happen so I'm investigating that one too.

Profile double click issue has been fixed
closing as fixed. please open new bugs on the seperate issues.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Correction: Changing QA contact for the Embed API bugs to David Epstein.
QA Contact: mdunn → depstein
Profile dlg in winEmbed. Profile switching works fine. 
profileService->SetCurrentProfile(newProfileName) used to switch profiles.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: