mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 08:48:07 +00:00
![Jim Porter](/assets/img/avatar_default.png)
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