From 9cb91f8a48f9467e448f88984c20b3429e8a2510 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Mon, 13 Jul 2015 22:52:06 -0500 Subject: Spyblock updated to 2.6.9.0 from upstream changes --- .../spyblock@gnu.org/lib/elemHideHitRegistration.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'data/extensions/spyblock@gnu.org/lib/elemHideHitRegistration.js') diff --git a/data/extensions/spyblock@gnu.org/lib/elemHideHitRegistration.js b/data/extensions/spyblock@gnu.org/lib/elemHideHitRegistration.js index a05f6df..74661a9 100644 --- a/data/extensions/spyblock@gnu.org/lib/elemHideHitRegistration.js +++ b/data/extensions/spyblock@gnu.org/lib/elemHideHitRegistration.js @@ -1,6 +1,6 @@ /* - * This file is part of Adblock Plus , - * Copyright (C) 2006-2014 Eyeo GmbH + * This file is part of Adblock Plus , + * Copyright (C) 2006-2015 Eyeo GmbH * * Adblock Plus is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as @@ -70,7 +70,7 @@ let AboutHandler = exports.AboutHandler = newChannel: function(uri) { - let match = /\?(\d+)/.exec(uri.path) + let match = /\?(\d+)/.exec(uri.path); if (!match) throw Cr.NS_ERROR_FAILURE; @@ -126,7 +126,11 @@ HitRegistrationChannel.prototype = { { let {Policy} = require("contentPolicy"); let {ElemHide} = require("elemHide"); - let data = ""; + + // This dummy binding below won't have any effect on the element. For + // elements that should be hidden however we don't return any binding at + // all, this makes Gecko stop constructing the node - it cannot be shown. + let data = ""; let filter = ElemHide.getFilterByKey(this.key); if (filter) { -- cgit v1.2.3