Project

General

Profile

« Previous | Next » 

Revision c744eb0e

Added by jahoti about 2 years ago

Fix storage initialization on Icecat 60

This patch fixes storage initialization on Gecko browsers by switching from
using a background page to using a list of scripts. It remains a mystery why
that should have any effect; the only hint is that browser.runtime.onInstalled
does not fire when called from a script loaded in a background page.

Signed-off-by: jahoti jahoti@tilde.team

View differences:

manifest.json
73 73
    "web_accessible_resources": [
74 74
    ],
75 75
    "background": {
76
	"page": "background/background.html"
76
	"persistent": true,
77
	"scripts": [
78
	    "common/stored_types.js",
79
	    "common/lock.js",
80
	    "common/once.js",
81
	    "common/browser.js",
82
	    "background/storage.js",
83
	    "background/message_server.js",
84
	    "common/connection_types.js",
85
	    "background/storage_server.js",
86
	    "common/url_item.js",
87
	    "common/sha256.js",
88
	    "background/settings_query.js",
89
	    "background/page_actions_server.js",
90
	    "common/gen_unique.js",
91
	    "background/policy_injector.js",
92
	    "background/main.js"
93
	]
77 94
    },
78 95
    "content_scripts": [
79 96
	{

Also available in: Unified diff