Fixed the missing Cu, Cr, and Services globals in the PiP window

This commit is contained in:
wuggy 2026-09-13 11:40:09 -07:00
commit 2ebf29a6aa

View file

@ -3,6 +3,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict"; "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 = { var Player = {
browser: null, browser: null,
source: null, source: null,