mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
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:
parent
4dd5809afa
commit
ce31f4c0a4
@ -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,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user