Bug 281987
| Summary: | URL displayed on consecutive redirections filtered (blocked) by a content blocker rules | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Emmanuel SELLIER <emmanuel.sellier> |
| Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | achristensen, beidson, emmanuel.sellier, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 18 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 18 | ||
Emmanuel SELLIER
When you have a URL1 redirecting (301) to URL2, and if URL2 is blocked, the URL displayed in search/url field is still URL1 but not URL2.
In our case, the user can "temporarily disable" (we append a rule with a "ignore-previous-rules" action) the blocking rule by reporting (sharing) the blocked URL.
But as URL2 is never displayed, we cannot unblock this URL2.
In our test URL1 and URL2 are blocked.
When the user unblocks (sharing the url to our app) URL1, we get the info and append the "unblocking" rule.
But when the user refreshes the page in Safari, then URL1 redirects to URL2. URL2 is blocked, but the displayed URL is still URL1.
It's not possible to test this using MiniBrowser as the blocked URLs href is not displayed in MiniBrowser url field.
Rules for testing :
[
{
"trigger": {
"url-filter": "^https?://[^/]+/8Xwdg",
"if-domain": ["s.et4.de"]
},
"action": {
"type": "block"
}
},
{
"trigger": {
"url-filter": "^https?://[^/]+/8Xwdg",
"if-domain": ["s.et4.de"]
},
"action": {
"type": "ignore-previous-rules"
}
},
{
"trigger": {
"url-filter": "^https?://[^/]+/my-site-1",
"if-domain": [
"authorangemail471.wixsite.com"
]
},
"action": {
"type": "block"
}
}
]
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/138926816>