diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2015-07-13 22:52:06 -0500 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2015-07-13 22:52:06 -0500 |
commit | 9cb91f8a48f9467e448f88984c20b3429e8a2510 (patch) | |
tree | 05104ee593dade85e0873615eff0ee0369361210 /data/extensions/spyblock@gnu.org/lib/elemHideHitRegistration.js | |
parent | 58f127c1d5f8c89b9e55803701f734756d1cfa2a (diff) |
Spyblock updated to 2.6.9.0 from upstream changes
Diffstat (limited to 'data/extensions/spyblock@gnu.org/lib/elemHideHitRegistration.js')
-rw-r--r-- | data/extensions/spyblock@gnu.org/lib/elemHideHitRegistration.js | 12 |
1 files changed, 8 insertions, 4 deletions
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 <http://adblockplus.org/>, - * Copyright (C) 2006-2014 Eyeo GmbH + * This file is part of Adblock Plus <https://adblockplus.org/>, + * 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 = "<bindings xmlns='http://www.mozilla.org/xbl'><binding id='dummy'/></bindings>"; + + // 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 = "<bindings xmlns='http://www.mozilla.org/xbl'><binding id='dummy' bindToUntrustedContent='true'/></bindings>"; let filter = ElemHide.getFilterByKey(this.key); if (filter) { |