moz-1816158 - base

  • fd6ffb84d2ec5ef524332d04c0ff2fef988a0bf7
  • Jon Coppeard
  • 2023-02-14 10:32:47 +0000
  • Bug 1816158 - Part 1: Disallow GC while iterating global's debugger vector r=sfink
  • GC can mutate this vector so don't allow that while we are iterating. I think it would be safe to use index-based iteration but it's safer to just ban it entirely. This fixes the crash produced by the testcase. Differential Revision: https://phabricator.services.mozilla.com/D169701
  • 52a82664620b9a251aaaeaed889993bedc67c03e
  • Jon Coppeard
  • 2023-02-14 10:32:47 +0000
  • Bug 1816158 - Part 2: Require no GC when giving out references to the realm's debugger vector r=sfink
  • To prevent any other instances of this problme we can update the getDebuggers() methods on the global and the realm to require no GC. Depends on D169701 Differential Revision: https://phabricator.services.mozilla.com/D169702