mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
679c9bfc7e
This patch fixes a race condition where we could request that a content page's JS be cancelled during navigation in `HangMonitorChild::InterruptCallback`, but the new page has already started loading by the time the JS is cancelled in `XPCJSContext::InterruptCallback`, thus cancelling the JS of the new page. To fix this, we now handle everything in `HangMonitorChild::InterruptCallback`, making sure to only do anything for *content* scripts (to avoid inadvertently cancelling the browser's JS). Differential Revision: https://phabricator.services.mozilla.com/D30272 --HG-- extra : moz-landing-system : lando