AdguardTeam / AdguardTeam/AdguardForiOS

Script not performed by Extension on first page visit

Đang mở
#1,930 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
Enhancement P3: Medium Priority: P4 TechAudit Version: ADGuard v4.6 [Reserved]
Ngôn ngữ chính
Swift
Star
1.7k
Fork
240
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.