Skip to content
This repository has been archived by the owner. It is now read-only.

[IP-558] Fixes Sentry bugs related to LogoLoader #340

Merged
merged 4 commits into from Jun 12, 2019
Merged

[IP-558] Fixes Sentry bugs related to LogoLoader #340

merged 4 commits into from Jun 12, 2019

Conversation

@ghost
Copy link

@ghost ghost commented Jun 12, 2019

Update LogoLoader to make it a Singleton. This prevents various race conditions when initializing, where the JSON logo database was parsed multiple times. We’re hoping this will eliminate various crash sources surrounding logo loading.

Pull Request Checklist

  • My patch has gone through review and I have addressed review comments
  • My patch has a standard commit message that looks like Bug 12345678 - This fixes something something
  • I have updated the Unit Tests to cover new or changed functionality
  • I have updated the UI Tests to cover new or changed functionality
  • I have marked the bug with [needsuplift]
  • I have made sure that localizable strings use NSLocalizableString()

Screenshots

n/a

Notes for testing this patch

I could not reproduce the crash in sentry, so this is hard to test. What I found out is that the JSON parsing method, which was supposed to be called only once, was called multiple times. Refactoring LogoLoader into a singleton pattern fixes that. I have high hopes that this will at least greatly reduce the number of crashes relating to LogoLoader.

winsmith and others added 2 commits Jun 12, 2019
This prevents various race conditions when initializing, where the JSON logo database was parsed multiple times. We’re hoping this will eliminate some crash sources surrounding logo loading.
daniel-cliqz
@ghost ghost changed the title [IP-558] Fix Sentry bugs related to LogoLoader [IP-558] Fixes Sentry bugs related to LogoLoader Jun 12, 2019
Daniel Jilg
@pavel-cliqz pavel-cliqz merged commit a39c794 into ghostery:master Jun 12, 2019
5 checks passed
5 checks passed
@azure-pipelines
ghostery.browser-ios Build #20190612.8 succeeded
Details
@azure-pipelines
ghostery.browser-ios (Cliqz_IOS_CI_Build Ghostery) Cliqz_IOS_CI_Build Ghostery succeeded
Details
@azure-pipelines
ghostery.browser-ios (Cliqz_IOS_CI_Build Lumen) Cliqz_IOS_CI_Build Lumen succeeded
Details
@azure-pipelines
ghostery.browser-ios (Cliqz_IOS_CI_Test Ghostery) Cliqz_IOS_CI_Test Ghostery succeeded
Details
@azure-pipelines
ghostery.browser-ios (Cliqz_IOS_CI_Test Lumen) Cliqz_IOS_CI_Test Lumen succeeded
Details
@ghost ghost deleted the 558-logoloader branch Jul 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants