cliqz-oss / re-consent

Consent-management browser extension
https://cliqz.com/en/magazine/re-consent
Mozilla Public License 2.0
106 stars 16 forks source link

Do not rely on URL in page context. #9

Closed sammacbeth closed 5 years ago

sammacbeth commented 5 years ago

Globals such as URL can be overridden by the page, causing the page-script to break the page. This is currently happening on windeln.de.

This PR fixes the issue by moving the code that uses URL to the sandboxed content-script context.

sebslomski commented 5 years ago

LGTM!