]> git.eshelyaron.com Git - emacs.git/commit
Make xwidget-webkit-execute-script safe against GC (Bug#31545)
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 21 May 2018 12:18:24 +0000 (14:18 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 21 May 2018 20:51:20 +0000 (22:51 +0200)
commit8811c2408d3329eb84efe63d148a80afd080017c
tree71b5c2952c571590019a1f827a16ddf05da3e380
parent7b9fb7ace4357f1d630bf6b332eab34ae130ca44
Make xwidget-webkit-execute-script safe against GC (Bug#31545)

* 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.
src/xwidget.c
src/xwidget.h