AdguardTeam / AdguardTeam/Scriptlets

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

オープン
#428 コメント 1 件 リアクション 0 件 担当者 1 名 @maximtop が担当を希望しています GitHub で見る
bug Priority: P4
主要言語
JavaScript
スター
195
フォーク
33
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。