Skip to content

feat: return filename in BlockingResponse['redirect'] #4840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

seia-soto
Copy link
Member

This modifies BlockingResponse['redirect'] to have name property to expose the name of resource. By doing this, the user is able to reference a proper web accessible resource URL to return.

On ghostery/broken-page-reports#1350, NS_ERROR_DOM_BAD_URI errors are reported on redirected resources.

@seia-soto seia-soto added the PR: New Feature 🚀 Increment minor version when merged label Apr 29, 2025
@seia-soto seia-soto self-assigned this Apr 29, 2025
@seia-soto seia-soto requested a review from remusao as a code owner April 29, 2025 08:18
@seia-soto seia-soto requested a review from chrmod April 29, 2025 08:42
seia-soto added a commit to seia-soto/ghostery-extension that referenced this pull request Apr 29, 2025
This is to mitigate CORS issue with base64 redirect uris in ghostery/broken-page-reports#1350. The adblocker release is pending on ghostery/adblocker#4840.
contentType: string;
dataUrl: string;
} {
const resource = this.resourcesByName.get(name) || getResourceForMime(name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have to add the name to getResourceForMime and the extension will have to generate WARs for those on the build time

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add tests for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: New Feature 🚀 Increment minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants