Enable extension in Incognito mode from WITHIN the extension

485 views
Skip to first unread message

Warren Benedetto

unread,
Dec 20, 2010, 3:57:44 AM12/20/10
to Chromium-extensions
Is there any API that will enable me to add an option in my
extension's settings page for allowing it to function in Incognito
mode?

My extension (StayFocusd) blocks time-wasting websites, and I
constantly get emails from users who figure out they can "cheat" by
opening an Incognito window. I then have to walk them through
navigating to the extensions page and clicking the Allow In Incognito
box. It would be a huge help if I could include an Allow In Incognito
box in the extension itself, so I could make it super-prominent and
obvious how to do so.

Radek Šimko

unread,
Dec 20, 2010, 8:05:59 AM12/20/10
to Chromium-extensions
afaik there's no way to automatically allow extension in incognito
mode.
Because Chrome cannot check all extensions, what they exactly do and
actually cannot decide, if they collects any private information, it's
better to forbid all extensions in that mode.

Anyway I've got your point about the purpose of your extension.

On 20 pro, 09:57, Warren Benedetto <war...@transfusionmedia.com>
wrote:

Arne Roomann-Kurrik

unread,
Dec 20, 2010, 1:47:41 PM12/20/10
to Warren Benedetto, Chromium-extensions
Yeah, the current UI was done on purpose. Feel free to file a request at crbug.com if you want, but I feel that it's unlikely that this will be implemented.

I think your best bet here would be to open an instructional page upon first run of the extension with instructions on configuring the incognito behavior.  You can do this by checking for the presence of a localStorage variable - if it doesn't exist, set it and show the help page.

~Arne


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Matt Perry

unread,
Dec 20, 2010, 2:19:00 PM12/20/10
to kur...@chromium.org, Warren Benedetto, Chromium-extensions

Warren Benedetto

unread,
Dec 20, 2010, 2:32:27 PM12/20/10
to kur...@chromium.org, Chromium-extensions
Yes, a first-run help page is the solution I was thinking of. I was just hoping to be able to add a big "click here to enable in Incognito" link, instead of multi-step directions to navigate to the extensions page. 

The UX I'm thinking of for this link would be similar to when an extension is first installed: the user clicks an "allow in incognito" link/button in the extension, which would display a browser-generated confirmation dialog similar to the one shown when installing the app. The dialog could inform the user of the risks of allowing the extension to run in incognito mode. That would prevent extensions from allowing themselves to run in incognito mode without explicit user knowledge and approval.




On Mon, Dec 20, 2010 at 10:47 AM, Arne Roomann-Kurrik <kur...@chromium.org> wrote:
Reply all
Reply to author
Forward
0 new messages