Bug 1856358 - Add 'wayland' to Reftest manifest sandbox, r=jmaher

Differential Revision: https://phabricator.services.mozilla.com/D189828
This commit is contained in:
Andrew Halberstadt 2023-10-05 17:54:29 +00:00
parent 8d1fc65e40
commit eb537ab9c0

View File

@ -669,6 +669,13 @@ function BuildConditionSandbox(aURL) {
contentBackend == canvasBackend ||
(contentBackend == "none" && canvasBackend == "cairo");
try {
var windowProtocol = readGfxInfo(gfxInfo, "windowProtocol");
sandbox.wayland = windowProtocol == "wayland";
} catch (e) {
sandbox.wayland = false;
}
sandbox.remoteCanvas =
Services.prefs.getBoolPref("gfx.canvas.remote") &&
sandbox.d2d &&