wails/v3/internal/assetserver/webview
Lea Anthony 4dce80d887
fix(v3): revert goccy/go-json to stdlib encoding/json to fix Windows panic (#4859)
* fix(v3): warm up dialog types in go-json cache to prevent Windows panic

Add FileFilter, OpenFileDialogOptions, SaveFileDialogOptions, and
MessageDialogOptions to the init() warmup to prevent index out of bounds
panic on Windows when these types are first unmarshaled.

Fixes goccy/go-json#474 for Wails internal dialog types.

* fix(v3): revert goccy/go-json to stdlib encoding/json to fix Windows panic

goccy/go-json has a type address calculation bug on Windows that causes
index out of bounds panic when decoding user-defined types for the first time.

This reverts all runtime usages of goccy/go-json back to stdlib encoding/json.
Test and benchmark files are left unchanged.

Partially reverts PR #4843.
2026-01-05 08:26:35 +11:00
..
request.go Move assetserver to internal 2023-08-14 08:31:55 +10:00
request_android.go feat: Add Android support for Wails v3 2025-11-28 21:06:59 +11:00
request_darwin.go fix(v3): revert goccy/go-json to stdlib encoding/json to fix Windows panic (#4859) 2026-01-05 08:26:35 +11:00
request_finalizer.go Move assetserver to internal 2023-08-14 08:31:55 +10:00
request_ios.go fix(v3): revert goccy/go-json to stdlib encoding/json to fix Windows panic (#4859) 2026-01-05 08:26:35 +11:00
request_linux.go feat: Add Android support for Wails v3 2025-11-28 21:06:59 +11:00
request_linux_purego.go feat: Add Android support for Wails v3 2025-11-28 21:06:59 +11:00
request_windows.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
responsewriter.go [windows] Serve assets async 2023-10-05 19:18:32 +11:00
responsewriter_darwin.go fix(v3): revert goccy/go-json to stdlib encoding/json to fix Windows panic (#4859) 2026-01-05 08:26:35 +11:00
responsewriter_ios.go fix(v3): revert goccy/go-json to stdlib encoding/json to fix Windows panic (#4859) 2026-01-05 08:26:35 +11:00
responsewriter_linux.go feat: Add Android support for Wails v3 2025-11-28 21:06:59 +11:00
responsewriter_linux_purego.go feat: Add Android support for Wails v3 2025-11-28 21:06:59 +11:00
responsewriter_windows.go [v3] Fix and optimise assetserver (#4049) 2025-02-09 00:02:54 +11:00
webkit2.go feat: Add Android support for Wails v3 2025-11-28 21:06:59 +11:00
webkit2_purego.go Move to latest webkit2 and remove older code. 2024-03-06 16:59:13 -06:00