EFForg / EFForg/SafariWebExtensionBugs

`webRequest.onBeforeRequest` gives `main_frame` instead of `sub_frame`

Open
#14 4 comments 0 reactions 0 assignees View on GitHub
webRequest
Dominant language
No language data
Stars
6
Forks
1
PR merge metrics
No merged PRs in 30d

Description

For subframes like documents, the webRequest.onBeforeRequest fires with details.type set to `main_frame` instead of `sub_frame`. This matches the optional filter from the listener. As in, if your filter only allows `sub_frame`, no requests will show up.

See: https://jeurissen.co/webext-demos/webrequest-type-sub-frame

WebKit bug report:
https://bugs.webkit.org/show_bug.cgi?id=304828

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked reproduction demo and read WebKit bug 304828 to understand the reported behavior and current discussion. Done means subframe requests are reported as sub_frame and a listener filtered to sub_frame receives them.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.