# 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)
            'The methods getUsagesArray, requestUsagesArrayAsync, and '
            'getUsagesString are no longer supported.',
            'See %s for more information.'
            % BUGZILLA_BUG % 1284946),
        filename=traverser.filename,
        line=traverser.line,
        column=traverser.position,
        for_appversions=FX50_DEFINITION,
        compatibility_type='error',
        context=traverser.context,
        tier=5)


@register_entity('mozIAsyncFavicons.setAndFetchFaviconForPage')
@register_entity('mozIAsyncFavicons.replaceFaviconDataFromDataURL')
def mozIAsyncFavicons(traverser):
    traverser.err.warning(
        err_id=('testcases_javascript_entity_values',
                'mozIAsyncFavicons'),
        warning=(
            'The methods setAndFetchFaviconForPage and '
            'replaceFaviconDataFromDataURL now default to using a null '
            'principal for security reasons. An appropriate principal should '
            'be passed if different behavior is required.'),
        description=(
            'See %s for more information.'
            % BUGZILLA_BUG % 1227289),
        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)

            'The methods getUsagesArray, requestUsagesArrayAsync, and '
            'getUsagesString are no longer supported.',
            'See %s for more information.'
            % BUGZILLA_BUG % 1284946),
        filename=traverser.filename,
        line=traverser.line,
        column=traverser.position,
        for_appversions=FX50_DEFINITION,
        compatibility_type='error',
        context=traverser.context,
        tier=5)


@register_entity('mozIAsyncFavicons.setAndFetchFaviconForPage')
@register_entity('mozIAsyncFavicons.replaceFaviconDataFromDataURL')
def mozIAsyncFavicons(traverser):
    traverser.err.warning(
        err_id=('testcases_javascript_entity_values',
                'mozIAsyncFavicons'),
        warning=(
            'The methods setAndFetchFaviconForPage and '
            'replaceFaviconDataFromDataURL now default to using a null '
            'principal for security reasons. An appropriate principal should '
            'be passed if different behavior is required.'),
        description=(
            'See %s for more information.'
            % BUGZILLA_BUG % 1227289),
        filename=traverser.filename,
        line=traverser.line,
        column=traverser.position,

        for_appversions=FX51_DEFINITION,