586587588589590591592
} public String toJson() throws IOException { updateUserPrefs(); return new Zip().zip(profileDir); }
592593594595596597598599600
} public static FirefoxProfile fromJson(String json) throws IOException { File dir = TemporaryFilesystem.createTempDir("webdriver", "duplicated"); new Zip().unzip(json, dir); return new FirefoxProfile(dir); }