New issue
Advanced search Search tips

Issue 848158 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Increase allowance of activeTab

Reported by thd...@gmail.com, May 31 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

Steps to reproduce the problem:
I'm not sure if this is a bug or a feature request, but here goes... I would like to use declarativeContent.RequestContentScript for two main reasons:

1. Inject a content script only when necessary
2. Avoid the "Read and change all your data on the websites you visit" permissions warning that scares a lot of people off from installing your extension

What is the expected behavior?
I was hoping by using the activeTab permission, I would be able to inject the content script into the active tab, but that doesn't seem to be the case.

What went wrong?
In order for me to inject a content script into the active tab, I would have to add the <all_urls> permission, which would also give off the "Read and change all your data on the websites you visit" warning that I'm trying to avoid.

I hope with the activeTab permission we would be able to inject content scripts into the active tab using declarativeContent.RequestContentScript.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 66.0.3359.181  Channel: n/a
OS Version: 10.0
Flash Version:
 

Comment 1 by woxxom@gmail.com, May 31 2018

The purpose of the activeTab permission is to seamlessly grant the permissions upon a user gesture (the types are listed in the documentation) so it can't be applied automatically. AFAICT all you need is to simply add <all_urls> to optional_permissions and request the permissions for a specific web site URL or pattern, see the documentation: https://developer.chrome.com/extensions/permissions
Labels: Needs-Triage-M66
Cc: vamshi.kommuri@chromium.org
Components: Platform>Extensions>API
Labels: Triaged-ET Needs-Feedback
Thanks for filing the issue!

@Reporter: Could you please let us know its behaviour i.e., if this works for you as per the update in comment#1.

Comment 4 by thd...@gmail.com, Jun 1 2018

Thanks for the explanation, woxxom. Vamshi, please close this ticket.
Project Member

Comment 5 by sheriffbot@chromium.org, Jun 1 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 by b...@chromium.org, Jun 1 2018

Status: WontFix (was: Unconfirmed)
As per the confirmation given by reporter in comment#4 closing this issue and marking it as Won't fix.

Thanks!

Sign in to add a comment