# 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)
            'listTokens(), listModules() and listSlots() now return '
            'nsISimpleEnumerator instead of nsIEnumerator.'
            'See %s for more information.' % BUGZILLA_BUG % 1220237),
        filename=traverser.filename,
        line=traverser.line,
        column=traverser.position,
        for_appversions=FX47_DEFINITION,
        compatibility_type='error',
        context=traverser.context,
        tier=5)


@register_entity('nsIIOService.newChannel')
@register_entity('nsIIOService.newChannelFromURI')
@register_entity('nsIIOService.newChannelFromURIWithProxyFlags')
def nsIIOService(traverser):
    traverser.err.warning(
        err_id=('testcases_javascript_entity_values',
                'nsIIOService'),
        warning=(
            'The "newChannel" functions have been deprecated in favor of '
            'their new versions (ending with 2).'),
        description=(
            'The "newChannel" functions have been deprecated in favor of '
            'their new versions (ending with 2). '
            'See %s for more information.'
            % MDN_DOC % 'Mozilla/Tech/XPCOM/Reference/Interface/nsIIOService'),
        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)

            'listTokens(), listModules() and listSlots() now return '
            'nsISimpleEnumerator instead of nsIEnumerator.'
            'See %s for more information.' % BUGZILLA_BUG % 1220237),
        filename=traverser.filename,
        line=traverser.line,
        column=traverser.position,
        for_appversions=FX47_DEFINITION,
        compatibility_type='error',
        context=traverser.context,
        tier=5)


@register_entity('nsIIOService.newChannel')
@register_entity('nsIIOService.newChannelFromURI')
@register_entity('nsIIOService.newChannelFromURIWithProxyFlags')
def nsIIOService(traverser):
    traverser.err.warning(
        err_id=('testcases_javascript_entity_values',
                'nsIIOService'),
        warning=(
            'The "newChannel" functions have been deprecated in favor of '
            'their new versions (ending with 2).'),
        description=(
            'The "newChannel" functions have been deprecated in favor of '
            'their new versions (ending with 2). '
            'See %s for more information.'
            % MDN_DOC % 'Mozilla/Tech/XPCOM/Reference/Interface/nsIIOService'),
        filename=traverser.filename,
        line=traverser.line,
        column=traverser.position,

        for_appversions=FX48_DEFINITION,