Skip to content

Downgrade SharedStorage out of budget log level messages #223

Open
@ankwok

Description

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.

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