/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* globals synthesizeMouseAtCenterAndRetry, awaitBrowserLoaded */
"use strict";
const { ExtensionPermissions } = ChromeUtils.importESModule(
"resource://gre/modules/ExtensionPermissions.sys.mjs"
);
const { mailTestUtils } = ChromeUtils.import(
"resource://testing-common/mailnews/MailTestUtils.jsm"
);
const treeClick = mailTestUtils.treeClick.bind(null, EventUtils, window);
var URL_BASE =
"http://mochi.test:8888/browser/comm/mail/components/extensions/test/browser/data";
/**
* Left-click on something and wait for the context menu to appear.
* For elements in the parent process only.
*
* @param {Element} menu - The