WICG / turtledove

TURTLEDOVE
https://wicg.github.io/turtledove/
Other
538 stars 237 forks source link

Support for async generateBid() #224

Open maciejkowalczyk opened 3 years ago

maciejkowalczyk commented 3 years ago

Current FLEDGE design doc does not explicitly allow returning a Promise from generateBid().

Asynchronous functions, however, are used by some popular tools like TensorflowJS and WebAssembly which might be useful in bidding functions implementation.

It seems some implementations already do support Promises whilst others don't.

How about explicitly allowing returning a Promise from generateBid()?

michaelkleber commented 3 years ago

Right now we don't support any async operations inside the worklets. We may reconsider this in the future, but we need to pay careful attention to these workers using side-channel attacks to exfiltrate information to the publisher page that is supposed to stay private, so allowing async operations in this environment would be tricky.