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 10528: Parse resource.json for regional adblock lists #5981

Merged
merged 2 commits into from
Jul 1, 2020

Conversation

jumde
Copy link
Contributor

@jumde jumde commented Jun 30, 2020

Resolves brave/brave-browser#10528

Submitter Checklist:

Test Plan:

  1. Navigate to brave://adblock
  2. Select a new adblock list
  3. Confirm that no error - Failed to parse JSON adblock resources: EOF while parsing a value at line 1 column 0 is displayed.

resource.json should be added to all regional adblock lists by brave/brave-core-crx-packager#138

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

Copy link
Contributor

@pes10k pes10k left a comment

Choose a reason for hiding this comment

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

LGTM though @antonok-edm should probably take a glance too to make sure

Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

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

LGTM

@antonok-edm
Copy link
Collaborator

@jumde should this AddResources be removed then?

@jumde
Copy link
Contributor Author

jumde commented Jun 30, 2020

@jumde should this AddResources be removed then?

@antonok-edm - Good call, I'll remove.

@jumde jumde force-pushed the adblock_resource branch from 20ca9a3 to 9c0d881 Compare June 30, 2020 22:27
Comment on lines 145 to 146
g_brave_browser_process->ad_block_regional_service_manager()->EnableTag(
tag, enabled);
Copy link
Collaborator

Choose a reason for hiding this comment

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

@jumde I think you may have touched the wrong lines here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@antonok-edm - fixed

@jumde jumde force-pushed the adblock_resource branch 4 times, most recently from 3b2b78c to 7c89392 Compare July 1, 2020 07:10
@jumde jumde force-pushed the adblock_resource branch from 7c89392 to 2b925a8 Compare July 1, 2020 16:15
@jumde jumde self-assigned this Jul 1, 2020
@jumde jumde merged commit ea707f6 into master Jul 1, 2020
@jumde jumde deleted the adblock_resource branch July 1, 2020 22:22
@jumde jumde added this to the 1.12.x - Nightly milestone Jul 1, 2020
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.

[Desktop] Resource.json files are not being parsed
4 participants