Changes between Version 3 and Version 4 of Ticket #7271


Ignore:
Timestamp:
02/11/2019 02:08:52 PM (9 months ago)
Author:
kzar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7271 – Description

    v3 v4  
    22For version 3 of Chrome's extension manifest format, one planned change is to switch from callbacks to Promises for the Chrome APIs. [https://docs.google.com/document/d/1nPu6Wy4LWR66EFLeYInl3NzzhHzc-qnk4w4PX-0XMw8/edit From the draft spec]: 
    33 
    4 >Extension APIs will be promise-based. The older callback version will continue to be supported... 
     4> Extension APIs will be promise-based. The older callback version will continue to be supported... 
    55> 
    66> In order to maintain backwards compatibility (and not force developers to rewrite their extension 
     
    1010 
    1111=== What to change === 
    12 Where possible use Promises instead of callbacks when using the browser.* or chrome.* APIs. If necessary wrap them - see `adblockpluschrome/polyfill.js`. 
     12Where possible use Promises instead of callbacks when using the `browser.*` or `chrome.*` APIs. If necessary wrap them - see `adblockpluschrome/polyfill.js`. 
    1313 
    1414=== Notes ===