WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
304828
webRequest.onBeforeRequest fires incorrect resource type
https://bugs.webkit.org/show_bug.cgi?id=304828
Summary
webRequest.onBeforeRequest fires incorrect resource type
Carlos J.
Reported
2026-01-01 06:40:12 PST
Demo extension:
https://jeurissen.co/webext-demos/webrequest-for-frames-in-popup
To reproduce, open popup in new tab. In Safari, the webRequest.onBeforeRequest listener reports resource type main_frame, while it should report resource type sub_frame.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-01-01 06:40:17 PST
<
rdar://problem/167403388
>
Carlos J.
Comment 2
2026-05-23 07:42:01 PDT
This issue can still be reproduced in Safari Version 26.5 (21624.2.5.11.4) Made a simplified demo extension which showcases this issue is not restricted to onBeforeRequest but applies to all the webRequest events:
https://jeurissen.co/webext-demos/webrequest-type-sub-frame
Elijah Sawyers
Comment 3
2026-09-11 09:28:21 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/73785
EWS
Comment 4
2026-09-14 08:56:38 PDT
Committed
321067@main
(1bc0a2a2076a): <
https://commits.webkit.org/321067@main
> Reviewed commits have been landed. Closing PR #73785 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug