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

Tracking the Short Term Shared Storage Entropy Budget #165

Open
sanjalijha opened this issue Jul 10, 2024 · 4 comments
Open

Tracking the Short Term Shared Storage Entropy Budget #165

sanjalijha opened this issue Jul 10, 2024 · 4 comments

Comments

@sanjalijha
Copy link

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
Copy link
Collaborator

jkarlin commented Jul 10, 2024

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
Copy link
Author

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
Copy link
Collaborator

jkarlin commented Jul 10, 2024

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

@sanjalijha
Copy link
Author

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)

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

2 participants