Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix + docs: fix $sceDelegateProvider.resourceUrlWhitelist() and fix docs on recently deprecated properties/methods #17090

Closed

Commits on Oct 13, 2020

  1. docs(*): fix docs on recently deprecated properties/methods

    In commits 9679e58..3dd42ce, some properties
    and methods names including the terms whitelist/blacklist were
    deprecated in favor of new ones not including the terms.
    
    This commit fixes some typos in docs related to these changes and adds
    links to the new properties/methods in the changelog for easier access.
    
    Fixes angular#17088
    gkalpak committed Oct 13, 2020
    Copy the full SHA
    3c64595 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    a5371cf View commit details
    Browse the repository at this point in the history
  3. fix($sceDelegate): make resourceUrlWhitelist() is identical `truste…

    …dResourceUrlList()`
    
    In commit a206e26, `$sceDelegateProvider`'s
    `resourceUrlWhitelist()` was deprecated in favor of the new
    `trustedResourceUrlList()`. However, although both properties were
    assigned the same value, it was possible for an app to break if one of
    the properties was overwritten in one part of the app (or a 3rd-party
    library) while another part of the app interacts with the other,
    non-overwritten property.
    
    This commit fixes it by making `resourceUrlWhitelist()` a getter/setter
    that delegates to `trustedResourceUrlList()`, ensuring that the two
    properties will remain in sync. This, also, makes it consistent with
    other similar deprecated properties, such as `$sceDelegateProvider`'s
    `resourceUrlBlacklist()`.
    gkalpak committed Oct 13, 2020
    Copy the full SHA
    527a2ae View commit details
    Browse the repository at this point in the history