Skip to content
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

fix(file-preview): safeSubresourceGwUrl #2253

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

lidel
Copy link
Member

@lidel lidel commented Aug 30, 2024

This aims to sanitize localhost src url for embedded image/audio/video to avoid mixed-content warning in latest chrome-based browsers.

Rationale: #2246 (comment)

@lidel lidel requested a review from a team as a code owner August 30, 2024 21:32
this aims to sanitize localhost src url for embedded image/audio/video
to avoid mixed-content warning in latest chrome-based browsers

Rationale:
#2246 (comment)
@lidel lidel force-pushed the fix/cross-origin-localhost-mixed-content branch from 8fdc528 to 1a56429 Compare August 30, 2024 21:33
Copy link
Member Author

@lidel lidel left a comment

Choose a reason for hiding this comment

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

The challenge of testing this, is that it works on localhost subdomain, but it may be a bug in chrome that manifests only when top level document URL is https:// and not just a secure context (in Chromium codebase, these are not the same, and we reported bugs before).

I'm going to merge this and deploy to dev.webui.ipfs.io:

  • If problem is solved, we will cut a patch release next week.
  • If not, I'll fill a bug in Chromium issue tracker and as Igalia for help.

@lidel lidel merged commit bb861a3 into main Aug 30, 2024
22 checks passed
@lidel lidel deleted the fix/cross-origin-localhost-mixed-content branch August 30, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant