-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Favicons #388
Merged
Merged
Favicons #388
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
5fb5732
Favicons Xcode folder group
tomasstrba 228cb29
Refactored to FaviconManager
tomasstrba 4854a57
Merge branch 'develop' into tom/favicons
tomasstrba 5459425
In progress
tomasstrba af45ce4
Merge branch 'develop' into tom/favicons
tomasstrba 24b8ed4
Using 16x16 icon for tab bar favicons as the last option
tomasstrba 86e2611
Merge branch 'develop' into tom/favicons
tomasstrba bdcdc96
Using small favicon for homepage view
tomasstrba 0de47bf
Queue bariers + Cache invalidation
tomasstrba a5d079b
Removing in general
tomasstrba 4a50afa
Burning
tomasstrba 249c666
Burning exceptions - bookmarks
tomasstrba 9e8d982
Regular cleaning of old favicons
tomasstrba d3e83d9
Logs corrected
tomasstrba 48730a2
Unit tests compilation fixed
tomasstrba ab6fd70
Code corrections
tomasstrba 5b46c47
Prevent initial content setting to trigger storing of the state
tomasstrba da607ff
AppStateChangePublisherTests corrected
tomasstrba 3c46782
Fire tests fixed
tomasstrba 4d3c601
Custom queue usage refactored. Currently, the queue is usd just for t…
tomasstrba 71fad17
Unit tests compilation fixed
tomasstrba 9e00a45
Loading of favicons after app finished launching. + Unit tests of bur…
tomasstrba f366f08
Unnecessary unit test removed
tomasstrba 2afb3ff
Fixed issue of outdated favicon not being refreshed due to the optimi…
tomasstrba 6a76ac9
Long method refactored into multiple ones
tomasstrba 2f42876
Filtering out huge favicons that slowed down or used too much of the …
tomasstrba a78a085
Hompage favicons resized if necessary to avoid the blurry artefacts
tomasstrba b93dd5e
Merge branch 'develop' into tom/favicons
tomasstrba 8efa496
Raising the bar for filtering out large favicons (twitter.com)
tomasstrba af9a9f5
asyncAfter() replaced with .dropFirst()
tomasstrba 2a88dd5
Refreshing favicons in bookmark views
tomasstrba 3f4661b
Small cropping of the favicon on homepage disabled
tomasstrba ffa5089
Making sure small images are used if medium aren't available
tomasstrba f0c0ee0
Removing Retina resizing logic to keep the homepage experience unchanged
tomasstrba 9e75ede
Merge branch 'develop' into tom/favicons
tomasstrba 2bb6dc8
Using URLSession.dataTask instead of NSImage(contentsOf:)
tomasstrba 10c0b25
PR comments
tomasstrba 4e5684b
Burning exception of bookmarked domains
tomasstrba 52cbfa6
Favicons of Logins added to burning exceptions
tomasstrba 0ada8f4
Unit tests compilation fixed
tomasstrba e1c957f
SwiftLint issue
tomasstrba 46e2e16
Import of BSK corrected
tomasstrba e2118a4
Using favicon manager mock in unit tests
tomasstrba edc29da
SecureVault exceptions removed
tomasstrba 59dc721
Unit tests adjusted
tomasstrba d2ed224
Unnecessary assertionFailure removed
tomasstrba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion here would be to add a default value (_ sizeCategory: Favicon.SizeCategory = .small) since most places calling this are requesting the .small version.
But there's also an argument to be made that always requiring the category is better to telegraph the intention on the call site.
I don't have strong opinions on this, LGTM either way, but I'm curious to know your opinion :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this is a hard choice :D I believe a developer should always think what size of favicon is required. Once there is a default argument Xcode usually autocompletes the method without the argument. In this case, I think .small or .medium as an argument isn't a lot of work and there is no risk of bad favicon usage.
Agree? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it makes sense. Thanks for explaining your opinion :)