mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
7f7b9d9668
commit
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
|
||||
|
Loading…
Reference in New Issue
Block a user