# Path: validator/compat.py
# FX48_DEFINITION = _build_definition(48, fennec=False, android=False, thunderbird=False)


import math
import re
import actions
import predefinedentities
from jstypes import JSArray, JSObject, JSWrapper
from validator.constants import BUGZILLA_BUG
from validator.compat import FX48_DEFINITION
            context=traverser.context)

    remote_url = re.compile(r'^(https?|ftp|data):(//)?', re.I)
    uri = unicode(uri.get_literal_value())
    if uri.startswith('//') or remote_url.match(uri):
        traverser.err.warning(
            err_id=('js', 'instanceactions', '%s_remote_uri' % method),
            warning='`%s` called with non-local URI.' % method,
            description='Calling `%s` with a non-local URI will result in the '
                        'dialog being opened with chrome privileges.' % method,
            filename=traverser.filename,
            line=traverser.line,
            column=traverser.position,
            context=traverser.context)


def Proxy_deprec(wrapper, arguments, traverser):
    traverser.warning(
        err_id=('testcases_javascript_calldefinitions', 'Proxy', 'deprec'),
        warning='Proxy.create and Proxy.createFunction are no longer supported.',
        description=(
            'Proxy.create and Proxy.createFunction are no longer supported. '
            'If this flag appears on Add-ons SDK code, make sure you download '
            'the latest version of the SDK and submit a new version. '
            'See %s for more information.' % BUGZILLA_BUG % 892903),
        compatibility_type='error',
        filename=traverser.filename,
        line=traverser.line,
        column=traverser.position,
        context=traverser.context,

# Path: validator/compat.py
# FX48_DEFINITION = _build_definition(48, fennec=False, android=False, thunderbird=False)


# Path: validator/testcases/javascript/call_definitions.py
import math
import re
import actions
import predefinedentities
from jstypes import JSArray, JSObject, JSWrapper
from validator.constants import BUGZILLA_BUG
from validator.compat import FX48_DEFINITION

            context=traverser.context)

    remote_url = re.compile(r'^(https?|ftp|data):(//)?', re.I)
    uri = unicode(uri.get_literal_value())
    if uri.startswith('//') or remote_url.match(uri):
        traverser.err.warning(
            err_id=('js', 'instanceactions', '%s_remote_uri' % method),
            warning='`%s` called with non-local URI.' % method,
            description='Calling `%s` with a non-local URI will result in the '
                        'dialog being opened with chrome privileges.' % method,
            filename=traverser.filename,
            line=traverser.line,
            column=traverser.position,
            context=traverser.context)


def Proxy_deprec(wrapper, arguments, traverser):
    traverser.warning(
        err_id=('testcases_javascript_calldefinitions', 'Proxy', 'deprec'),
        warning='Proxy.create and Proxy.createFunction are no longer supported.',
        description=(
            'Proxy.create and Proxy.createFunction are no longer supported. '
            'If this flag appears on Add-ons SDK code, make sure you download '
            'the latest version of the SDK and submit a new version. '
            'See %s for more information.' % BUGZILLA_BUG % 892903),
        compatibility_type='error',
        filename=traverser.filename,
        line=traverser.line,
        column=traverser.position,
        context=traverser.context,

        for_appversions=FX48_DEFINITION)