зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1535135. Annotate static binding methods/getters/setters as MOZ_CAN_RUN_SCRIPT. r=qdot
We do this for non-static ones already; we should do it for static ones too. Differential Revision: https://phabricator.services.mozilla.com/D23390 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7f7b9d9668
Коммит
870c830c5a
|
@ -8724,7 +8724,8 @@ class CGAbstractStaticBindingMethod(CGAbstractStaticMethod):
|
|||
"""
|
||||
def __init__(self, descriptor, name):
|
||||
CGAbstractStaticMethod.__init__(self, descriptor, name, "bool",
|
||||
JSNativeArguments())
|
||||
JSNativeArguments(),
|
||||
canRunScript=True)
|
||||
|
||||
def definition_body(self):
|
||||
# Make sure that "obj" is in the same compartment as "cx", since we'll
|
||||
|
|
Загрузка…
Ссылка в новой задаче