Open
Bug 1461882
Opened 7 years ago
Updated 4 months ago
Actually support uninstallURL on Android (which should be supported since FF48)
Categories
(WebExtensions :: Android, defect, P3)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: piptan.pantip, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Steps to reproduce:
My background.js code is as the following -
function onSetURL() {
console.log("set uninstall URL");
}
function onError(error) {
console.log(`Error: ${error}`);
}
function handleInstalled(details) {
var settingUrl = browser.runtime.setUninstallURL('http://www.google.com');
settingUrl.then(onSetURL, onError);
}
browser.runtime.onInstalled.addListener(handleInstalled);
and my manifest.json :
{
"name": "Mypro T",
"description": "Mypro T.1.0",
"version": "1.0",
"manifest_version": 2,
"developer": {
"name": "firefoxt@firefoxt.firefoxt"
},
"applications": {
"gecko": {
"id": "firefoxt@firefoxt.firefoxt",
"strict_min_version": "58.0"
}
},
"browser_action": {
"default_title": "Mypro T.1.0"
},
"background": {
"scripts": ["background.js"]
},
"permissions":["<all_urls>","http://*/*","https://*/*","webNavigation","webRequest","webRequestBlocking","cookies","tabs","activeTab","storage","management"]
}
Then signed it on AMO and tested it on both Firefox for Windows and Android.
On Windows, it works as expected. I found the problem only on Android.
Actual results:
onSetURL function is called during the installation but Firefox for Android 59.0.2 does not open the URL set by the api.
Expected results:
It should open the URL set as in Firefox for Windows
Updated•7 years ago
|
Priority: -- → P3
Summary: browser.runtime.setUninstallURL works on Firefox for Windows but not for Android → Support uninstallURL on Android
Comment 1•7 years ago
|
||
@David: it should already be supported, according to the compatibility tables: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/runtime/setUninstallURL (since Firefox 48)
Updated•7 years ago
|
Summary: Support uninstallURL on Android → Actually support uninstallURL on Android (which should be supported since FF48)
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Product: Toolkit → WebExtensions
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•