AdguardTeam / AdguardTeam/Scriptlets

Fix 'click2load.html' — redirect does not work correctly in the extension

Đang mở
#428 1 bình luận 0 reaction 1 người được giao Được @maximtop nhận Xem trên GitHub
bug Priority: P4
Ngôn ngữ chính
JavaScript
Star
195
Fork
33
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

It seems that `click2load.html` redirect doesn't work correctly in the extension.
Related to - https://github.com/AdguardTeam/AdguardFilters/issues/179334

Steps to reproduce:
1. Add this rule:
```adblock
embed$subdocument,redirect=click2load.html,important
```
2. Go to - https://example.org/
3. In browser console run:
```js
(() => {
const video = '';
const createDiv = document.createElement("div");
document.body.appendChild(createDiv);
createDiv.innerHTML = video;
})();
```
4. Click on the button to load player

It looks like that script in `click2load.html` is blocked by `Content Security Policy`.
Screenshots

![image](https://github.com/AdguardTeam/Scriptlets/assets/29142494/b9d303f8-c0e1-4c75-98f8-e5867d7aba18)

![image](https://github.com/AdguardTeam/Scriptlets/assets/29142494/923c1ecb-9900-42bf-8c5b-598ef67a9f98)

This issue doesn't occur in AdGuard for Windows, so I'm not sure if it's extension or scriptlets issue.

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.