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
312552
ParentalControls Filters may accidentally vend an iframe shield instead of a mainframe shield.
https://bugs.webkit.org/show_bug.cgi?id=312552
Summary
ParentalControls Filters may accidentally vend an iframe shield instead of a ...
jlee53
Reported
2026-04-17 00:28:41 PDT
ParentalControls Filters may accidentally vend an iframe shield instead of a mainframe shield. We use the criteria that the current mainFrameURL is null to determine whether or not we have an iframe or a mainframe. This worked for the most part because testing was done with URLs that trigger process swaps because the scheme of the blocked page is different. In that situation, we start with a brand new mainFrameURL as the load has not been populated yet. But in the case where the same process is re-used, we still have the residual mainFrameURL and so we vend the iframe shield instead. The code currently assumes that mainFrameURL will always be null on a fresh navigation. This is wrong. Instead, the code is changed to (a) make it clear that the "mainFrameURL" we are populating is explicitly for transitive trust / iFrames by refactoring mainDocumentURL to transitiveTrustMainDocumentURL, (b) we only populate the transitiveTrustMainDocumentURL if we are an iframe and we use existing DocumentLoader/NetworkResourceLoader to determine this.
Attachments
Add attachment
proposed patch, testcase, etc.
jlee53
Comment 1
2026-04-17 00:30:15 PDT
I tested that this code works for correctly vending both mainFrame and iFrame shields.
jlee53
Comment 2
2026-04-17 00:34:46 PDT
<
rdar://problem/173774144
>
jlee53
Comment 3
2026-04-17 00:38:48 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/62959
EWS
Comment 4
2026-04-17 23:00:25 PDT
Committed
311515@main
(e48835c9f88c): <
https://commits.webkit.org/311515@main
> Reviewed commits have been landed. Closing PR #62959 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