From 2ebf29a6aa6f03236a09c0242efdb93b650a163e Mon Sep 17 00:00:00 2001 From: wuggy Date: Sun, 13 Sep 2026 11:40:09 -0700 Subject: [PATCH] Fixed the missing Cu, Cr, and Services globals in the PiP window --- browser/base/content/pictureInPicture.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/base/content/pictureInPicture.js b/browser/base/content/pictureInPicture.js index ce9cc5a894..e48578cea2 100644 --- a/browser/base/content/pictureInPicture.js +++ b/browser/base/content/pictureInPicture.js @@ -3,6 +3,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; +// The browser XBL bindings resolve these names in their owning window. +const {utils: Cu, results: Cr} = Components; +Cu.import("resource://gre/modules/Services.jsm"); + var Player = { browser: null, source: null,