Bug 1756563 - Define the WebExtension browser in-line for messagehandler head files. r=jdescottes,webdriver-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D139815
This commit is contained in:
Mark Banner 2022-02-28 13:07:35 +00:00
parent 4dd5809afa
commit ce31f4c0a4

View File

@ -142,6 +142,7 @@ async function installSidebarExtension() {
</html>
`,
"sidebar.js": function() {
const { browser } = this;
browser.test.sendMessage("sidebar-loaded", {
bcId: SpecialPowers.wrap(window).browsingContext.id,
});
@ -154,6 +155,7 @@ async function installSidebarExtension() {
</html>
`,
"tab.js": function() {
const { browser } = this;
browser.test.sendMessage("tab-loaded", {
bcId: SpecialPowers.wrap(window).browsingContext.id,
});