mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1815689 - Test window.scheduler.constructor.name only when available. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D169281
This commit is contained in:
parent
655b7c72a9
commit
ed2a64e98a
@ -609,9 +609,12 @@ async function doEagerEvalDOMGetters(commands) {
|
||||
["typeof window.windowGlobalChild", "undefined"],
|
||||
["window.visualViewport.constructor.name", "VisualViewport"],
|
||||
["typeof window.caches", "undefined"],
|
||||
["window.scheduler.constructor.name", "Scheduler"],
|
||||
["window.location.href.startsWith('data:')", true],
|
||||
];
|
||||
if (typeof Scheduler === "function") {
|
||||
// Scheduler is behind a pref.
|
||||
testData.push(["window.scheduler.constructor.name", "Scheduler"]);
|
||||
}
|
||||
|
||||
for (const [code, expectedResult] of testData) {
|
||||
const response = await commands.scriptCommand.execute(code, {
|
||||
|
Loading…
Reference in New Issue
Block a user