Skip to content

webRequest details object is missing properties to detect the top-level document URL #10

Open
@lenacohen

Description

@lenacohen

The webRequest details object that is passed to webRequest event callbacks is missing frameAncestors, and documentUrl.

On Firefox, Privacy Badger uses documentUrl and frameAncestors to get the top-level document URL for a given request. On Chrome, we use initiator, but it lacks path information and is not useful for resources belonging to sub frames.

PB can function without initiator or documentUrl/frameAncestors, but we will mis-attribute requests in various corner cases.

Tested on Safari Technology Preview Release 215.

Metadata

Metadata

Assignees

No one assigned

    Labels

    webRequestIssue with Safari's webRequest API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions