Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit e500450

Browse files
authored
Amend Incognito Key for Chrome and Firefox (#20092)
Fixes #16394 For Chrome: Change to "split" For Firefox, remove key altogether since it does not support split. Defaults to spanning in Firefox. Where this original bug does not appear
1 parent 4134964 commit e500450

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

chromium/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"128": "images/icons/icon-active-128.png",
3838
"48": "images/icons/icon-active-48.png"
3939
},
40-
"incognito": "spanning",
40+
"incognito": "split",
4141
"manifest_version": 2,
4242
"minimum_chrome_version": "55",
4343
"name": "__MSG_about_ext_name__",

make.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ python3 -c "import json; m=json.loads(open('pkg/crx-eff/manifest.json').read());
139139
# Remove the 'update_url' manifest key from the xpi version of the extension delivered to AMO
140140
python3 -c "import json; m=json.loads(open('pkg/xpi-amo/manifest.json').read()); del m['applications']['gecko']['update_url']; m['applications']['gecko']['id'] = '[email protected]'; open('pkg/xpi-amo/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
141141

142+
# Remove the incognito key in AMO packages: #16394
143+
python3 -c "import json; m=json.loads(open('pkg/xpi-amo/manifest.json').read()); del m['incognito']; open('pkg/xpi-amo/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
144+
python3 -c "import json; m=json.loads(open('pkg/xpi-eff/manifest.json').read()); del m['incognito']; open('pkg/xpi-eff/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
145+
142146
# If the --remove-extension-update flag is set, ensure the extension is unable to update
143147
if $REMOVE_EXTENSION_UPDATE; then
144148
echo "Flag --remove-extension-update specified. Removing the XPI extensions' ability to update."

0 commit comments

Comments
 (0)