AdguardForiOS icon indicating copy to clipboard operation
AdguardForiOS copied to clipboard

Script not performed by Extension on first page visit

Open Morku opened this issue 3 years ago • 4 comments

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.

Morku avatar Feb 07 '22 19:02 Morku

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)

It takes 300-400ms to initialize and we're quite limited in what we can do about that since most of this time is spent by Safari itself. And for the current anti-cookie rules for Google, the order of execution is very important.

ameshkov avatar Feb 09 '22 15:02 ameshkov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 08:04 stale[bot]

The task is in the tasks queue, please await for updates.

artemiv4nov avatar Apr 17 '22 21:04 artemiv4nov

Same issue https://github.com/AdguardTeam/AdguardForiOS/issues/2032

Versty avatar Aug 03 '22 09:08 Versty