Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1265795 P4 Always call nsDocument::SetScriptGlobalObject(nullptr)…
… from nsDocument::Destroy(). r=bz Currently there are certain paths in nsDocumentViewer that can call nsDocument::Destroy(), but fail to call SetScriptGlobalObject(nullptr). This results in the global never being cleared. This patch refactors things so nsDocument::Destroy() always clears the global. This ensures a more consistent document teardown since we don't rely on external callers to get multiple method calls correct.
- Loading branch information