Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Supporting data:url for mozIDOMApplicationRegistry.install

15 views
Skip to first unread message

Vivien

unread,
Apr 30, 2012, 1:28:38 PM4/30/12
to dev-w...@lists.mozilla.org
Bug 748896 is about supporting data:url for
mozIDOMApplicationRegistry.install

data:url are supported for:
- XHR: https://bugzilla.mozilla.org/show_bug.cgi?id=702820
- Workers: https://bugzilla.mozilla.org/show_bug.cgi?id=699857
- @font-face, images, etc..

Basically and per bug 699857, data URIs are considered same domain in
Gecko. This will let a web site install an application without having to
stored a manifest.json file on the server side.

Any good reasons for not supporting it for mozApps?

Vivien.

Ian Bicking

unread,
Apr 30, 2012, 1:38:21 PM4/30/12
to Vivien, dev-w...@lists.mozilla.org
On Mon, Apr 30, 2012 at 12:28 PM, Vivien <2...@vingtetun.org> wrote:

> Bug 748896 is about supporting data:url for mozIDOMApplicationRegistry.**
> install
>
> data:url are supported for:
> - XHR: https://bugzilla.mozilla.org/**show_bug.cgi?id=702820<https://bugzilla.mozilla.org/show_bug.cgi?id=702820>
> - Workers: https://bugzilla.mozilla.org/**show_bug.cgi?id=699857<https://bugzilla.mozilla.org/show_bug.cgi?id=699857>
> - @font-face, images, etc..
>
> Basically and per bug 699857, data URIs are considered same domain in
> Gecko. This will let a web site install an application without having to
> stored a manifest.json file on the server side.
>
> Any good reasons for not supporting it for mozApps?
>

We use the published manifest file as a kind of proof that the application
developers intended to publish their site as an app, and have a
relationship with the site trying to install the app. Also a data: url
could only be sensibly used when an app tried to install itself, it
wouldn't work for any other site/store installing an application.

Jonas Sicking

unread,
May 3, 2012, 3:48:49 PM5/3/12
to Vivien, dev-w...@lists.mozilla.org
On Mon, Apr 30, 2012 at 10:28 AM, Vivien <2...@vingtetun.org> wrote:
> Bug 748896 is about supporting data:url for
> mozIDOMApplicationRegistry.install
>
> data:url are supported for:
>  - XHR: https://bugzilla.mozilla.org/show_bug.cgi?id=702820
>  - Workers: https://bugzilla.mozilla.org/show_bug.cgi?id=699857
>  - @font-face, images, etc..
>
> Basically and per bug 699857, data URIs are considered same domain in Gecko.
> This will let a web site install an application without having to stored a
> manifest.json file on the server side.
>
> Any good reasons for not supporting it for mozApps?

This would only allow a site to install an app for it's own domain,
right. I.e. the origin of the app must be the same as the origin of
the manifest, and the origin of the manifest would be the origin of
the page calling install.

If that's ok then that sounds ok to me.

/ Jonas
0 new messages