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

Handle iframe URLs correctly #2166

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

Conversation

varjolintu
Copy link
Member

When comparing URL's with the new iframe support, things are not working as planned.
Fixes:

  • Do not use toLowerCase(). The paths can contain uppercase letters, and we no longer rely just on domains.
  • Use trimURL() to remove search part of the URL so a proper comparisons can be made.

Fixes the issue mentioned in #1358 (comment).

@varjolintu varjolintu added the bug label Apr 2, 2024
@varjolintu varjolintu added this to the 1.9.1 milestone Apr 2, 2024
@varjolintu varjolintu mentioned this pull request Apr 2, 2024
@apollo13
Copy link

apollo13 commented Apr 2, 2024

When loading your branch as temporary addon I get:

SecurityError: Permission denied to get property "href" on cross-origin object keepassxc-browser.js:36

when trying to add the URL via the addon popup.

@apollo13
Copy link

apollo13 commented Apr 2, 2024

(Aside from that error it seems to work fine though)

@varjolintu
Copy link
Member Author

I'll check that error too. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants