AdguardTeam / AdguardTeam/AdguardForiOS

Filter with `:remove-attr()` breaks other filters in list

Đang mở
#2,546 2 bình luận 2 reaction 1 người được giao Được @ESurina nhận Xem trên GitHub
Bug Priority: P4
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ả

### Please answer the following questions for yourself before submitting an issue

- [x] Filters were updated before reproducing an issue
- [x] I checked the [knowledge base](https://adguard.com/kb/) and found no answer
- [x] I checked to make sure that this issue has not already been filed

### AdGuard version

4.5.22

### Environment

- OS: 26.6
- Device: iPhone 15

### Ad Blocking

_No response_

### Privacy

_No response_

### Social

_No response_

### Annoyances

_No response_

### Security

_No response_

### Other

_No response_

### Language-specific

_No response_

### Advanced protection for Safari

- [x] yes, I do

### Which DNS server do you use?

DNS protection disabled

### DNS protocol

DNS protection disabled

### Custom DNS

_No response_

### DNS filtering

- [ ] yes, I do

### Custom DNS filter

_No response_

### DNS implementation

DNS protection disabled

### Tunnel mode

DNS protection disabled

### Low-level settings

Bootstrap server:
Fallback server:
Blocking mode, etc:

### Issue Details

Steps to reproduce:
1. Open AdGuard app
2. Open *Filters > Custom* and add filter `https://gist.githubusercontent.com/Stevoisiak/101137e2de7d71849145f2817064e09c/raw/3d8f431a3b6bdd3ef2e54964e8a02f8a8a311787/adguard-ios-remove-bug.txt`
```
! Title: Adguard iOS remove bug
www.reddit.com##reddit-search-small[expanded-composer-enabled]:remove-attr(expanded-composer-enabled)
www.reddit.com###answers-nav-button
```
3. Wait for filters to convert
4. Open `https://www.reddit.com/r/AskReddit/comments/1vzcoet/what_antagonist_from_a_video_game_is_impossible/` in Safari

### Expected Behavior

The sparkling AI button in the header is hidden by rule `www.reddit.com###answers-nav-button`

### Actual Behavior

The sparkling AI button is not hidden. The presence of the uBO-styled `:remove-attr()` rule breaks the `#answers-nav-button` filter.

### Screenshots

AI Button on Reddit
Image

AdGuard filters
Image

### Additional Information

[AdGuard_logs.zip](https://github.com/user-attachments/files/31493513/AdGuard_logs.zip)

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.