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 摘要。