Skip to content

Surrogation redirect fails with net::ERR_UNSAFE_REDIRECT when fetched by service worker #3155

Description

@ghostwords

In MV3 Chrome (and Chrome-derived browsers), our surrogation redirect for https://platform.twitter.com/widgets.js fails with net::ERR_UNSAFE_REDIRECT on https://www.theverge.com/2020/9/11/21433228/microsoft-xbox-series-x-hidden-video-phil-spencer-july-2020 when the page's service worker is active.

This breaks our tweet replacement on the page.

Tweet replacement works when you bypass the service worker using Chrome dev tools. Tweet replacement also works in MV3 Firefox and with all browsers using MV2.

While https://issues.chromium.org/issues/375395102 appears to describe the same bug, it is marked fixed in Chrome 140.

Activity

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

    ChromeMV3Manifest V3-specific issuebugsurrogatesReplacement blank/noop/dummy/neutered versions of tracking scripts used to avoid site breakageswidgetsClick-to-activate placeholders for blocked but potentially useful social buttons/widgets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions