Merge pull request 'chore(deps): update Go dependencies and templ to v0.3.1070' (#6) from chore/deps-update-2026-10 into main
9 files · +271 -297
M go.mod +19 -21
| @@ -3,8 +3,8 @@ module github.com/bnema/dumber | |||
| 3 | 3 | go 1.27 | |
| 4 | 4 | ||
| 5 | 5 | require ( | |
| 6 | - | github.com/a-h/templ v0.3.1020 | |
| 7 | - | github.com/andybalholm/brotli v1.2.5 | |
| 6 | + | github.com/a-h/templ v0.3.1070 | |
| 7 | + | github.com/andybalholm/brotli v1.2.6 | |
| 8 | 8 | github.com/bnema/purego v0.13.0-bnema.1 | |
| 9 | 9 | github.com/bnema/purego-cef v0.14.4 | |
| 10 | 10 | github.com/bnema/purego-cef2gtk v0.11.4 | |
| @@ -16,17 +16,17 @@ require ( | |||
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| 18 | 18 | github.com/fsnotify/fsnotify v1.10.1 | |
| 19 | - | github.com/godbus/dbus/v5 v5.2.2 | |
| 19 | + | github.com/godbus/dbus/v5 v5.2.4 | |
| 20 | 20 | github.com/pelletier/go-toml/v2 v2.4.3 | |
| 21 | - | github.com/pressly/goose/v3 v3.28.0 | |
| 21 | + | github.com/pressly/goose/v3 v3.29.0 | |
| 22 | 22 | github.com/rs/zerolog v1.35.1 | |
| 23 | 23 | github.com/spf13/cobra v1.10.2 | |
| 24 | 24 | github.com/spf13/pflag v1.0.10 | |
| 25 | 25 | github.com/spf13/viper v1.21.0 | |
| 26 | 26 | github.com/stretchr/testify v1.12.1 | |
| 27 | - | golang.org/x/image v0.46.0 | |
| 28 | - | golang.org/x/net v0.59.0 | |
| 29 | - | golang.org/x/sys v0.48.0 | |
| 27 | + | golang.org/x/image v0.47.0 | |
| 28 | + | golang.org/x/net v0.61.0 | |
| 29 | + | golang.org/x/sys v0.49.0 | |
| 30 | 30 | gopkg.in/yaml.v3 v3.0.1 | |
| 31 | 31 | ) | |
| 32 | 32 | ||
| @@ -36,7 +36,7 @@ require ( | |||
| 36 | 36 | github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect | |
| 37 | 37 | github.com/cenkalti/backoff/v4 v4.3.0 // indirect | |
| 38 | 38 | github.com/charmbracelet/colorprofile v0.4.3 // indirect | |
| 39 | - | github.com/charmbracelet/x/ansi v0.11.7 // indirect | |
| 39 | + | github.com/charmbracelet/x/ansi v0.11.9 // indirect | |
| 40 | 40 | github.com/charmbracelet/x/cellbuf v0.0.15 // indirect | |
| 41 | 41 | github.com/charmbracelet/x/exp/golden v0.0.0-20260511125431-fe5d686e0c99 // indirect | |
| 42 | 42 | github.com/charmbracelet/x/term v0.2.2 // indirect | |
| @@ -47,13 +47,12 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | - | github.com/google/go-cmp v0.7.0 // indirect | |
| 51 | 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 52 | - | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 53 | - | github.com/mattn/go-colorable v0.1.14 // indirect | |
| 51 | + | github.com/lucasb-eyer/go-colorful v1.4.1 // indirect | |
| 52 | + | github.com/mattn/go-colorable v0.1.16 // indirect | |
| 54 | 53 | github.com/mattn/go-isatty v0.0.24 // indirect | |
| 55 | 54 | github.com/mattn/go-localereader v0.0.1 // indirect | |
| 56 | - | github.com/mattn/go-runewidth v0.0.23 // indirect | |
| 55 | + | github.com/mattn/go-runewidth v0.0.31 // indirect | |
| 57 | 56 | github.com/mfridman/interpolate v0.0.2 // indirect | |
| 58 | 57 | github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect | |
| 59 | 58 | github.com/muesli/cancelreader v0.2.2 // indirect | |
| @@ -63,22 +62,21 @@ require ( | |||
| 63 | 62 | github.com/rogpeppe/go-internal v1.14.1 // indirect | |
| 64 | 63 | github.com/russross/blackfriday/v2 v2.1.0 // indirect | |
| 65 | 64 | github.com/sagikazarmark/locafero v0.12.0 // indirect | |
| 66 | - | github.com/sahilm/fuzzy v0.1.2 // indirect | |
| 67 | - | github.com/sethvargo/go-retry v0.4.0 // indirect | |
| 65 | + | github.com/sahilm/fuzzy v0.1.3 // indirect | |
| 66 | + | github.com/sethvargo/go-retry v0.5.0 // indirect | |
| 68 | 67 | github.com/spf13/afero v1.15.0 // indirect | |
| 69 | 68 | github.com/spf13/cast v1.10.0 // indirect | |
| 70 | - | github.com/stretchr/objx v0.5.3 // indirect | |
| 69 | + | github.com/stretchr/objx v0.7.0 // indirect | |
| 71 | 70 | github.com/subosito/gotenv v1.6.0 // indirect | |
| 72 | - | github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect | |
| 71 | + | github.com/xo/terminfo v1.2.0 // indirect | |
| 73 | 72 | github.com/xyproto/randomstring v1.2.0 // indirect | |
| 74 | 73 | go.uber.org/multierr v1.11.0 // indirect | |
| 75 | 74 | go.yaml.in/yaml/v3 v3.0.5 // indirect | |
| 76 | - | golang.org/x/mod v0.41.0 // indirect | |
| 77 | - | golang.org/x/sync v0.23.0 // indirect | |
| 78 | - | golang.org/x/text v0.42.0 // indirect | |
| 79 | - | golang.org/x/tools v0.49.0 // indirect | |
| 75 | + | golang.org/x/mod v0.42.0 // indirect | |
| 76 | + | golang.org/x/sync v0.24.0 // indirect | |
| 77 | + | golang.org/x/text v0.43.0 // indirect | |
| 78 | + | golang.org/x/tools v0.52.0 // indirect | |
| 80 | 79 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 81 | - | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 82 | 80 | ) | |
| 83 | 81 | ||
| 84 | 82 | tool github.com/a-h/templ/cmd/templ | |
| @@ -3,8 +3,8 @@ module github.com/bnema/dumber | |||||
| 3 | go 1.27 | 3 | go 1.27 | ||
| 4 | 4 | ||||
| 5 | require ( | 5 | require ( | ||
| 6 | - | github.com/a-h/templ v0.3.1020 | 6 | + | github.com/a-h/templ v0.3.1070 |
| 7 | - | github.com/andybalholm/brotli v1.2.5 | 7 | + | github.com/andybalholm/brotli v1.2.6 |
| 8 | github.com/bnema/purego v0.13.0-bnema.1 | 8 | github.com/bnema/purego v0.13.0-bnema.1 | ||
| 9 | github.com/bnema/purego-cef v0.14.4 | 9 | github.com/bnema/purego-cef v0.14.4 | ||
| 10 | github.com/bnema/purego-cef2gtk v0.11.4 | 10 | github.com/bnema/purego-cef2gtk v0.11.4 | ||
| @@ -16,17 +16,17 @@ require ( | |||||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
| 18 | github.com/fsnotify/fsnotify v1.10.1 | 18 | github.com/fsnotify/fsnotify v1.10.1 | ||
| 19 | - | github.com/godbus/dbus/v5 v5.2.2 | 19 | + | github.com/godbus/dbus/v5 v5.2.4 |
| 20 | github.com/pelletier/go-toml/v2 v2.4.3 | 20 | github.com/pelletier/go-toml/v2 v2.4.3 | ||
| 21 | - | github.com/pressly/goose/v3 v3.28.0 | 21 | + | github.com/pressly/goose/v3 v3.29.0 |
| 22 | github.com/rs/zerolog v1.35.1 | 22 | github.com/rs/zerolog v1.35.1 | ||
| 23 | github.com/spf13/cobra v1.10.2 | 23 | github.com/spf13/cobra v1.10.2 | ||
| 24 | github.com/spf13/pflag v1.0.10 | 24 | github.com/spf13/pflag v1.0.10 | ||
| 25 | github.com/spf13/viper v1.21.0 | 25 | github.com/spf13/viper v1.21.0 | ||
| 26 | github.com/stretchr/testify v1.12.1 | 26 | github.com/stretchr/testify v1.12.1 | ||
| 27 | - | golang.org/x/image v0.46.0 | 27 | + | golang.org/x/image v0.47.0 |
| 28 | - | golang.org/x/net v0.59.0 | 28 | + | golang.org/x/net v0.61.0 |
| 29 | - | golang.org/x/sys v0.48.0 | 29 | + | golang.org/x/sys v0.49.0 |
| 30 | gopkg.in/yaml.v3 v3.0.1 | 30 | gopkg.in/yaml.v3 v3.0.1 | ||
| 31 | ) | 31 | ) | ||
| 32 | 32 | ||||
| @@ -36,7 +36,7 @@ require ( | |||||
| 36 | github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect | 36 | github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect | ||
| 37 | github.com/cenkalti/backoff/v4 v4.3.0 // indirect | 37 | github.com/cenkalti/backoff/v4 v4.3.0 // indirect | ||
| 38 | github.com/charmbracelet/colorprofile v0.4.3 // indirect | 38 | github.com/charmbracelet/colorprofile v0.4.3 // indirect | ||
| 39 | - | github.com/charmbracelet/x/ansi v0.11.7 // indirect | 39 | + | github.com/charmbracelet/x/ansi v0.11.9 // indirect |
| 40 | github.com/charmbracelet/x/cellbuf v0.0.15 // indirect | 40 | github.com/charmbracelet/x/cellbuf v0.0.15 // indirect | ||
| 41 | github.com/charmbracelet/x/exp/golden v0.0.0-20260511125431-fe5d686e0c99 // indirect | 41 | github.com/charmbracelet/x/exp/golden v0.0.0-20260511125431-fe5d686e0c99 // indirect | ||
| 42 | github.com/charmbracelet/x/term v0.2.2 // indirect | 42 | github.com/charmbracelet/x/term v0.2.2 // indirect | ||
| @@ -47,13 +47,12 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | - | github.com/google/go-cmp v0.7.0 // indirect | |||
| 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 52 | - | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 51 | + | github.com/lucasb-eyer/go-colorful v1.4.1 // indirect |
| 53 | - | github.com/mattn/go-colorable v0.1.14 // indirect | 52 | + | github.com/mattn/go-colorable v0.1.16 // indirect |
| 54 | github.com/mattn/go-isatty v0.0.24 // indirect | 53 | github.com/mattn/go-isatty v0.0.24 // indirect | ||
| 55 | github.com/mattn/go-localereader v0.0.1 // indirect | 54 | github.com/mattn/go-localereader v0.0.1 // indirect | ||
| 56 | - | github.com/mattn/go-runewidth v0.0.23 // indirect | 55 | + | github.com/mattn/go-runewidth v0.0.31 // indirect |
| 57 | github.com/mfridman/interpolate v0.0.2 // indirect | 56 | github.com/mfridman/interpolate v0.0.2 // indirect | ||
| 58 | github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect | 57 | github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect | ||
| 59 | github.com/muesli/cancelreader v0.2.2 // indirect | 58 | github.com/muesli/cancelreader v0.2.2 // indirect | ||
| @@ -63,22 +62,21 @@ require ( | |||||
| 63 | github.com/rogpeppe/go-internal v1.14.1 // indirect | 62 | github.com/rogpeppe/go-internal v1.14.1 // indirect | ||
| 64 | github.com/russross/blackfriday/v2 v2.1.0 // indirect | 63 | github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||
| 65 | github.com/sagikazarmark/locafero v0.12.0 // indirect | 64 | github.com/sagikazarmark/locafero v0.12.0 // indirect | ||
| 66 | - | github.com/sahilm/fuzzy v0.1.2 // indirect | 65 | + | github.com/sahilm/fuzzy v0.1.3 // indirect |
| 67 | - | github.com/sethvargo/go-retry v0.4.0 // indirect | 66 | + | github.com/sethvargo/go-retry v0.5.0 // indirect |
| 68 | github.com/spf13/afero v1.15.0 // indirect | 67 | github.com/spf13/afero v1.15.0 // indirect | ||
| 69 | github.com/spf13/cast v1.10.0 // indirect | 68 | github.com/spf13/cast v1.10.0 // indirect | ||
| 70 | - | github.com/stretchr/objx v0.5.3 // indirect | 69 | + | github.com/stretchr/objx v0.7.0 // indirect |
| 71 | github.com/subosito/gotenv v1.6.0 // indirect | 70 | github.com/subosito/gotenv v1.6.0 // indirect | ||
| 72 | - | github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect | 71 | + | github.com/xo/terminfo v1.2.0 // indirect |
| 73 | github.com/xyproto/randomstring v1.2.0 // indirect | 72 | github.com/xyproto/randomstring v1.2.0 // indirect | ||
| 74 | go.uber.org/multierr v1.11.0 // indirect | 73 | go.uber.org/multierr v1.11.0 // indirect | ||
| 75 | go.yaml.in/yaml/v3 v3.0.5 // indirect | 74 | go.yaml.in/yaml/v3 v3.0.5 // indirect | ||
| 76 | - | golang.org/x/mod v0.41.0 // indirect | 75 | + | golang.org/x/mod v0.42.0 // indirect |
| 77 | - | golang.org/x/sync v0.23.0 // indirect | 76 | + | golang.org/x/sync v0.24.0 // indirect |
| 78 | - | golang.org/x/text v0.42.0 // indirect | 77 | + | golang.org/x/text v0.43.0 // indirect |
| 79 | - | golang.org/x/tools v0.49.0 // indirect | 78 | + | golang.org/x/tools v0.52.0 // indirect |
| 80 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 79 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 81 | - | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 82 | ) | 80 | ) | ||
| 83 | 81 | ||||
| 84 | tool github.com/a-h/templ/cmd/templ | 82 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +46 -54 generated file: collapsed
M internal/application/usecase/favicon_refresh.go +2 -2
| @@ -136,8 +136,8 @@ type refreshCoordinator struct { | |||
| 136 | 136 | // Adds happen under mu before the goroutine starts; Done runs when the | |
| 137 | 137 | // executor finishes. Sealed admission (closed) guarantees no Add can | |
| 138 | 138 | // race a completed Wait. | |
| 139 | - | wg sync.WaitGroup | |
| 140 | - | epoch uint64 | |
| 139 | + | wg sync.WaitGroup | |
| 140 | + | epoch uint64 | |
| 141 | 141 | // closed seals admission: set by Close before cancel/drain, so no | |
| 142 | 142 | // refresh can start after the drain observes zero active operations. | |
| 143 | 143 | closed bool | |
| @@ -136,8 +136,8 @@ type refreshCoordinator struct { | |||||
| 136 | // Adds happen under mu before the goroutine starts; Done runs when the | 136 | // Adds happen under mu before the goroutine starts; Done runs when the | ||
| 137 | // executor finishes. Sealed admission (closed) guarantees no Add can | 137 | // executor finishes. Sealed admission (closed) guarantees no Add can | ||
| 138 | // race a completed Wait. | 138 | // race a completed Wait. | ||
| 139 | - | wg sync.WaitGroup | 139 | + | wg sync.WaitGroup |
| 140 | - | epoch uint64 | 140 | + | epoch uint64 |
| 141 | // closed seals admission: set by Close before cancel/drain, so no | 141 | // closed seals admission: set by Close before cancel/drain, so no | ||
| 142 | // refresh can start after the drain observes zero active operations. | 142 | // refresh can start after the drain observes zero active operations. | ||
| 143 | closed bool | 143 | closed bool | ||
M internal/infrastructure/cef/systemview_asset_cache.go +9 -9
| @@ -192,22 +192,22 @@ func readBoundedAsset(assetsFS fs.FS, name string, maxBytes int) ([]byte, error) | |||
| 192 | 192 | // waiters share the same decoded bytes unaffected. A versioned request pins | |
| 193 | 193 | // exact bytes: only output hashing to wantDigest earns immutable headers. | |
| 194 | 194 | type systemviewWASMResourceHandler struct { | |
| 195 | - | cancel context.CancelFunc | |
| 196 | - | cancelOnce sync.Once | |
| 195 | + | cancel context.CancelFunc | |
| 196 | + | cancelOnce sync.Once | |
| 197 | 197 | // ctx scopes the request to the handler lifetime: engine shutdown | |
| 198 | 198 | // cancels it, letting completion suppress the native continuation. | |
| 199 | 199 | // It is released after the continuation decision, never by load | |
| 200 | 200 | // itself, so shutdown stays observable at that point. | |
| 201 | - | ctx context.Context | |
| 202 | - | bundle *systemviewAssetBundle | |
| 203 | - | versioned bool | |
| 204 | - | wantDigest string | |
| 205 | - | once sync.Once | |
| 201 | + | ctx context.Context | |
| 202 | + | bundle *systemviewAssetBundle | |
| 203 | + | versioned bool | |
| 204 | + | wantDigest string | |
| 205 | + | once sync.Once | |
| 206 | 206 | // settleMu arbitrates the continuation race: exactly one of | |
| 207 | 207 | // request completion or cancellation wins, so a canceled waiter | |
| 208 | 208 | // never resumes CEF while a completed load always does. | |
| 209 | - | settleMu sync.Mutex | |
| 210 | - | settled bool | |
| 209 | + | settleMu sync.Mutex | |
| 210 | + | settled bool | |
| 211 | 211 | done chan struct{} | |
| 212 | 212 | data []byte | |
| 213 | 213 | contentType string | |
| @@ -192,22 +192,22 @@ func readBoundedAsset(assetsFS fs.FS, name string, maxBytes int) ([]byte, error) | |||||
| 192 | // waiters share the same decoded bytes unaffected. A versioned request pins | 192 | // waiters share the same decoded bytes unaffected. A versioned request pins | ||
| 193 | // exact bytes: only output hashing to wantDigest earns immutable headers. | 193 | // exact bytes: only output hashing to wantDigest earns immutable headers. | ||
| 194 | type systemviewWASMResourceHandler struct { | 194 | type systemviewWASMResourceHandler struct { | ||
| 195 | - | cancel context.CancelFunc | 195 | + | cancel context.CancelFunc |
| 196 | - | cancelOnce sync.Once | 196 | + | cancelOnce sync.Once |
| 197 | // ctx scopes the request to the handler lifetime: engine shutdown | 197 | // ctx scopes the request to the handler lifetime: engine shutdown | ||
| 198 | // cancels it, letting completion suppress the native continuation. | 198 | // cancels it, letting completion suppress the native continuation. | ||
| 199 | // It is released after the continuation decision, never by load | 199 | // It is released after the continuation decision, never by load | ||
| 200 | // itself, so shutdown stays observable at that point. | 200 | // itself, so shutdown stays observable at that point. | ||
| 201 | - | ctx context.Context | 201 | + | ctx context.Context |
| 202 | - | bundle *systemviewAssetBundle | 202 | + | bundle *systemviewAssetBundle |
| 203 | - | versioned bool | 203 | + | versioned bool |
| 204 | - | wantDigest string | 204 | + | wantDigest string |
| 205 | - | once sync.Once | 205 | + | once sync.Once |
| 206 | // settleMu arbitrates the continuation race: exactly one of | 206 | // settleMu arbitrates the continuation race: exactly one of | ||
| 207 | // request completion or cancellation wins, so a canceled waiter | 207 | // request completion or cancellation wins, so a canceled waiter | ||
| 208 | // never resumes CEF while a completed load always does. | 208 | // never resumes CEF while a completed load always does. | ||
| 209 | - | settleMu sync.Mutex | 209 | + | settleMu sync.Mutex |
| 210 | - | settled bool | 210 | + | settled bool |
| 211 | done chan struct{} | 211 | done chan struct{} | ||
| 212 | data []byte | 212 | data []byte | ||
| 213 | contentType string | 213 | contentType string | ||
M internal/infrastructure/cef/webview_scroll_cancel_test.go +11 -11
| @@ -120,13 +120,13 @@ func TestNavCommandOffThreadDispatchCompletes(t *testing.T) { | |||
| 120 | 120 | browser.EXPECT().GoBack().Return().Once() | |
| 121 | 121 | ||
| 122 | 122 | wv := &WebView{ | |
| 123 | - | ctx: context.Background(), | |
| 124 | - | engine: &Engine{}, | |
| 125 | - | browser: browser, | |
| 123 | + | ctx: context.Background(), | |
| 124 | + | engine: &Engine{}, | |
| 125 | + | browser: browser, | |
| 126 | 126 | scrollCancelSeam: fake, | |
| 127 | - | gtkSyncIsOwner: func() bool { return false }, | |
| 128 | - | gtkSyncDispatch: func(fn func()) { go fn() }, | |
| 129 | - | gtkSyncTimeout: 2 * time.Second, | |
| 127 | + | gtkSyncIsOwner: func() bool { return false }, | |
| 128 | + | gtkSyncDispatch: func(fn func()) { go fn() }, | |
| 129 | + | gtkSyncTimeout: 2 * time.Second, | |
| 130 | 130 | } | |
| 131 | 131 | ||
| 132 | 132 | require.NoError(t, wv.GoBack(context.Background())) | |
| @@ -141,12 +141,12 @@ func TestNavCommandDispatchTimeoutSkipsNavigation(t *testing.T) { | |||
| 141 | 141 | fake.startGesture() | |
| 142 | 142 | ||
| 143 | 143 | wv := &WebView{ | |
| 144 | - | ctx: context.Background(), | |
| 145 | - | engine: &Engine{}, | |
| 144 | + | ctx: context.Background(), | |
| 145 | + | engine: &Engine{}, | |
| 146 | 146 | scrollCancelSeam: fake, | |
| 147 | - | gtkSyncIsOwner: func() bool { return false }, | |
| 148 | - | gtkSyncDispatch: func(func()) {}, | |
| 149 | - | gtkSyncTimeout: 20 * time.Millisecond, | |
| 147 | + | gtkSyncIsOwner: func() bool { return false }, | |
| 148 | + | gtkSyncDispatch: func(func()) {}, | |
| 149 | + | gtkSyncTimeout: 20 * time.Millisecond, | |
| 150 | 150 | } | |
| 151 | 151 | ||
| 152 | 152 | err := wv.LoadURI(context.Background(), "https://example.com/") | |
| @@ -120,13 +120,13 @@ func TestNavCommandOffThreadDispatchCompletes(t *testing.T) { | |||||
| 120 | browser.EXPECT().GoBack().Return().Once() | 120 | browser.EXPECT().GoBack().Return().Once() | ||
| 121 | 121 | ||||
| 122 | wv := &WebView{ | 122 | wv := &WebView{ | ||
| 123 | - | ctx: context.Background(), | 123 | + | ctx: context.Background(), |
| 124 | - | engine: &Engine{}, | 124 | + | engine: &Engine{}, |
| 125 | - | browser: browser, | 125 | + | browser: browser, |
| 126 | scrollCancelSeam: fake, | 126 | scrollCancelSeam: fake, | ||
| 127 | - | gtkSyncIsOwner: func() bool { return false }, | 127 | + | gtkSyncIsOwner: func() bool { return false }, |
| 128 | - | gtkSyncDispatch: func(fn func()) { go fn() }, | 128 | + | gtkSyncDispatch: func(fn func()) { go fn() }, |
| 129 | - | gtkSyncTimeout: 2 * time.Second, | 129 | + | gtkSyncTimeout: 2 * time.Second, |
| 130 | } | 130 | } | ||
| 131 | 131 | ||||
| 132 | require.NoError(t, wv.GoBack(context.Background())) | 132 | require.NoError(t, wv.GoBack(context.Background())) | ||
| @@ -141,12 +141,12 @@ func TestNavCommandDispatchTimeoutSkipsNavigation(t *testing.T) { | |||||
| 141 | fake.startGesture() | 141 | fake.startGesture() | ||
| 142 | 142 | ||||
| 143 | wv := &WebView{ | 143 | wv := &WebView{ | ||
| 144 | - | ctx: context.Background(), | 144 | + | ctx: context.Background(), |
| 145 | - | engine: &Engine{}, | 145 | + | engine: &Engine{}, |
| 146 | scrollCancelSeam: fake, | 146 | scrollCancelSeam: fake, | ||
| 147 | - | gtkSyncIsOwner: func() bool { return false }, | 147 | + | gtkSyncIsOwner: func() bool { return false }, |
| 148 | - | gtkSyncDispatch: func(func()) {}, | 148 | + | gtkSyncDispatch: func(func()) {}, |
| 149 | - | gtkSyncTimeout: 20 * time.Millisecond, | 149 | + | gtkSyncTimeout: 20 * time.Millisecond, |
| 150 | } | 150 | } | ||
| 151 | 151 | ||||
| 152 | err := wv.LoadURI(context.Background(), "https://example.com/") | 152 | err := wv.LoadURI(context.Background(), "https://example.com/") | ||
M internal/infrastructure/config/engine.go +2 -2
| @@ -130,8 +130,8 @@ type CEFInputConfig struct { | |||
| 130 | 130 | ScrollHorizontalMultiplier float64 `mapstructure:"scroll_horizontal_multiplier" toml:"scroll_horizontal_multiplier" yaml:"scroll_horizontal_multiplier"` //nolint:lll // struct tags exceed lll limit | |
| 131 | 131 | ScrollVerticalMultiplier float64 `mapstructure:"scroll_vertical_multiplier" toml:"scroll_vertical_multiplier" yaml:"scroll_vertical_multiplier"` //nolint:lll // struct tags exceed lll limit | |
| 132 | 132 | ScrollMaxDelta int32 `mapstructure:"scroll_max_delta" toml:"scroll_max_delta" yaml:"scroll_max_delta"` //nolint:lll // struct tags exceed lll limit | |
| 133 | - | ScrollTouchpadInertia bool `mapstructure:"scroll_touchpad_inertia" toml:"scroll_touchpad_inertia" yaml:"scroll_touchpad_inertia"` //nolint:lll // struct tags exceed lll limit | |
| 134 | - | ScrollWheelSmoothing bool `mapstructure:"scroll_wheel_smoothing" toml:"scroll_wheel_smoothing" yaml:"scroll_wheel_smoothing"` //nolint:lll // struct tags exceed lll limit | |
| 133 | + | ScrollTouchpadInertia bool `mapstructure:"scroll_touchpad_inertia" toml:"scroll_touchpad_inertia" yaml:"scroll_touchpad_inertia"` //nolint:lll // struct tags exceed lll limit | |
| 134 | + | ScrollWheelSmoothing bool `mapstructure:"scroll_wheel_smoothing" toml:"scroll_wheel_smoothing" yaml:"scroll_wheel_smoothing"` //nolint:lll // struct tags exceed lll limit | |
| 135 | 135 | TouchpadNavigationEnabled bool `mapstructure:"touchpad_navigation_enabled" toml:"touchpad_navigation_enabled" yaml:"touchpad_navigation_enabled"` //nolint:lll // struct tags exceed lll limit | |
| 136 | 136 | TouchpadNavigationMinDelta float64 `mapstructure:"touchpad_navigation_min_delta" toml:"touchpad_navigation_min_delta" yaml:"touchpad_navigation_min_delta"` //nolint:lll // struct tags exceed lll limit | |
| 137 | 137 | TouchpadNavigationMaxVerticalRatio float64 `mapstructure:"touchpad_navigation_max_vertical_ratio" toml:"touchpad_navigation_max_vertical_ratio" yaml:"touchpad_navigation_max_vertical_ratio"` //nolint:lll // struct tags exceed lll limit | |
| @@ -130,8 +130,8 @@ type CEFInputConfig struct { | |||||
| 130 | ScrollHorizontalMultiplier float64 `mapstructure:"scroll_horizontal_multiplier" toml:"scroll_horizontal_multiplier" yaml:"scroll_horizontal_multiplier"` //nolint:lll // struct tags exceed lll limit | 130 | ScrollHorizontalMultiplier float64 `mapstructure:"scroll_horizontal_multiplier" toml:"scroll_horizontal_multiplier" yaml:"scroll_horizontal_multiplier"` //nolint:lll // struct tags exceed lll limit | ||
| 131 | ScrollVerticalMultiplier float64 `mapstructure:"scroll_vertical_multiplier" toml:"scroll_vertical_multiplier" yaml:"scroll_vertical_multiplier"` //nolint:lll // struct tags exceed lll limit | 131 | ScrollVerticalMultiplier float64 `mapstructure:"scroll_vertical_multiplier" toml:"scroll_vertical_multiplier" yaml:"scroll_vertical_multiplier"` //nolint:lll // struct tags exceed lll limit | ||
| 132 | ScrollMaxDelta int32 `mapstructure:"scroll_max_delta" toml:"scroll_max_delta" yaml:"scroll_max_delta"` //nolint:lll // struct tags exceed lll limit | 132 | ScrollMaxDelta int32 `mapstructure:"scroll_max_delta" toml:"scroll_max_delta" yaml:"scroll_max_delta"` //nolint:lll // struct tags exceed lll limit | ||
| 133 | - | ScrollTouchpadInertia bool `mapstructure:"scroll_touchpad_inertia" toml:"scroll_touchpad_inertia" yaml:"scroll_touchpad_inertia"` //nolint:lll // struct tags exceed lll limit | 133 | + | ScrollTouchpadInertia bool `mapstructure:"scroll_touchpad_inertia" toml:"scroll_touchpad_inertia" yaml:"scroll_touchpad_inertia"` //nolint:lll // struct tags exceed lll limit |
| 134 | - | ScrollWheelSmoothing bool `mapstructure:"scroll_wheel_smoothing" toml:"scroll_wheel_smoothing" yaml:"scroll_wheel_smoothing"` //nolint:lll // struct tags exceed lll limit | 134 | + | ScrollWheelSmoothing bool `mapstructure:"scroll_wheel_smoothing" toml:"scroll_wheel_smoothing" yaml:"scroll_wheel_smoothing"` //nolint:lll // struct tags exceed lll limit |
| 135 | TouchpadNavigationEnabled bool `mapstructure:"touchpad_navigation_enabled" toml:"touchpad_navigation_enabled" yaml:"touchpad_navigation_enabled"` //nolint:lll // struct tags exceed lll limit | 135 | TouchpadNavigationEnabled bool `mapstructure:"touchpad_navigation_enabled" toml:"touchpad_navigation_enabled" yaml:"touchpad_navigation_enabled"` //nolint:lll // struct tags exceed lll limit | ||
| 136 | TouchpadNavigationMinDelta float64 `mapstructure:"touchpad_navigation_min_delta" toml:"touchpad_navigation_min_delta" yaml:"touchpad_navigation_min_delta"` //nolint:lll // struct tags exceed lll limit | 136 | TouchpadNavigationMinDelta float64 `mapstructure:"touchpad_navigation_min_delta" toml:"touchpad_navigation_min_delta" yaml:"touchpad_navigation_min_delta"` //nolint:lll // struct tags exceed lll limit | ||
| 137 | TouchpadNavigationMaxVerticalRatio float64 `mapstructure:"touchpad_navigation_max_vertical_ratio" toml:"touchpad_navigation_max_vertical_ratio" yaml:"touchpad_navigation_max_vertical_ratio"` //nolint:lll // struct tags exceed lll limit | 137 | TouchpadNavigationMaxVerticalRatio float64 `mapstructure:"touchpad_navigation_max_vertical_ratio" toml:"touchpad_navigation_max_vertical_ratio" yaml:"touchpad_navigation_max_vertical_ratio"` //nolint:lll // struct tags exceed lll limit | ||
M internal/infrastructure/process/runtime_safety_test.go +1 -1
| @@ -38,7 +38,7 @@ func TestMergeRuntimeSafety(t *testing.T) { | |||
| 38 | 38 | for _, entry := range got { | |
| 39 | 39 | if strings.HasPrefix(entry, "GODEBUG=") { | |
| 40 | 40 | count++ | |
| 41 | - | } | |
| 41 | + | } | |
| 42 | 42 | } | |
| 43 | 43 | require.Equal(t, 1, count, "changed environ must hold exactly one GODEBUG entry") | |
| 44 | 44 | } | |
| @@ -38,7 +38,7 @@ func TestMergeRuntimeSafety(t *testing.T) { | |||||
| 38 | for _, entry := range got { | 38 | for _, entry := range got { | ||
| 39 | if strings.HasPrefix(entry, "GODEBUG=") { | 39 | if strings.HasPrefix(entry, "GODEBUG=") { | ||
| 40 | count++ | 40 | count++ | ||
| 41 | - | } | 41 | + | } |
| 42 | } | 42 | } | ||
| 43 | require.Equal(t, 1, count, "changed environ must hold exactly one GODEBUG entry") | 43 | require.Equal(t, 1, count, "changed environ must hold exactly one GODEBUG entry") | ||
| 44 | } | 44 | } | ||