Changes between Version 16 and Version 17 of Ticket #6428


Ignore:
Timestamp:
03/16/2019 03:30:00 PM (9 months ago)
Author:
mjethani
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6428 – Description

    v16 v17  
    33 
    44=== What to change === 
    5 Modify `generateStyleSheetForDomain` in lib/elemHide.js to provide exception filters which applied if the optional `withExceptions` argument was passed. 
     5Modify `generateStyleSheetForDomain` in `lib/elemHide.js` to provide exception filters which applied if the optional `includeExceptions` argument is set to `true`. 
     6 
     7The new signature should be: 
     8 
     9{{{ 
     10function generateStyleSheetForDomain(domain, specificOnly = false, 
     11                                     includeSelectors = false,  
     12                                     includeExceptions = false) 
     13}}} 
     14 
     15The return value should ''always'' contain three properties: `code`, `selectors`, and `exceptions`. By default `exceptions` should be `null`, but if `includeExceptions` is `true` then it should be the list of exceptions (empty array if no exceptions apply). 
     16 
     17Performance should not be negatively affected for the default case in which both `includeSelectors` and `includeExceptions` are `false`.