Proposal: runtime.setUninstallURL

88 views
Skip to first unread message

Jared Shumway

unread,
Jan 14, 2014, 6:23:14 PM1/14/14
to apps...@chromium.org, securit...@chromium.org
Here is a proposal for a new endpoint in the runtime API, setUninstallURL. It would allow extensions to register a URL that would be opened in a new tab when the extension is uninstalled.

Benjamin Kalman

unread,
Jan 14, 2014, 6:25:36 PM1/14/14
to Jared Shumway, apps-dev, securit...@chromium.org
Note that this has basically already been implemented in some form a (long) while ago, just never went out of dev; for that matter I'm not even sure if it's been through an API review. Thanks Jared for offering to take it to stable!

Scott Fujan

unread,
Jan 14, 2014, 6:32:38 PM1/14/14
to Benjamin Kalman, Jared Shumway, apps-dev, securit...@chromium.org
I will note:

1) This has long been in the stable docs erroneously: http://developer.chrome.com/extensions/runtime.html#method-setUninstallUrl

2) The docs suggest that it can be used "to clean up server-side data, do analytics," but these use case don't imply that the url would open as a new tab. I would expect this function to optionally support a request to the url without opening a new tab.

2a) If no support for a tab-less request, the docs should be updated to specify that it always opens a tab.


To unsubscribe from this group and stop receiving emails from it, send an email to apps-dev+u...@chromium.org.

Benjamin Kalman

unread,
Jan 14, 2014, 6:55:53 PM1/14/14
to Scott Fujan, Jared Shumway, apps-dev, securit...@chromium.org
A tab-less option SGTM. I also wonder about how this should behave offline, come to think of it.

Mustafa Emre Acer

unread,
Jan 14, 2014, 7:12:59 PM1/14/14
to Benjamin Kalman, Scott Fujan, Jared Shumway, apps-dev, securit...@chromium.org
Lgtm, thanks.

You might want to check a couple of edge cases, e.g. if setUninstallUrl('chrome://<extension_id>/resource.png') crashes the browser when the extension is uninstalled and so on (very unlikely, but well...).

Mustafa Emre Acer

unread,
Jan 14, 2014, 7:18:32 PM1/14/14
to Benjamin Kalman, Scott Fujan, Jared Shumway, apps-dev, security-enamel
[sending again from chromium.org address]

Lgtm, thanks.

You might want to check a couple of edge cases, e.g. if setUninstallUrl('chrome://<extension_id>/resource.png') crashes the browser when the extension is uninstalled and so on (very unlikely, but well...).
Reply all
Reply to author
Forward
0 new messages