You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Safari's content blocker JSON format #9749
@metajack and I have discussed this in the past and agree that this is a good way forward. We probably should start with separate bugs for adding support to each of the different components where filtering will need to occur (network stack, style system, etc.).
Focus' list comes from a transformation of the Tracking Protections lists that Firefox uses. There's a script that turns them into the JSON files that Safari expects.
The Tracking Protection and Focus lists, which are derived from Disconnect's lists, have been reviewed and approved for specific uses in specific products. If we're using these lists in a different context or product, we should get Mozilla Product and Policy people to sign off again. I shared the contacts with @nox, but let me know if you have any questions.
Would it be hard to have a way to toggle content blocking for mozbrowser iframes?
Like - maybe via a DOM attribute on the mozbrowser iframe. And ideally, add a property to the mozbrowserloadevent to tell how many elements were blocked.
That would be hell of cool to have a "toggle-ad-blocking" button in browserhtml, that also shows the number of blocked elements.
@nox I think we can land this without a list included and without the ability to turn on and off except from the commandline and then land those other two things separately.
Activity
larsbergstrom commentedon Feb 25, 2016
@metajack and I have discussed this in the past and agree that this is a good way forward. We probably should start with separate bugs for adding support to each of the different components where filtering will need to occur (network stack, style system, etc.).
tetsuharuohzeki commentedon Feb 26, 2016
As my memory, this is WebKit's implementation dir: https://github.com/WebKit/webkit/tree/master/Source/WebCore/contentextensions
paulrouget commentedon Mar 10, 2016
https://www.opera.com/blogs/desktop/2016/03/native-ad-blocking-feature-opera-for-computers/
metajack commentedon Apr 4, 2016
@jdm has said he'd like to work on this.
jdm commentedon Apr 9, 2016
I've published https://github.com/jdm/content-blocker/ on crates.io. Next steps:
jdm commentedon Apr 11, 2016
Focus' list comes from a transformation of the Tracking Protections lists that Firefox uses. There's a script that turns them into the JSON files that Safari expects.
jdm commentedon Apr 17, 2016
Work can be seen at https://github.com/servo/servo/compare/master...jdm:content-blocker?expand=1 . Still need to rebase and investigate the performance effects of large lists.
5 remaining items
cpeterso commentedon May 26, 2016
The Tracking Protection and Focus lists, which are derived from Disconnect's lists, have been reviewed and approved for specific uses in specific products. If we're using these lists in a different context or product, we should get Mozilla Product and Policy people to sign off again. I shared the contacts with @nox, but let me know if you have any questions.
paulrouget commentedon May 26, 2016
Would it be hard to have a way to toggle content blocking for mozbrowser iframes?
Like - maybe via a DOM attribute on the mozbrowser iframe. And ideally, add a property to the
mozbrowserloadeventto tell how many elements were blocked.That would be hell of cool to have a "toggle-ad-blocking" button in browserhtml, that also shows the number of blocked elements.
Auto merge of #11413 - nox:content-blocker, r=nox+jdm+Ms2ger
Auto merge of #11413 - nox:content-blocker, r=nox+jdm+Ms2ger
Auto merge of #11413 - nox:content-blocker, r=nox+jdm+Ms2ger
Auto merge of #11413 - nox:content-blocker, r=nox+jdm+Ms2ger
nox commentedon May 30, 2016
So what is the actual scope of this if #11500 is only P2? I'm confused. Should we implement toggle right now or not?
metajack commentedon May 30, 2016
@nox I think we can land this without a list included and without the ability to turn on and off except from the commandline and then land those other two things separately.
paulrouget commentedon May 30, 2016
P2 means "good to have for the June demo". We can demo content blocker without the toggle. But it would require a restart.
nox commentedon May 30, 2016
Perfect, consider this landed then. #11413.
servo: Merge #11413 - Support content blocking (from nox:content-bloc…
servo: Merge #11413 - Support content blocking (from nox:content-bloc…
servo: Merge #11413 - Support content blocking (from nox:content-bloc…