• Andreas Schwab's avatar
    Make xwidget-webkit-execute-script safe against GC (Bug#31545) · 8811c240
    Andreas Schwab authored
    * src/xwidget.h (struct xwidget): Add script_callbacks.
    * src/xwidget.c (save_script_callback): New function.
    (Fxwidget_webkit_execute_script): Use it.  Encode script
    before passing to execution engine.  Always use a callback.
    (webkit_javascript_finished_cb): Deallocate script.
    (kill_buffer_xwidgets): Deallocate remaining scripts.
    (Fxwidget_webkit_zoom): Doc fix.
    (Fxwidget_resize): Doc fix.
    8811c240
xwidget.h 3.63 KB