Use content_scripts instead of custom code
See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/content_scripts
The code in background.js to inject scripts in already opened tabs looks unnecessary, and this should use the manifest instead.
Parent Task: #12328 (closed)
Original created by @sajolida on 15058 (Redmine)