Project

General

Profile

« Previous | Next » 

Revision 387c8c2a

Added by koszko over 1 year ago

fix chromium synchronous policy fetching for file:/// URLs

View differences:

background/webrequest.js
128 128
    if (match) {
129 129
	const queried_url = decodeURIComponent(match[1]);
130 130

  
131
	if (details.initiator && !queried_url.startsWith(details.initiator)) {
131
	if (details.initiator && details.initiator !== "null" &&
132
	    !queried_url.startsWith(details.initiator)) {
132 133
	    console.warn(`Haketilo: Blocked suspicious query of '${queried_url}' by '${details.initiator}'. This might be the result of page fingerprinting the browser.`);
133 134
	    return {cancel: true};
134 135
	}

Also available in: Unified diff