Project

General

Profile

« Previous | Next » 

Revision cf838016

Added by koszko over 1 year ago

restore chromium support

View differences:

background/webrequest.js
113 113
    if (details.type !== "xmlhttprequest")
114 114
	return {cancel: true};
115 115

  
116
    if (details.url.startsWith(redirect_url_template))
117
	return;
118

  
116 119
#IF DEBUG
117 120
    console.debug(`Settings queried using XHR for '${details.url}'.`);
118 121
#ENDIF
......
130 133
	    return {cancel: true};
131 134
	}
132 135

  
133
	const policy = decide_policy(tree, details.url, default_allow, secret);
136
	const policy = decide_policy(tree, queried_url, default_allow, secret);
134 137
	if (!policy.error) {
135 138
	    const encoded_policy = encodeURIComponent(JSON.stringify(policy));
136 139
	    return {redirectUrl: redirect_url_template + encoded_policy};
137 140
	}
138 141
    }
139 142

  
140
    console.warn(`Bad request! Expected ${browser.runtime.getURL("dummy")}?url=<valid_urlencoded_url>. Got ${request_url}. This might be the result of page fingerprinting the browser.`);
143
    console.warn(`Bad request! Expected ${browser.runtime.getURL("dummy")}?url=<valid_urlencoded_url>. Got ${details.url}. This might be the result of page fingerprinting the browser.`);
141 144

  
142 145
    return {cancel: true};
143 146
}

Also available in: Unified diff