manifest.json:
"permissions": ["file://*/*"]
"Could not load extension from 'xxx/css-autoreload'. Invalid scheme
for 'permissions[0]'. Only 'http' and 'https' are allowed."
This is very unpleasant to extensions for web-developers, which run
mostly on file://localhost/
--
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.
On Feb 26, 3:09 pm, PhistucK <phist...@gmail.com> wrote:
> Try to remove the asterisk at the end of "file://*/*".
>
> ☆PhistucK
>
> On Fri, Feb 26, 2010 at 14:03, Nikita Vasilyev <alter.el...@gmail.com>wrote:
>
>
>
> > Extensions don't work with file protocol.
>
> > manifest.json:
>
> > "permissions": ["file://*/*"]
>
> > "Could not load extension from 'xxx/css-autoreload'. Invalid scheme
> > for 'permissions[0]'. Only 'http' and 'https' are allowed."
>
> > This is very unpleasant to extensions for web-developers, which run
> > mostly on file://localhost/
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
{
"name": "CSS auto-reload",
"version": "1.0",
"description": "Reloads CSS every second without reloading whole
page. Web developper's best friend.",
"background_page": "background.html",
"browser_action": {
"default_icon": "icon.png",
"default_title": "Start reloading CSS"
},
"permissions": ["file://*/", "tabs"]
}
On Feb 26, 3:24 pm, PhistucK <phist...@gmail.com> wrote:
> Can you paste your entire manifest here?
> What platform?
>
> ☆PhistucK
>
> On Fri, Feb 26, 2010 at 14:20, Nikita Vasilyev <alter.el...@gmail.com>wrote:
>
>
>
> > Nothing's changed. Google Chrome 5.0.335.0 dev.
>
> > On Feb 26, 3:09 pm, PhistucK <phist...@gmail.com> wrote:
> > > Try to remove the asterisk at the end of "file://*/*".
>
> > > ☆PhistucK
>
> > > On Fri, Feb 26, 2010 at 14:03, Nikita Vasilyev <alter.el...@gmail.com
> > >wrote:
>
> > > > Extensions don't work with file protocol.
>
> > > > manifest.json:
>
> > > > "permissions": ["file://*/*"]
>
> > > > "Could not load extension from 'xxx/css-autoreload'. Invalid scheme
> > > > for 'permissions[0]'. Only 'http' and 'https' are allowed."
>
> > > > This is very unpleasant to extensions for web-developers, which run
> > > > mostly on file://localhost/
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Chromium-extensions" group.
> > > > To post to this group, send email to chromium-extensi...@chromium.org.
> > > > To unsubscribe from this group, send email to
> > > > chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
> > <chromium-extensions%2Bunsubscr...@chromium.org<chromium-extensions%252Bunsubscr...@chromium.org>
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
Star issue : http://code.google.com/p/chromium/issues/detail?id=31947
On Feb 26, 1:47 pm, PhistucK <phist...@gmail.com> wrote:
> I guess it is something new. Maybe (a regression or a feature) since the
> file origin access permission change.
> Is it a regression or a feature?
>
> ☆PhistucK
>
> > > > <chromium-extensions%2Bunsubscr...@chromium.org<chromium-extensions%252Bunsubscr...@chromium.org>
> > <chromium-extensions%252Bunsubscr...@chromium.org<chromium-extensions%25252Bunsubscr...@chromium.org>
Currently we use the file protocol fine with our extension that works
as expected.
Though our actual matches property looks like this: matches:
[ "http://*/*", "https://*/*", "file://*/*"]
I believe you are using the wrong option. Permissions is for external
sites that your extension may access. This is for content scripts and
is defined it as follows:
....
"permissions" : ["http://www.google.com"],
"content_scripts": [
{
"matches": [ "http://*/*", "https://*/*", "file://*/*"],
"js": ["controllers/common.js", "controllers/Insertion.js"],
"run_at": "document_start"
}
]
...
Be sure to check out the chrome extensions developer documentation for
more infomation. (http://code.google.com/chrome/extensions/
content_scripts.html)
Best of luck,
Brent
Error during tabs.executeScript: Cannot access contents of url
"file://localhost/Users/nikitavasilev/Sites/github/css_auto-reload/
index.html". Extension manifest must request permission to access this
host.
BTW, I was not aware about support file scheme for content scripts,
thanks!
Glad my post at least helped somewhat in the end lol.