ipfs/ipfs-companion

MV3 handling of ?uri= creates too many rules

lidel opened this issue · 0 comments

lidel commented

MV3 3.0.0.1114 produces one rule per URI:

origin: '^https?\\:\\/\\/dweb\\.link\\/ipfs\\/\\?uri\\=ipfs%3A%2F%2FQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR%3FargTest%23',
destination: 'https://ipfs.io/ipfs/QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR?argTest#'

This will balloon the number of created rules, making them very hard to inspect.

Perhaps we could have a single catch-all rule for ?uri=* which opens a router page under chrome-extension:// similar to recovery one, and JS there redirecting to the final URI via window.location.replace?