Bug 154811 - Feature request: add "xmlhttprequest" resource type for content blockers
Summary: Feature request: add "xmlhttprequest" resource type for content blockers
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-02-29 02:13 PST by Andrey Meshkov
Modified: 2019-04-15 13:34 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Meshkov 2016-02-29 02:13:13 PST
Currently there is no way to distinguish XHR requests from other requests, yet it may be very useful for ad blocking.

For instance, ad blocking on speedtest.net involves blocking scripts and XHR requests
|http://$script,xmlhttprequest,domain=speedtest.net
|https://$script,xmlhttprequest,domain=speedtest.net
Comment 1 Radar WebKit Bug Importer 2019-04-11 22:54:04 PDT
<rdar://problem/49841405>
Comment 2 Alex Christensen 2019-04-15 13:09:20 PDT
I assume this would still package xhr and fetch together, right?  We wouldn't want to block xhr but not fetch.
Comment 3 Andrey Meshkov 2019-04-15 13:34:21 PDT
Hi Alex, I can't think of any case when distinguishing fetch from xhr would be useful.