chore(deps): bump purego-cef to v0.14.1
v0.14.0 pinned the CEF API 15000 contract and fixed the struct ABI corruption that made BrowserSettings.BackgroundColor land on chrome_status_bubble (transparent windowless canvas). v0.14.1 restores the global function bindings dropped by that regeneration (DictionaryValueCreate, V8ContextGetCurrentContext, all *Create factories) and fixes global factory ownership so created objects are adopted without a leaked reference. This makes the white-canvas fix in this branch effective: the opaque white BrowserSettings.BackgroundColor now actually reaches libcef.
- commit
- 902c404508da47722a324d2f14b2a4cfc04a2812
- author
- brice · · 2026-07-21 19:07 UTC
- parent
- 1dc7dd4
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
75 files · +1836 -1983
M go.mod +1 -1
| @@ -6,7 +6,7 @@ require ( | |||
| 6 | 6 | github.com/a-h/templ v0.3.1020 | |
| 7 | 7 | github.com/andybalholm/brotli v1.2.2 | |
| 8 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | |
| 9 | - | github.com/bnema/purego-cef v0.13.4 | |
| 9 | + | github.com/bnema/purego-cef v0.14.1 | |
| 10 | 10 | github.com/bnema/purego-cef2gtk v0.8.5 | |
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5 | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4 | |
| @@ -6,7 +6,7 @@ require ( | |||||
| 6 | github.com/a-h/templ v0.3.1020 | 6 | github.com/a-h/templ v0.3.1020 | ||
| 7 | github.com/andybalholm/brotli v1.2.2 | 7 | github.com/andybalholm/brotli v1.2.2 | ||
| 8 | github.com/bnema/purego v0.11.0-bnema.4 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | ||
| 9 | - | github.com/bnema/purego-cef v0.13.4 | 9 | + | github.com/bnema/purego-cef v0.14.1 |
| 10 | github.com/bnema/purego-cef2gtk v0.8.5 | 10 | github.com/bnema/purego-cef2gtk v0.8.5 | ||
| 11 | github.com/bnema/purego-pipewire v0.1.5 | 11 | github.com/bnema/purego-pipewire v0.1.5 | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4 | 12 | github.com/bnema/purego-sqlite v0.1.4 | ||
M go.sum +2 -2 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_browser_gen.go +15 -2 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_command_line_gen.go +15 -2 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_component_updater_gen.go +323 -0 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_cookie_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_drag_data_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_image_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_media_router_gen.go +24 -41 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_menu_model_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_parser_gen.go +10 -4 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_preference_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_print_settings_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_process_message_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_request_context_gen.go +16 -3 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_request_gen.go +42 -3 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_response_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_shared_memory_region_gen.go +3 -3 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_shared_process_message_builder_gen.go +20 -4 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_stream_gen.go +34 -5 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_task_gen.go +15 -2 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_task_manager_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_thread_gen.go +14 -1 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_types_component_gen.go +45 -0 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_types_content_settings_gen.go +72 -79 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_types_gen.go +59 -52 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_urlrequest_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_v8_gen.go +166 -19 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_values_gen.go +62 -7 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_waitable_event_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_xml_reader_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_zip_reader_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/test_cef_api_version_test__gen.go +86 -871 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/test_cef_test_server_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/test_cef_translator_test__gen.go +92 -50 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/v8_helpers.go +19 -0 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_gen.go +15 -2 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_display_gen.go +17 -4 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_label_button_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_panel_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_scroll_view_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_gen.go +14 -60 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_window_gen.go +14 -1 generated file: collapsed
A vendor/github.com/bnema/purego-cef/internal/capi/cef_component_updater_gen.go +130 -0
| @@ -0,0 +1,130 @@ | |||
| 1 | + | // Code generated by cefgen. DO NOT EDIT. | |
| 2 | + | ||
| 3 | + | package capi | |
| 4 | + | ||
| 5 | + | import ( | |
| 6 | + | "structs" | |
| 7 | + | "unsafe" | |
| 8 | + | ||
| 9 | + | "github.com/bnema/purego" | |
| 10 | + | ) | |
| 11 | + | ||
| 12 | + | type CEFComponentUpdateCallbackT struct { | |
| 13 | + | _ structs.HostLayout | |
| 14 | + | Base CEFBaseRefCountedT | |
| 15 | + | OnComplete uintptr | |
| 16 | + | } | |
| 17 | + | ||
| 18 | + | func (v *CEFComponentUpdateCallbackT) OverrideOnComplete(fn uintptr) { v.OnComplete = fn } | |
| 19 | + | ||
| 20 | + | func (v *CEFComponentUpdateCallbackT) CallOnComplete(args ...uintptr) uintptr { | |
| 21 | + | if v.OnComplete == 0 { | |
| 22 | + | return 0 | |
| 23 | + | } | |
| 24 | + | r1, _, _ := purego.SyscallN(v.OnComplete, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 25 | + | return r1 | |
| 26 | + | } | |
| 27 | + | ||
| 28 | + | type CEFComponentT struct { | |
| 29 | + | _ structs.HostLayout | |
| 30 | + | Base CEFBaseRefCountedT | |
| 31 | + | GetID uintptr | |
| 32 | + | GetName uintptr | |
| 33 | + | GetVersion uintptr | |
| 34 | + | GetState uintptr | |
| 35 | + | } | |
| 36 | + | ||
| 37 | + | func (v *CEFComponentT) OverrideGetID(fn uintptr) { v.GetID = fn } | |
| 38 | + | ||
| 39 | + | func (v *CEFComponentT) CallGetID(args ...uintptr) uintptr { | |
| 40 | + | if v.GetID == 0 { | |
| 41 | + | return 0 | |
| 42 | + | } | |
| 43 | + | r1, _, _ := purego.SyscallN(v.GetID, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 44 | + | return r1 | |
| 45 | + | } | |
| 46 | + | ||
| 47 | + | func (v *CEFComponentT) OverrideGetName(fn uintptr) { v.GetName = fn } | |
| 48 | + | ||
| 49 | + | func (v *CEFComponentT) CallGetName(args ...uintptr) uintptr { | |
| 50 | + | if v.GetName == 0 { | |
| 51 | + | return 0 | |
| 52 | + | } | |
| 53 | + | r1, _, _ := purego.SyscallN(v.GetName, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 54 | + | return r1 | |
| 55 | + | } | |
| 56 | + | ||
| 57 | + | func (v *CEFComponentT) OverrideGetVersion(fn uintptr) { v.GetVersion = fn } | |
| 58 | + | ||
| 59 | + | func (v *CEFComponentT) CallGetVersion(args ...uintptr) uintptr { | |
| 60 | + | if v.GetVersion == 0 { | |
| 61 | + | return 0 | |
| 62 | + | } | |
| 63 | + | r1, _, _ := purego.SyscallN(v.GetVersion, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 64 | + | return r1 | |
| 65 | + | } | |
| 66 | + | ||
| 67 | + | func (v *CEFComponentT) OverrideGetState(fn uintptr) { v.GetState = fn } | |
| 68 | + | ||
| 69 | + | func (v *CEFComponentT) CallGetState(args ...uintptr) uintptr { | |
| 70 | + | if v.GetState == 0 { | |
| 71 | + | return 0 | |
| 72 | + | } | |
| 73 | + | r1, _, _ := purego.SyscallN(v.GetState, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 74 | + | return r1 | |
| 75 | + | } | |
| 76 | + | ||
| 77 | + | type CEFComponentUpdaterT struct { | |
| 78 | + | _ structs.HostLayout | |
| 79 | + | Base CEFBaseRefCountedT | |
| 80 | + | GetComponentCount uintptr | |
| 81 | + | GetComponents uintptr | |
| 82 | + | GetComponentByID uintptr | |
| 83 | + | Update uintptr | |
| 84 | + | } | |
| 85 | + | ||
| 86 | + | func (v *CEFComponentUpdaterT) OverrideGetComponentCount(fn uintptr) { v.GetComponentCount = fn } | |
| 87 | + | ||
| 88 | + | func (v *CEFComponentUpdaterT) CallGetComponentCount(args ...uintptr) uintptr { | |
| 89 | + | if v.GetComponentCount == 0 { | |
| 90 | + | return 0 | |
| 91 | + | } | |
| 92 | + | r1, _, _ := purego.SyscallN(v.GetComponentCount, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 93 | + | return r1 | |
| 94 | + | } | |
| 95 | + | ||
| 96 | + | func (v *CEFComponentUpdaterT) OverrideGetComponents(fn uintptr) { v.GetComponents = fn } | |
| 97 | + | ||
| 98 | + | func (v *CEFComponentUpdaterT) CallGetComponents(args ...uintptr) uintptr { | |
| 99 | + | if v.GetComponents == 0 { | |
| 100 | + | return 0 | |
| 101 | + | } | |
| 102 | + | r1, _, _ := purego.SyscallN(v.GetComponents, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 103 | + | return r1 | |
| 104 | + | } | |
| 105 | + | ||
| 106 | + | func (v *CEFComponentUpdaterT) OverrideGetComponentByID(fn uintptr) { v.GetComponentByID = fn } | |
| 107 | + | ||
| 108 | + | func (v *CEFComponentUpdaterT) CallGetComponentByID(args ...uintptr) uintptr { | |
| 109 | + | if v.GetComponentByID == 0 { | |
| 110 | + | return 0 | |
| 111 | + | } | |
| 112 | + | r1, _, _ := purego.SyscallN(v.GetComponentByID, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 113 | + | return r1 | |
| 114 | + | } | |
| 115 | + | ||
| 116 | + | func (v *CEFComponentUpdaterT) OverrideUpdate(fn uintptr) { v.Update = fn } | |
| 117 | + | ||
| 118 | + | func (v *CEFComponentUpdaterT) CallUpdate(args ...uintptr) uintptr { | |
| 119 | + | if v.Update == 0 { | |
| 120 | + | return 0 | |
| 121 | + | } | |
| 122 | + | r1, _, _ := purego.SyscallN(v.Update, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 123 | + | return r1 | |
| 124 | + | } | |
| 125 | + | ||
| 126 | + | var CEFComponentUpdaterGet func() unsafe.Pointer | |
| 127 | + | ||
| 128 | + | func RegisterComponentUpdater(handle uintptr) { | |
| 129 | + | tryRegisterLibFunc(&CEFComponentUpdaterGet, handle, "cef_component_updater_get") | |
| 130 | + | } | |
| @@ -0,0 +1,130 @@ | |||||
| 1 | + | // Code generated by cefgen. DO NOT EDIT. | |||
| 2 | + | ||||
| 3 | + | package capi | |||
| 4 | + | ||||
| 5 | + | import ( | |||
| 6 | + | "structs" | |||
| 7 | + | "unsafe" | |||
| 8 | + | ||||
| 9 | + | "github.com/bnema/purego" | |||
| 10 | + | ) | |||
| 11 | + | ||||
| 12 | + | type CEFComponentUpdateCallbackT struct { | |||
| 13 | + | _ structs.HostLayout | |||
| 14 | + | Base CEFBaseRefCountedT | |||
| 15 | + | OnComplete uintptr | |||
| 16 | + | } | |||
| 17 | + | ||||
| 18 | + | func (v *CEFComponentUpdateCallbackT) OverrideOnComplete(fn uintptr) { v.OnComplete = fn } | |||
| 19 | + | ||||
| 20 | + | func (v *CEFComponentUpdateCallbackT) CallOnComplete(args ...uintptr) uintptr { | |||
| 21 | + | if v.OnComplete == 0 { | |||
| 22 | + | return 0 | |||
| 23 | + | } | |||
| 24 | + | r1, _, _ := purego.SyscallN(v.OnComplete, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 25 | + | return r1 | |||
| 26 | + | } | |||
| 27 | + | ||||
| 28 | + | type CEFComponentT struct { | |||
| 29 | + | _ structs.HostLayout | |||
| 30 | + | Base CEFBaseRefCountedT | |||
| 31 | + | GetID uintptr | |||
| 32 | + | GetName uintptr | |||
| 33 | + | GetVersion uintptr | |||
| 34 | + | GetState uintptr | |||
| 35 | + | } | |||
| 36 | + | ||||
| 37 | + | func (v *CEFComponentT) OverrideGetID(fn uintptr) { v.GetID = fn } | |||
| 38 | + | ||||
| 39 | + | func (v *CEFComponentT) CallGetID(args ...uintptr) uintptr { | |||
| 40 | + | if v.GetID == 0 { | |||
| 41 | + | return 0 | |||
| 42 | + | } | |||
| 43 | + | r1, _, _ := purego.SyscallN(v.GetID, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 44 | + | return r1 | |||
| 45 | + | } | |||
| 46 | + | ||||
| 47 | + | func (v *CEFComponentT) OverrideGetName(fn uintptr) { v.GetName = fn } | |||
| 48 | + | ||||
| 49 | + | func (v *CEFComponentT) CallGetName(args ...uintptr) uintptr { | |||
| 50 | + | if v.GetName == 0 { | |||
| 51 | + | return 0 | |||
| 52 | + | } | |||
| 53 | + | r1, _, _ := purego.SyscallN(v.GetName, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 54 | + | return r1 | |||
| 55 | + | } | |||
| 56 | + | ||||
| 57 | + | func (v *CEFComponentT) OverrideGetVersion(fn uintptr) { v.GetVersion = fn } | |||
| 58 | + | ||||
| 59 | + | func (v *CEFComponentT) CallGetVersion(args ...uintptr) uintptr { | |||
| 60 | + | if v.GetVersion == 0 { | |||
| 61 | + | return 0 | |||
| 62 | + | } | |||
| 63 | + | r1, _, _ := purego.SyscallN(v.GetVersion, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 64 | + | return r1 | |||
| 65 | + | } | |||
| 66 | + | ||||
| 67 | + | func (v *CEFComponentT) OverrideGetState(fn uintptr) { v.GetState = fn } | |||
| 68 | + | ||||
| 69 | + | func (v *CEFComponentT) CallGetState(args ...uintptr) uintptr { | |||
| 70 | + | if v.GetState == 0 { | |||
| 71 | + | return 0 | |||
| 72 | + | } | |||
| 73 | + | r1, _, _ := purego.SyscallN(v.GetState, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 74 | + | return r1 | |||
| 75 | + | } | |||
| 76 | + | ||||
| 77 | + | type CEFComponentUpdaterT struct { | |||
| 78 | + | _ structs.HostLayout | |||
| 79 | + | Base CEFBaseRefCountedT | |||
| 80 | + | GetComponentCount uintptr | |||
| 81 | + | GetComponents uintptr | |||
| 82 | + | GetComponentByID uintptr | |||
| 83 | + | Update uintptr | |||
| 84 | + | } | |||
| 85 | + | ||||
| 86 | + | func (v *CEFComponentUpdaterT) OverrideGetComponentCount(fn uintptr) { v.GetComponentCount = fn } | |||
| 87 | + | ||||
| 88 | + | func (v *CEFComponentUpdaterT) CallGetComponentCount(args ...uintptr) uintptr { | |||
| 89 | + | if v.GetComponentCount == 0 { | |||
| 90 | + | return 0 | |||
| 91 | + | } | |||
| 92 | + | r1, _, _ := purego.SyscallN(v.GetComponentCount, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 93 | + | return r1 | |||
| 94 | + | } | |||
| 95 | + | ||||
| 96 | + | func (v *CEFComponentUpdaterT) OverrideGetComponents(fn uintptr) { v.GetComponents = fn } | |||
| 97 | + | ||||
| 98 | + | func (v *CEFComponentUpdaterT) CallGetComponents(args ...uintptr) uintptr { | |||
| 99 | + | if v.GetComponents == 0 { | |||
| 100 | + | return 0 | |||
| 101 | + | } | |||
| 102 | + | r1, _, _ := purego.SyscallN(v.GetComponents, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 103 | + | return r1 | |||
| 104 | + | } | |||
| 105 | + | ||||
| 106 | + | func (v *CEFComponentUpdaterT) OverrideGetComponentByID(fn uintptr) { v.GetComponentByID = fn } | |||
| 107 | + | ||||
| 108 | + | func (v *CEFComponentUpdaterT) CallGetComponentByID(args ...uintptr) uintptr { | |||
| 109 | + | if v.GetComponentByID == 0 { | |||
| 110 | + | return 0 | |||
| 111 | + | } | |||
| 112 | + | r1, _, _ := purego.SyscallN(v.GetComponentByID, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 113 | + | return r1 | |||
| 114 | + | } | |||
| 115 | + | ||||
| 116 | + | func (v *CEFComponentUpdaterT) OverrideUpdate(fn uintptr) { v.Update = fn } | |||
| 117 | + | ||||
| 118 | + | func (v *CEFComponentUpdaterT) CallUpdate(args ...uintptr) uintptr { | |||
| 119 | + | if v.Update == 0 { | |||
| 120 | + | return 0 | |||
| 121 | + | } | |||
| 122 | + | r1, _, _ := purego.SyscallN(v.Update, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 123 | + | return r1 | |||
| 124 | + | } | |||
| 125 | + | ||||
| 126 | + | var CEFComponentUpdaterGet func() unsafe.Pointer | |||
| 127 | + | ||||
| 128 | + | func RegisterComponentUpdater(handle uintptr) { | |||
| 129 | + | tryRegisterLibFunc(&CEFComponentUpdaterGet, handle, "cef_component_updater_get") | |||
| 130 | + | } | |||