detached a1460e4

fix(favicon): correct function comments in FaviconService

- Move preloadFavicon comment to correct function (was on propagateFaviconToDomain)
- Add proper comment for propagateFaviconToDomain describing domain propagation
- Fixes Copilot review feedback
commit
a1460e4f9bc0a6dec414eb740ae007f17273cd71
author
bnema · · 2025-10-18 10:59 UTC
parent
6d78491
signature
unsigned
1 file · +3 -3
M internal/services/favicon_service.go +3 -3
@@ -109,9 +109,6 @@ func (fs *FaviconService) OnFaviconChanged(pageURL, faviconURI string) error {
109109 return nil
110110 }
111111
112-// preloadFavicon renders and exports a favicon in the background
113-// This is called immediately when OnFaviconChanged fires to ensure
114-// favicons are ready for omnibox suggestions as soon as possible
115112 // propagateFaviconToDomain updates all history entries from the same domain
116113 // with the favicon. This ensures multiple paths on the same domain share the favicon
117114 // even if WebKit only signals it once per domain (KISS + DRY principle).
@@ -160,6 +157,9 @@ func (fs *FaviconService) propagateFaviconToDomain(pageURL, faviconURI string) {
160157 }
161158 }
162159
160+// preloadFavicon renders and exports a favicon in the background.
161+// This is called immediately when OnFaviconChanged fires to ensure
162+// favicons are ready for omnibox suggestions as soon as possible.
163163 func (fs *FaviconService) preloadFavicon(pageURL, faviconURI string) {
164164 ctx, cancel := context.WithTimeout(context.Background(), FaviconTimeout)
165165 defer cancel()
@@ -109,9 +109,6 @@ func (fs *FaviconService) OnFaviconChanged(pageURL, faviconURI string) error {
109 return nil109 return nil
110 }110 }
111 111
112-// preloadFavicon renders and exports a favicon in the background
113-// This is called immediately when OnFaviconChanged fires to ensure
114-// favicons are ready for omnibox suggestions as soon as possible
115 // propagateFaviconToDomain updates all history entries from the same domain112 // propagateFaviconToDomain updates all history entries from the same domain
116 // with the favicon. This ensures multiple paths on the same domain share the favicon113 // with the favicon. This ensures multiple paths on the same domain share the favicon
117 // even if WebKit only signals it once per domain (KISS + DRY principle).114 // even if WebKit only signals it once per domain (KISS + DRY principle).
@@ -160,6 +157,9 @@ func (fs *FaviconService) propagateFaviconToDomain(pageURL, faviconURI string) {
160 }157 }
161 }158 }
162 159
160+// preloadFavicon renders and exports a favicon in the background.
161+// This is called immediately when OnFaviconChanged fires to ensure
162+// favicons are ready for omnibox suggestions as soon as possible.
163 func (fs *FaviconService) preloadFavicon(pageURL, faviconURI string) {163 func (fs *FaviconService) preloadFavicon(pageURL, faviconURI string) {
164 ctx, cancel := context.WithTimeout(context.Background(), FaviconTimeout)164 ctx, cancel := context.WithTimeout(context.Background(), FaviconTimeout)
165 defer cancel()165 defer cancel()

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close