Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Downgrade SharedStorage out of budget log level messages #223

Open

Description

@ankwok

Cross-posted from privacysandbox/privacy-sandbox-dev-support#462

Hello,

As an ad tech with Javascript tags on client websites, we do our best to catch any errors and properly treat them as to not negatively impact the client's website behavior. Clients routinely monitor the console activity on their websites and complain to us when our JS tag produces error messages in the console.

The Shared Storage API has a budgeting mechanism with clearly defined behaviors when we try to perform an operation like selectURL when no budget remains. However, Chrome logs an error when this expected behavior happens. Our JS code cannot catch it since no error is thrown. This is by design otherwise an actor would be able to know whether or not they have any remaining privacy budget.

We would like Chrome to downgrade such logging to warning or info as it is:

  1. Expected behavior
  2. Not very actionable as the caller cannot observe these console logs

Note: there may be other places where an error log level is used for expected behavior. I only searched for the particular message that our clients pointed out to us.

Activity

  1. jkarlin commented on Jan 28, 2025

    @jkarlin
    Collaborator

    Thanks for the report. I agree that it's expected non-actionable behavior, but may still be useful for the developer. We should change this to info.

  2. jkarlin commented on Jan 29, 2025

    @jkarlin
    Collaborator

    Marking as fixed as the change is landing in Chrome now (M134).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions