Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out if TrustedXYZ objects should be Transferable #93

Closed
koto opened this issue Oct 29, 2018 · 1 comment
Closed

Figure out if TrustedXYZ objects should be Transferable #93

koto opened this issue Oct 29, 2018 · 1 comment

Comments

@koto
Copy link
Member

koto commented Oct 29, 2018

Transferable interface allows an object to be transferred between different execution contexts. Allowing TT to be Transferable would make it possible to e.g. create objects in a worker and consume them in a main document. However, this might also make it possible to send them over postMessage channels. Obviously, this is undesirable, unless we track which policies created those objects (policies are per realm).

Initially, I think TT should NOT be Transferable, but leaving this open in case some use cases arise.

@koto
Copy link
Member Author

koto commented Jan 17, 2019

I've made a decision. Types should not be Transferable for sure. Apart from aforementioned reasons, it makes it tricky to push the TT under Origin Trials, (one document has the trial token, but the other might not).

@koto koto closed this as completed Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant