When my chrome extension loads on chrome startup, everything seems to be ok and chrome.extension.getBackgroundPage() returns the right value (lunched from popup.js). But aft
Change your background(Event Page) to a real background Page.
Modify your manifest file from
"background": {
"scripts": [
"background.js"
],
"persistent": false
}
to
"background": {
"scripts": [
"background.js"
],
"persistent": true
}
Event pages are very similar to background pages, with one important difference: event pages are loaded only when they are needed. When the event page is not actively doing something, it is unloaded, freeing memory and other system resources.