uBlockOrigin / uBlock-issues

This is the community-maintained issue tracker for uBlock Origin
https://github.com/gorhill/uBlock
935 stars 79 forks source link

requestIdleCallback not supported on ios #3237

Closed ryanbr closed 5 months ago

ryanbr commented 5 months ago

Prerequisites

I tried to reproduce the issue when...

Description

Not a uBO specific issue, but reaching out;

Filters including remove-class, href-sanitizer,remove-attr are ignored due to the lack of requestIdleCallback . See: https://caniuse.com/requestidlecallback

A specific URL where the issue occurs.

No url attached

Steps to Reproduce

Expected behavior

If its possible to timeout or fallback if requestIdleCallback isn't used/detected/available.

Actual behavior

the 3 scriptlets are being ignored on ios currently.

uBO version

Brave IOS

Browser name and version

Brave IOS

Operating System and version

IOS

uBlock-user commented 5 months ago

Just a general query if there is work around

requestAnimationFrame can be used in its place.

uBlock-user commented 5 months ago

remove-attr and remove-class scriptlets are deprecated as per wiki, already, so you should start using procedural operator in its place - https://github.com/uBlockOrigin/uBlock-issues/wiki/Static-filter-syntax#subjectremove-attrarg-subjectremove-classarg

ryanbr commented 5 months ago

Yeah I know it'll be removed due to MV3, just seeing if there is something interium, upstream we could do. Even its just remove-class to be honest, thats the most widely used

uBlock-user commented 5 months ago

due to MV3

No, decision to deprecate has nothing to do with MV3, but due to emergence of :remove-attr() procedural operator.

ryanbr commented 5 months ago

Okay, stand corrected. was under the impression it was MV3

krystian3w commented 5 months ago

Looks duplicate of #3105