Bug 1733566 Comment 1 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Looks like the problem isn't happening too late. I have just tried this with a test extension, registering the content script as early as possible. It still won't load right after startup.
The background script looks like this:
```
'use strict';

function registerScript() {
  browser.contentScripts.register({
    "js": [{file: "/content_scripts/contentScript.js"}],
    "matches": ["<all_urls>"],
    "allFrames": true,
    "runAt": "document_start"
  });
}

registerScript();
```

:mixedpuppy, do you know if Web Extensions support loading programmatically registered content scripts that early?
Is this related to Bug 1378459?
Looks like the problem isn't that we're registering the content script too late. I have just tried this with a test extension, registering the content script as early as possible. It still won't load right after startup.
The background script looks like this:
```
'use strict';

function registerScript() {
  browser.contentScripts.register({
    "js": [{file: "/content_scripts/contentScript.js"}],
    "matches": ["<all_urls>"],
    "allFrames": true,
    "runAt": "document_start"
  });
}

registerScript();
```

:mixedpuppy, do you know if Web Extensions support loading programmatically registered content scripts that early?
Is this related to Bug 1378459?

Back to Bug 1733566 Comment 1