launch URL during uninstall while extension is disabled

54 views
Skip to first unread message

Shanmugham Sundaram

unread,
Jan 30, 2017, 5:33:58 AM1/30/17
to Chromium-Extensions-Announce
Hi,

As part of my extension development, I am setting the uninstall URL as  chrome.runtime.setUninstallURL("http://www.yahoo.com"); 
I am able to see the new page is launched when extension is uninstalled. 

But when the extension is disabled, I am not able to see uninstall URL getting launched while uninstalling (i.e when the extension is disabled ).

Is there any mechanism to launch the uninstall URL , even when the extension is disabled?

Thanks
Shanmugham

Ankit Agarwal

unread,
Jan 30, 2017, 5:42:30 AM1/30/17
to Shanmugham Sundaram, Chromium-Extensions-Announce
Hi there,

I have been hunting for a similar case for a long time now. I need to know when my extension is disabled. I have not found a way for this yet.

Uninstall url works fine but there is no "disabled url" as far as I know. We need such an option too.


--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/905e0393-ed01-43ad-9545-fedb5baf69b6%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

PhistucK

unread,
Jan 30, 2017, 6:20:18 AM1/30/17
to Ankit Agarwal, Shanmugham Sundaram, Chromium-Extensions-Announce
You can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.



PhistucK

On Mon, Jan 30, 2017 at 12:42 PM, Ankit Agarwal <an...@mobicip.com> wrote:
Hi there,

I have been hunting for a similar case for a long time now. I need to know when my extension is disabled. I have not found a way for this yet.

Uninstall url works fine but there is no "disabled url" as far as I know. We need such an option too.

On Mon, Jan 30, 2017 at 4:03 PM, Shanmugham Sundaram <shansy...@gmail.com> wrote:
Hi,

As part of my extension development, I am setting the uninstall URL as  chrome.runtime.setUninstallURL("http://www.yahoo.com"); 
I am able to see the new page is launched when extension is uninstalled. 

But when the extension is disabled, I am not able to see uninstall URL getting launched while uninstalling (i.e when the extension is disabled ).

Is there any mechanism to launch the uninstall URL , even when the extension is disabled?

Thanks
Shanmugham

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsubscribe...@chromium.org.

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.

Shanmugham Sundaram

unread,
Jan 31, 2017, 2:36:22 AM1/31/17
to Chromium-Extensions-Announce, shansy...@gmail.com
Ankit,

I found  thaat "Avira Browser Safety" extension from  https://www.avira.com/en/avira-browser-safety has this facility enabled.
I mean even when the extension is disabled, when the "extension is removed/uninstalled", I am seeing an url opened at new tab. Any idea as how it is implemented?

Thanks
Shan

Ankit Agarwal

unread,
Jan 31, 2017, 3:15:25 AM1/31/17
to Shanmugham Sundaram, Chromium-Extensions-Announce
Shanmugham,

I think chrome.runtime.setUninstallURL should work for "disabled" extension too. My apologies, I think there has been a bit of misunderstanding. I can confirm that chrome.runtime.setUninstallURL works if an extension is removed/uninstalled, in any state(active or disabled).

My requirement is to detect when an extension is disabled. We can detect removal/uninstallation but we cannot detect disabling and that is what I need. Just like removal/uninstallation opens a url in a new tab, I am searching for a similar feature when extension is disabled.

My bad, I misunderstood your query.

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
Reply all
Reply to author
Forward
0 new messages