[Webkit-unassigned] [Bug 149873] [Content Extensions] Content blocking rules are not consulted for pings (<a ping>)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Oct 10 05:37:46 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=149873
--- Comment #10 from Roopesh Chander <roop+webkit at roopc.net> ---
Thanks everyone for the encouraging feedback.
I didn't quite know earlier what the other 2 methods in PingLoader were doing. This is what I understand to be the purpose of the 3 methods:
1. loadImage(): Loading images in unload / beforeunload / pagehide handlers
2. sendPing(): Sending <a ping> pings
3. sendViolationReport(): Sending CSP violation / X-XSS-Protection reports
They all do different things, but they are all in PingLoader because all are fire-and-forget scenarios - we need not bother to wait for the response.
I can see that content blocking rules should be consulted for 1 & 2 definitely. I'm not sure about 3, but I'll submit a new patch that covers all 3 based on Alex's and Benjamin's comments.
(In reply to comment #8)
> (In reply to comment #4)
> > I don't see how "css-display-none" can apply to pings.
> Making a request to a url (or trying to make a blocked request to a url)
> that matches a css-display-none rule should hide content on the page. This
> probably already works, but it would be a good test case to add.
I don't understand this part.
Let's say we have a rule like this:
{
"trigger": { "url-filter": "ping_url" },
"action": { "type": "css-display-none", "selector": ".foo" }
}
Per my understanding, this rule says: When the frame URL matches "ping_url", add ".foo { display: none }" style to the stylesheet engine.
How would this rule affect any of the three fire-and-forget scenarios mentioned above? There wouldn't be any loaded webpage to apply the ".foo { display: none }" style, right?
Or are we talking about the case where the selector for a "css-display-none" rule is "a[ping='ping_url']"?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151010/063f3401/attachment.html>
More information about the webkit-unassigned
mailing list