зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1721217 - Part 7: Make sure to cancel loads when a canonical BC gets discarded, r=nika
This fixes failures in browser/base/content/test/tabPrompts/browser_contentOrigins.js Differential Revision: https://phabricator.services.mozilla.com/D126847
This commit is contained in:
Родитель
600c61e9f6
Коммит
1fbf7432f6
|
@ -1138,6 +1138,10 @@ void CanonicalBrowsingContext::CanonicalDiscard() {
|
|||
mTabMediaController = nullptr;
|
||||
}
|
||||
|
||||
if (mCurrentLoad) {
|
||||
mCurrentLoad->Cancel(NS_BINDING_ABORTED);
|
||||
}
|
||||
|
||||
if (mWebProgress) {
|
||||
RefPtr<BrowsingContextWebProgress> progress = mWebProgress;
|
||||
progress->ContextDiscarded();
|
||||
|
|
Загрузка…
Ссылка в новой задаче