WICG / shared-storage

Explainer for proposed web platform Shared Storage API
Other
89 stars 23 forks source link

Tracking the Short Term Shared Storage Entropy Budget #165

Open sanjalijha opened 2 months ago

sanjalijha commented 2 months ago

The long term entropy budget can be tracked in the DevTools/Application panel. Can we get support for tracking the Short Term per page load/ per origin budgets as well.

What is the best way to check these budgets in a page load session?

jkarlin commented 2 months ago

Displaying the budget in devtools seems reasonable to me. Will look into that.

In regards to checking the budget within a page load, we have a per-page budget per origin and a total budget for all origins. I think it would be okay privacy+security wise to expose the per-page per-origin budget to a context of that origin, but the total cross-origin budget would be a cross-site leak so we couldn't expose that one. So, not sure if that's particularly useful.

sanjalijha commented 2 months ago

Thanks! That makes sense. Is there currently a way to check the remaining (per-page per-origin) budget of a page load? The function remainingBudget can only we called from within a worklet.

jkarlin commented 2 months ago

No, there is no current API to access either of the per-page budgets.

sanjalijha commented 2 months ago

Just to clarify, is there a command we can run currently in the DevTools Console and access the per-origin / per-page budget currently? (Before it is displayed as a UI Element)