fix(core): [PKG-DPIP-05] keep web fullscreen in the active document

This commit is contained in:
Harvey Zhao committed 2026-09-12 22:44:01 +08:00
1 parent 401c5e9684
commit 7e37fd4d0e
19 files changed
+1408 -15

No files matched your search

+3 -2
View File
@@ -5262,8 +5262,9 @@ function webFullscreen(art) {
saved = { placement: capturePlacement($player), style: $player.getAttribute("style") };
const snapshot = saved;
try {
if (art.constructor.FULLSCREEN_WEB_IN_BODY && $player.parentNode !== document.body)
document.body.appendChild($player);
const body = $player.ownerDocument.body;
if (art.constructor.FULLSCREEN_WEB_IN_BODY && $player.parentNode !== body)
body.appendChild($player);
if (!active2())
return;
art.state = "fullscreenWeb";