Skip to content
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

fix(rules): Better Redirect Rules #1256

Merged
merged 20 commits into from
Aug 27, 2023
Merged

Conversation

whizzzkid
Copy link
Contributor

@whizzzkid whizzzkid commented Aug 4, 2023

fixes: #1254
closes: #1253

Builds on work already in: #1236

In this PR:

  • This was a non-trivial effort in designing a dynamic regular expression generator based on origin and redirect URL patterns.
  • This makes the rules less greedy, https://host/<namespace>/.* instead of https://host/.*
  • The rules are also now dynamic https://<cid>.<namespace>.subdomain.host.tld/<path> can now map to http://localhost:8080/<namespace>/<cid>/<path> just based on regex rules redirect.

Test Runs: #1259
Follow up PR: #1261

@whizzzkid whizzzkid changed the base branch from main to rc/3.0-mv3 August 4, 2023 09:23
…into fix/default-rules

* refs/remotes/origin/fix/default-rules:
  feat(mv3): Ask for Host Permissions if not exist. (#1250)
  fix(mv3): 🔧 Modifying the default local redirect behaviour.
@whizzzkid whizzzkid changed the base branch from rc/3.0-mv3 to feat/redirection-tests August 4, 2023 20:17
@whizzzkid whizzzkid changed the title Fix/default rules fix(rules): Better Redirect Rules Aug 12, 2023
@whizzzkid whizzzkid marked this pull request as ready for review August 14, 2023 09:32
@whizzzkid whizzzkid requested review from lidel and a team as code owners August 14, 2023 09:32
Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

A few questions and a few suggestions for improvement

@@ -191,7 +191,7 @@ const uiConfig = merge(commonConfig, {
optionsPage: './add-on/src/options/options.js',
recoveryPage: './add-on/src/recovery/recovery.js',
welcomePage: './add-on/src/landing-pages/welcome/index.js',
requestPermissionsPage: './add-on/src/landing-pages/permissions/request.js',
requestPermissionsPage: './add-on/src/landing-pages/permissions/request.js'
Copy link
Member

Choose a reason for hiding this comment

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

i really dislike non-trailing-comma rules.. it makes diffs much messier (and blames incorrect)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same, but this is ts-standard which ships with hard-coded eslint rules. I can either move to https://github.com/exuanbo/ts-standardx which I think dilutes the purpose. Or think about it later, aegir maybe?

@@ -0,0 +1,3 @@
declare module 'is-ipfs' {
Copy link
Member

Choose a reason for hiding this comment

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

Comment on lines 116 to 124
/**
* Compute the namespace from the URL.
*
* @param url string
*/
function computeNamespaceFromUrl (url: string): string {
const { pathname } = new URL(url)
return (/\/([^/]+)\//i.exec(pathname)?.[1] ?? '').toLowerCase()
}
Copy link
Member

Choose a reason for hiding this comment

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

Can we describe a little more what this is doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added comment describing it.

Comment on lines 148 to 183
const staticUrl = [root, tld]
while (subdomain.length > 0) {
const subdomainPart = subdomain.shift()
const commonStaticUrlStart = `^${originURL.protocol}\\:\\/\\/`
const commonStaticUrlEnd = `\\.${escapeURLRegex(staticUrl.join('.'))}\\/${RULE_REGEX_ENDING}`
if (isIPFS.cid(subdomainPart as string)) {
// We didn't find a namespace, but we found a CID
// e.g. https://bafybeib3bzis4mejzsnzsb65od3rnv5ffit7vsllratddjkgfgq4wiamqu.on.fleek.co
regexFilter = `${commonStaticUrlStart}(.*?)${commonStaticUrlEnd}`
regexSubstitution = redirectUrl
.replace(subdomainPart as string, '\\1') // replace CID
.replace(new RegExp(`${originURL.pathname}?$`), '\\2') // replace path

break
}
if (DEFAULT_NAMESPACES.has(subdomainPart as string)) {
// We found a namespace, this is going to match group 2, i.e. namespace.
// e.g https://bafybeib3bzis4mejzsnzsb65od3rnv5ffit7vsllratddjkgfgq4wiamqu.ipfs.dweb.link
regexFilter = `${commonStaticUrlStart}(.*?)\\.(${[...DEFAULT_NAMESPACES].join('|')})${commonStaticUrlEnd}`

regexSubstitution = redirectUrl
.replace(subdomain.reverse().join('.'), '\\1') // replace subdomain or CID.
.replace(`/${subdomainPart as string}/`, '/\\2/') // replace namespace dynamically.

const pathWithSearch = originURL.pathname + originURL.search
if (pathWithSearch !== '/') {
regexSubstitution = regexSubstitution.replace(pathWithSearch, '/\\3') // replace path
} else {
regexSubstitution += '\\3'
}

break
}
// till we find a namespace or CID, we keep adding subdomains to the staticUrl.
staticUrl.unshift(subdomainPart as string)
}
Copy link
Member

Choose a reason for hiding this comment

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

can we split this big while chunk out into another function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed: #1261

const [tld, root, ...subdomain] = originURL.hostname.split('.').reverse()
const staticUrl = [root, tld]
while (subdomain.length > 0) {
const subdomainPart = subdomain.shift()
Copy link
Member

Choose a reason for hiding this comment

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

I believe subdomain is probably type (string|undefined)[] and needs a check to confirm it's not null, despite the fact that we confirm length in the while condition. We can explicitly set type of subdomainPart to string to avoid as string twice below.

Or, A potentially more type-safe approach could be to do something like

let subdomainPart = subdomain.shift()
while(subdomainPart != null) {
// ... code
 subdomainPart = subdomain.shift()
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in #1261

Comment on lines 185 to 187
if (regexFilter !== origRegexFilter) {
// we found a valid regexFilter, so we can return.
return { regexSubstitution, regexFilter }
Copy link
Member

Choose a reason for hiding this comment

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

i'm unsure how regexFilter !== origRegexFilter confirms that we have a valid regexFilter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in #1261

Comment on lines 137 to 145
let regexSubstitution = redirectUrl
let regexFilter = originUrl
const originURL = new URL(originUrl)
const redirectNS = computeNamespaceFromUrl(redirectUrl)
const originNS = computeNamespaceFromUrl(originUrl)
if (!DEFAULT_NAMESPACES.has(originNS) && DEFAULT_NAMESPACES.has(redirectNS)) {
// A redirect like https://github.com/ipfs/ipfs-companion/issues/1255
regexFilter = `^${escapeURLRegex(regexFilter)}`.replace(/https?/ig, 'https?')
const origRegexFilter = regexFilter
Copy link
Member

Choose a reason for hiding this comment

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

All of the code in this function is hard to follow, and I doubt someone else will be able to maintain it easily.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in #1261

Comment on lines 197 to 202
if (
DEFAULT_NAMESPACES.has(originNS) &&
DEFAULT_NAMESPACES.has(redirectNS) &&
originNS === redirectNS &&
originURL.searchParams.get('uri') == null
) {
Copy link
Member

Choose a reason for hiding this comment

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

can we name this check? what does the aggregate of all these statements mean? i.e.

const hasSameRedirectAndOriginNamespace = hasSameNamespace(originURL, originNS, redirectNS)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in #1261

Comment on lines 205 to 212
const [originFirst, originLast] = originUrl.split(`/${originNS}/`)
const defaultNSRegexStr = `(${[...DEFAULT_NAMESPACES].join('|')})`
regexFilter = `^${escapeURLRegex(originFirst)}\\/${defaultNSRegexStr}\\/${RULE_REGEX_ENDING}`
.replace(/https?/ig, 'https?')
regexSubstitution = redirectUrl
.replace(`/${redirectNS}/`, '/\\1/')
.replace(originLast, '\\2')
return { regexSubstitution, regexFilter }
Copy link
Member

Choose a reason for hiding this comment

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

It would be great to encapsulate the different return values throughout this function so we could name them and break up this function a bit more.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in #1261

regexFilter = `^${escapeURLRegex(regexFilter)}`.replace(/https?/ig, 'https?')
const origRegexFilter = regexFilter

const [tld, root, ...subdomain] = originURL.hostname.split('.').reverse()
Copy link
Member

Choose a reason for hiding this comment

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

⚠️ I suspect this may not be enough for roots and tlds that have more . in their name, will lead to bugs / false negatives.

For example:

  • cid.ipfs.gateway.example.net → subdomain gateway is on gateway.example.net
  • cid.ipfs.example.co.uk → subdomain gateway is on example.co.uk ("tld" itself may have . as in practice we care about public suffix, and not real tld– see https://publicsuffix.org)

A safer way is to do what is-ipfs does and match subdomainGatewayPattern /^https?:\/\/([^/]+)\.(ip[fn]s)\.[^/?]+/ which is greedy from left, and not right.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lidel yes, it does the same, I am just removing the known parts, maybe subdomain is a wrong choice for a variable name:

Your example: cid.ipfs.gateway.example.net

  • tld: net
  • domain: example
  • subdmain: ['gateway', 'ipfs', 'cid'] (in reverse)
  • go through the list till either (ipfs|ipns) or a valid cid is found.
  • I think I need to add more comments explaining this.

The regex you shared fails on e.g.: https://bafybeib3bzis4mejzsnzsb65od3rnv5ffit7vsllratddjkgfgq4wiamqu.on.fleek.co/ because it does not havd \.(ip[fn]s)\.

PS: Also, I like (ipfs|ipns) more than (ip[fn]s)

Comment on lines 153 to 162
if (isIPFS.cid(subdomainPart as string)) {
// We didn't find a namespace, but we found a CID
// e.g. https://bafybeib3bzis4mejzsnzsb65od3rnv5ffit7vsllratddjkgfgq4wiamqu.on.fleek.co
regexFilter = `${commonStaticUrlStart}(.*?)${commonStaticUrlEnd}`
regexSubstitution = redirectUrl
.replace(subdomainPart as string, '\\1') // replace CID
.replace(new RegExp(`${originURL.pathname}?$`), '\\2') // replace path

break
}
Copy link
Member

Choose a reason for hiding this comment

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

💭 Unsure if i got this right, but iirc this naive catch-all is not something we've supported before, and may lead to false-positives if someone has non-ipfs domain that happens to be a valid CID.

Domains like f01550000.example.com should not get redirected.
We have subdomain gateway specification for a reason (to remove false-positives like this).

My initial suggestion would be to remove this (we don't want to keep list of "blessed" services, and services should follow specs if they want to get protocol upgrade: subdomain convention, or X-Ipfs-Path in response)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand the concern, fleek for example is one of those services, we only add this rule if the old code evaluates this redirect i.e. origin url and destination url are modified.

We can discuss that as a follow-up issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This comment #1253 (comment) clarifies the issue bit more, I'll remove this check.

Copy link
Member

@lidel lidel Aug 25, 2023

Choose a reason for hiding this comment

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

Yes, if we dont know the namespace, we can't make informed decision about the intention behind the CID, so better to not introduce "guesswork".
Subdomain gateway convention was created for this very reason, making detection deterministic, no ambiguity.
(For example: if you have CID with libp2p-key codec, should it fetch the Public key, or resolve IPNS?)


// if the namespaces are the same, we can generate simpler regex.
// The only value that needs special handling is the `uri` param.
// TODO: Remove this check, as `uri` param is deprecated.
Copy link
Member

Choose a reason for hiding this comment

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

💭 this is new to me – where can I read more about this deprecation? or is it about deprecation of use in companion for something (if so, needs clarification/rephrasing)

(afaik ?uri= is part of https://specs.ipfs.tech/http-gateways/subdomain-gateway/#uri-request-query-parameter and not going anywhere, as long navigator.registerProtocolHandler exists)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am sorry about this, this comment is irrelevant (only the comment, the code is still good)

The reason I got that impression was:

https://dweb.link/ipfs/?uri=ipfs%3A%2F%2FQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR%3FargTest%23hashTest

shows me:

Screenshot 2023-08-15 at 10 07 07 PM

After companion redirects it correctly to: http://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi.ipfs.localhost:8080/?argTest#hashTest

I see the correct cat:

Screenshot 2023-08-15 at 10 09 18 PM

will remove this comment, apologies and good catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
// TODO: Remove this check, as `uri` param is deprecated.

Copy link
Member

@lidel lidel Aug 25, 2023

Choose a reason for hiding this comment

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

Ah, interesting edge case. The 422 error on https://dweb.link/ipfs/?uri=ipfs%3A%2F%2FQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR%3FargTest%23hashTest is a bug in nginx config somewhere in our infra, we track it n https://github.com/protocol/bifrost-infra/issues/2604

?uri is not deprecated, 👍 to remove this TODO

* refactor(mv3): blockOrRequest code

Signed-off-by: Nishant Arora <[email protected]>

* refactor(mv3): Port Logic for Default Rules is more robust.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Adding tests for default rule logic.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

good with this given #1261 will be coming on top, but there is one thing i think could be improved in that PR

* refactor(regexFilters): ✨ Adding a base class for regexFilters.

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): ♻️ Moving subdomain filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): ♻️ Moving namespace filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): ♻️ Moving common filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* feat(regexFilters): ✨ Hooking Up All together

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): ✏️ Lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): ✏️ Updating message.

Signed-off-by: Nishant Arora <[email protected]>

* fix(rename): ✏️ CommonPatterRedirectRegexFilter -> CommonPatternRedirectRegexFilter

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): ♻️ Refactor to remove call to super

Signed-off-by: Nishant Arora <[email protected]>

* fix: make _canHandle private

Signed-off-by: Nishant Arora <[email protected]>

* fix: ⚡ Fix math.min on every loop.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Signed-off-by: Nishant Arora <[email protected]>
@whizzzkid whizzzkid merged commit 3013400 into feat/redirection-tests Aug 27, 2023
5 checks passed
@whizzzkid whizzzkid deleted the fix/default-rules branch August 27, 2023 08:42
whizzzkid added a commit that referenced this pull request Aug 27, 2023
* feat(mv3): ✨ Patching countly-sdk-web

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): ✨ Implementing Custom Async Store.

Signed-off-by: Nishant Arora <[email protected]>

* chore(mv3): 🩹 Hooking everything up together.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Countly Patching + [email protected]

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): 🩹 Patching the Patch

Signed-off-by: Nishant Arora <[email protected]>

* fix: tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): ♻️ Refactoring `supportsBlock` Checks.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Regex Bug

Signed-off-by: Nishant Arora <[email protected]>

* feat: Migrating blocking redirection test to observing redirection test

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): 🔧 Fixing the mocha-setup.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): ♻️ Moving Setup Files.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): gateway-redirect tests now fixed.

Signed-off-by: Nishant Arora <[email protected]>

* fix: 🩹 Patching error messages

Signed-off-by: Nishant Arora <[email protected]>

* fix(patch): countly-web-sdk

* fix(patch): :pin: Pinning countly-web-sdk to 23.2.2

* fix(mv3): 💄 Fixing Lint

Signed-off-by: Nishant Arora <[email protected]>

* feat: protocol-handler-redirection-tests

Signed-off-by: Nishant Arora <[email protected]>

* feat: more tests fixed

Signed-off-by: Nishant Arora <[email protected]>

* fix: More tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint fix

Signed-off-by: Nishant Arora <[email protected]>

* test: merge mocha-setup files (#1246)

* test: merge mocha-setup files

* test(helper): add mv3-test-enabled helper

* test(setup): remove duplicate setup for mv3/mv2

* test(mv3): merge mv3 tests into mv2 test files (#1247)

* test(mv3): merge mv3 tests into mv2 test files

* chore(lint): fix lint failures

* test(supportsBlock): cleanup test

* test: migrating some tests

* test(redirect): mv3 tests use same code as mv2

* test(redirect): mv3 test cleanup

* test(protohandler): mv3 tests use same code as mv2

* test(helper): make isMv3 flag a boolean

* test: fix after merge

* test: fix after merge

* fix: typerrors for localstorage

Signed-off-by: Nishant Arora <[email protected]>

* fix: Updating test:functional_MV3 command.

Signed-off-by: Nishant Arora <[email protected]>

* fix: setup

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Fixing tests

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): Becuase Ofcourse

* feat(test): scaffolding mv3 + mv2 calls in a single check.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): unskipping and upgrading dnslink tests to mv3

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Upgrading workaround tests to MV3

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): removing all skips with better checks.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): ♻️ Refactoring tests and removing redundant calls.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): More Dryer

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): one more

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): ✏️ Renaming isMv3TestingEnabled -> isManifestV3

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): refactor expectNoRedirect

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): ♻️ Refactoring more.

Signed-off-by: Nishant Arora <[email protected]>

* fix: replacing checks to undefined

Signed-off-by: Nishant Arora <[email protected]>

* fix: renaming expectNoRedirect -> ensureNoRedirect

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Adding missing JSDoc

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): 🤷 how did this get removed.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): 🗑️ removed.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Suggestion

* fix(test): 🩹 Bad Merge

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): sequential expectNoRedirect

* Update add-on/src/lib/redirect-handler/blockOrObserve.ts

Co-authored-by: Marcin Rataj <[email protected]>

* fix(rules): Better Redirect Rules (#1256)

* fix(mv3): 🔧 Modifying the default local redirect behaviour.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): 🔧 Modifying the default local redirect behaviour.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): 🐛 Making rules less greedy

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): ✨ Dynamic Rules for subdomain gateways.

Signed-off-by: Nishant Arora <[email protected]>

* fix(types): Adding ambient types for is-ipfs.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test):

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): helper

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): less greedy rules

Signed-off-by: Nishant Arora <[email protected]>

* feat: Adding simpler regex for redirects from similar namespaces.

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): 🚨 Warnings

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Better Default Rules (#1260)

* refactor(mv3): blockOrRequest code

Signed-off-by: Nishant Arora <[email protected]>

* refactor(mv3): Port Logic for Default Rules is more robust.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Adding tests for default rule logic.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* Update add-on/src/lib/redirect-handler/blockOrObserve.ts

* fix(docs): ✏️ Adding comments

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexfilters): Better Structure and Readability (#1261)

* refactor(regexFilters): ✨ Adding a base class for regexFilters.

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): ♻️ Moving subdomain filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): ♻️ Moving namespace filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): ♻️ Moving common filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* feat(regexFilters): ✨ Hooking Up All together

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): ✏️ Lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): ✏️ Updating message.

Signed-off-by: Nishant Arora <[email protected]>

* fix(rename): ✏️ CommonPatterRedirectRegexFilter -> CommonPatternRedirectRegexFilter

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): ♻️ Refactor to remove call to super

Signed-off-by: Nishant Arora <[email protected]>

* fix: make _canHandle private

Signed-off-by: Nishant Arora <[email protected]>

* fix: ⚡ Fix math.min on every loop.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): no blanket redirect for subdomains without namespaces.

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): unused import

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>
@whizzzkid whizzzkid mentioned this pull request Sep 10, 2023
whizzzkid added a commit that referenced this pull request Sep 15, 2023
* feat(mv3): Manifest V3 Migration Checklist (#1170)

* feat(mv3): :sparkles: MV3 Manifest Migration

* fix(mv3): :wastebasket: No longer needed

* fix(mv3): :wrench: Corresponding MV3 Changes

* feat(mv3): :package: Adding deps

* feat(telemetry): Refactor Metrics Tracking from background service_worker (#1172)

* feat(telemetry): :recycle: Init Telemetry away from background service_worker.

* feat(telemetry): :recycle: Track metrics from page context instead of service_worker context

* feat(mv3): :adhesive_bandage: Patch @protobufjs/inquire to not have eval

* fix(mv3): :alien: Fixing contextMenus API changes (#1177)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): webpack configs (#1178)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): ✨ XHR to Fetch Migration (#1179)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* Fix(mv3): Popup Was Broken (#1180)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* feat(mv3): :recycle: Implementing a non-windowed companion instance

* fix(mv3): :wastebasket: Removing calls to background page.

* fix: :wastebasket: Unneeded debug statement

* fix(mv3): :passport_control: Limiting permissions to chrome-extension

* Update add-on/src/lib/ipfs-companion.js

Co-authored-by: Russell Dempsey <[email protected]>

---------

Co-authored-by: Russell Dempsey <[email protected]>

* fix(mv3): CI Builds 🏗️  (#1183)

* fix(mv3): :adhesive_bandage: package.json

* fix(mv3): :rotating_light: Fix Lint

* fix(mv3): :green_heart: Manifest version

* feat: :adhesive_bandage: temporary building from rc-branch

* feat(mv3): blocking by observing (#1181)

* feat(mv3): :sparkles: MV3 Manifest Migration

* fix(mv3): :wastebasket: No longer needed

* fix(mv3): :wrench: Corresponding MV3 Changes

* feat(mv3): :package: Adding deps

* feat(telemetry): Refactor Metrics Tracking from background service_worker (#1172)

* feat(telemetry): :recycle: Init Telemetry away from background service_worker.

* feat(telemetry): :recycle: Track metrics from page context instead of service_worker context

* feat(mv3): :adhesive_bandage: Patch @protobufjs/inquire to not have eval

* fix(mv3): :alien: Fixing contextMenus API changes (#1177)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): webpack configs (#1178)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): ✨ XHR to Fetch Migration (#1179)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* Fix(mv3): Popup Was Broken (#1180)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* feat(mv3): :recycle: Implementing a non-windowed companion instance

* fix(mv3): :wastebasket: Removing calls to background page.

* fix: :wastebasket: Unneeded debug statement

* fix(mv3): :passport_control: Limiting permissions to chrome-extension

* Update add-on/src/lib/ipfs-companion.js

Co-authored-by: Russell Dempsey <[email protected]>

* fix(types): :label: Refactoring existing type declaration

* fix(types): :label: Moving to new types path

* feat(types): :sparkles: Adding typescript support for transpilation

* feat(mv3): :sparkles: Adding blocking request tester

* fix(mv3): :adhesive_bandage: package.json

* fix(mv3): :rotating_light: Fix Lint

* fix: :rotating_light: fix lint

* fix(mv3): :adhesive_bandage: temp fix to build background context

* fix(mv3): :necktie: Detection Logic for MV3 world.

* feat(mv3): :sparkles: Dynamic RegexSubstitution

* fix(types): :arrow_up: Adding .mocharc.json to fix mocha for TS.

* fix: :rotating_light: Lint Fix

* fix(mv3): :recycle: refactor background.service_worker

* feat(mv3): :sparkles: Passing state to BlockOrObserve

* fix(recovery): :bug: conditional for recovery

* fix: :wastebasket: unneeded @ts-ignore

* fix: :bulb: Adding comments

* fix: fixing string method.

* fix: removing extra space.

* fix: removing @ts-nocheck

---------

Co-authored-by: Russell Dempsey <[email protected]>

* feat(mv3): adding dynamicNetRequest rule reconciliation logic + Firefox Builds (#1186)

* feat(mv3): :sparkles: MV3 Manifest Migration

* fix(mv3): :wastebasket: No longer needed

* fix(mv3): :wrench: Corresponding MV3 Changes

* feat(mv3): :package: Adding deps

* feat(telemetry): Refactor Metrics Tracking from background service_worker (#1172)

* feat(telemetry): :recycle: Init Telemetry away from background service_worker.

* feat(telemetry): :recycle: Track metrics from page context instead of service_worker context

* feat(mv3): :adhesive_bandage: Patch @protobufjs/inquire to not have eval

* fix(mv3): :alien: Fixing contextMenus API changes (#1177)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): webpack configs (#1178)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): ✨ XHR to Fetch Migration (#1179)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* Fix(mv3): Popup Was Broken (#1180)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* feat(mv3): :recycle: Implementing a non-windowed companion instance

* fix(mv3): :wastebasket: Removing calls to background page.

* fix: :wastebasket: Unneeded debug statement

* fix(mv3): :passport_control: Limiting permissions to chrome-extension

* Update add-on/src/lib/ipfs-companion.js

Co-authored-by: Russell Dempsey <[email protected]>

* fix(types): :label: Refactoring existing type declaration

* fix(types): :label: Moving to new types path

* feat(types): :sparkles: Adding typescript support for transpilation

* feat(mv3): :sparkles: Adding blocking request tester

* fix(mv3): :adhesive_bandage: package.json

* fix(mv3): :rotating_light: Fix Lint

* fix: :rotating_light: fix lint

* fix(mv3): :adhesive_bandage: temp fix to build background context

* fix(mv3): :necktie: Detection Logic for MV3 world.

* feat(mv3): :sparkles: Dynamic RegexSubstitution

* fix(types): :arrow_up: Adding .mocharc.json to fix mocha for TS.

* fix: :rotating_light: Lint Fix

* fix(mv3): :recycle: refactor background.service_worker

* feat(mv3): :sparkles: Passing state to BlockOrObserve

* fix(recovery): :bug: conditional for recovery

* fix: :wastebasket: unneeded @ts-ignore

* fix: :bulb: Adding comments

* fix: fixing string method.

* fix: removing extra space.

* fix: removing @ts-nocheck

* no longer needed

* fix(mv3): :recycle: Refactor

* feat(mv3): :sparkles: Adding rule-recon logic

* saving state

* fix(mv3): :wrench: Manifest

* fix(mv3): :wrench: Fixing firefox webpack config

* fix(mv3): :adhesive_bandage: Patching debug to use in memory store instead of browser.storage.local

* fix: :rotating_light: fixing lint and moving from record type to map type.

* fix: :memo: Adding docstrings.

* fix(mv3): :poop: web-ext making things harder than it needs to be.

* fix(mv3): :rewind: no more debug patching

* fix(mv3): :poop: improved recon logic

* fix: :memo: adding comments regarding debug.

* fix: :rotating_light: Fix lint

* fix(mv3): :passport_control: manifest perms

* fix: :wastebasket: unnecessary blank line

* feat(mv3): :test_tube: Adding initial tests

* feat(mv3): :clown_face: Adding Mock DeclarativeNetRequest Implementation

* nits

* fix: adding more test examples

* fix: self-documenting code.

* fix: unneeded comment

* Update test/functional/lib/redirect-handler/blockOrObserve.test.ts

---------

Co-authored-by: Russell Dempsey <[email protected]>

* Chore(mv3-release): Publishing RC releases (#1192)

* feat(mv3): :sparkles: MV3 Manifest Migration

* fix(mv3): :wastebasket: No longer needed

* fix(mv3): :wrench: Corresponding MV3 Changes

* feat(mv3): :package: Adding deps

* feat(telemetry): Refactor Metrics Tracking from background service_worker (#1172)

* feat(telemetry): :recycle: Init Telemetry away from background service_worker.

* feat(telemetry): :recycle: Track metrics from page context instead of service_worker context

* feat(mv3): :adhesive_bandage: Patch @protobufjs/inquire to not have eval

* fix(mv3): :alien: Fixing contextMenus API changes (#1177)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): webpack configs (#1178)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): ✨ XHR to Fetch Migration (#1179)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* Fix(mv3): Popup Was Broken (#1180)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* feat(mv3): :recycle: Implementing a non-windowed companion instance

* fix(mv3): :wastebasket: Removing calls to background page.

* fix: :wastebasket: Unneeded debug statement

* fix(mv3): :passport_control: Limiting permissions to chrome-extension

* Update add-on/src/lib/ipfs-companion.js

Co-authored-by: Russell Dempsey <[email protected]>

* fix(types): :label: Refactoring existing type declaration

* fix(types): :label: Moving to new types path

* feat(types): :sparkles: Adding typescript support for transpilation

* feat(mv3): :sparkles: Adding blocking request tester

* fix(mv3): :adhesive_bandage: package.json

* fix(mv3): :rotating_light: Fix Lint

* fix: :rotating_light: fix lint

* fix(mv3): :adhesive_bandage: temp fix to build background context

* fix(mv3): :necktie: Detection Logic for MV3 world.

* feat(mv3): :sparkles: Dynamic RegexSubstitution

* fix(types): :arrow_up: Adding .mocharc.json to fix mocha for TS.

* fix: :rotating_light: Lint Fix

* fix(mv3): :recycle: refactor background.service_worker

* feat(mv3): :sparkles: Passing state to BlockOrObserve

* fix(recovery): :bug: conditional for recovery

* fix: :wastebasket: unneeded @ts-ignore

* fix: :bulb: Adding comments

* fix: fixing string method.

* fix: removing extra space.

* fix: removing @ts-nocheck

* no longer needed

* fix(mv3): :recycle: Refactor

* feat(mv3): :sparkles: Adding rule-recon logic

* saving state

* fix(mv3): :wrench: Manifest

* fix(mv3): :wrench: Fixing firefox webpack config

* fix(mv3): :adhesive_bandage: Patching debug to use in memory store instead of browser.storage.local

* fix: :rotating_light: fixing lint and moving from record type to map type.

* fix: :memo: Adding docstrings.

* fix(mv3): :poop: web-ext making things harder than it needs to be.

* fix(mv3): :rewind: no more debug patching

* fix(mv3): :poop: improved recon logic

* fix: :memo: adding comments regarding debug.

* fix: :rotating_light: Fix lint

* fix(mv3): :passport_control: manifest perms

* fix: :wastebasket: unnecessary blank line

* feat(mv3): :test_tube: Adding initial tests

* feat(mv3): :clown_face: Adding Mock DeclarativeNetRequest Implementation

* nits

* fix: adding more test examples

* fix: self-documenting code.

* fix: unneeded comment

* Creating RC Releases

---------

Co-authored-by: Russell Dempsey <[email protected]>

* fix(mv3): ref_name (#1193)

* Fix/mv3 release (#1194)

* fix(mv3): ref_name

* fix: this is hard to test

* Fixing beta builds

* fix(mv3): :bug: Bad Regex for DNS links (#1198)

* fix(mv3): :bug: Fixing copy functionality for MV3 (#1197)

* fix(mv3): :bug: Fixing copy functionality for MV3

* fix:

* Update add-on/src/lib/copier.js

* feat(mv3): Handle State Changes (#1200)

* fix(mv3): Add support for global toggle on/off

* feat(mv3): Handle State Changes

* fix(mv3): :recycle: Refactoring code to only message self in observation mode.

* Fix/1202 first page is missing content (#1208)

* fix: :arrow_up: package-lock

* feat(mv3): :recycle: Reload tabs with request url.

* fix(mv3): 👔 Adding better regex replace to remove infinite redirects. (#1210)

* fix(mv3): :necktie: Adding better regex replace to remove infinite redirects.

* fix(mv3): :test_tube: Adding more tests to account for local redirects

* fix: :rotating_light: Linter

* feat(mv3): :clown_face: DeclarativeNetRequestMock (#1211)

* fix(mv3): :necktie: Adding better regex replace to remove infinite redirects.

* fix(mv3): :test_tube: Adding more tests to account for local redirects

* feat(mv3): :clown_face: DeclarativeNetRequestMock

* fix: :rotating_light: Linter

* feat(mv3): Adding ContextMenus MV3 Style (#1213)

* feat(mv3): :sparkles: ContextMenus MV3 Style

* feat(mv3): :test_tube: Adding tests

* fix: test case

* fix (quick-import): Duplicate behaviour in MV3 (#1215)

* feat(mv3): :sparkles: ContextMenus MV3 Style

* feat(mv3): :test_tube: Adding tests

* fix: test case

* fix(mv3): :bug: Quick Import

* fix(mv3): :wastebasket: Removing Unnecessary Listener (#1219)

* fix: Automatic Mode Description (#1224)

* fix: :adhesive_bandage: Adding Automatic Mode Description

* Update add-on/_locales/en/messages.json

Co-authored-by: Steve Loeppky <[email protected]>

* Update add-on/_locales/en/messages.json

Co-authored-by: Steve Loeppky <[email protected]>

---------

Co-authored-by: Steve Loeppky <[email protected]>

* fix: 🗑️ Remove Embedded Node Type (#1225)

* fix: :wastebasket: no longer needed

Signed-off-by: Nishant Arora <[email protected]>

* fix: :wastebasket: unneeded messages

Signed-off-by: Nishant Arora <[email protected]>

* fix: :wastebasket: Removing unneeded test

Signed-off-by: Nishant Arora <[email protected]>

* fix: :necktie: Update logic or add todos to fix this later.

Signed-off-by: Nishant Arora <[email protected]>

* fix: :wastebasket: remove logos

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint warning

Signed-off-by: Nishant Arora <[email protected]>

* fix: :alien: no idea why this is a problem now.

Signed-off-by: Nishant Arora <[email protected]>

* fix: :wastebasket: irrelevant

Signed-off-by: Nishant Arora <[email protected]>

* fix: quick-import

Signed-off-by: Nishant Arora <[email protected]>

* fix: Fixing quick-import

Signed-off-by: Nishant Arora <[email protected]>

* fix: Fixing Tools

Signed-off-by: Nishant Arora <[email protected]>

* fix: fixing gateway-form

Signed-off-by: Nishant Arora <[email protected]>

* fix: content-action

Signed-off-by: Nishant Arora <[email protected]>

* fix: store

Signed-off-by: Nishant Arora <[email protected]>

* fix: Fixing state

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* Fix(docs): ✏️ Adding/Updating docs (#1230)

* fix(docs): :pencil2: Api -> kubo rpc api

Signed-off-by: Nishant Arora <[email protected]>

* fix(docs): :pencil2: reword

Signed-off-by: Nishant Arora <[email protected]>

* fix(docs): :heavy_plus_sign: Adding MV3 Migration Docs and Assets.

Signed-off-by: Nishant Arora <[email protected]>

* Update docs/MV3.md

Co-authored-by: Russell Dempsey <[email protected]>

* Update docs/MV3.md

Co-authored-by: Russell Dempsey <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>

* feat(metrics): ✨ Adding patched analytics. (#1232)

* feat(mv3): :sparkles: Patching countly-sdk-web

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :sparkles: Implementing Custom Async Store.

Signed-off-by: Nishant Arora <[email protected]>

* chore(mv3): :adhesive_bandage: Hooking everything up together.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Countly Patching + [email protected]

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :adhesive_bandage: Patching the Patch

Signed-off-by: Nishant Arora <[email protected]>

* fix: tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

* fix: :adhesive_bandage: Patching error messages

Signed-off-by: Nishant Arora <[email protected]>

* fix(patch): countly-web-sdk

* fix(patch): :pin: Pinning countly-web-sdk to 23.2.2

---------

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :art: Replacing Static Images with Mermaid Diagrams (#1233)

* fic(mv3): :art: Replacing Static Images with Mermaid Diagrams

* fix(mv3): :pencil2: Improving Grammar

Signed-off-by: Nishant Arora <[email protected]>

* Adding Colors

Co-authored-by: Russell Dempsey <[email protected]>

* Update docs/MV3.md

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>

* feat(mv3): Faster Redirects During The First Page Load in main_frame (#1239)

* feat(mv3): :zap: Faster redirects for the first time.

Signed-off-by: Nishant Arora <[email protected]>

* fix: removing only from the tests

Signed-off-by: Nishant Arora <[email protected]>

* test(mv3): Adding removing rule example.

Signed-off-by: Nishant Arora <[email protected]>

* test(mv3): :test_tube: Added test regarding removal of rules

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* fix(telemetry): Reverting to old state of things (#1242)

* fix(mv3): Reverting Telemetry Changes To Use PatchedCountlySDK

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): metrics build

Signed-off-by: Nishant Arora <[email protected]>

* fix: more reverts + fixing patch

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :adhesive_bandage: Patching the Patch

Signed-off-by: Nishant Arora <[email protected]>

* fix(countly): :adhesive_bandage: don't look for debug, just log it.

Signed-off-by: Nishant Arora <[email protected]>

* fix(countly): removing session start/end.

Signed-off-by: Nishant Arora <[email protected]>

* fix: unused var

Signed-off-by: Nishant Arora <[email protected]>

* fix(countly): patch

* revert

* fix(countly): repatch, old one seems to be failing.

* fix(countly): bad patch

* revert

* retrying patch

* fix: patch files should not be cached.

Signed-off-by: Nishant Arora <[email protected]>

* fix: fixing cache keys

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): ✨ Introduces Redirect Rule Management (#1240)

* feat: exporting rules ending regex

Signed-off-by: Nishant Arora <[email protected]>

* feat: :sparkles: Adding Rule Management UI

Signed-off-by: Nishant Arora <[email protected]>

* feat: :sparkles: hooking up with background worker.

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

* fix: :art: button styling

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :lipstick: Making UI a bit better

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Tracking URL resolved/observed count. (#1245)

* fix(mv3): Reverting Telemetry Changes To Use PatchedCountlySDK

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): metrics build

Signed-off-by: Nishant Arora <[email protected]>

* fix: more reverts + fixing patch

Signed-off-by: Nishant Arora <[email protected]>

* feat: adding request view.

Signed-off-by: Nishant Arora <[email protected]>

* Reverting to mainline rc patch

* Reverting to mainline rc add-on/src/lib/ipfs-companion.js

* feat(telemetry):

Signed-off-by: Nishant Arora <[email protected]>

* feat(telemetry): Implementing RequestTracker Event Handler

Signed-off-by: Nishant Arora <[email protected]>

* feat(telemetry): hooking up events.

Signed-off-by: Nishant Arora <[email protected]>

* fix(types): annotations

* fix(telemetry): :wastebasket: returning to previous state

Signed-off-by: Nishant Arora <[email protected]>

* fix(telemetry): :recycle: Refactor Request Tracker

Signed-off-by: Nishant Arora <[email protected]>

* fix(telemetry): hooking up requests

Signed-off-by: Nishant Arora <[email protected]>

* fix(telemetry): better types

Signed-off-by: Nishant Arora <[email protected]>

* fix(countly): :wastebasket: more stuff goes, because test need to pass.

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): fixed

* feat(test): test tracker.

* fix: remove only

Signed-off-by: Nishant Arora <[email protected]>

* fix: :lipstick: line break

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Ask for Host Permissions if not exist. (#1250)

* feat(mv3): :sparkles: Requesting Host Permissions Explicitly

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :bug: Adding perms step on installed.

Signed-off-by: Nishant Arora <[email protected]>

* fix: request-permission-view tracking

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Making permissions agnostic to browser

Signed-off-by: Nishant Arora <[email protected]>

* docs: clarify why we need host permission

making prompt less scary, shorter, and informative

* Update add-on/src/lib/ipfs-request.js

Co-authored-by: Marcin Rataj <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>

* feat(mv3): Redirection Tests (#1236)

* feat(mv3): :sparkles: Patching countly-sdk-web

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :sparkles: Implementing Custom Async Store.

Signed-off-by: Nishant Arora <[email protected]>

* chore(mv3): :adhesive_bandage: Hooking everything up together.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Countly Patching + [email protected]

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :adhesive_bandage: Patching the Patch

Signed-off-by: Nishant Arora <[email protected]>

* fix: tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :recycle: Refactoring `supportsBlock` Checks.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Regex Bug

Signed-off-by: Nishant Arora <[email protected]>

* feat: Migrating blocking redirection test to observing redirection test

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :wrench: Fixing the mocha-setup.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :recycle: Moving Setup Files.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): gateway-redirect tests now fixed.

Signed-off-by: Nishant Arora <[email protected]>

* fix: :adhesive_bandage: Patching error messages

Signed-off-by: Nishant Arora <[email protected]>

* fix(patch): countly-web-sdk

* fix(patch): :pin: Pinning countly-web-sdk to 23.2.2

* fix(mv3): :lipstick: Fixing Lint

Signed-off-by: Nishant Arora <[email protected]>

* feat: protocol-handler-redirection-tests

Signed-off-by: Nishant Arora <[email protected]>

* feat: more tests fixed

Signed-off-by: Nishant Arora <[email protected]>

* fix: More tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint fix

Signed-off-by: Nishant Arora <[email protected]>

* test: merge mocha-setup files (#1246)

* test: merge mocha-setup files

* test(helper): add mv3-test-enabled helper

* test(setup): remove duplicate setup for mv3/mv2

* test(mv3): merge mv3 tests into mv2 test files (#1247)

* test(mv3): merge mv3 tests into mv2 test files

* chore(lint): fix lint failures

* test(supportsBlock): cleanup test

* test: migrating some tests

* test(redirect): mv3 tests use same code as mv2

* test(redirect): mv3 test cleanup

* test(protohandler): mv3 tests use same code as mv2

* test(helper): make isMv3 flag a boolean

* test: fix after merge

* test: fix after merge

* fix: typerrors for localstorage

Signed-off-by: Nishant Arora <[email protected]>

* fix: Updating test:functional_MV3 command.

Signed-off-by: Nishant Arora <[email protected]>

* fix: setup

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Fixing tests

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): Becuase Ofcourse

* feat(test): scaffolding mv3 + mv2 calls in a single check.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): unskipping and upgrading dnslink tests to mv3

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Upgrading workaround tests to MV3

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): removing all skips with better checks.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :recycle: Refactoring tests and removing redundant calls.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): More Dryer

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): one more

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :pencil2: Renaming isMv3TestingEnabled -> isManifestV3

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): refactor expectNoRedirect

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :recycle: Refactoring more.

Signed-off-by: Nishant Arora <[email protected]>

* fix: replacing checks to undefined

Signed-off-by: Nishant Arora <[email protected]>

* fix: renaming expectNoRedirect -> ensureNoRedirect

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Adding missing JSDoc

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :shrug: how did this get removed.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :wastebasket: removed.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Suggestion

* fix(test): :adhesive_bandage: Bad Merge

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): sequential expectNoRedirect

* Update add-on/src/lib/redirect-handler/blockOrObserve.ts

Co-authored-by: Marcin Rataj <[email protected]>

* fix(rules): Better Redirect Rules (#1256)

* fix(mv3): :wrench: Modifying the default local redirect behaviour.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :wrench: Modifying the default local redirect behaviour.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :bug: Making rules less greedy

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :sparkles: Dynamic Rules for subdomain gateways.

Signed-off-by: Nishant Arora <[email protected]>

* fix(types): Adding ambient types for is-ipfs.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test):

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): helper

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): less greedy rules

Signed-off-by: Nishant Arora <[email protected]>

* feat: Adding simpler regex for redirects from similar namespaces.

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): :rotating_light: Warnings

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Better Default Rules (#1260)

* refactor(mv3): blockOrRequest code

Signed-off-by: Nishant Arora <[email protected]>

* refactor(mv3): Port Logic for Default Rules is more robust.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Adding tests for default rule logic.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* Update add-on/src/lib/redirect-handler/blockOrObserve.ts

* fix(docs): :pencil2: Adding comments

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexfilters): Better Structure and Readability (#1261)

* refactor(regexFilters): :sparkles: Adding a base class for regexFilters.

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving subdomain filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving namespace filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving common filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* feat(regexFilters): :sparkles: Hooking Up All together

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): :pencil2: Lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): :pencil2: Updating message.

Signed-off-by: Nishant Arora <[email protected]>

* fix(rename): :pencil2: CommonPatterRedirectRegexFilter -> CommonPatternRedirectRegexFilter

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): :recycle: Refactor to remove call to super

Signed-off-by: Nishant Arora <[email protected]>

* fix: make _canHandle private

Signed-off-by: Nishant Arora <[email protected]>

* fix: :zap: Fix math.min on every loop.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): no blanket redirect for subdomains without namespaces.

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): unused import

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>

* fix(recovery): Recovery Rules should reset (#1266)

* feat(mv3): :sparkles: Patching countly-sdk-web

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :sparkles: Implementing Custom Async Store.

Signed-off-by: Nishant Arora <[email protected]>

* chore(mv3): :adhesive_bandage: Hooking everything up together.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Countly Patching + [email protected]

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :adhesive_bandage: Patching the Patch

Signed-off-by: Nishant Arora <[email protected]>

* fix: tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :recycle: Refactoring `supportsBlock` Checks.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Regex Bug

Signed-off-by: Nishant Arora <[email protected]>

* feat: Migrating blocking redirection test to observing redirection test

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :wrench: Fixing the mocha-setup.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :recycle: Moving Setup Files.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): gateway-redirect tests now fixed.

Signed-off-by: Nishant Arora <[email protected]>

* fix: :adhesive_bandage: Patching error messages

Signed-off-by: Nishant Arora <[email protected]>

* fix(patch): countly-web-sdk

* fix(patch): :pin: Pinning countly-web-sdk to 23.2.2

* fix(mv3): :lipstick: Fixing Lint

Signed-off-by: Nishant Arora <[email protected]>

* feat: protocol-handler-redirection-tests

Signed-off-by: Nishant Arora <[email protected]>

* feat: more tests fixed

Signed-off-by: Nishant Arora <[email protected]>

* fix: More tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint fix

Signed-off-by: Nishant Arora <[email protected]>

* test: merge mocha-setup files (#1246)

* test: merge mocha-setup files

* test(helper): add mv3-test-enabled helper

* test(setup): remove duplicate setup for mv3/mv2

* test(mv3): merge mv3 tests into mv2 test files (#1247)

* test(mv3): merge mv3 tests into mv2 test files

* chore(lint): fix lint failures

* test(supportsBlock): cleanup test

* test: migrating some tests

* test(redirect): mv3 tests use same code as mv2

* test(redirect): mv3 test cleanup

* test(protohandler): mv3 tests use same code as mv2

* test(helper): make isMv3 flag a boolean

* test: fix after merge

* test: fix after merge

* fix: typerrors for localstorage

Signed-off-by: Nishant Arora <[email protected]>

* fix: Updating test:functional_MV3 command.

Signed-off-by: Nishant Arora <[email protected]>

* fix: setup

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Fixing tests

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): Becuase Ofcourse

* feat(test): scaffolding mv3 + mv2 calls in a single check.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): unskipping and upgrading dnslink tests to mv3

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Upgrading workaround tests to MV3

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): removing all skips with better checks.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :recycle: Refactoring tests and removing redundant calls.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): More Dryer

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): one more

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :pencil2: Renaming isMv3TestingEnabled -> isManifestV3

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): refactor expectNoRedirect

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :recycle: Refactoring more.

Signed-off-by: Nishant Arora <[email protected]>

* fix: replacing checks to undefined

Signed-off-by: Nishant Arora <[email protected]>

* fix: renaming expectNoRedirect -> ensureNoRedirect

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Adding missing JSDoc

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :shrug: how did this get removed.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :wastebasket: removed.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Suggestion

* fix(test): :adhesive_bandage: Bad Merge

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): sequential expectNoRedirect

* Update add-on/src/lib/redirect-handler/blockOrObserve.ts

Co-authored-by: Marcin Rataj <[email protected]>

* fix(mv3): :wrench: Modifying the default local redirect behaviour.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :wrench: Modifying the default local redirect behaviour.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :bug: Making rules less greedy

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :sparkles: Dynamic Rules for subdomain gateways.

Signed-off-by: Nishant Arora <[email protected]>

* fix(types): Adding ambient types for is-ipfs.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test):

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): helper

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): less greedy rules

Signed-off-by: Nishant Arora <[email protected]>

* feat: Adding simpler regex for redirects from similar namespaces.

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): :rotating_light: Warnings

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Better Default Rules (#1260)

* refactor(mv3): blockOrRequest code

Signed-off-by: Nishant Arora <[email protected]>

* refactor(mv3): Port Logic for Default Rules is more robust.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Adding tests for default rule logic.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* Update add-on/src/lib/redirect-handler/blockOrObserve.ts

* fix(docs): :pencil2: Adding comments

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :sparkles: Adding a base class for regexFilters.

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving subdomain filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving namespace filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving common filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* feat(regexFilters): :sparkles: Hooking Up All together

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): :pencil2: Lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): :pencil2: Updating message.

Signed-off-by: Nishant Arora <[email protected]>

* fix(rename): :pencil2: CommonPatterRedirectRegexFilter -> CommonPatternRedirectRegexFilter

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): :recycle: Refactor to remove call to super

Signed-off-by: Nishant Arora <[email protected]>

* fix: make _canHandle private

Signed-off-by: Nishant Arora <[email protected]>

* fix: :zap: Fix math.min on every loop.

Signed-off-by: Nishant Arora <[email protected]>

* fix(recovery): reset rules

Signed-off-by: Nishant Arora <[email protected]>

* fix(recovery): :recycle: Refactor messaging logic

Signed-off-by: Nishant Arora <[email protected]>

* fix(recovery): :bug: Cleanup Logic

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :bug: fix toggle site integration.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :adhesive_bandage: Hard coding wait as the browser is not cooperative.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>

* fix(mv3): :bug: rules section visible. (#1271)

Signed-off-by: Nishant Arora <[email protected]>

* fix(brave): Fix Brave UX (#1270)

* fix(options): fixing options menu

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Adding brave specific redirects.

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* feat(e2e): Request Handling Tests (#1272)

* fix(test): :recycle: simplify scaffolding

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :test_tube: Adding a final resolution check

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* Update add-on/_locales/en/messages.json

Co-authored-by: Marcin Rataj <[email protected]>

* Update add-on/src/options/forms/api-form.js

Co-authored-by: Marcin Rataj <[email protected]>

* Update add-on/_locales/en/messages.json

Co-authored-by: Marcin Rataj <[email protected]>

* Update test/functional/lib/redirect-handler/blockOrObserve.test.ts

Co-authored-by: Marcin Rataj <[email protected]>

* Update README.md

Co-authored-by: Marcin Rataj <[email protected]>

* fix(test):

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :see_no_evil: Don't interrupt websockets and webtransports.

Signed-off-by: Nishant Arora <[email protected]>

* fix: :pencil2: Rename: ensureDeclrativeNetRequetRuleIsAdded -> ensureDeclarativeNetRequestRuleIsAdded

Signed-off-by: Nishant Arora <[email protected]>

* fix: :pencil2: Rename: ensureTabRedirected -> ensureTabUpdatedTo

Signed-off-by: Nishant Arora <[email protected]>

* fix(language): :pencil2: Rewrite

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :test_tube: Add a failing test.

Signed-off-by: Nishant Arora <[email protected]>

* Update add-on/_locales/en/messages.json

Co-authored-by: Russell Dempsey <[email protected]>

* Update ci/update-manifest.sh

Co-authored-by: Russell Dempsey <[email protected]>

* fix: :pencil2: Beta naming

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): FF Browser Action (#1275)

Signed-off-by: Nishant Arora <[email protected]>

* test(import): :test_tube: Backfill Tests (#1276)

* test(import): :test_tube: Backfill Tests

Signed-off-by: Nishant Arora <[email protected]>

* Update test/functional/lib/ipfs-import.test.js

Co-authored-by: Marcin Rataj <[email protected]>

* Update test/functional/lib/ipfs-import.test.js

Co-authored-by: Marcin Rataj <[email protected]>

* test(import): :test_tube: Backfilling tests for copyImportResultsToFiles

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>

* feat(mv3): :heavy_plus_sign: Adding hash function to generate predict… (#1273)

feat(mv3): :heavy_plus_sign: Adding hash function to generate predictable ids.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :wastebasket: Remove redundant lines.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :recycle: opposite functionality `supportsBlock` -> `supportsDeclarativeNetRequest`

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :twisted_rightwards_arrows: Adding migrations for embedded to external.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>
Co-authored-by: Steve Loeppky <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>
whizzzkid added a commit that referenced this pull request Sep 15, 2023
BREAKING CHANGE: Implements the new MV3 standard for browser extensions.

* feat(mv3): Manifest V3 Migration Checklist (#1170)

* feat(mv3): :sparkles: MV3 Manifest Migration

* fix(mv3): :wastebasket: No longer needed

* fix(mv3): :wrench: Corresponding MV3 Changes

* feat(mv3): :package: Adding deps

* feat(telemetry): Refactor Metrics Tracking from background service_worker (#1172)

* feat(telemetry): :recycle: Init Telemetry away from background service_worker.

* feat(telemetry): :recycle: Track metrics from page context instead of service_worker context

* feat(mv3): :adhesive_bandage: Patch @protobufjs/inquire to not have eval

* fix(mv3): :alien: Fixing contextMenus API changes (#1177)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): webpack configs (#1178)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): ✨ XHR to Fetch Migration (#1179)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* Fix(mv3): Popup Was Broken (#1180)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* feat(mv3): :recycle: Implementing a non-windowed companion instance

* fix(mv3): :wastebasket: Removing calls to background page.

* fix: :wastebasket: Unneeded debug statement

* fix(mv3): :passport_control: Limiting permissions to chrome-extension

* Update add-on/src/lib/ipfs-companion.js

Co-authored-by: Russell Dempsey <[email protected]>

---------

Co-authored-by: Russell Dempsey <[email protected]>

* fix(mv3): CI Builds 🏗️  (#1183)

* fix(mv3): :adhesive_bandage: package.json

* fix(mv3): :rotating_light: Fix Lint

* fix(mv3): :green_heart: Manifest version

* feat: :adhesive_bandage: temporary building from rc-branch

* feat(mv3): blocking by observing (#1181)

* feat(mv3): :sparkles: MV3 Manifest Migration

* fix(mv3): :wastebasket: No longer needed

* fix(mv3): :wrench: Corresponding MV3 Changes

* feat(mv3): :package: Adding deps

* feat(telemetry): Refactor Metrics Tracking from background service_worker (#1172)

* feat(telemetry): :recycle: Init Telemetry away from background service_worker.

* feat(telemetry): :recycle: Track metrics from page context instead of service_worker context

* feat(mv3): :adhesive_bandage: Patch @protobufjs/inquire to not have eval

* fix(mv3): :alien: Fixing contextMenus API changes (#1177)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): webpack configs (#1178)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): ✨ XHR to Fetch Migration (#1179)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* Fix(mv3): Popup Was Broken (#1180)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* feat(mv3): :recycle: Implementing a non-windowed companion instance

* fix(mv3): :wastebasket: Removing calls to background page.

* fix: :wastebasket: Unneeded debug statement

* fix(mv3): :passport_control: Limiting permissions to chrome-extension

* Update add-on/src/lib/ipfs-companion.js

Co-authored-by: Russell Dempsey <[email protected]>

* fix(types): :label: Refactoring existing type declaration

* fix(types): :label: Moving to new types path

* feat(types): :sparkles: Adding typescript support for transpilation

* feat(mv3): :sparkles: Adding blocking request tester

* fix(mv3): :adhesive_bandage: package.json

* fix(mv3): :rotating_light: Fix Lint

* fix: :rotating_light: fix lint

* fix(mv3): :adhesive_bandage: temp fix to build background context

* fix(mv3): :necktie: Detection Logic for MV3 world.

* feat(mv3): :sparkles: Dynamic RegexSubstitution

* fix(types): :arrow_up: Adding .mocharc.json to fix mocha for TS.

* fix: :rotating_light: Lint Fix

* fix(mv3): :recycle: refactor background.service_worker

* feat(mv3): :sparkles: Passing state to BlockOrObserve

* fix(recovery): :bug: conditional for recovery

* fix: :wastebasket: unneeded @ts-ignore

* fix: :bulb: Adding comments

* fix: fixing string method.

* fix: removing extra space.

* fix: removing @ts-nocheck

---------

Co-authored-by: Russell Dempsey <[email protected]>

* feat(mv3): adding dynamicNetRequest rule reconciliation logic + Firefox Builds (#1186)

* feat(mv3): :sparkles: MV3 Manifest Migration

* fix(mv3): :wastebasket: No longer needed

* fix(mv3): :wrench: Corresponding MV3 Changes

* feat(mv3): :package: Adding deps

* feat(telemetry): Refactor Metrics Tracking from background service_worker (#1172)

* feat(telemetry): :recycle: Init Telemetry away from background service_worker.

* feat(telemetry): :recycle: Track metrics from page context instead of service_worker context

* feat(mv3): :adhesive_bandage: Patch @protobufjs/inquire to not have eval

* fix(mv3): :alien: Fixing contextMenus API changes (#1177)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): webpack configs (#1178)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): ✨ XHR to Fetch Migration (#1179)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* Fix(mv3): Popup Was Broken (#1180)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* feat(mv3): :recycle: Implementing a non-windowed companion instance

* fix(mv3): :wastebasket: Removing calls to background page.

* fix: :wastebasket: Unneeded debug statement

* fix(mv3): :passport_control: Limiting permissions to chrome-extension

* Update add-on/src/lib/ipfs-companion.js

Co-authored-by: Russell Dempsey <[email protected]>

* fix(types): :label: Refactoring existing type declaration

* fix(types): :label: Moving to new types path

* feat(types): :sparkles: Adding typescript support for transpilation

* feat(mv3): :sparkles: Adding blocking request tester

* fix(mv3): :adhesive_bandage: package.json

* fix(mv3): :rotating_light: Fix Lint

* fix: :rotating_light: fix lint

* fix(mv3): :adhesive_bandage: temp fix to build background context

* fix(mv3): :necktie: Detection Logic for MV3 world.

* feat(mv3): :sparkles: Dynamic RegexSubstitution

* fix(types): :arrow_up: Adding .mocharc.json to fix mocha for TS.

* fix: :rotating_light: Lint Fix

* fix(mv3): :recycle: refactor background.service_worker

* feat(mv3): :sparkles: Passing state to BlockOrObserve

* fix(recovery): :bug: conditional for recovery

* fix: :wastebasket: unneeded @ts-ignore

* fix: :bulb: Adding comments

* fix: fixing string method.

* fix: removing extra space.

* fix: removing @ts-nocheck

* no longer needed

* fix(mv3): :recycle: Refactor

* feat(mv3): :sparkles: Adding rule-recon logic

* saving state

* fix(mv3): :wrench: Manifest

* fix(mv3): :wrench: Fixing firefox webpack config

* fix(mv3): :adhesive_bandage: Patching debug to use in memory store instead of browser.storage.local

* fix: :rotating_light: fixing lint and moving from record type to map type.

* fix: :memo: Adding docstrings.

* fix(mv3): :poop: web-ext making things harder than it needs to be.

* fix(mv3): :rewind: no more debug patching

* fix(mv3): :poop: improved recon logic

* fix: :memo: adding comments regarding debug.

* fix: :rotating_light: Fix lint

* fix(mv3): :passport_control: manifest perms

* fix: :wastebasket: unnecessary blank line

* feat(mv3): :test_tube: Adding initial tests

* feat(mv3): :clown_face: Adding Mock DeclarativeNetRequest Implementation

* nits

* fix: adding more test examples

* fix: self-documenting code.

* fix: unneeded comment

* Update test/functional/lib/redirect-handler/blockOrObserve.test.ts

---------

Co-authored-by: Russell Dempsey <[email protected]>

* Chore(mv3-release): Publishing RC releases (#1192)

* feat(mv3): :sparkles: MV3 Manifest Migration

* fix(mv3): :wastebasket: No longer needed

* fix(mv3): :wrench: Corresponding MV3 Changes

* feat(mv3): :package: Adding deps

* feat(telemetry): Refactor Metrics Tracking from background service_worker (#1172)

* feat(telemetry): :recycle: Init Telemetry away from background service_worker.

* feat(telemetry): :recycle: Track metrics from page context instead of service_worker context

* feat(mv3): :adhesive_bandage: Patch @protobufjs/inquire to not have eval

* fix(mv3): :alien: Fixing contextMenus API changes (#1177)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): webpack configs (#1178)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): ✨ XHR to Fetch Migration (#1179)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* Fix(mv3): Popup Was Broken (#1180)

* fix(mv3): :alien: Fixing contextMenus API changes

* fix(mv3): :adhesive_bandage: Fixing the browser.action api

* fix(mv3): :wrench: Fixing webpack config

* fix(mv3): :adhesive_bandage: Patching debug package and making background sw work.

* feat(mv3): :sparkles: XMLHttpRequest => fetch

* fix(mv3): :construction: Related changes to ipfs-path

* fix(mv3): :construction: Other Related changes

* fix(mv3): :construction: Changes to companion

* fix(mv3): :white_check_mark: Fixing tests to account for async code.

* feat(mv3): :recycle: Implementing a non-windowed companion instance

* fix(mv3): :wastebasket: Removing calls to background page.

* fix: :wastebasket: Unneeded debug statement

* fix(mv3): :passport_control: Limiting permissions to chrome-extension

* Update add-on/src/lib/ipfs-companion.js

Co-authored-by: Russell Dempsey <[email protected]>

* fix(types): :label: Refactoring existing type declaration

* fix(types): :label: Moving to new types path

* feat(types): :sparkles: Adding typescript support for transpilation

* feat(mv3): :sparkles: Adding blocking request tester

* fix(mv3): :adhesive_bandage: package.json

* fix(mv3): :rotating_light: Fix Lint

* fix: :rotating_light: fix lint

* fix(mv3): :adhesive_bandage: temp fix to build background context

* fix(mv3): :necktie: Detection Logic for MV3 world.

* feat(mv3): :sparkles: Dynamic RegexSubstitution

* fix(types): :arrow_up: Adding .mocharc.json to fix mocha for TS.

* fix: :rotating_light: Lint Fix

* fix(mv3): :recycle: refactor background.service_worker

* feat(mv3): :sparkles: Passing state to BlockOrObserve

* fix(recovery): :bug: conditional for recovery

* fix: :wastebasket: unneeded @ts-ignore

* fix: :bulb: Adding comments

* fix: fixing string method.

* fix: removing extra space.

* fix: removing @ts-nocheck

* no longer needed

* fix(mv3): :recycle: Refactor

* feat(mv3): :sparkles: Adding rule-recon logic

* saving state

* fix(mv3): :wrench: Manifest

* fix(mv3): :wrench: Fixing firefox webpack config

* fix(mv3): :adhesive_bandage: Patching debug to use in memory store instead of browser.storage.local

* fix: :rotating_light: fixing lint and moving from record type to map type.

* fix: :memo: Adding docstrings.

* fix(mv3): :poop: web-ext making things harder than it needs to be.

* fix(mv3): :rewind: no more debug patching

* fix(mv3): :poop: improved recon logic

* fix: :memo: adding comments regarding debug.

* fix: :rotating_light: Fix lint

* fix(mv3): :passport_control: manifest perms

* fix: :wastebasket: unnecessary blank line

* feat(mv3): :test_tube: Adding initial tests

* feat(mv3): :clown_face: Adding Mock DeclarativeNetRequest Implementation

* nits

* fix: adding more test examples

* fix: self-documenting code.

* fix: unneeded comment

* Creating RC Releases

---------

Co-authored-by: Russell Dempsey <[email protected]>

* fix(mv3): ref_name (#1193)

* Fix/mv3 release (#1194)

* fix(mv3): ref_name

* fix: this is hard to test

* Fixing beta builds

* fix(mv3): :bug: Bad Regex for DNS links (#1198)

* fix(mv3): :bug: Fixing copy functionality for MV3 (#1197)

* fix(mv3): :bug: Fixing copy functionality for MV3

* fix:

* Update add-on/src/lib/copier.js

* feat(mv3): Handle State Changes (#1200)

* fix(mv3): Add support for global toggle on/off

* feat(mv3): Handle State Changes

* fix(mv3): :recycle: Refactoring code to only message self in observation mode.

* Fix/1202 first page is missing content (#1208)

* fix: :arrow_up: package-lock

* feat(mv3): :recycle: Reload tabs with request url.

* fix(mv3): 👔 Adding better regex replace to remove infinite redirects. (#1210)

* fix(mv3): :necktie: Adding better regex replace to remove infinite redirects.

* fix(mv3): :test_tube: Adding more tests to account for local redirects

* fix: :rotating_light: Linter

* feat(mv3): :clown_face: DeclarativeNetRequestMock (#1211)

* fix(mv3): :necktie: Adding better regex replace to remove infinite redirects.

* fix(mv3): :test_tube: Adding more tests to account for local redirects

* feat(mv3): :clown_face: DeclarativeNetRequestMock

* fix: :rotating_light: Linter

* feat(mv3): Adding ContextMenus MV3 Style (#1213)

* feat(mv3): :sparkles: ContextMenus MV3 Style

* feat(mv3): :test_tube: Adding tests

* fix: test case

* fix (quick-import): Duplicate behaviour in MV3 (#1215)

* feat(mv3): :sparkles: ContextMenus MV3 Style

* feat(mv3): :test_tube: Adding tests

* fix: test case

* fix(mv3): :bug: Quick Import

* fix(mv3): :wastebasket: Removing Unnecessary Listener (#1219)

* fix: Automatic Mode Description (#1224)

* fix: :adhesive_bandage: Adding Automatic Mode Description

* Update add-on/_locales/en/messages.json

Co-authored-by: Steve Loeppky <[email protected]>

* Update add-on/_locales/en/messages.json

Co-authored-by: Steve Loeppky <[email protected]>

---------

Co-authored-by: Steve Loeppky <[email protected]>

* fix: 🗑️ Remove Embedded Node Type (#1225)

* fix: :wastebasket: no longer needed

Signed-off-by: Nishant Arora <[email protected]>

* fix: :wastebasket: unneeded messages

Signed-off-by: Nishant Arora <[email protected]>

* fix: :wastebasket: Removing unneeded test

Signed-off-by: Nishant Arora <[email protected]>

* fix: :necktie: Update logic or add todos to fix this later.

Signed-off-by: Nishant Arora <[email protected]>

* fix: :wastebasket: remove logos

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint warning

Signed-off-by: Nishant Arora <[email protected]>

* fix: :alien: no idea why this is a problem now.

Signed-off-by: Nishant Arora <[email protected]>

* fix: :wastebasket: irrelevant

Signed-off-by: Nishant Arora <[email protected]>

* fix: quick-import

Signed-off-by: Nishant Arora <[email protected]>

* fix: Fixing quick-import

Signed-off-by: Nishant Arora <[email protected]>

* fix: Fixing Tools

Signed-off-by: Nishant Arora <[email protected]>

* fix: fixing gateway-form

Signed-off-by: Nishant Arora <[email protected]>

* fix: content-action

Signed-off-by: Nishant Arora <[email protected]>

* fix: store

Signed-off-by: Nishant Arora <[email protected]>

* fix: Fixing state

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* Fix(docs): ✏️ Adding/Updating docs (#1230)

* fix(docs): :pencil2: Api -> kubo rpc api

Signed-off-by: Nishant Arora <[email protected]>

* fix(docs): :pencil2: reword

Signed-off-by: Nishant Arora <[email protected]>

* fix(docs): :heavy_plus_sign: Adding MV3 Migration Docs and Assets.

Signed-off-by: Nishant Arora <[email protected]>

* Update docs/MV3.md

Co-authored-by: Russell Dempsey <[email protected]>

* Update docs/MV3.md

Co-authored-by: Russell Dempsey <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>

* feat(metrics): ✨ Adding patched analytics. (#1232)

* feat(mv3): :sparkles: Patching countly-sdk-web

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :sparkles: Implementing Custom Async Store.

Signed-off-by: Nishant Arora <[email protected]>

* chore(mv3): :adhesive_bandage: Hooking everything up together.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Countly Patching + [email protected]

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :adhesive_bandage: Patching the Patch

Signed-off-by: Nishant Arora <[email protected]>

* fix: tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

* fix: :adhesive_bandage: Patching error messages

Signed-off-by: Nishant Arora <[email protected]>

* fix(patch): countly-web-sdk

* fix(patch): :pin: Pinning countly-web-sdk to 23.2.2

---------

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :art: Replacing Static Images with Mermaid Diagrams (#1233)

* fic(mv3): :art: Replacing Static Images with Mermaid Diagrams

* fix(mv3): :pencil2: Improving Grammar

Signed-off-by: Nishant Arora <[email protected]>

* Adding Colors

Co-authored-by: Russell Dempsey <[email protected]>

* Update docs/MV3.md

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>

* feat(mv3): Faster Redirects During The First Page Load in main_frame (#1239)

* feat(mv3): :zap: Faster redirects for the first time.

Signed-off-by: Nishant Arora <[email protected]>

* fix: removing only from the tests

Signed-off-by: Nishant Arora <[email protected]>

* test(mv3): Adding removing rule example.

Signed-off-by: Nishant Arora <[email protected]>

* test(mv3): :test_tube: Added test regarding removal of rules

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* fix(telemetry): Reverting to old state of things (#1242)

* fix(mv3): Reverting Telemetry Changes To Use PatchedCountlySDK

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): metrics build

Signed-off-by: Nishant Arora <[email protected]>

* fix: more reverts + fixing patch

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :adhesive_bandage: Patching the Patch

Signed-off-by: Nishant Arora <[email protected]>

* fix(countly): :adhesive_bandage: don't look for debug, just log it.

Signed-off-by: Nishant Arora <[email protected]>

* fix(countly): removing session start/end.

Signed-off-by: Nishant Arora <[email protected]>

* fix: unused var

Signed-off-by: Nishant Arora <[email protected]>

* fix(countly): patch

* revert

* fix(countly): repatch, old one seems to be failing.

* fix(countly): bad patch

* revert

* retrying patch

* fix: patch files should not be cached.

Signed-off-by: Nishant Arora <[email protected]>

* fix: fixing cache keys

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): ✨ Introduces Redirect Rule Management (#1240)

* feat: exporting rules ending regex

Signed-off-by: Nishant Arora <[email protected]>

* feat: :sparkles: Adding Rule Management UI

Signed-off-by: Nishant Arora <[email protected]>

* feat: :sparkles: hooking up with background worker.

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

* fix: :art: button styling

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :lipstick: Making UI a bit better

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Tracking URL resolved/observed count. (#1245)

* fix(mv3): Reverting Telemetry Changes To Use PatchedCountlySDK

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): metrics build

Signed-off-by: Nishant Arora <[email protected]>

* fix: more reverts + fixing patch

Signed-off-by: Nishant Arora <[email protected]>

* feat: adding request view.

Signed-off-by: Nishant Arora <[email protected]>

* Reverting to mainline rc patch

* Reverting to mainline rc add-on/src/lib/ipfs-companion.js

* feat(telemetry):

Signed-off-by: Nishant Arora <[email protected]>

* feat(telemetry): Implementing RequestTracker Event Handler

Signed-off-by: Nishant Arora <[email protected]>

* feat(telemetry): hooking up events.

Signed-off-by: Nishant Arora <[email protected]>

* fix(types): annotations

* fix(telemetry): :wastebasket: returning to previous state

Signed-off-by: Nishant Arora <[email protected]>

* fix(telemetry): :recycle: Refactor Request Tracker

Signed-off-by: Nishant Arora <[email protected]>

* fix(telemetry): hooking up requests

Signed-off-by: Nishant Arora <[email protected]>

* fix(telemetry): better types

Signed-off-by: Nishant Arora <[email protected]>

* fix(countly): :wastebasket: more stuff goes, because test need to pass.

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): fixed

* feat(test): test tracker.

* fix: remove only

Signed-off-by: Nishant Arora <[email protected]>

* fix: :lipstick: line break

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Ask for Host Permissions if not exist. (#1250)

* feat(mv3): :sparkles: Requesting Host Permissions Explicitly

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :bug: Adding perms step on installed.

Signed-off-by: Nishant Arora <[email protected]>

* fix: request-permission-view tracking

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Making permissions agnostic to browser

Signed-off-by: Nishant Arora <[email protected]>

* docs: clarify why we need host permission

making prompt less scary, shorter, and informative

* Update add-on/src/lib/ipfs-request.js

Co-authored-by: Marcin Rataj <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>

* feat(mv3): Redirection Tests (#1236)

* feat(mv3): :sparkles: Patching countly-sdk-web

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :sparkles: Implementing Custom Async Store.

Signed-off-by: Nishant Arora <[email protected]>

* chore(mv3): :adhesive_bandage: Hooking everything up together.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Countly Patching + [email protected]

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :adhesive_bandage: Patching the Patch

Signed-off-by: Nishant Arora <[email protected]>

* fix: tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :recycle: Refactoring `supportsBlock` Checks.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Regex Bug

Signed-off-by: Nishant Arora <[email protected]>

* feat: Migrating blocking redirection test to observing redirection test

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :wrench: Fixing the mocha-setup.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :recycle: Moving Setup Files.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): gateway-redirect tests now fixed.

Signed-off-by: Nishant Arora <[email protected]>

* fix: :adhesive_bandage: Patching error messages

Signed-off-by: Nishant Arora <[email protected]>

* fix(patch): countly-web-sdk

* fix(patch): :pin: Pinning countly-web-sdk to 23.2.2

* fix(mv3): :lipstick: Fixing Lint

Signed-off-by: Nishant Arora <[email protected]>

* feat: protocol-handler-redirection-tests

Signed-off-by: Nishant Arora <[email protected]>

* feat: more tests fixed

Signed-off-by: Nishant Arora <[email protected]>

* fix: More tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint fix

Signed-off-by: Nishant Arora <[email protected]>

* test: merge mocha-setup files (#1246)

* test: merge mocha-setup files

* test(helper): add mv3-test-enabled helper

* test(setup): remove duplicate setup for mv3/mv2

* test(mv3): merge mv3 tests into mv2 test files (#1247)

* test(mv3): merge mv3 tests into mv2 test files

* chore(lint): fix lint failures

* test(supportsBlock): cleanup test

* test: migrating some tests

* test(redirect): mv3 tests use same code as mv2

* test(redirect): mv3 test cleanup

* test(protohandler): mv3 tests use same code as mv2

* test(helper): make isMv3 flag a boolean

* test: fix after merge

* test: fix after merge

* fix: typerrors for localstorage

Signed-off-by: Nishant Arora <[email protected]>

* fix: Updating test:functional_MV3 command.

Signed-off-by: Nishant Arora <[email protected]>

* fix: setup

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Fixing tests

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): Becuase Ofcourse

* feat(test): scaffolding mv3 + mv2 calls in a single check.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): unskipping and upgrading dnslink tests to mv3

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Upgrading workaround tests to MV3

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): removing all skips with better checks.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :recycle: Refactoring tests and removing redundant calls.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): More Dryer

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): one more

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :pencil2: Renaming isMv3TestingEnabled -> isManifestV3

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): refactor expectNoRedirect

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :recycle: Refactoring more.

Signed-off-by: Nishant Arora <[email protected]>

* fix: replacing checks to undefined

Signed-off-by: Nishant Arora <[email protected]>

* fix: renaming expectNoRedirect -> ensureNoRedirect

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Adding missing JSDoc

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :shrug: how did this get removed.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :wastebasket: removed.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Suggestion

* fix(test): :adhesive_bandage: Bad Merge

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): sequential expectNoRedirect

* Update add-on/src/lib/redirect-handler/blockOrObserve.ts

Co-authored-by: Marcin Rataj <[email protected]>

* fix(rules): Better Redirect Rules (#1256)

* fix(mv3): :wrench: Modifying the default local redirect behaviour.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :wrench: Modifying the default local redirect behaviour.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :bug: Making rules less greedy

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :sparkles: Dynamic Rules for subdomain gateways.

Signed-off-by: Nishant Arora <[email protected]>

* fix(types): Adding ambient types for is-ipfs.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test):

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): helper

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): less greedy rules

Signed-off-by: Nishant Arora <[email protected]>

* feat: Adding simpler regex for redirects from similar namespaces.

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): :rotating_light: Warnings

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Better Default Rules (#1260)

* refactor(mv3): blockOrRequest code

Signed-off-by: Nishant Arora <[email protected]>

* refactor(mv3): Port Logic for Default Rules is more robust.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Adding tests for default rule logic.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* Update add-on/src/lib/redirect-handler/blockOrObserve.ts

* fix(docs): :pencil2: Adding comments

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexfilters): Better Structure and Readability (#1261)

* refactor(regexFilters): :sparkles: Adding a base class for regexFilters.

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving subdomain filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving namespace filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving common filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* feat(regexFilters): :sparkles: Hooking Up All together

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): :pencil2: Lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): :pencil2: Updating message.

Signed-off-by: Nishant Arora <[email protected]>

* fix(rename): :pencil2: CommonPatterRedirectRegexFilter -> CommonPatternRedirectRegexFilter

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): :recycle: Refactor to remove call to super

Signed-off-by: Nishant Arora <[email protected]>

* fix: make _canHandle private

Signed-off-by: Nishant Arora <[email protected]>

* fix: :zap: Fix math.min on every loop.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): no blanket redirect for subdomains without namespaces.

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): unused import

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>

* fix(recovery): Recovery Rules should reset (#1266)

* feat(mv3): :sparkles: Patching countly-sdk-web

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :sparkles: Implementing Custom Async Store.

Signed-off-by: Nishant Arora <[email protected]>

* chore(mv3): :adhesive_bandage: Hooking everything up together.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Countly Patching + [email protected]

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :adhesive_bandage: Patching the Patch

Signed-off-by: Nishant Arora <[email protected]>

* fix: tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :recycle: Refactoring `supportsBlock` Checks.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): Regex Bug

Signed-off-by: Nishant Arora <[email protected]>

* feat: Migrating blocking redirection test to observing redirection test

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :wrench: Fixing the mocha-setup.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :recycle: Moving Setup Files.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): gateway-redirect tests now fixed.

Signed-off-by: Nishant Arora <[email protected]>

* fix: :adhesive_bandage: Patching error messages

Signed-off-by: Nishant Arora <[email protected]>

* fix(patch): countly-web-sdk

* fix(patch): :pin: Pinning countly-web-sdk to 23.2.2

* fix(mv3): :lipstick: Fixing Lint

Signed-off-by: Nishant Arora <[email protected]>

* feat: protocol-handler-redirection-tests

Signed-off-by: Nishant Arora <[email protected]>

* feat: more tests fixed

Signed-off-by: Nishant Arora <[email protected]>

* fix: More tests

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint fix

Signed-off-by: Nishant Arora <[email protected]>

* test: merge mocha-setup files (#1246)

* test: merge mocha-setup files

* test(helper): add mv3-test-enabled helper

* test(setup): remove duplicate setup for mv3/mv2

* test(mv3): merge mv3 tests into mv2 test files (#1247)

* test(mv3): merge mv3 tests into mv2 test files

* chore(lint): fix lint failures

* test(supportsBlock): cleanup test

* test: migrating some tests

* test(redirect): mv3 tests use same code as mv2

* test(redirect): mv3 test cleanup

* test(protohandler): mv3 tests use same code as mv2

* test(helper): make isMv3 flag a boolean

* test: fix after merge

* test: fix after merge

* fix: typerrors for localstorage

Signed-off-by: Nishant Arora <[email protected]>

* fix: Updating test:functional_MV3 command.

Signed-off-by: Nishant Arora <[email protected]>

* fix: setup

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Fixing tests

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): Becuase Ofcourse

* feat(test): scaffolding mv3 + mv2 calls in a single check.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): unskipping and upgrading dnslink tests to mv3

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Upgrading workaround tests to MV3

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): removing all skips with better checks.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :recycle: Refactoring tests and removing redundant calls.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): More Dryer

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): one more

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :pencil2: Renaming isMv3TestingEnabled -> isManifestV3

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): refactor expectNoRedirect

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :recycle: Refactoring more.

Signed-off-by: Nishant Arora <[email protected]>

* fix: replacing checks to undefined

Signed-off-by: Nishant Arora <[email protected]>

* fix: renaming expectNoRedirect -> ensureNoRedirect

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Adding missing JSDoc

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :shrug: how did this get removed.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :wastebasket: removed.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): Suggestion

* fix(test): :adhesive_bandage: Bad Merge

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): sequential expectNoRedirect

* Update add-on/src/lib/redirect-handler/blockOrObserve.ts

Co-authored-by: Marcin Rataj <[email protected]>

* fix(mv3): :wrench: Modifying the default local redirect behaviour.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :wrench: Modifying the default local redirect behaviour.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :bug: Making rules less greedy

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :sparkles: Dynamic Rules for subdomain gateways.

Signed-off-by: Nishant Arora <[email protected]>

* fix(types): Adding ambient types for is-ipfs.

Signed-off-by: Nishant Arora <[email protected]>

* fix(test):

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): helper

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): less greedy rules

Signed-off-by: Nishant Arora <[email protected]>

* feat: Adding simpler regex for redirects from similar namespaces.

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): :rotating_light: Warnings

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Better Default Rules (#1260)

* refactor(mv3): blockOrRequest code

Signed-off-by: Nishant Arora <[email protected]>

* refactor(mv3): Port Logic for Default Rules is more robust.

Signed-off-by: Nishant Arora <[email protected]>

* feat(test): Adding tests for default rule logic.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* Update add-on/src/lib/redirect-handler/blockOrObserve.ts

* fix(docs): :pencil2: Adding comments

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :sparkles: Adding a base class for regexFilters.

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving subdomain filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving namespace filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* refactor(regexFilters): :recycle: Moving common filter to a subclass

Signed-off-by: Nishant Arora <[email protected]>

* feat(regexFilters): :sparkles: Hooking Up All together

Signed-off-by: Nishant Arora <[email protected]>

* fix(lint): :pencil2: Lint

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): :pencil2: Updating message.

Signed-off-by: Nishant Arora <[email protected]>

* fix(rename): :pencil2: CommonPatterRedirectRegexFilter -> CommonPatternRedirectRegexFilter

Signed-off-by: Nishant Arora <[email protected]>

* fix(regexFilters): :recycle: Refactor to remove call to super

Signed-off-by: Nishant Arora <[email protected]>

* fix: make _canHandle private

Signed-off-by: Nishant Arora <[email protected]>

* fix: :zap: Fix math.min on every loop.

Signed-off-by: Nishant Arora <[email protected]>

* fix(recovery): reset rules

Signed-off-by: Nishant Arora <[email protected]>

* fix(recovery): :recycle: Refactor messaging logic

Signed-off-by: Nishant Arora <[email protected]>

* fix(recovery): :bug: Cleanup Logic

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :bug: fix toggle site integration.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :adhesive_bandage: Hard coding wait as the browser is not cooperative.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>

* fix(mv3): :bug: rules section visible. (#1271)

Signed-off-by: Nishant Arora <[email protected]>

* fix(brave): Fix Brave UX (#1270)

* fix(options): fixing options menu

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): Adding brave specific redirects.

Signed-off-by: Nishant Arora <[email protected]>

* fix: lint

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* feat(e2e): Request Handling Tests (#1272)

* fix(test): :recycle: simplify scaffolding

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :test_tube: Adding a final resolution check

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>

* Update add-on/_locales/en/messages.json

Co-authored-by: Marcin Rataj <[email protected]>

* Update add-on/src/options/forms/api-form.js

Co-authored-by: Marcin Rataj <[email protected]>

* Update add-on/_locales/en/messages.json

Co-authored-by: Marcin Rataj <[email protected]>

* Update test/functional/lib/redirect-handler/blockOrObserve.test.ts

Co-authored-by: Marcin Rataj <[email protected]>

* Update README.md

Co-authored-by: Marcin Rataj <[email protected]>

* fix(test):

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :see_no_evil: Don't interrupt websockets and webtransports.

Signed-off-by: Nishant Arora <[email protected]>

* fix: :pencil2: Rename: ensureDeclrativeNetRequetRuleIsAdded -> ensureDeclarativeNetRequestRuleIsAdded

Signed-off-by: Nishant Arora <[email protected]>

* fix: :pencil2: Rename: ensureTabRedirected -> ensureTabUpdatedTo

Signed-off-by: Nishant Arora <[email protected]>

* fix(language): :pencil2: Rewrite

Signed-off-by: Nishant Arora <[email protected]>

* fix(test): :test_tube: Add a failing test.

Signed-off-by: Nishant Arora <[email protected]>

* Update add-on/_locales/en/messages.json

Co-authored-by: Russell Dempsey <[email protected]>

* Update ci/update-manifest.sh

Co-authored-by: Russell Dempsey <[email protected]>

* fix: :pencil2: Beta naming

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): FF Browser Action (#1275)

Signed-off-by: Nishant Arora <[email protected]>

* test(import): :test_tube: Backfill Tests (#1276)

* test(import): :test_tube: Backfill Tests

Signed-off-by: Nishant Arora <[email protected]>

* Update test/functional/lib/ipfs-import.test.js

Co-authored-by: Marcin Rataj <[email protected]>

* Update test/functional/lib/ipfs-import.test.js

Co-authored-by: Marcin Rataj <[email protected]>

* test(import): :test_tube: Backfilling tests for copyImportResultsToFiles

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>

* feat(mv3): :heavy_plus_sign: Adding hash function to generate predict… (#1273)

feat(mv3): :heavy_plus_sign: Adding hash function to generate predictable ids.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :wastebasket: Remove redundant lines.

Signed-off-by: Nishant Arora <[email protected]>

* fix(mv3): :recycle: opposite functionality `supportsBlock` -> `supportsDeclarativeNetRequest`

Signed-off-by: Nishant Arora <[email protected]>

* feat(mv3): :twisted_rightwards_arrows: Adding migrations for embedded to external.

Signed-off-by: Nishant Arora <[email protected]>

---------

Signed-off-by: Nishant Arora <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>
Co-authored-by: Steve Loeppky <[email protected]>
Co-authored-by: Marcin Rataj <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More strict MV3 rules for path and subdomain gateways MV3 Beta 3.0.0.1114: regression in Brave UX
3 participants