The source project of this merge request has been removed.
Issue 5938 - Work around Firefox content script bug
I'm not too happy about these changes, but they do seem to help workaround the problem. Honestly I don't fully understand why this helps, and I'm not suggesting we merge these as they are, but it might be a starting point.
I've done two things:
Firstly, I took Kris' advice (like uBlock) to fix the problem of ext
being undefined later on.
Secondly, I found that getURLsFromElement
wasn't accessible from the postload script no matter what I tried, despite the postload script always seemingly to run way after the preload script which defined it. So, I simply started running our postload script on preload.
Would be interested to hear what you guys think.
Edited by Dave Vandyke