mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
fix #1725 (assuming the issue was uBO not properly blocking data:
images)
This commit is contained in:
parent
c0515c20a4
commit
a33dc4f8e2
@ -204,9 +204,6 @@ var uBlockCollapser = (function() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if ( src.lastIndexOf('http', 0) !== 0 ) {
|
||||
return;
|
||||
}
|
||||
var req = new PendingRequest(target, tagName, prop);
|
||||
newRequests.push(new BouncingRequest(req.id, tagName, src));
|
||||
};
|
||||
|
@ -491,12 +491,6 @@ var filterRequests = function(pageStore, details) {
|
||||
while ( i-- ) {
|
||||
request = requests[i];
|
||||
context.requestURL = punycodeURL(request.url);
|
||||
// https://github.com/gorhill/uBlock/issues/978
|
||||
// Ignore invalid URLs: these would not occur on the HTTP
|
||||
// observer side.
|
||||
if ( (context.requestHostname = hostnameFromURI(request.url)) === '' ) {
|
||||
continue;
|
||||
}
|
||||
context.requestType = tagNameToRequestTypeMap[request.tagName];
|
||||
r = pageStore.filterRequest(context);
|
||||
if ( typeof r !== 'string' || r.charAt(1) !== 'b' ) {
|
||||
|
@ -344,13 +344,13 @@ var resourceURLFromElement = function(elem) {
|
||||
if ( (s = netFilter1stSources[tagName]) ) {
|
||||
s = elem[s];
|
||||
if ( typeof s === 'string' && s !== '' ) {
|
||||
return s.slice(0, 2048);
|
||||
return s.slice(0, 1024);
|
||||
}
|
||||
}
|
||||
if ( (s = netFilter2ndSources[tagName]) ) {
|
||||
s = elem[s];
|
||||
if ( typeof s === 'string' && s !== '' ) {
|
||||
return s.slice(0, 2048);
|
||||
return s.slice(0, 1024);
|
||||
}
|
||||
}
|
||||
return backgroundImageURLFromElement(elem);
|
||||
|
Loading…
Reference in New Issue
Block a user