Skip to content

Show a warning on the inspector page if canvas measureString returns 0 #777

Closed as not planned

Description

@DanTup

See discussion at #367 (comment)

The reason the inspector page is messed up in Brave (which otherwise looks like Chrome) is that it returns 0 from measureString as an anti-fingerprint mechanism. This is trivial to detect, so we should show a warning at the top of the page in this case telling the user that the trees may not render correctly because of this (it might not be Brave, it could be privacy extensions in Chrome too, but probably users with these would know what they're running if we give them an idea of the cause).

Activity

  1. added this to the Backlog milestone on Jul 22, 2019
  2. elliette commented on Oct 30, 2024

    @elliette
    Member

    Just tried using the Inspector from Brave and not seeing any strange formatting so closing this.

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

    P3issues we think are valid but not importantdevtools-inspector-screenreproduce to verifyIssues that need to be reproduced to verify that they still exist.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions