Bug 1257037 part 15. Get rid of the wantsXrays configuration annotation. Just set bindings to want Xrays if they're exposed in Window. r=khuey

This commit is contained in:
Boris Zbarsky 2016-07-08 00:37:55 -04:00
Родитель 8c00d2132b
Коммит 1ed92648d1
2 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -37,10 +37,6 @@
# XPConnect wrapping. Always false for callback interfaces.
# Defaults to true for non-callback descriptors.
#
# A descriptor can have 'wantsXrays': False specified if it
# should not have Xray hooks generated. Make sure to have someone
# familiar with Xrays review any use of this!
#
# The following fields are either a string, an array (defaults to an empty
# array) or a dictionary with three possible keys (all, getterOnly and
# setterOnly) each having such an array as the value

Просмотреть файл

@ -279,7 +279,7 @@ class Descriptor(DescriptorProvider):
self.config = config
self.interface = interface
self.wantsXrays = desc.get('wantsXrays', True)
self.wantsXrays = interface.isExposedInWindow()
# Read the desc, and fill in the relevant defaults.
ifaceName = self.interface.identifier.name