chrome.extension.getBackgroundPage() and Content Scripts, No sense

719 views
Skip to first unread message

Giovani Ceotto

unread,
Oct 27, 2010, 4:24:58 PM10/27/10
to Chromium-extensions
I`m a big fan of Chrome(ium) and its extension system. However, what I
really don`t understand in it is why can`t we use
chrome.extension.getBackgroundPage() in content scripts? I think this
is a very valuable tool that we are missing.

PhistucK

unread,
Oct 27, 2010, 4:49:21 PM10/27/10
to Giovani Ceotto, Chromium-extensions
I believe it is due to security concerns. Minimizing the damage. If the web page happens to find a way to interact with the content script and act with its privileges, you would not want to empower it with all of the power the background page has.

PhistucK




--
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.


Antony Sargent

unread,
Oct 29, 2010, 1:58:31 PM10/29/10
to PhistucK, Giovani Ceotto, Chromium-extensions
Also, the content script and the background page are in two different processes, since the content script runs in the same process as the page it's injected into. 
Reply all
Reply to author
Forward
0 new messages