-
Notifications
You must be signed in to change notification settings - Fork 325
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
feat: improved experience on DNSLink websites #826
Conversation
add-on/_locales/en/messages.json
Outdated
@@ -275,6 +275,18 @@ | |||
"message": "Redirect requests for IPFS resources to the Custom gateway", | |||
"description": "An option description on the Preferences screen (option_useCustomGateway_description)" | |||
}, | |||
"option_dnslinkRedirect_title": { | |||
"message": "Force load from Custom Gateway", |
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.
Maybe change to: "Force page load from custom gateway"
- Explicit language specifying object that is being loaded
- Consistent capitalization
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.
Probably fine as is, but I am a little on the fence about "force".
"Always load pages from custom gateway"?
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.
I agree with the language tweak here. This might be out of scope for this PR but do you think it's widely understood what a Custom Gateway is? I would be inclined to be more specific, such as: Always load DNSLink websites via IPFS Companion's local gateway. (if that is a correct statement?)
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.
This adds new item to Active Tab section of menu in browser action that enables user to open existing IPFS resource at Public or Custom Gateway (depends on redirect status).
This removes "Redirect on {fqdn}" menu item from browser action menu. DNSLink redirect is no longer enabled by default, and this feature does not need to be present at all times (It remains on Preferences screen if needed). In the future we will change it to "Disaple IPFS integrations on these hostnames" Part of #741
Simplified main menu and added option to Due to #808 my plan is to fast-track this to Beta (and then Stable in a day or two), but feel free to provide feedback here or in new issue, we can improve UI in new PR. |
Needs review and explicit approval by @jbenet |
With #826 data was no longer getting into the cache of local node. This adds background queue that ensures every visited DNSLink asset is preloaded to the cache of local IPFS node.
With #826 data was no longer getting into the cache of local node. This adds background queue that ensures every visited DNSLink asset is preloaded to the cache of local IPFS node.
With #826 data was no longer getting into the cache of local node. This adds background queue that ensures every visited DNSLink asset is preloaded to the cache of local IPFS node.
With #826 data was no longer getting into the cache of a local node if DNSLink redirect is disabled by the user. This adds background queue that ensures every visited DNSLink asset is preloaded to the cache of a local IPFS node, if the user chooses to do so.
This PR changes default behavior and disables redirect of DNSLink websites
to local gateway, as noted in #701 (comment)
Context and motivation
*.localhost
(Subdomain Gateway kubo#6498) or Web Package (Signed/Bundled HTTP Exchanges and WebPackage in-web-browsers#121) lets us redirect without breaking Origin isolation.TODO
Closes #701, #667, helps with ipfs-inactive/docs#271
cc @cwaring @hugomrdias @autonome