Skip to content

Firefox Enhanced Tracking Protection breaks embeds #56

@corbindavenport

Description

@corbindavenport

Peek previews for links from Reddit, Threads, Facebook, and Instagram all fail to load in Firefox when Enhanced Tracking Protection is enabled. It shows a blank space in the embed. Ideally, Peek should show an error when the embed is blocked, and explain what happened.

Image

There are some difficulties handling this:

  1. Firefox doesn't seem to have a browser or extension API to check if a given URL will be blocked.
  2. Peek can't hardcode the domains known to fail, because those could be modified with future Firefox updates.
  3. Firefox and other browsers do not allow checking the load status of an iframe (in this case, the Peek embed) as a security precaution.

Not totally sure how to work around this yet. Maybe doing a fetch() request through the background script when loading any external link, and then showing a error in the embed (or no popup at all?) if it fails. The fetch request should have error codes that the iframe does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions