Repository navigation
Conversation
|
Heads up! This PR modifies the following files:
|
|
@nox I managed to expose the I saw that you implemented support for content blocking on #11413, but it seems that it was partially removed later on #14360, and I can't find how content blocking is currently done. |
|
I'm not convinced that content blocking should be part of Servo itself. I'd rather do that in the embedder, which means that Servo needs hooks but not the blocker itself. |
|
r? @Ms2ger who removed the old network stack and now I'm confused. |
|
FWIW our "embedder hook" story is really not up to the task for now, and if we go that way we should clear that up. |
|
It seems that the content blocker needs to be rewritten in #14307 (or maybe with a different approach as suggested by @fabricedesre). And until this is done, it makes no sense to add the iframe attribute. |
|
@fabricedesre Are you suggesting we put it in the embedding API and expose it in JS for browser.html? |
|
Yes, the embedding API should offer facilities similar to https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIContentPolicy . In the case of b.html the Rust -> JS glue could choose to expose that. WebExtensions offer the same kind of features through the https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webRequest api. I suspect that we would want to build WebExtension support on top of the ContentPolicy mechanism, though. Another related thing to consider is tracking protection. Gecko has an internal implementation of tracking protection that may be nice to replicate and turn on with the already existing private browsing mode. |
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is