diff options
| author | Joakim Verona | 2012-01-23 15:08:53 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-01-23 15:08:53 +0100 |
| commit | d5114bfea3ea4c37c57e2af0f3b095be9fcd8bac (patch) | |
| tree | b61140bc590538137eee8416bfe28852ecf606af /README.xwidget | |
| parent | 698bd5eb8efd16be779b75934175c52d9150b5c9 (diff) | |
| download | emacs-d5114bfea3ea4c37c57e2af0f3b095be9fcd8bac.tar.gz emacs-d5114bfea3ea4c37c57e2af0f3b095be9fcd8bac.zip | |
added stuff for logging
Diffstat (limited to 'README.xwidget')
| -rw-r--r-- | README.xwidget | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/README.xwidget b/README.xwidget index db38e4cbd68..9cd741661bc 100644 --- a/README.xwidget +++ b/README.xwidget | |||
| @@ -776,7 +776,7 @@ buffer. how do we catch these errors? | |||
| 776 | thats not really an error either | 776 | thats not really an error either |
| 777 | - xwidgets should now be proper lisp objects so you dont delete them | 777 | - xwidgets should now be proper lisp objects so you dont delete them |
| 778 | you await their garbage collection. so therefore there can never be | 778 | you await their garbage collection. so therefore there can never be |
| 779 | invalid disploy specs | 779 | invalid display specs |
| 780 | 780 | ||
| 781 | so turned out this got solved by using proper lisp objects for | 781 | so turned out this got solved by using proper lisp objects for |
| 782 | xwidgets. yay! | 782 | xwidgets. yay! |
| @@ -1527,3 +1527,34 @@ a callback that sets the buffer name automatically | |||
| 1527 | ** TODO unique buffer names | 1527 | ** TODO unique buffer names |
| 1528 | the webkit xwidgets renames the buffer after load but not uniquely so | 1528 | the webkit xwidgets renames the buffer after load but not uniquely so |
| 1529 | it sometimes fails. | 1529 | it sometimes fails. |
| 1530 | ** TODO kill the offscreen webkit xwidgets when last view killed | ||
| 1531 | The offscreen xwidgets is currently kept around even if the xwidgets | ||
| 1532 | views are all gone. this is a general problem and it requires actions | ||
| 1533 | on the behalf of the application to resolve. | ||
| 1534 | |||
| 1535 | In the case of webkit it is currently possible to get errors like these: | ||
| 1536 | |||
| 1537 | Debugger entered--Lisp error: (error "Selecting deleted buffer") | ||
| 1538 | xwidget-webkit-callback(60925380 navigation-policy-decision-requested) | ||
| 1539 | xwidget-event-handler() | ||
| 1540 | call-interactively(xwidget-event-handler nil nil) | ||
| 1541 | |||
| 1542 | |||
| 1543 | because the last view is gone and the offscreen widgets is still | ||
| 1544 | generating events. | ||
| 1545 | |||
| 1546 | In the case of webkit it is okay to kill the offscreen widgets | ||
| 1547 | completely when the user kills the last view window because it would | ||
| 1548 | be unexpected by the user to see it pop up again. This is not true in | ||
| 1549 | the general case. | ||
| 1550 | |||
| 1551 | ** DONE xwidgets debugging log | ||
| 1552 | CLOSED: [2012-01-23 Mon 14:32] | ||
| 1553 | currently theres a lot of debugging traces using "message" which is | ||
| 1554 | annoying. Instead put them in a separate trace buffer. | ||
| 1555 | (see xwidget-log) | ||
| 1556 | ** TODO make garbage collect work for xwidgets | ||
| 1557 | when an xwidget is removed from xwidget-alist, and there are no other | ||
| 1558 | references(mostly views) the xwidget should be garbage collected. | ||
| 1559 | |||
| 1560 | special finalization would go into gc_sweep() | ||