-
Notifications
You must be signed in to change notification settings - Fork 57
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
Replace tldjs with @browserpass/url, check port #179
Conversation
7458ea8
to
bbf2e4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost perfect :) I left some comments (so you can see what I want to change), I will address them myself and merge
I fixed the above, but I have one final remark that I'd like us to discuss (so I'll not merge just yet). How shall we handle It sounds to me that if an entry So as of right now, it is impossible to get If we were to fix it, I think we must refactor again, and replace |
Oh and one more thing, we must adjust the Password matching and sorting section of the README, I'll make some preliminary changes, feel free to adapt. |
Yes, I agree that this is a bug. I would like to think on it a bit more, but my initial inclination is to shim it in @browserpass/url such that it always provides a port. This is straightforward to achieve by simply mapping the http and https schemes to ports 80 and 443 respectively. And then apply that library to wherever else Browserpass happens to be parsing URLs. I agree that this change may need some more refactoring. Can I think on it a bit, and come back to you tomorrow evening? |
absolutely! |
Technically wrong, but more obvious and intuitive for the user, particularly noting we also have a native host app component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
What
Why
@maximbaz Do you prefer this approach for port matching, or the one in #178? I added it here because it was easy to do both these tasks at the same time, but if another approach is desired I can adjust the PR.