fune/js/xpconnect/tests/browser
Andrew McCreight 098ef6e21d Bug 1543537, part 3 - Cycle collect subject-to-finalization nsXPCWrappedJS. r=kmag
nsXPCWrappedJS use a special extra refcount to support weak references. When
a WJS is held alive only by this refcount, instead of holding its JS object
alive, the JS object holds it alive. This patch adds support for properly
cycle collecting WJS in this state. First, it makes it so the CC will traverse
these WJS, so that it has a chance to collect them. Secondly, it represents
the reference from the JS object to the WJS via the NoteWeakMapping API.
This lets us represent a strong reference outside of the actual object.

This also adds some basic tests for the lifetime of WJS with weak references.
The first two tests pass with and without this patch. This patch makes the
third test pass.

Differential Revision: https://phabricator.services.mozilla.com/D157672
2022-09-24 23:24:31 +00:00
..
browser.ini Bug 1543537, part 3 - Cycle collect subject-to-finalization nsXPCWrappedJS. r=kmag 2022-09-24 23:24:31 +00:00
browser_consoleStack.html
browser_dead_object.js
browser_deadObjectOnUnload.html
browser_exception_leak.js
browser_freeze_builtins.js Bug 1771084 part 3 - Freeze builtins for the shared system global. r=mccr8,peterv 2022-06-07 19:44:59 +00:00
browser_import_mapped_jsm.js Bug 1667455 - Part 3: Re-export global Services in Services.jsm. r=kmag 2022-07-11 12:41:49 +00:00
browser_parent_process_hang_telemetry.js
browser_promise_userInteractionHandling.html Bug 1789018 - Remove unused code from browser_promise_userInteractionHandling.html. r=yulia 2022-09-08 01:52:40 +00:00
browser_promise_userInteractionHandling.js Bug 1732919 - Update tests for new Storage Access API user activation behavior. r=anti-tracking-reviewers,timhuang 2021-10-14 12:22:03 +00:00
browser_realm_key_and_document_domain.js
browser_realm_key_object_prototype_frame.html
browser_realm_key_object_prototype_top.html
browser_realm_key_promise_frame.html
browser_realm_key_promise_top.html
browser_weak_xpcwjs.js Bug 1543537, part 3 - Cycle collect subject-to-finalization nsXPCWrappedJS. r=kmag 2022-09-24 23:24:31 +00:00
moz.build