зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8c00d2132b
Коммит
1ed92648d1
|
@ -37,10 +37,6 @@
|
||||||
# XPConnect wrapping. Always false for callback interfaces.
|
# XPConnect wrapping. Always false for callback interfaces.
|
||||||
# Defaults to true for non-callback descriptors.
|
# 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
|
# The following fields are either a string, an array (defaults to an empty
|
||||||
# array) or a dictionary with three possible keys (all, getterOnly and
|
# array) or a dictionary with three possible keys (all, getterOnly and
|
||||||
# setterOnly) each having such an array as the value
|
# setterOnly) each having such an array as the value
|
||||||
|
|
|
@ -279,7 +279,7 @@ class Descriptor(DescriptorProvider):
|
||||||
self.config = config
|
self.config = config
|
||||||
self.interface = interface
|
self.interface = interface
|
||||||
|
|
||||||
self.wantsXrays = desc.get('wantsXrays', True)
|
self.wantsXrays = interface.isExposedInWindow()
|
||||||
|
|
||||||
# Read the desc, and fill in the relevant defaults.
|
# Read the desc, and fill in the relevant defaults.
|
||||||
ifaceName = self.interface.identifier.name
|
ifaceName = self.interface.identifier.name
|
||||||
|
|
Загрузка…
Ссылка в новой задаче