| Index: lib/elemHideFF.js |
| =================================================================== |
| --- a/lib/elemHideFF.js |
| +++ b/lib/elemHideFF.js |
| @@ -52,17 +52,17 @@ port.on("getUnconditionalSelectors", () |
| port.on("getSelectorsForDomain", ([domain, specificOnly]) => |
| { |
| let type = specificOnly ? ElemHide.SPECIFIC_ONLY : ElemHide.NO_UNCONDITIONAL; |
| return ElemHide.getSelectorsForDomain(domain, type, true); |
| }); |
| port.on("elemhideEnabled", ({frames, isPrivate}) => |
| { |
| - if (!Prefs.enabled) |
| + if (!Prefs.enabled || !Policy.isBlockableScheme(frames[0].location)) |
| return {enabled: false}; |
| let hit = Policy.isFrameWhitelisted(frames, true); |
| if (hit) |
| { |
| let [frameIndex, contentType, docDomain, thirdParty, location, filter] = hit; |
| if (!isPrivate) |
| FilterStorage.increaseHitCount(filter); |