Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Support Blob URLs and window.URL API #2020

Open
tapananand opened this issue Mar 24, 2017 · 3 comments
Open

Support Blob URLs and window.URL API #2020

tapananand opened this issue Mar 24, 2017 · 3 comments

Comments

@tapananand
Copy link

Currently, Caja does not support the window.URL API and hence using the Blob as a URL as described here is not possible.

Please add support for it if possible. Are there any risks associated with it?

@kpreid
Copy link
Contributor

kpreid commented Mar 24, 2017

New features for Caja are pretty much on hold for the time being. However, if you'd like to write a patch to add this one we'd be happy to review and incorporate it.

As to issues in supporting it, the thing that comes to mind is that it would be undesirable if the guest could revokeObjectURL on URLs created by the host that the guest comes to know. This could be handled for simple cases by remembering (for the session) every URL gotten through createObjectURL and using that as a whitelist on the revoke operation, but that might be worse than the alternative for some applications.

@tapananand
Copy link
Author

Thanks for the quick response.

This could be handled for simple cases by remembering (for the session) every URL gotten through createObjectURL and using that as a whitelist on the revoke operation, but that might be worse than the alternative for some applications

Are you saying it might be worse due to performance?
Also, is there a particular reason why new features are on hold?

@kpreid
Copy link
Contributor

kpreid commented Mar 24, 2017

Are you saying it might be worse due to performance?

No, due to the resulting properties. Actually, on second thought, it won't make any difference, so that strategy should be fine.

Also, is there a particular reason why new features are on hold?

There are two-and-a-half people working on Caja in spare time, and spare time and enthusiasm is a scarce resource. Thus, help wanted, patches welcome, etcetera.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants