anti-csrf-plugin
anti-csrf-plugin copied to clipboard
Rewrite getting current URL code
The code currently keeps track of the current URL by holding an array of tab object(s). This is because I didn't find any synchronous way to get the current URL of the tab issuing the request, but if that's possible somehow it will be a significant performance boost. And nicer code to look at.
It will also fix the race that lead to the try{}catch(){} block in background.js (ugly).