Merge pull request #7895 from markmckinnon/AUT-2482-Opera-Borwser-Failing-to-parse-history

AUT-2482-Opera-Borwser-Failing-to-parse-history
This commit is contained in:
Mark McKinnon 2024-04-18 10:12:06 -04:00 committed by GitHub
commit 9498d95aa0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -320,6 +320,8 @@ class Chromium extends Extract {
jProfile = jElement.get("profile").getAsJsonObject(); //NON-NLS
jInfoCache = jProfile.get("info_cache").getAsJsonObject();
} else {
userProfiles.put(browserLocation, "Default");
browserLocations.put(browserLocation, browser);
continue;
}
} catch (JsonIOException | JsonSyntaxException | IllegalStateException ex) {
@ -854,6 +856,7 @@ class Chromium extends Extract {
Set<String> bookmarkKeys = jRoot.keySet();
for (String bookmarkKey : bookmarkKeys) {
JsonObject jBookmark = jRoot.get(bookmarkKey).getAsJsonObject(); //NON-NLS
if (jBookmark.has("children")) {
JsonArray jBookmarkArray = jBookmark.getAsJsonArray("children"); //NON-NLS
for (JsonElement result : jBookmarkArray) {
JsonObject address = result.getAsJsonObject();
@ -908,6 +911,7 @@ class Chromium extends Extract {
}
}
}
if (!context.dataSourceIngestIsCancelled()) {
postArtifacts(bbartifacts);