gecko-dev/dom/promise
Andrew McCreight 9cdfde0a5e Bug 1409115 - Fix leaks by adding promise window proxy. r=bkelly
The service worker job queue can get stuck sometimes, so we don't want
the per-process service worker data structure to hold strong
references to content. Instead, I add a proxy that is only a weak
reference. The wrinkle is that we need to keep the promise alive as
long as the job and the window are otherwise alive. I solve this by
putting a cycle collected reference to the promise on the window
itself.

MozReview-Commit-ID: GbmCY4ZIQWk

--HG--
extra : rebase_source : 363ea865fd51bb44f3e727cd3469e316370e7cbc
2017-12-06 16:48:18 -08:00
..
tests Bug 1347644 - Baldr: implement ConsumeStreamCallback in browser (r=bkelly) 2017-10-10 14:41:24 -05:00
moz.build Bug 1409115 - Fix leaks by adding promise window proxy. r=bkelly 2017-12-06 16:48:18 -08:00
Promise.cpp Bug 1405290 - Improve logging of workers when shutting down - part 3 - WorkerHolder with names, r=asuth 2017-11-15 07:58:38 +01:00
Promise.h Bug 1120178 - Migrate DOMError to DOMExtension in FileReader, IndexedDB, DOMRequest and so on, r=smaug 2017-08-06 20:47:00 +03:00
PromiseDebugging.cpp Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
PromiseDebugging.h Bug 1322920 - Remove DOM Promise implementation. r=bz 2016-12-14 17:11:48 +01:00
PromiseNativeHandler.h
PromiseWindowProxy.cpp Bug 1409115 - Fix leaks by adding promise window proxy. r=bkelly 2017-12-06 16:48:18 -08:00
PromiseWindowProxy.h Bug 1409115 - Fix leaks by adding promise window proxy. r=bkelly 2017-12-06 16:48:18 -08:00
PromiseWorkerProxy.h Bug 1333112 - Fix windowClient.Navigate leak. r=bkelly 2017-01-26 21:37:17 +02:00