Can't get Edge to Return a Promise in my WebExtension
问题 I am trying to create a new tab using browser.tabs.create() from my background.js WebExtension as shown here: createTab: function () { var newTab = browser.tabs.create({ url: someUrl }); newTab.then(onCreated, onError); } The new tab creates in the browser , but when the last line is reached, an error is thrown: SCRIPT5007: Unable to get property 'then' of undefined or null reference The Locals window shows newTab is undefined . What am I doing wrong here? I thought that .create() would