Bug 1722991, don't try to load iframes in the background when Fission is enabled r=sefeng

The feature isn't Fission compatible at the moment and it is disabled by default anyhow, so
better try to not use it with Fission so that some crashes can be avoided.

Differential Revision: https://phabricator.services.mozilla.com/D121714
This commit is contained in:
Olli Pettay 2021-08-04 18:26:52 +00:00
Родитель ab6fee6c47
Коммит 730a126d25
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -359,7 +359,8 @@ void DocGroup::SignalSlotChange(HTMLSlotElement& aSlot) {
}
bool DocGroup::TryToLoadIframesInBackground() {
return StaticPrefs::dom_separate_event_queue_for_post_message_enabled() &&
return !FissionAutostart() &&
StaticPrefs::dom_separate_event_queue_for_post_message_enabled() &&
StaticPrefs::dom_cross_origin_iframes_loaded_in_background();
}