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

Support content blocking #11413

Merged
merged 4 commits into from May 30, 2016
Merged

Support content blocking #11413

merged 4 commits into from May 30, 2016

Conversation

nox
Copy link
Contributor

@nox nox commented May 25, 2016

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 Reviewable

@highfive
Copy link

Heads up! This PR modifies the following files:

  • @KiChjang: components/net/Cargo.toml, components/net/resource_thread.rs, components/net/lib.rs, components/net/http_loader.rs, components/net/content_blocker.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 25, 2016
@nox nox changed the title Support content blocking (Do not merge) Support content blocking May 25, 2016
@jdm
Copy link
Member

jdm commented May 25, 2016

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.

@wafflespeanut
Copy link
Contributor

r? @Ms2ger or someone else...

@highfive highfive assigned Ms2ger and unassigned wafflespeanut May 26, 2016
@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #11474) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label May 28, 2016
@nox nox changed the title (Do not merge) Support content blocking Support content blocking May 30, 2016
@nox nox removed the S-needs-rebase There are merge conflict errors. label May 30, 2016
@nox
Copy link
Contributor Author

nox commented May 30, 2016

@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)]
Copy link
Contributor

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.

@highfive
Copy link

New code was committed to pull request.

@Ms2ger
Copy link
Contributor

Ms2ger commented May 30, 2016

@bors-servo r=nox+jdm+Ms2ger

@bors-servo
Copy link
Contributor

📌 Commit 8a81b40 has been approved by nox+jdm+Ms2ger

@highfive highfive assigned nox and unassigned Ms2ger May 30, 2016
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 30, 2016
@bors-servo
Copy link
Contributor

⌛ Testing commit 8a81b40 with merge ff3a977...

bors-servo pushed a commit that referenced this pull request May 30, 2016
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 -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-dev

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels May 30, 2016
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 30, 2016
@highfive
Copy link

New code was committed to pull request.

@nox
Copy link
Contributor Author

nox commented May 30, 2016

@bors-servo r=nox+jdm+Ms2ger

Fixed the unit tests.

@bors-servo
Copy link
Contributor

📌 Commit 6a59e9e has been approved by nox+jdm+Ms2ger

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 30, 2016
@bors-servo
Copy link
Contributor

⌛ Testing commit 6a59e9e with merge bab4676...

bors-servo pushed a commit that referenced this pull request May 30, 2016
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 -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-dev

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels May 30, 2016
@highfive
Copy link

New code was committed to pull request.

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels May 30, 2016
@nox
Copy link
Contributor Author

nox commented May 30, 2016

@bors-servo r=nox+jdm+Ms2ger

@bors-servo
Copy link
Contributor

📌 Commit a09773e has been approved by nox+jdm+Ms2ger

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 30, 2016
@bors-servo
Copy link
Contributor

⌛ Testing commit a09773e with merge e63ded6...

bors-servo pushed a commit that referenced this pull request May 30, 2016
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 -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows

@bors-servo bors-servo merged commit a09773e into servo:master May 30, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 30, 2016
@nox nox deleted the content-blocker branch June 2, 2016 12:57
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.

None yet

6 participants