I started the migration process and stopped with 80 % of ported code. The Webexetension API has not sufficient support for the clipboard and cookie operation the ClipCLear addon needs:
no method to clear the clipboard from the background script
the "browser.cookies.remove" method does not remove all cookies. Some internet pages (google.com or ups.com) provide "semi - permanent" cookies that cant be removed by this method (google => url: ".google.com" name:"NID"). This behaviour could be also a BUG in the cookie collection class. Only if the privacy settings in firefox are set to "custom settings" and the option "accept only 3rd party cookies from visited sites" is enabled, all cookies from the collection can be removed via "browser.cookies.remove"
Therefore I want to make the following feature requests:
the "document.execCommand()" of the API has to be extended by a parameter "clear". This command will clear the global clipboard only from the background script, like the method "emptyClipboard" from the "nsIClipboard" interface with the argument "nsIClipboard.kGlobalClipboard"
the browser.cookies class of the API has to be extended by a method "removeAll" that removes all cookies : 3rd party cookies of visited as well as cookies for not - visited internet pages (perhaps: google => google.de visited but 4 cookies are stored for 2 x google.com and 2 x google.de)
I'm sure that this extra features will not cause a security risk: these features will increase security.
Dipl.-Ing. M. Türschmann