AdguardTeam / AdguardTeam/FiltersCompiler

trusted-* scriptlets dropped in convertToUbo() even if uBO resources include trusted scriptlets

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

説明

I found that there's a confusion about the trusted scriptlet conversion to uBO format.

In `FiltersCompiler`, this code explicitly skips trusted scriptlets when converting to uBO:

- https://github.com/AdguardTeam/FiltersCompiler/blob/4ab18cd54fc4c7313d0e2c5e788ed5fa01c2c98b/src/main/converter.js#L131-L136

At the same time, uBO’s Resources Library documents trusted scriptlets (for example `trusted-click-element`, `trusted-set-session-storage-item`, etc.), and they mention the Adguard website, which indicates the correspondence:

- https://github.com/gorhill/ublock/wiki/Resources-Library#trusted-click-elementjs-

So I’m trying to understand the rationale in `FiltersCompiler`. Is this an intentional policy decision (e.g., trust-source/security model mismatch) rather than a technical capability mismatch? Or is it just outdated information?

If it's the latter case, would it make sense add conversion support for trusted scriptlets?

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

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

評価

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

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

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