Hello, I’m trying to remove https cookie using WebExtension API, but promise is always fulfilled with null. The code works fine for normal http cookies. Is there anything i’m missing?
The following is fulfilled with null:
var removing = browser.cookies.remove({url: ‘https://example.com’, name: cookie.name, storeId: cookie.storeId});
removing.then(onCookieRemoved, onCookieRemovalError).catch(onCookieDeletionError);
And this works fine:
var removing = browser.cookies.remove({url: ‘http://example.com’, name: cookie.name, storeId: cookie.storeId});
removing.then(onCookieRemoved, onCookieRemovalError).catch(onCookieDeletionError);