mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 15:57:31 +09:00
more PiP fixes
This commit is contained in:
parent
2ebf29a6aa
commit
aac2156499
6 changed files with 56 additions and 7 deletions
|
|
@ -881,9 +881,20 @@ ContentParent::CreateBrowser(const TabContext& aContext,
|
|||
constructorSender = CreateContentBridgeParent(aContext, initialPriority,
|
||||
openerTabId, &tabId);
|
||||
} else {
|
||||
constructorSender =
|
||||
GetNewOrUsedBrowserProcess(aContext.IsMozBrowserElement(),
|
||||
initialPriority, nullptr, aFreshProcess);
|
||||
if (aOpenerContentParent && !aFreshProcess) {
|
||||
// relatedBrowser requires the same process, not another process from
|
||||
// the pool. Picture-in-Picture shares a video through a process-local
|
||||
// module, and cannot use a randomly selected content process.
|
||||
if (!aOpenerContentParent->IsAlive() ||
|
||||
aOpenerContentParent->IsForBrowser() != aContext.IsMozBrowserElement()) {
|
||||
return nullptr;
|
||||
}
|
||||
constructorSender = aOpenerContentParent;
|
||||
} else {
|
||||
constructorSender =
|
||||
GetNewOrUsedBrowserProcess(aContext.IsMozBrowserElement(),
|
||||
initialPriority, nullptr, aFreshProcess);
|
||||
}
|
||||
if (!constructorSender) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue