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
Support content blocking #11413
Support content blocking #11413
Conversation
Heads up! This PR modifies the following files:
|
We should leave a TODO in the final commit, since we should use the actual request origin when it's available rather than inferring it via the referrer. |
r? @Ms2ger or someone else... |
☔ The latest upstream changes (presumably #11474) made this pull request unmergeable. Please resolve the merge conflicts. |
@paulrouget wants a flag for it (#11500) but as long as we don't ship any builtin blocking rules it shouldn't matter to get this in as such. |
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#![allow(unsafe_code)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to remove this.
New code was committed to pull request. |
@bors-servo r=nox+jdm+Ms2ger |
📌 Commit 8a81b40 has been approved by |
Support content blocking This is @jdm's rebased work from #9749 (comment) with a small addition with regard to cross-origin blocking. Mainly opening this for review and for further discussions. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11413) <!-- Reviewable:end -->
💔 Test failed - linux-dev |
New code was committed to pull request. |
@bors-servo r=nox+jdm+Ms2ger Fixed the unit tests. |
📌 Commit 6a59e9e has been approved by |
Support content blocking This is @jdm's rebased work from #9749 (comment) with a small addition with regard to cross-origin blocking. Mainly opening this for review and for further discussions. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11413) <!-- Reviewable:end -->
💔 Test failed - linux-dev |
New code was committed to pull request. |
@bors-servo r=nox+jdm+Ms2ger |
📌 Commit a09773e has been approved by |
Support content blocking This is @jdm's rebased work from #9749 (comment) with a small addition with regard to cross-origin blocking. Mainly opening this for review and for further discussions. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11413) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
This is @jdm's rebased work from #9749 (comment) with a small addition with regard to cross-origin blocking. Mainly opening this for review and for further discussions.
This change is