Adding a listener to windows.onCreate


(Musiquegraeme) #1

I tried in a Webextension

browser.tabs.onCreated.addListener(newTab);

and it worked, it ran newTab

I tried

browser.windows.onCreated.addListener(newWindow);

and it didn’t run newWindow although these events look exactly the same. What is the difference? Blessings G