Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Refactor URLs we allow navigation to #556

Merged
merged 4 commits into from
Sep 12, 2019
Merged

Refactor URLs we allow navigation to #556

merged 4 commits into from
Sep 12, 2019

Conversation

axelchalon
Copy link
Contributor

Close #547

This PR only takes care of refactoring the checks when the web contents navigates to an URL. No changes made to the resources checks (i.e. images, fetches, etc.).

It would be nice to double-check if all the external links still open.

I couldn't check if the links to blockscout still work on the packaged versions as I'm getting redirected to the accounts list after staying for a few seconds on any other page; also on master. For example, clicking on "New account" and waiting a few seconds brings me back to the accounts list. Can you repro?

The linked document warns against explicitly opting out from
TLS validation. This doesn't require setting a custom handler.
@Tbaut
Copy link
Collaborator

Tbaut commented Sep 6, 2019

Got the following when clicking on the Blockscout:

Unable to open new window with untrusted content url due to new-window listener: https://blockscout.com/eth/kovan/tx/0xa4d0fa711acf6adf19730790ab4a149ffa748ac324ebd0cc47cdce48c4916368/internal_transactions

Other than the feedback button I don't think we have any other link do we?

@Tbaut
Copy link
Collaborator

Tbaut commented Sep 6, 2019

Can you repro?

Using yarn start and yarn electron I can't reproduce. Everything's fine for me 🤷‍♂️

Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

working well :)

Copy link
Collaborator

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

Works well, and code looks much cleaner!

@amaury1093 amaury1093 merged commit ef6d6a8 into master Sep 12, 2019
@amaury1093 amaury1093 deleted the ac-whitelist-urls branch September 12, 2019 16:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use whitelist instead of open ended regex
3 participants