run webclient at the same time mozilla was running. It does this by introducing a new startup command, which must be called before the first call to BrowserControlFactory.setAppData(), like this: BrowserControlFactory.setProfile(startupProfile); BrowserControlFactory.setAppData(getBrowserBinDir()); This will cause the startupProfile to be created (if necessary) and used as webclient's mozilla profile. If not specified, a "webclient" profile is created and used. This profile sticks around on your system. SECTION: CHANGES M classes_spec/org/mozilla/webclient/BrowserControlFactory.java M classes_spec/org/mozilla/webclient/WebclientFactory.java M classes_spec/org/mozilla/webclient/impl/WebclientFactoryImpl.java - add setProfile(). M classes_spec/org/mozilla/webclient/impl/WrapperFactory.java M classes_spec/org/mozilla/webclient/impl/wrapper_native/WrapperFactoryImpl.java - add setProfile() and getProfile(). M classes_spec/org/mozilla/webclient/impl/wrapper_native/ProfileManagerImpl.java - pass the wrapperFactory's profile property to the nativeStartup(). M src_moz/ProfileManagerImpl.cpp - logic to implement above changes M test/automated/src/classes/org/mozilla/webclient/ProfileManagerTest.java - test that the startupProfile feature works. git-svn-id: svn://10.0.0.236/trunk@164983 18797224-902f-48f8-a5cc-f745e15eee43
16 KiB
16 KiB