Source code

Revision control

Copy as Markdown

Other Tools

/* Any copyright is dedicated to the Public Domain.
"use strict";
// Globals of a `NewtabSearchbarTestUtils.spawn` task. The eslint rule that
// declares the sandbox's own globals only fires on a literal
// `SpecialPowers.spawn` call.
/* global NewtabSearchbarContentTestUtils, ContentTaskUtils */
Services.scriptloader.loadSubScript(
this
);
ChromeUtils.defineLazyGetter(this, "NewtabSearchbarTestUtils", () => {
const { NewtabSearchbarTestUtils: module } = ChromeUtils.importESModule(
);
module.init(this, window);
return module;
});
registerCleanupFunction(() => NewtabSearchbarTestUtils.formHistory.clear());