예제 #1
0
COMPAT_REGEXPS.append((FX39_DEFINITION, (
    (r'\b__noSuchMethod__\b', {
        'warning':
        'The __noSuchMethod__ property has been deprecated.',
        'description':
        ('The __noSuchMethod__ property has been deprecated. See %s for '
         'more information.' % MDN_DOC %
         ('Web/JavaScript/Reference/Global_Objects/Object/'
          'noSuchMethod')),
        'compatibility_type':
        'warning'
    }),
    (r'\bsendAsBinary\b', {
        'warning':
        'The function sendAsBinary() in XMLHttpRequest has been '
        'removed.',
        'description':
        ('The function sendAsBinary() in XMLHttpRequest has been '
         'removed. You can use send() with a Blob instead. '
         'See %s for more information.' % BUGZILLA_BUG % 853162)
    }),
    (r'\blightweightThemes\.(usedThemes|isThemeSelected)\b', {
        'warning':
        'The preferences used to store theme selection have '
        'changed.',
        'description':
        'The preferences used to store theme selection have '
        'changed. See %s#c39 for more information.' % BUGZILLA_BUG % 1094821
    }),
)), )
예제 #2
0
COMPAT_REGEXPS.append((FX40_DEFINITION, (
    (r'\b([gs]etKeywordForBookmark|getURIForKeyword)\b', {
        'warning':
        'The old keywords API is deprecated.',
        'description':
        ('The old keywords API is deprecated. You should use '
         'PlacesUtils.keywords instead. See %s for more information.' %
         MDN_DOC % 'Mozilla/Tech/Places/Using_the_Places_keywords_API'),
        'compatibility_type':
        'warning'
    }),
    (r'\b(fuelIApplication|extIApplication)\b', {
        'warning':
        'The FUEL library is now deprecated.',
        'description':
        ('The FUEL library is now deprecated. You should use the add-ons '
         'SDK or Services.jsm. See %s for more information.' % MDN_DOC %
         'Mozilla/Tech/Toolkit_API/FUEL'),
        'compatibility_type':
        'warning'
    }),
    (r'\bresource://gre/modules/Dict.jsm\b', {
        'warning':
        'The Dict.jsm module has been removed.',
        'description':
        ('The Dict.jsm module has been removed. You can use the native Map '
         'object instead. See %s for more information.' % MDN_DOC %
         'Web/JavaScript/Reference/Global_Objects/Map'),
        'compatibility_type':
        'error'
    }),
    (r'\bsessionstore-state-write\b', {
        'warning':
        "The \"sessionstore-state-write\" notification has been "
        'removed.',
        'description':
        ("The \"sessionstore-state-write\" notification has been removed. "
         'See %s for more information.' % BUGZILLA_BUG % 1157235),
        'compatibility_type':
        'error'
    }),
    (r'\bnsISSLErrorListener\b', {
        'warning':
        'The nsISSLErrorListener interface has been removed.',
        'description':
        ('The nsISSLErrorListener interface has been removed. See %s for '
         'more information.' % BUGZILLA_BUG % 844351),
        'compatibility_type':
        'error'
    }),
    (r"""require\(['"]sdk/widget['"]\)""", {
        'warning':
        'The widget module has been removed.',
        'description':
        ('The widget module has been removed. You can use ActionButton or '
         'ToggleButton instead. See %s for more information.' %
         'https://developer.mozilla.org/en-US/Add-ons/SDK/'
         'High-Level_APIs/widget'),
        'compatibility_type':
        'error'
    }),
)), )
예제 #3
0
FX39_DEFINITION = build_definition(39, firefox=True)

COMPAT_REGEXPS.append(
    (FX39_DEFINITION, (
        (r'\b__noSuchMethod__\b',
         {'warning': 'The __noSuchMethod__ property has been deprecated.',
          'description': (
              'The __noSuchMethod__ property has been deprecated. See %s for '
              'more information.'
              % MDN_DOC % ('Web/JavaScript/Reference/Global_Objects/Object/'
                           'noSuchMethod')),
          'compatibility_type': 'warning'}),

        (r'\bsendAsBinary\b',
         {'warning': 'The function sendAsBinary() in XMLHttpRequest has been '
                     'removed.',
          'description': (
              'The function sendAsBinary() in XMLHttpRequest has been '
              'removed. You can use send() with a Blob instead. '
              'See %s for more information.' % BUGZILLA_BUG % 853162)}),

        (r'\blightweightThemes\.(usedThemes|isThemeSelected)\b',
         {'warning': 'The preferences used to store theme selection have '
                     'changed.',
          'description': 'The preferences used to store theme selection have '
                         'changed. See %s#c39 for more information.'
                         % BUGZILLA_BUG % 1094821}),
    )),
)
예제 #4
0
COMPAT_REGEXPS.append(
    (FX40_DEFINITION, (
        (r'\b([gs]etKeywordForBookmark|getURIForKeyword)\b',
         {'warning': 'The old keywords API is deprecated.',
          'description': (
            'The old keywords API is deprecated. You should use '
            'PlacesUtils.keywords instead. See %s for more information.'
            % MDN_DOC % 'Mozilla/Tech/Places/Using_the_Places_keywords_API'),
          'compatibility_type': 'warning'}),

        (r'\b(fuelIApplication|extIApplication)\b',
         {'warning': 'The FUEL library is now deprecated.',
          'description': (
            'The FUEL library is now deprecated. You should use the add-ons '
            'SDK or Services.jsm. See %s for more information.'
            % MDN_DOC % 'Mozilla/Tech/Toolkit_API/FUEL'),
          'compatibility_type': 'warning'}),

        (r'\bresource://gre/modules/Dict.jsm\b',
         {'warning': 'The Dict.jsm module has been removed.',
          'description': (
            'The Dict.jsm module has been removed. You can use the native Map '
            'object instead. See %s for more information.'
            % MDN_DOC % 'Web/JavaScript/Reference/Global_Objects/Map'),
          'compatibility_type': 'error'}),

        (r'\bsessionstore-state-write\b',
         {'warning': "The \"sessionstore-state-write\" notification has been "
                     'removed.',
          'description': (
            "The \"sessionstore-state-write\" notification has been removed. "
            'See %s for more information.' % BUGZILLA_BUG % 1157235),
          'compatibility_type': 'error'}),

        (r'\bnsISSLErrorListener\b',
         {'warning': 'The nsISSLErrorListener interface has been removed.',
          'description': (
            'The nsISSLErrorListener interface has been removed. See %s for '
            'more information.' % BUGZILLA_BUG % 844351),
          'compatibility_type': 'error'}),

        (r"""require\(['"]sdk/widget['"]\)""",
         {'warning': 'The widget module has been removed.',
          'description': (
            'The widget module has been removed. You can use ActionButton or '
            'ToggleButton instead. See %s for more information.'
            % 'https://developer.mozilla.org/en-US/Add-ons/SDK/'
              'High-Level_APIs/widget'),
          'compatibility_type': 'error'}),
    )),
)
예제 #5
0
COMPAT_REGEXPS.append(
    (FX38_DEFINITION, (
        (r'\bmozIndexedDB\b',
         {'warning': 'mozIndexedDB has been removed.',
          'description': 'mozIndexedDB has been removed. You should use '
                         'indexedDB instead. '
                         'See %s for more information.'
                         % BUGZILLA_BUG % 975699}),

        (r'\b(?:nsICompositionStringSynthesizer|sendCompositionEvent|'
         r'createCompositionStringSynthesizer)\b',

         {'warning': 'nsICompositionStringSynthesizer, '
                     'sendCompositionEvent, and '
                     'createCompositionStringSynthesizer were removed.',

          'description': (
              'The nsICompositionStringSynthesizer interface and the '
              'sendCompositionEvent and createCompositionStringSynthesizer '
              'functions have been removed. See %s for more information.'
              % MDN_DOC
              % ('Mozilla/Tech/XPCOM/Reference/Interface/'
                 'nsITextInputProcessor')),
          }),

        (r'\b(?:newChannel2|asyncFetch2)\b',
         {'warning': 'asyncFetch2 and newChannel2 are now deprecated.',
          'description': 'asyncFetch2 and newChannel2 are now deprecated. '
                         'Use asyncFetch or newChannel instead. See %s for '
                         'more information.' % BUGZILLA_BUG % 1125618,
          'compatibility_type': 'warning'}),

        (r'\b(onProxyAvailable|asyncResolve)\b',
         {'warning': 'The onProxyAvailable and asyncResolve functions have '
                     'changed.',
          'description': 'They now take an nsIChannel instead of an nsIURI '
                         'as an argument. '
                         'See %s for more information.'
                         % BUGZILLA_BUG % 436344}),
    )),
)
예제 #6
0
COMPAT_REGEXPS.append((FX38_DEFINITION, (
    (r'\bmozIndexedDB\b', {
        'warning':
        'mozIndexedDB has been removed.',
        'description':
        'mozIndexedDB has been removed. You should use '
        'indexedDB instead. '
        'See %s for more information.' % BUGZILLA_BUG % 975699
    }),
    (r'\b(?:nsICompositionStringSynthesizer|sendCompositionEvent|'
     r'createCompositionStringSynthesizer)\b', {
         'warning':
         'nsICompositionStringSynthesizer, '
         'sendCompositionEvent, and '
         'createCompositionStringSynthesizer were removed.',
         'description':
         ('The nsICompositionStringSynthesizer interface and the '
          'sendCompositionEvent and createCompositionStringSynthesizer '
          'functions have been removed. See %s for more information.' %
          MDN_DOC % ('Mozilla/Tech/XPCOM/Reference/Interface/'
                     'nsITextInputProcessor')),
     }),
    (r'\b(?:newChannel2|asyncFetch2)\b', {
        'warning':
        'asyncFetch2 and newChannel2 are now deprecated.',
        'description':
        'asyncFetch2 and newChannel2 are now deprecated. '
        'Use asyncFetch or newChannel instead. See %s for '
        'more information.' % BUGZILLA_BUG % 1125618,
        'compatibility_type':
        'warning'
    }),
    (r'\b(onProxyAvailable|asyncResolve)\b', {
        'warning':
        'The onProxyAvailable and asyncResolve functions have '
        'changed.',
        'description':
        'They now take an nsIChannel instead of an nsIURI '
        'as an argument. '
        'See %s for more information.' % BUGZILLA_BUG % 436344
    }),
)), )