AdguardTeam / AdguardTeam/AdguardForiOS

Script not performed by Extension on first page visit

未关闭
#1,930 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
Enhancement P3: Medium Priority: P4 TechAudit Version: ADGuard v4.6 [Reserved]
主要语言
Swift
星标
1.7k
派生
240
PR 合并指标
30 天内没有已合并 PR

描述

### Issue Details

- **AdGuard version:**
- AdGuard for iOS v4.3.2(938)
- **Device model and storage size:**
- iPhone Xs Max 64GB
- **Operating system and version:**
- 15.3
- **Browser or App:**
- Safari

### Preparation

My Safari is always in private mode. No Cache or Cookies are stored on the phone. Every Tab or Safari season starts "clean".
I have a premium license active, I subscribed to following AdGuardfilters: Base, Mobile, Social, Annoyance, German
The 'extended protection' (Extension) is enabled and active for all Tabs.

### Actual Behavior

1. Start Safari
2. Go to https://www.google.de/
3. Notice that Cookie Pop-up is not blocked
4. Reloading the page fix the issue
5. Close the Tab and Safari
6. Start Safari again
7. Visit https://www.google.de/ again -> Cookie Pop-up

The same happen like for https://www.youtube.com/ or https://www.videogameschronicle.com/

- If you open any other page before and than go to Google/Youtube/VGC -> there is no Cookie Pop-up, filtering works fine
- It seems like only happen for the first page you visit with Safari. Like the Extension gets enabled to late (hopefully no iOS Bug or limitation)
- The Google/YouTube/VGC Scriptlets seems to begin with `#%#(function()` and maybe it's only this which get stuck in first visit load
- Other new Blocking methodes with the Extension like Element hiding `#?#` are working fine on first visit

### Video

Video:

https://user-images.githubusercontent.com/6276915/152859195-943aa644-dc0d-413a-848b-c7439f08762c.mp4

In this Video I show you:

Open Safari -> visit Google -> Cookie Pop-up -> Reload -> No Cookie Pop-up -> Close Tab and Safari -> Open Safari -> Open Videogameschronicles -> Cookie Pop-up -> Reload -> No Cookie Pop-up -> CLose Tab and Safari -> Open Safari -> Visit Videohelp (which contain a Element Hiding rule which works fine after a short second. It's that Textline with Streamfab Ad) -> open Google (as second page) -> no Cookie Pop-up -> open Videogameschronicles -> no Cookie Pop-up

Hope it makes sense.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。