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

Ads and trackers not displayed on MarketWatch - follow up to 1874 #1998

Closed
LaurenWags opened this issue Nov 5, 2018 · 7 comments · Fixed by brave/brave-core#7102
Closed
Assignees
Labels

Comments

@LaurenWags
Copy link
Member

Description

Follow up to #1874

If you navigate to marketwatch.com the site hack (not showing the eternally loading banners) works, however if you enable Ads/Tracking, the ads never show. Seems as though the cosmetic filters are not being taken into consideration.

This also happened with browser-laptop.

Steps to Reproduce

  1. Clean profile navigate to marketwatch.com
  2. Verify eternally loading banners are not displayed.
  3. Allow Ads and Tracking from shields.

Actual result:

Ads do not display on the page

Expected result:

Ads should display.

Reproduces how often:

easily

Brave version (brave://version info)

Brave 0.56.8 Chromium: 70.0.3538.77 (Official Build) (64-bit)
Revision 0f6ce0b0cd63a12cb4eccea3637b1bc9a29148d9-refs/branch-heads/3538@{#1039}
OS Mac OS X

Reproducible on current release:

  • Does it reproduce on brave-browser dev/beta builds? yes

Website problems only:

  • Does the issue resolve itself when disabling Brave Shields? no
  • Is the issue reproducible on the latest version of Chrome? n/a

Additional Information

@LaurenWags LaurenWags added bug feature/shields/adblock Blocking ads & trackers with Shields labels Nov 5, 2018
@LaurenWags LaurenWags added this to the 1.x Backlog milestone Nov 5, 2018
@tildelowengrimm tildelowengrimm added the priority/P5 Not scheduled. Don't anticipate work on this any time soon. label Nov 7, 2018
@rebron rebron modified the milestone: 1.x Backlog Feb 7, 2019
@ryanbr
Copy link

ryanbr commented Nov 2, 2020

Safe to close? (Just need to adjust filters to Aggressive on https://www.marketwatch.com/ @LaurenWags

@LaurenWags
Copy link
Member Author

@ryanbr here's what I see with the various shield settings. If you can confirm the below images are expected then I think this is ok to close.

Allow all trackers & ads: ads are displayed on the side and banner ad is displayed:
Screen Shot 2020-11-02 at 7 38 30 AM

Trackers & ads blocked (standard): "Loading" messages shown for side and banner ads:
Screen Shot 2020-11-02 at 7 38 55 AM

Trackers & ads blocked (aggressive): no "Loading" messages shown for side and banner ads:
Screen Shot 2020-11-02 at 7 39 18 AM

Brave 1.16.68 Chromium: 86.0.4240.111 (Official Build) (x86_64)
Revision b8c36128a06ebad76af51591bfec980224db5522-refs/branch-heads/4240@{#1290}
OS macOS Version 10.14.6 (Build 18G6032)

@ryanbr
Copy link

ryanbr commented Nov 4, 2020

Yeah, the non-collapse cosmetic elements seems to be related to first-party. @antonok-edm could confirm ?

@antonok-edm
Copy link
Collaborator

Correct, looks like those are currently falling under first-party classification.
cc @pes10k

@pes10k
Copy link
Contributor

pes10k commented Nov 10, 2020

I've got a solution to this and will put together a PR tomorrow, but the issue is there is some weird non-transitivy with innerText that i didn't account for. Usually innerText gives you the text of the subtree, w/o the text of script nodes. but, innerText on a script node gives you… the text of the script node.

I'll fix in a PR asap

@pes10k
Copy link
Contributor

pes10k commented Nov 10, 2020

For release notes: "Improve heuristic for determining first/third-party-ness of ads for default cosmetic filtering"
QA test: the "Handling Script Tags" test on https://dev-pages.brave.software/cosmetic-filtering/text-ads.html

@pes10k pes10k self-assigned this Nov 10, 2020
@pes10k pes10k added this to the 1.18.x - Nightly milestone Nov 10, 2020
@pes10k pes10k added OS/Android Fixes related to Android browser functionality OS/Desktop labels Nov 11, 2020
@LaurenWags
Copy link
Member Author

LaurenWags commented Dec 2, 2020

Verification passed on LG Nexus 5 with Android 5.1 running 1.18.67 Bravearm.apk

  • Verified STR from description

Verification passed on


Brave | 1.18.68 Chromium: 87.0.4280.67 (Official Build) dev (64-bit)
-- | --
Revision | 0e5d92df40086cf0050c00f87b11da1b14580930-refs/branch-heads/4280@{#1441}
OS | Windows 10 OS Version 2004 (Build 19041.630)

  • Verified the STR from the description

Ads and trackers are blocked:
image

Ads and trackers are allowed:
image


Verification passed on

Brave 1.18.70 Chromium: 87.0.4280.101 (Official Build) (64-bit)
Revision 9407c80213cda69c2b7abcb4fa8e3f74488f4956-refs/branch-heads/4280@{#1807}
OS Ubuntu 18.04 LTS
  • Verified the STR from the description

Ads and trackers are blocked:
image

Ads and trackers are allowed:
image

@rebron rebron changed the title ads and trackers not displayed on marketwatch - follow up to 1874 Ads and trackers not displayed on MarketWatch - follow up to 1874 Dec 7, 2020
@LaurenWags LaurenWags removed the OS/Android Fixes related to Android browser functionality label Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants