Changes between Version 6 and Version 7 of Ticket #7384


Ignore:
Timestamp:
03/20/2019 03:32:15 PM (17 months ago)
Author:
kzar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7384 – Description

    v6 v7  
    11=== Background === 
    2 Both Firefox and Chrome provide an Array `browser.webRequest.ResourceType` which lists the support resource types which can be used to filter `webRequest` events. Edge does not provide that, but does list the valid resource types when an listener is incorrectly created. 
     2Both Firefox and Chrome provide an Object `browser.webRequest.ResourceType` which lists the support resource types which can be used to filter `webRequest` events. Edge does not provide that, but does list the valid resource types when an listener is incorrectly created. 
    33 
    44=== What to change === 
     
    1717}}} 
    1818 
     19From that, `browser.webRequest.ResourceType` should look something like this: 
     20 
     21{{{ 
     22{MAIN_FRAME: "main_frame", 
     23SUB_FRAME: "sub_frame", 
     24STYLESHEET: "stylesheet", 
     25SCRIPT: "script", 
     26IMAGE: "image", 
     27OBJECT: "object", 
     28XMLHTTPREQUEST: "xmlhttprequest", 
     29FETCH: "fetch", 
     30PING: "ping", 
     31OTHER: "other"} 
     32}}} 
     33 
    1934- Modify any code which assumes `browser.webRequest.ResourceType` doesn't exist on Edge, for example in adblockpluschrome/lib/requestBlocker.js.'' 
    2035