Packaged App Contentscript problem

165 views
Skip to first unread message

Manak Kapoor

unread,
Feb 13, 2012, 8:52:04 AM2/13/12
to Chromium Apps
https://chrome.google.com/webstore/detail/bpcnnanbbiobnpfakmcdpkopledhpkmh
Could you guys have a look and see why the installation seems to fail.
This is happening with all my webstore apps for some reason...

Thanks,
Manak

Abraham Williams

unread,
Feb 13, 2012, 9:46:11 AM2/13/12
to Manak Kapoor, Chromium Apps
Chrome dev tools show the error "Invalid manifest". Check your manifest for anything odd and upload a new version.

Abraham
--
Abraham Williams | InboxQ | abrah.am | abraham+
@abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.




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


Paul Kinlan

unread,
Feb 13, 2012, 2:16:03 PM2/13/12
to Abraham Williams, Manak Kapoor, Chromium Apps
There is something odd in your manifest.

1) you have http://* in your permissions for a hosted app, which is not permitted.  2) you have "run_at" on the last line of your manifest and it is outside the "content_scripts" attribute, when it should be inside.

Can you post your manifest as is to the group please.

P
--
Paul Kinlan
Developer Advocate @ Google for Chrome and HTML5

Manak Kapoor

unread,
Feb 14, 2012, 1:10:41 AM2/14/12
to Chromium Apps
{
"name": "HearYoutube",
"description": "The easiest way to download Youtube Videos in MP3
Format!",
"version": "1.2.7",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"content_scripts": [
{
"matches": ["http://*/*"],
"js": ["script.js"],
"run_at": "document_end"
}
],
"app": {
"default_icon": "icon16.png",
"launch": {
"web_url": "http://www.hearyoutube.com"
}
}

}

That's my manifest.
And the error i get is Content_scripts are not allowed in this type of
manifest...

PhistucK

unread,
Feb 14, 2012, 2:25:59 AM2/14/12
to Manak Kapoor, Chromium Apps
Content scripts are really not allowed for hosted applications, only for packaged applications.

PhistucK



On Tue, Feb 14, 2012 at 08:10, Manak Kapoor <manak....@gmail.com> wrote:
{

PhistucK

unread,
Feb 14, 2012, 3:04:58 AM2/14/12
to Manak Kapoor, Chromium Apps
Please, keep the list as a CC recipient so others could benefit.

If you use the "web_url" property (within the "app" property), it means it is an hosted application. Hosted applications can only use very few permissions and may not use content scripts.
If you use the "local_path" property (within the "app" property), it means it is a packaged application. Packaged applications can use almost every thing extensions use, except page/browser actions/Omnibox keywords.


You cannot change the type of the extension/application you have uploaded. If you uploaded an extension, you cannot change it to be an application (and vice versa).

PhistucK



On Tue, Feb 14, 2012 at 09:41, Manak Kapoor <manak....@gmail.com> wrote:
Could you explain in a little detail?
--
Best Rgds

Manak Kapoor

Manak Kapoor

unread,
Feb 14, 2012, 3:33:47 AM2/14/12
to Chromium Apps
Actually I managed to change from Hosted to Packaged Application.
The app is now installable again.
Thanks for all the help!:)

On Feb 14, 4:04 pm, PhistucK <phist...@gmail.com> wrote:
> Please, keep the list as a CC recipient so others could benefit.
>
>  If you use the "web_url" property (within the "app" property), it means it
> is an hosted application. Hosted applications can only use very few
> permissions and may not use content scripts.
> If you use the "local_path" property (within the "app" property), it means
> it is a packaged application. Packaged applications can use almost every
> thing extensions use, except page/browser actions/Omnibox keywords.
>
> http://code.google.com/chrome/webstore/docs/choosing.html
>
> You cannot change the type of the extension/application you have uploaded.
> If you uploaded an extension, you cannot change it to be an application
> (and vice versa).
>
> ☆*PhistucK*
>
>
>
>
>
>
>
> On Tue, Feb 14, 2012 at 09:41, Manak Kapoor <manak.kap...@gmail.com> wrote:
> > Could you explain in a little detail?
>
> > On Tue, Feb 14, 2012 at 3:25 PM, PhistucK <phist...@gmail.com> wrote:
>
> >> Content scripts are really not allowed for hosted applications, only for
> >> packaged applications.
>
> >> ☆*PhistucK*
> >>> To post to this group, send email to chromium-a...@chromium.org.
> >>> To unsubscribe from this group, send email to
> >>> chromium-apps+unsubscr...@chromium.org.
Reply all
Reply to author
Forward
0 new messages