News for hackers. Stuff that matters.
Re:Browser Extensions Standard by mrspeaker on Tuesday August 01, 2017 @09:12AM (#14900250)
I made an extension to appease a slight reddit addiction: "What's new reddit?" https://github.com/mrspeaker/whats-new-reddit/ it highlights updates and auto-refreshes things.

I wrote it for Firefox, and then I wondered what it would take to port it to Chrome. The answer was "nothing really" - it worked out of the box for the main functionality. I had to do a small wrapper over loading settings, but having done a million extensions in the past, I was pretty surprised to see it load straight into a different browser!

Re:Browser Extensions Standard by Ajedi32 on Tuesday August 01, 2017 @09:47AM (#14900509)
That's because Firefox's new WebExtensions API is based off Chrome's, not because of any formal standard.

This standard seems to be intended to formalize a lot of the stuff Chrome does so that other browsers can follow a common _standard_ instead of just being stuck imitating what Chrome does.

Re:Browser Extensions Standard by m-r-r on Tuesday August 01, 2017 @10:33AM (#14901003)
> The answer was "nothing really" - it worked out of the box for the main functionality.

Do you mean Chrome supports Promises like Firefox does? Last time I checked, the Chrome APIs were using callbacks for all asynchronous operations.

Re:Browser Extensions Standard by weaksauce on Tuesday August 01, 2017 @03:24PM (#14904392)
There is a polyfill written by mozilla devs that port the browser namespace and promise based api calls over to chrome if needed.

https://github.com/mozilla/webextension-polyfill