Skip to content

Commit 95cb81e

Browse files
Stephen Blottsmblott-github
authored andcommitted
Favicons in the vomnibar; remove support.
There are security issues with favicons as implemented previously. This commit removes favicon support entirely.
1 parent 2687fbe commit 95cb81e

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

background_scripts/completion.coffee

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class Suggestion
2626

2727
generateHtml: ->
2828
return @html if @html
29-
favIconUrl = @tabFavIconUrl or "#{@getUrlRoot(@url)}/favicon.ico"
3029
relevancyHtml = if @showRelevancy then "<span class='relevancy'>#{@computeRelevancy()}</span>" else ""
3130
# NOTE(philc): We're using these vimium-specific class names so we don't collide with the page's CSS.
3231
@html =
@@ -35,8 +34,7 @@ class Suggestion
3534
<span class="vimiumReset vomnibarSource">#{@type}</span>
3635
<span class="vimiumReset vomnibarTitle">#{@highlightTerms(Utils.escapeHtml(@title))}</span>
3736
</div>
38-
<div class="vimiumReset vomnibarBottomHalf vomnibarIcon"
39-
style="background-image: url(#{favIconUrl});">
37+
<div class="vimiumReset vomnibarBottomHalf">
4038
<span class="vimiumReset vomnibarUrl">#{@shortenUrl(@highlightTerms(Utils.escapeHtml(@url)))}</span>
4139
#{relevancyHtml}
4240
</div>
@@ -294,7 +292,6 @@ class TabCompleter
294292
suggestions = results.map (tab) =>
295293
suggestion = new Suggestion(queryTerms, "tab", tab.url, tab.title, @computeRelevancy)
296294
suggestion.tabId = tab.id
297-
suggestion.tabFavIconUrl = tab.favIconUrl
298295
suggestion
299296
onComplete(suggestions)
300297

content_scripts/vimium.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,6 @@ body.vimiumFindMode ::selection {
352352
padding: 2px 0;
353353
}
354354

355-
#vomnibar li .vomnibarIcon {
356-
background-position-y: center;
357-
background-size: 16px;
358-
background-repeat: no-repeat;
359-
padding-left: 20px;
360-
}
361-
362355
#vomnibar li .vomnibarSource {
363356
color: #777;
364357
margin-right: 4px;

0 commit comments

Comments
 (0)