@@ -83,7 +83,6 @@ protected void launch(String url) {
83
83
try {
84
84
homePage = new ChromeUrlConvert ().convert (url );
85
85
profilePath = makeCustomProfile (homePage );
86
- populateCustomProfileDirectory (profilePath );
87
86
88
87
log .info ("Launching Firefox..." );
89
88
process = prepareCommand (
@@ -98,28 +97,6 @@ protected void launch(String url) {
98
97
}
99
98
}
100
99
101
- private void populateCustomProfileDirectory (String profilePath ) {
102
- /*
103
- * The first time we launch Firefox with an empty profile directory, Firefox will launch itself,
104
- * populate the profile directory, then kill/relaunch itself, so our process handle goes out of
105
- * date. So, the first time we launch Firefox, we'll start it up at an URL that will immediately
106
- * shut itself down.
107
- */
108
- CommandLine command = prepareCommand (browserInstallation .launcherFilePath (),
109
- "-profile" , profilePath ,
110
- "-silent"
111
- );
112
- command .setDynamicLibraryPath (browserInstallation .libraryPath ());
113
- log .info ("Preparing Firefox profile..." );
114
- command .execute ();
115
- try {
116
- waitForFullProfileToBeCreated (20 * 1000 );
117
- } catch (RuntimeException e ) {
118
- command .destroy ();
119
- throw e ;
120
- }
121
- }
122
-
123
100
protected CommandLine prepareCommand (String ... commands ) {
124
101
CommandLine command = new CommandLine (commands );
125
102
command .setEnvironmentVariable ("MOZ_NO_REMOTE" , "1" );
0 commit comments