diff options
author | Andrew De Angelis <bobodeangelis@gmail.com> | 2023-02-23 22:47:41 -0500 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-03-02 12:53:35 +0200 |
commit | a137f71c67e88204a32ebd747beb8fdd7db2fbe9 (patch) | |
tree | c02765980dbbc5478fde4ac29e0a6060f4c4b4ab /lisp/emacs-lisp/byte-run.el | |
parent | 3f43a16bc63eac12db5707b26da2507077b4f13c (diff) | |
download | emacs-a137f71c67e88204a32ebd747beb8fdd7db2fbe9.tar.gz emacs-a137f71c67e88204a32ebd747beb8fdd7db2fbe9.tar.bz2 emacs-a137f71c67e88204a32ebd747beb8fdd7db2fbe9.zip |
Improvements to xwidget on macOS (bug#60703)
* src/nsxwidget.m ()
([XwWebView initWithFrame:configuration:xwidget:])
(nsxwidget_init): Fixed memory leaks: when sending an alloc
message to an object, send an autorelease message to any objects
we won't explictly release.
([XwWebView webView:didFinishNavigation:]): Second string to
store in 'store_xwidget_event_string' is "load finished" rather
than empty string.
([XwWebView webView:didStartProvisionalNavigation:])
([XwWebView webView:didReceiveServerRedirectForProvisionalNavigation:])
([XwWebView webView:didCommitNavigation:]): New functions.
(nsxwidget_webkit_estimated_load_progress): New function.
(nsxwidget_webkit_stop_loading): New function.
* src/xwidget.c (Fxwidget_webkit_estimated_load_progress): Call
'nsxwidget_webkit_estimated_load_progress' if we're on MacOS.
(Fxwidget_webkit_stop_loading): Call 'nsxwidget_webkit_stop_loading'
if we're on MacOS.
(syms_of_xwidget): Define symbol for function.
'xwidget_webkit_estimated_load_progress' if we're on MacOS.
* src/nsxwidget.h: Signature for functions
'nsxwidget_webkit_estimated_load_progress' and
'nsxwidget_webkit_stop_loading'.
* lisp/xwidget.el (xwidget-webkit-current-url): Message URL rather
than return value of 'kill-new' (which is always nil).
Diffstat (limited to 'lisp/emacs-lisp/byte-run.el')
0 files changed, 0 insertions, 0 deletions