Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

fix up use of createCodebasePrincipal to use origin attributes correctly #2418

Open
dhuseby opened this issue Mar 29, 2016 · 0 comments
Open

Comments

@dhuseby
Copy link

dhuseby commented Mar 29, 2016

in the file browser/extensions/shumway/chrome/SpecialStorage.jsm line 27 there is a call to createCodebasePrincipal that doesn't handle origin attributes correctly:

var principal = ssm.createCodebasePrincipal(uri, {});

The solution is to query the document/docshell for the principal origin attributes and to either use the principal directly, or if a new principal must be created, passing in the origin attributes so that shumway properly isolates.

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

No branches or pull requests

1 participant