-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Better vomnibar favicons (fix for domains and security issues) #1210
Closed
Closed
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
b27bd39
Repair insert mode.
a277fa6
Revert 2c7bebb5f2c873850c2b2d82013cab4eb3d4913c
a720ad9
Better vomnibar favicons.
8afdaab
Merge branch 'fix-tests' of github.com:mrmr1993/vimium
smblott-github e1d41d1
Merge branch 'better-favicon-URLs' of github.com:smblott-github/vimiu…
smblott-github ca6965d
Revert to guessing favicon URLs.
92e51ea
Move favicons to Suggestion constructor.
45e6767
Handle favicon errors in vomnibar.
1dffdcc
Add Mutation Observer stub for vomnibar tests
smblott-github 2c2b5bb
Pass domain to vomnibar for favicons.
smblott-github 052b21c
Move favicon fetching to the background page.
smblott-github 712048a
Merge branch 'better-favicon-URLs-devel' into better-favicon-URLs
smblott-github 523c912
Move favicon fetching to the background page.
smblott-github 593dff5
Initialize favicon with chrome's default.
smblott-github 401eb4a
Merge branch 'better-favicon-URLs-devel' into better-favicon-URLs
smblott-github ea1ba06
Do not use default favicons from chrome://favicon/.
smblott-github ade3fb1
Cache favicons to reduce the number of XMLHttpRequests.
smblott-github c197443
Delete favicon cache callbacks.
smblott-github 793aed8
No need for bottom-half padding.
smblott-github 114ac57
Favicon code tidy up.
smblott-github 6157b7d
Favicons; fetch chrome default dynamically.
smblott-github 658bc56
Favicons; move caching to the background page.
smblott-github 3c7be60
Favicons; no guessing URLs.
smblott-github 04e8b6b
Favicons; fix test, and drop one test that is no longer expected to b…
smblott-github 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
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
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.
If you're worried about garbage collection because for some reason neither
xhr.onerror
norxhr.onload
might be called, I would recommend:chrome.runtime.connect
):onDisconnect
listener; we can use this to do any cleanup we need in the frontend.onDisconnect
to be called for the port. (I can expand on this if it would help.)sendResponseWithTimeout
machinery.xhr.onreadystatechange
instead of seperately onxhr.onerror
andxhr.onload
, so we're less likely to have missed an event (and miss sending a response).xhr
instead, withxhr.timeout = 121000
, and possibly binding thexhr.ontimeout
handler, if having a response within 2 minutes is still important.