Closed lidel closed 3 months ago
@whizzzkid fysa I've filled this as a smaller scope of work when compared to #1281 to unblock Brave.
Does this sound sensible, or is there a better way you see to avoid redirect clash?
@lidel thanks, yes this sounds reasonable, one thing I'm not really sure about is why does this need to be "periodically" can't they not persist these values? Also, there is a priority flag for redirect rules. I'm guessing those are being ignored.
re: periodically: Brave user can toggle Brave redirect from OFF to ON again via brave://settings etc, but maybe it will be enough if we check when that URI is opened and on extension start?
Those are different than web extension ones, so priority is most likely ignored.
No longer relevant, https://blog.ipfs.tech/2024-brave-migration-guide/
This is MVP subset of https://github.com/ipfs/ipfs-companion/issues/1281 requested by the Brave team.
Problem
Currently, Companion logic is clashing with Brave logic when both have redirects enabled.
Proposed fix
The provisional fix is to periodically check if all below are true:
chrome.ipfs.getSettings
)If true, we want to
chrome.ipfs.setGatewayFallbackEnabled(false)
andchrome.ipfs.setAutoRedirectToConfiguredGatewayEnabled(false)
), ensuring only Companion ones are executed