DNR: Impose limit on the max. no. of whitelisted page patterns per extension.
This CL imposes a limit on the maximum number of page patterns an extension can whitelist using the chrome.declarativeNetRequest.addWhitelistedPages API. This limit is currently set to 100. A new property MAX_NUMBER_OF_WHITELISTED_PAGES is introduced in the declarativeNetRequest API for the same. It is important to limit this since the whitelisted patterns are stored in the browser memory (and also persisted across sessions using Extension preferences). BUG=811460, 696822 Doc=https://docs.google.com/document/d/1Fhm-t0JCc3dcmwyBX_i7TGyuJ2QjqDechv1-VCRBo5o/edit?usp=sharing Change-Id: I674da154107ac06269827272576f1af911f13338 Reviewed-on: https://chromium-review.googlesource.com/987392 Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Reviewed-by:Istiaque Ahmed <lazyboy@chromium.org> Cr-Commit-Position: refs/heads/master@{#547983}
Showing
Please register or sign in to comment