New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 612489 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 362351
Owner: ----
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Feature



Sign in to add a comment

Enable user control over content scripts ability to impact page performance / security

Project Member Reported by rbyers@chromium.org, May 17 2016

Issue description

Anecdotally it seems relatively common for some user-reported page performance issue to turn out to be caused by a content script running in the context of the page.

As a performance conscious user I generally don't install any extension that relies on content scripts, but I occasionally make an exception for a valuable site-specific extension.  This policy is pretty difficult to implement in practice.  Perhaps we should consider a feature like the following to help users manage the (security and performance) risk of content scripts:

- Have an option (flag for now, maybe graduate to content settings) to disable content scripts by default.  
- The first time a content script attempts to load into a site, you get a page action icon (similar to other permissions) with the option to enable it.
- Once enabled the icon remains in the omnibox to remind you that code in addition to that provided by the site is running on the page.
- The ability to run content scripts (perhaps per extension) is stored in the site settings.  Conceptually this is similar to the UI for plugins (could perhaps even be considered as a type of "plugin").

Thoughts?
 

Comment 1 by rbyers@chromium.org, May 17 2016

Summary: Enable user control over content scripts ability to impact page performance (was: Enable more granular control over content scripts ability to impact page performance)

Comment 2 by rbyers@chromium.org, May 17 2016

Summary: Enable user control over content scripts ability to impact page performance / security (was: Enable user control over content scripts ability to impact page performance)
Cc: rdevlin....@chromium.org
This is very similar to the concept between click-to-script (main-ish bug is issue 362351).  I think that would address all the concerns here.  Does that sound reasonable?
Mergedinto: 362351
Status: Duplicate (was: Untriaged)
Per 3, duping into issue 362351.

Sign in to add a comment