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
View File
@@ -526,6 +526,9 @@ the captured position even if FULLSCREEN_WEB_IN_BODY changes while active. Destr
restores the player before template.destroy, so removeHtml still owns the same tree.
Failed exit retains the snapshot for retry; reentrant event/DOM callbacks supersede
the earlier setter. Normal fullscreenWeb/resize ordering remains synchronous.
Body placement uses the player's current ownerDocument, including an adopted
Document PiP window or iframe. The opener's global document must never reclaim
the player when entering web fullscreen in another document.
Destroy is terminal: if restoring the original position throws before reattachment,
detach the displaced player so template cleanup cannot leave an orphan in body. The