I built a chrome extension and everything worked well. Now i need to put it on firefox, and it's a f*** mess.
The problem is with dom parsing.
Her's the code that doesn't work on FF :
var parser = new DOMParser();
SOURCE_DOM = parser.parseFromString(data.url, "text/html");
SOURCE_DOM always return an object empty :
Object : {location : null}
On chrome there's no problem with that, it gives me the document object and i can properly work with it. But Firefox is a pain in the ass compared to chrome when it comes to extension building.
Someone would know how to get the document ?