Interface nsIClassifiedChannelType

nsIClassifiedChannel

A channel may optionally implement this interface if it carries classified result information of channel classifier. The information contains, for example, the name of matched table and the name of matched provider.

Hierarchy

Properties

classificationFlags: number

Returns the classification flags if the channel has been processed by URL-Classifier features. This value is equal to "firstPartyClassificationFlags || thirdPartyClassificationFlags".

Note that top-level channels could be classified as well. In order to identify third-party resources specifically, use classificationThirdPartyFlags;

firstPartyClassificationFlags: number

Returns the classification flags if the channel has been processed by URL-Classifier features and is considered first-party.

matchedFullHash: string

Full hash of URL that matched

matchedList: string

Name of the list that matched

matchedProvider: string

Name of provider that matched

thirdPartyClassificationFlags: number

Returns the classification flags if the channel has been processed by URL-Classifier features and is considered third-party with the top window URI.

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Returns true if the channel has loaded a 3rd party resource that is classified as a social tracker.

    This is a helper attribute which returns the same value of (classificationFlags & CLASSIFIED_ANY_SOCIAL_TRACKING)

    Note that top-level channels could be marked as tracking resources. In order to identify third-party social tracking resources specifically, check the flags manually or add a new helper here.

    Returns boolean

  • Returns true if the channel has been processed by URL-Classifier features and is considered third-party with the top window URI, and if it has loaded a resource that is classified as a tracker.

    This is a helper attribute which returns the same value of (thirdPartyClassificationFlags & CLASSIFIED_ANY_BASIC_TRACKING) or (thirdPartyClassificationFlags & CLASSIFIED_ANY_STRICT_TRACKING) or (thirdPartyClassificationFlags & CLASSIFIED_ANY_SOCIAL_TRACKING)

    Returns boolean

  • Sets matched info of the classified channel.

    Parameters

    • aList: string

      Name of the Safe Browsing list that matched (e.g. goog-phish-shavar).

    • aProvider: string

      Name of the Safe Browsing provider that matched (e.g. google)

    • aFullHash: string

      Full hash of URL that matched Safe Browsing list.

    Returns void

  • Sets matched tracking info of the classified channel.

    Parameters

    • aLists: invalid

      Name of the Tracking Protection list that matched (e.g. content-track-digest256).

    • aFullHashes: invalid

    Returns void

Generated using TypeDoc