Ship weak refs
Categories
(Core :: JavaScript: GC, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 1 obsolete file)
Now that the weak ref spec has settled down and our implementation is done we should consider enabling this by default in nightly. It would still be available in nightly only.
Comment 1•4 years ago
|
||
Note that there is one open spec issue, having to do with the determination of the backup incumbent Realm during FinalizationRegistry callbacks. Chrome/V8 is shipping without including the logic proposed by bz and Domenic in that thread. I think this is a small enough corner case to continue readjusting after enabling by default in nightly. https://github.com/whatwg/html/pull/4571#discussion_r427328430
Assignee | ||
Comment 2•4 years ago
|
||
(In reply to Daniel Ehrenberg from comment #1)
We discussed this in the GC meeting today and agreed that this spec issue shouldn't stop us shipping. We'll aim to ship this in 79.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
The current plan is to ship this, i.e. turn on the pref and let it ride the trains. The pref will be removed at a later date.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
This renames the pref to remove 'experimental' and turns it on by default.
Depends on D77267
Updated•4 years ago
|
Comment 5•4 years ago
|
||
Note re devdoc-needed: The doc https://github.com/tc39/proposal-weakrefs/blob/master/reference.md was developed in order to be good reference material to put on MDN about WeakRef and FinalizationRegistry, it just hasn't been transferred yet.
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
|
||
Updated•4 years ago
|
Comment 7•4 years ago
|
||
Comment on attachment 9153398 [details]
Bug 1639246 - Add WeakRef and FinalizationRegistry tests involving DOM objects r?smaug
Revision D77798 was moved to bug 1642685. Setting attachment 9153398 [details] to obsolete.
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8cf72e804176 Ship weak refs r=sfink,smaug
Comment 9•4 years ago
|
||
bugherder |
Comment 10•4 years ago
|
||
This was mostly documented by MDN contributor tjcrowder.
Release notes:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/79#JavaScript
Reference docs:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakRef
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry
Compat data:
https://github.com/mdn/browser-compat-data/pull/6287
Description
•