# Path: validator/compat.py
# FX47_DEFINITION = _build_definition(47, fennec=False, android=False, thunderbird=False)
# 
# FX48_DEFINITION = _build_definition(48, fennec=False, android=False, thunderbird=False)
# 
# FX50_DEFINITION = _build_definition(50, fennec=False, android=False, thunderbird=False)
# 
# FX51_DEFINITION = _build_definition(51, fennec=False, android=False, thunderbird=False)
# 
# FX52_DEFINITION = _build_definition(52, fennec=False, android=False, thunderbird=False)
# 
# FX53_DEFINITION = _build_definition(53, fennec=False, android=False, thunderbird=False)
# 
# FX54_DEFINITION = _build_definition(54, fennec=False, android=False, thunderbird=False)


from call_definitions import open_in_chrome_context
from instanceproperties import _set_HTML_property
from validator.compat import (
    FX47_DEFINITION, FX48_DEFINITION, FX50_DEFINITION, FX51_DEFINITION,
    FX52_DEFINITION, FX53_DEFINITION, FX54_DEFINITION)
from validator.constants import BUGZILLA_BUG, MDN_DOC
        from validator.testcases.javascript.predefinedentities import (
            CUSTOMIZATION_API_HELP)
        filename=traverser.filename,
        line=traverser.line,
        column=traverser.position,
        for_appversions=FX53_DEFINITION,
        compatibility_type='error',
        context=traverser.context,
        tier=5)


@register_entity('nsIPK11TokenDB.findTokenByName')
def nsIPK11TokenDBfindTokenByName(traverser):
    def _return(wrapper, arguments, traverser):
        if not arguments:
            return

        first_arg = traverser._traverse_node(arguments[0])
        link = 'https://hg.mozilla.org/mozilla-central/rev/6f732b38a5a2#l1.12'

        if first_arg.get_literal_value() == '':
            traverser.err.warning(
                err_id=('testcases_javascript_entity_values',
                        'nsIPK11TokenDB', 'findTokenByName'),
                warning='Calling findTokenByName("") is no longer valid.',
                description=(
                    'Calling findTokenByName("") is no longer valid. '
                    'If you need to determine if there\'s a master password '
                    'set, please see %s for more information.' % link),
                filename=traverser.filename,
                line=traverser.line,
                column=traverser.position,

# Path: validator/compat.py
# FX47_DEFINITION = _build_definition(47, fennec=False, android=False, thunderbird=False)
# 
# FX48_DEFINITION = _build_definition(48, fennec=False, android=False, thunderbird=False)
# 
# FX50_DEFINITION = _build_definition(50, fennec=False, android=False, thunderbird=False)
# 
# FX51_DEFINITION = _build_definition(51, fennec=False, android=False, thunderbird=False)
# 
# FX52_DEFINITION = _build_definition(52, fennec=False, android=False, thunderbird=False)
# 
# FX53_DEFINITION = _build_definition(53, fennec=False, android=False, thunderbird=False)
# 
# FX54_DEFINITION = _build_definition(54, fennec=False, android=False, thunderbird=False)


# Path: validator/testcases/javascript/entity_values.py
from call_definitions import open_in_chrome_context
from instanceproperties import _set_HTML_property
from validator.compat import (
    FX47_DEFINITION, FX48_DEFINITION, FX50_DEFINITION, FX51_DEFINITION,
    FX52_DEFINITION, FX53_DEFINITION, FX54_DEFINITION)
from validator.constants import BUGZILLA_BUG, MDN_DOC
        from validator.testcases.javascript.predefinedentities import (
            CUSTOMIZATION_API_HELP)

        filename=traverser.filename,
        line=traverser.line,
        column=traverser.position,
        for_appversions=FX53_DEFINITION,
        compatibility_type='error',
        context=traverser.context,
        tier=5)


@register_entity('nsIPK11TokenDB.findTokenByName')
def nsIPK11TokenDBfindTokenByName(traverser):
    def _return(wrapper, arguments, traverser):
        if not arguments:
            return

        first_arg = traverser._traverse_node(arguments[0])
        link = 'https://hg.mozilla.org/mozilla-central/rev/6f732b38a5a2#l1.12'

        if first_arg.get_literal_value() == '':
            traverser.err.warning(
                err_id=('testcases_javascript_entity_values',
                        'nsIPK11TokenDB', 'findTokenByName'),
                warning='Calling findTokenByName("") is no longer valid.',
                description=(
                    'Calling findTokenByName("") is no longer valid. '
                    'If you need to determine if there\'s a master password '
                    'set, please see %s for more information.' % link),
                filename=traverser.filename,
                line=traverser.line,
                column=traverser.position,

                for_appversions=FX53_DEFINITION,