AdguardTeam / AdguardTeam/AdguardForiOS

Script not performed by Extension on first page visit

Open
#1,930 4 comments 1 reaction 0 assignees View on GitHub
Enhancement P3: Medium Priority: P4 TechAudit Version: ADGuard v4.6 [Reserved]
Dominant language
Swift
Stars
1.7k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.