@kubohiroya/turbowarp-extension-security-dialog 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +25 -9
- package/README.md +24 -9
- package/dist/build-info.json +2 -2
- package/dist/index.cjs +38 -8
- package/dist/index.mjs +38 -8
- package/dist/permission-ui.cjs +28 -6
- package/dist/permission-ui.mjs +28 -6
- package/dist/project-review.cjs +12 -3
- package/dist/project-review.mjs +12 -3
- package/dist/react.cjs +110 -28
- package/dist/react.mjs +110 -28
- package/dist/review.d.ts +2 -1
- package/package.json +3 -3
- package/src/messages.ts +28 -6
- package/src/metadata.ts +13 -2
- package/src/preview.tsx +7 -3
- package/src/project-review.tsx +2 -1
- package/src/review.css +21 -0
- package/src/review.tsx +83 -25
- package/styles.css +21 -0
- package/webpack4.css +21 -0
package/README.ja.md
CHANGED
|
@@ -32,7 +32,7 @@ VM は機能拡張を1つずつ読み込み、そのたびに尋ねます。作
|
|
|
32
32
|
|
|
33
33
|
**作品を開く。** この SB3 には Camera Source 0.19.4、Asset Cache 0.3.2、Bubble 0.13.5 を
|
|
34
34
|
`data:` URL として保存しています。3件ともサンドボックスなしを必須と申告しているため、
|
|
35
|
-
|
|
35
|
+
以下の旧版の図では、実行方法を選択してOKまたはキャンセルを待ちます。
|
|
36
36
|
図版の時点では、どの拡張もまだ実行していません。
|
|
37
37
|
|
|
38
38
|

|
|
@@ -66,16 +66,18 @@ import '@kubohiroya/turbowarp-extension-security-dialog/styles.css';
|
|
|
66
66
|
/>
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
追加と開くは同じ部品を使います。開くときは、まず説明と拡張ごとの情報を読み、
|
|
70
|
+
「実行しない」「機能拡張を個別に確認」「すべて有効にして実行」から選びます。
|
|
71
|
+
通常表示には選択コントロールを出しません。個別確認モードではアイコンなしの3連ボタンで
|
|
72
|
+
実行方法を選び、「選んだ内容で実行」で確定します。モードの切り替えだけでは実行しません。
|
|
71
73
|
|
|
72
74
|
| | `add` | `open` |
|
|
73
75
|
| --- | --- | --- |
|
|
74
76
|
| 一覧に載るもの | カタログの拡張。依存先は自動で選ばれる | 作品が使う拡張すべて |
|
|
75
77
|
| 選ぶ | チェックで選ぶ | 無し。作品が既に名指ししている |
|
|
76
|
-
| 動かし方 | サンドボックスの中で、またはサンドボックスなしで |
|
|
77
|
-
| 読み込み元 | 4つの持ち方から選ぶ |
|
|
78
|
-
| 一括指定 | 両方 |
|
|
78
|
+
| 動かし方 | サンドボックスの中で、またはサンドボックスなしで | 個別確認モードで、動かさない・様子を見るためにサンドボックス内で動かす・信頼してサンドボックスなしで動かす |
|
|
79
|
+
| 読み込み元 | 4つの持ち方から選ぶ | 個別確認モードで`remote-cacheable`のキャッシュを残すか選ぶ。通常表示は情報のみ |
|
|
80
|
+
| 一括指定 | 両方 | 通常表示は「すべて有効にして実行」。個別確認ではキャッシュを一括指定できる |
|
|
79
81
|
|
|
80
82
|
### 4つの持ち方
|
|
81
83
|
|
|
@@ -99,9 +101,18 @@ import '@kubohiroya/turbowarp-extension-security-dialog/styles.css';
|
|
|
99
101
|
### 実行方法・信頼済みの拡張・記憶した選択
|
|
100
102
|
|
|
101
103
|
**作品を開くとき、全件がサンドボックスなしを必須と申告していれば、そのモードを選択済みにします。**
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
初期表示時に取得失敗がなく、空でない一覧のすべての申告が揃った場合だけ適用します。
|
|
105
|
+
個別確認では「動かさない」やサンドボックス内での試行も選べます。必須の申告に反する
|
|
106
|
+
試行には警告を表示し、後から届いた申告で選択を上書きしません。一括許可または個別確認後の確定まで実行しません。
|
|
107
|
+
読み込み元やキャッシュを断る選択は別に保ちます。
|
|
108
|
+
|
|
109
|
+
Editorの接続は、通常の画面遷移で作品を開く場合、中止時には前の画面へ戻します。
|
|
110
|
+
URLを直接開いた場合は履歴を追加せず、中止画面で「前の画面に戻る」を無効化し、
|
|
111
|
+
「確認画面に戻る」で同じ作品の確認をやり直せます。確認のタイトルは
|
|
112
|
+
「確認: この作品は機能拡張を使います」です。GUIのモーダルには
|
|
113
|
+
`manageHistory: false`を渡し、ダイアログ表示だけで履歴が増えるのを防ぎます。
|
|
114
|
+
別の作品は新しいタブで開き、元のタブに未保存の編集・Undo履歴・実行状態を残します。
|
|
115
|
+
元の作品の自動退避や復元のための再読み込みは行いません。
|
|
105
116
|
|
|
106
117
|
カタログからの追加、通常・未申告・任意指定・取得失敗が混ざる作品では、従来どおり
|
|
107
118
|
サンドボックスの中を既定にし、実行方法を選べます。必須の申告に反する選択は警告します。
|
|
@@ -109,6 +120,11 @@ import '@kubohiroya/turbowarp-extension-security-dialog/styles.css';
|
|
|
109
120
|
追加画面の各行は、左からチェックボックス、アイコン、拡張名の順に並べます。
|
|
110
121
|
名前やアイコンをクリックしても選択できます。
|
|
111
122
|
|
|
123
|
+
個別確認モードでは、上部の「機能拡張を個別に確認」を選択中の表示にして無効化します。
|
|
124
|
+
画像はホストが渡すアイコンやソース内のバナー指定を使い、指定がない場合にだけ共通アイコンを表示します。
|
|
125
|
+
HTTP(S)のソースから説明を読み取り、相対バナーURLは取得後のソースURLを基準に解決します。
|
|
126
|
+
画像のキャッシュ取得がCORSで拒否されても、画像として直接表示できる場合は表示します。
|
|
127
|
+
|
|
112
128
|
「キャンセル」「追加」はダイアログ下部に常時表示します。案内・一括設定・一覧の領域だけを
|
|
113
129
|
スクロールするので、最下部まで移動せずに追加やキャンセルができます。注意のスナックバーは
|
|
114
130
|
操作ボタンの上に表示し、ボタンを覆いません。
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ stay visible as the list scrolls. Closing the warning keeps the selection.
|
|
|
30
30
|
|
|
31
31
|
**Open a project.** This SB3 stores Camera Source 0.19.4, Asset Cache 0.3.2 and Bubble 0.13.5
|
|
32
32
|
as `data:` URLs. All three declare that they require unsandboxed execution, so the dialog
|
|
33
|
-
preselects the
|
|
33
|
+
preselects the execution mode. The older screenshot below waits for OK or Cancel. No extension has run at
|
|
34
34
|
the point shown.
|
|
35
35
|
|
|
36
36
|

|
|
@@ -64,16 +64,17 @@ import '@kubohiroya/turbowarp-extension-security-dialog/styles.css';
|
|
|
64
64
|
/>
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
Adding and opening
|
|
68
|
-
|
|
67
|
+
Adding and opening share the component. Opening first presents information and three actions:
|
|
68
|
+
Do not run, Review each extension, and Enable all and run. Individual review shows exclusive
|
|
69
|
+
pressed buttons without execution icons and a separate final confirmation. Changing mode grants no permission.
|
|
69
70
|
|
|
70
71
|
| | `add` | `open` |
|
|
71
72
|
| --- | --- | --- |
|
|
72
73
|
| What is listed | Catalog entries; dependencies are selected for you | Every extension the project uses |
|
|
73
74
|
| Picking | Tick to choose | None: the project already names them |
|
|
74
|
-
| How it runs | In the sandbox, or without it | Do not run, in the sandbox,
|
|
75
|
-
| Where it loads from | Any of the four forms |
|
|
76
|
-
| All at once | Both choices |
|
|
75
|
+
| How it runs | In the sandbox, or without it | In individual review: Do not run, Run in the sandbox to try it out, Trust and run without the sandbox |
|
|
76
|
+
| Where it loads from | Any of the four forms | Information in the overview; cache choices in individual review |
|
|
77
|
+
| All at once | Both choices | Enable all and run; cache choices remain available in individual review |
|
|
77
78
|
|
|
78
79
|
### The four loading forms
|
|
79
80
|
|
|
@@ -99,9 +100,18 @@ screen states it instead of asking.
|
|
|
99
100
|
### Execution, trust and remembered choices
|
|
100
101
|
|
|
101
102
|
**When opening a project whose extensions all declare unsandboxed execution required, that mode is preselected.**
|
|
102
|
-
This applies only to a non-empty list with every declaration available and no failed row.
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
This applies only to a non-empty list with every declaration initially available and no failed row.
|
|
104
|
+
Individual review still permits denial or a sandbox trial, with a warning for a contradictory trial.
|
|
105
|
+
Late declarations do not overwrite the selected mode. Nothing runs before explicit bulk or individual
|
|
106
|
+
confirmation. Loading-source and cache-decline choices remain independent.
|
|
107
|
+
|
|
108
|
+
For ordinary page navigation, the Editor goes back to the preceding page on cancellation. Its GUI
|
|
109
|
+
modal receives `manageHistory: false` to avoid another entry just for showing the dialog. Another
|
|
110
|
+
project opens in a new tab, leaving unsaved edits, undo history and running state in the original tab.
|
|
111
|
+
It does not automatically snapshot or reload the original project.
|
|
112
|
+
Direct project URLs do not insert a start page into history. Their stopped screen disables Back
|
|
113
|
+
when no previous page is available and offers an explicit action to return to confirmation for
|
|
114
|
+
the same project. The dialog title explicitly identifies it as a confirmation.
|
|
105
115
|
|
|
106
116
|
Adding from the catalog, or opening a mixed, optional, undeclared or failed batch, keeps the sandbox
|
|
107
117
|
as the default and leaves the execution choices available. A choice contradicting a declaration is warned about.
|
|
@@ -118,6 +128,11 @@ In add mode, the checkbox, preview icon and extension name appear together. The
|
|
|
118
128
|
scrolls independently of Cancel and Add. Dismissing the unsandboxed notice preserves the selection
|
|
119
129
|
and returns focus to the control that opened it.
|
|
120
130
|
|
|
131
|
+
Individual review keeps its top action visibly selected and disabled. Rows use the host's icon or
|
|
132
|
+
the source's declared banner; the common icon is only for rows without a picture declaration.
|
|
133
|
+
Display metadata can be read from HTTP(S), and relative banners resolve against the final source URL.
|
|
134
|
+
When CORS prevents caching an image, it can still be displayed directly by the browser.
|
|
135
|
+
|
|
121
136
|
For trusted entries, the trust badge links to the extension page when provided. Supported
|
|
122
137
|
GitHub versions link to their release notes. The description preserves line breaks and turns
|
|
123
138
|
HTTP(S) URLs and email addresses into links. The creator's contact appears next to their name
|
package/dist/build-info.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -332,11 +332,19 @@ async function loadExtensionInfo(url, signal) {
|
|
|
332
332
|
const source2 = decodeExtensionDataURL(url);
|
|
333
333
|
return { source: source2, metadata: parseExtensionMetadata(source2) };
|
|
334
334
|
}
|
|
335
|
-
const address = reviewURL(url, "extension URL");
|
|
335
|
+
const address = reviewURL(url, "extension URL", true);
|
|
336
336
|
const response = await fetch(address, { signal, credentials: "omit", referrerPolicy: "no-referrer" });
|
|
337
337
|
if (!response.ok) throw new Error(`Extension request failed (HTTP ${response.status})`);
|
|
338
338
|
const source = await response.text();
|
|
339
|
-
|
|
339
|
+
const metadata = parseExtensionMetadata(source);
|
|
340
|
+
if (metadata.banner) {
|
|
341
|
+
try {
|
|
342
|
+
metadata.banner = new URL(metadata.banner, response.url || address).href;
|
|
343
|
+
} catch (e) {
|
|
344
|
+
delete metadata.banner;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
return { source, metadata };
|
|
340
348
|
}
|
|
341
349
|
|
|
342
350
|
// src/selection.ts
|
|
@@ -555,10 +563,21 @@ var contradictsDeclaration = (entry, decision) => decision.execution === "sandbo
|
|
|
555
563
|
var messages = {
|
|
556
564
|
en: {
|
|
557
565
|
addTitle: "Choose extensions",
|
|
558
|
-
openTitle: "This project wants to run extensions",
|
|
566
|
+
openTitle: "Confirmation: This project wants to run extensions",
|
|
559
567
|
addIntro: "Choose what to add. Anything a chosen extension needs is selected for you.",
|
|
560
|
-
|
|
561
|
-
|
|
568
|
+
openReason: "To run this project, you need to enable the extensions listed below.",
|
|
569
|
+
openIntro: "Before the project starts, check the extensions it uses and their creators.",
|
|
570
|
+
openTrust: "Enable and run them only if you trust the creators of both the project and its extensions and judge them safe to use.",
|
|
571
|
+
openIndividual: "You can also review each extension separately before deciding.",
|
|
572
|
+
allRequiredIntro: "All extensions state that they need to run without the sandbox.",
|
|
573
|
+
stop: "Do not run",
|
|
574
|
+
reviewIndividually: "Review each extension",
|
|
575
|
+
enableAll: "Enable all and run",
|
|
576
|
+
individualMode: "Individual review mode",
|
|
577
|
+
runSelected: "Run with these choices",
|
|
578
|
+
"open-execution-deny": "Do not run",
|
|
579
|
+
"open-execution-sandboxed": "Run in the sandbox to try it out",
|
|
580
|
+
"open-execution-unsandboxed": "Trust and run without the sandbox",
|
|
562
581
|
execution: "How it runs",
|
|
563
582
|
loading: "Where it loads from",
|
|
564
583
|
executionBulk: "How they all run",
|
|
@@ -604,10 +623,21 @@ var messages = {
|
|
|
604
623
|
},
|
|
605
624
|
ja: {
|
|
606
625
|
addTitle: "\u6A5F\u80FD\u62E1\u5F35\u3092\u9078\u3076",
|
|
607
|
-
openTitle: "\u3053\u306E\u4F5C\u54C1\u306F\u6A5F\u80FD\u62E1\u5F35\u3092\u4F7F\u3044\u307E\u3059",
|
|
626
|
+
openTitle: "\u78BA\u8A8D: \u3053\u306E\u4F5C\u54C1\u306F\u6A5F\u80FD\u62E1\u5F35\u3092\u4F7F\u3044\u307E\u3059",
|
|
608
627
|
addIntro: "\u8FFD\u52A0\u3059\u308B\u3082\u306E\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002\u9078\u3093\u3060\u62E1\u5F35\u304C\u5FC5\u8981\u3068\u3059\u308B\u3082\u306E\u306F\u81EA\u52D5\u3067\u9078\u3070\u308C\u307E\u3059\u3002",
|
|
609
|
-
|
|
610
|
-
|
|
628
|
+
openReason: "\u3053\u306E\u4F5C\u54C1\u3092\u52D5\u304B\u3059\u306B\u306F\u3001\u4EE5\u4E0B\u306E\u300C\u6A5F\u80FD\u62E1\u5F35\u300D\u3092\u6709\u52B9\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",
|
|
629
|
+
openIntro: "\u4F5C\u54C1\u304C\u52D5\u304D\u51FA\u3059\u524D\u306B\u3001\u4F7F\u7528\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3068\u305D\u306E\u88FD\u4F5C\u8005\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
630
|
+
openTrust: "\u4F5C\u54C1\u3068\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u3092\u4FE1\u983C\u3067\u304D\u3001\u5B89\u5168\u306B\u4F7F\u7528\u3067\u304D\u308B\u3068\u5224\u65AD\u3057\u305F\u5834\u5408\u306B\u3060\u3051\u3001\u6709\u52B9\u306B\u3057\u3066\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
631
|
+
openIndividual: "\u6A5F\u80FD\u62E1\u5F35\u3054\u3068\u306B\u78BA\u8A8D\u3057\u3066\u5224\u65AD\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002",
|
|
632
|
+
allRequiredIntro: "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u304C\u300C\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u300D\u3067\u306E\u5B9F\u884C\u3092\u5FC5\u8981\u3068\u7533\u544A\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
633
|
+
stop: "\u5B9F\u884C\u3057\u306A\u3044",
|
|
634
|
+
reviewIndividually: "\u6A5F\u80FD\u62E1\u5F35\u3092\u500B\u5225\u306B\u78BA\u8A8D",
|
|
635
|
+
enableAll: "\u3059\u3079\u3066\u6709\u52B9\u306B\u3057\u3066\u5B9F\u884C",
|
|
636
|
+
individualMode: "\u500B\u5225\u78BA\u8A8D\u30E2\u30FC\u30C9",
|
|
637
|
+
runSelected: "\u9078\u3093\u3060\u5185\u5BB9\u3067\u5B9F\u884C",
|
|
638
|
+
"open-execution-deny": "\u52D5\u304B\u3055\u306A\u3044",
|
|
639
|
+
"open-execution-sandboxed": "\u69D8\u5B50\u3092\u898B\u308B\u305F\u3081\u306B\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u5185\u3067\u52D5\u304B\u3059",
|
|
640
|
+
"open-execution-unsandboxed": "\u4FE1\u983C\u3057\u3066\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u3067\u52D5\u304B\u3059",
|
|
611
641
|
execution: "\u52D5\u304B\u3057\u65B9",
|
|
612
642
|
loading: "\u8AAD\u307F\u8FBC\u307F\u5143",
|
|
613
643
|
executionBulk: "\u3059\u3079\u3066\u306E\u52D5\u304B\u3057\u65B9",
|
package/dist/index.mjs
CHANGED
|
@@ -287,11 +287,19 @@ async function loadExtensionInfo(url, signal) {
|
|
|
287
287
|
const source2 = decodeExtensionDataURL(url);
|
|
288
288
|
return { source: source2, metadata: parseExtensionMetadata(source2) };
|
|
289
289
|
}
|
|
290
|
-
const address = reviewURL(url, "extension URL");
|
|
290
|
+
const address = reviewURL(url, "extension URL", true);
|
|
291
291
|
const response = await fetch(address, { signal, credentials: "omit", referrerPolicy: "no-referrer" });
|
|
292
292
|
if (!response.ok) throw new Error(`Extension request failed (HTTP ${response.status})`);
|
|
293
293
|
const source = await response.text();
|
|
294
|
-
|
|
294
|
+
const metadata = parseExtensionMetadata(source);
|
|
295
|
+
if (metadata.banner) {
|
|
296
|
+
try {
|
|
297
|
+
metadata.banner = new URL(metadata.banner, response.url || address).href;
|
|
298
|
+
} catch (e) {
|
|
299
|
+
delete metadata.banner;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
return { source, metadata };
|
|
295
303
|
}
|
|
296
304
|
|
|
297
305
|
// src/selection.ts
|
|
@@ -510,10 +518,21 @@ var contradictsDeclaration = (entry, decision) => decision.execution === "sandbo
|
|
|
510
518
|
var messages = {
|
|
511
519
|
en: {
|
|
512
520
|
addTitle: "Choose extensions",
|
|
513
|
-
openTitle: "This project wants to run extensions",
|
|
521
|
+
openTitle: "Confirmation: This project wants to run extensions",
|
|
514
522
|
addIntro: "Choose what to add. Anything a chosen extension needs is selected for you.",
|
|
515
|
-
|
|
516
|
-
|
|
523
|
+
openReason: "To run this project, you need to enable the extensions listed below.",
|
|
524
|
+
openIntro: "Before the project starts, check the extensions it uses and their creators.",
|
|
525
|
+
openTrust: "Enable and run them only if you trust the creators of both the project and its extensions and judge them safe to use.",
|
|
526
|
+
openIndividual: "You can also review each extension separately before deciding.",
|
|
527
|
+
allRequiredIntro: "All extensions state that they need to run without the sandbox.",
|
|
528
|
+
stop: "Do not run",
|
|
529
|
+
reviewIndividually: "Review each extension",
|
|
530
|
+
enableAll: "Enable all and run",
|
|
531
|
+
individualMode: "Individual review mode",
|
|
532
|
+
runSelected: "Run with these choices",
|
|
533
|
+
"open-execution-deny": "Do not run",
|
|
534
|
+
"open-execution-sandboxed": "Run in the sandbox to try it out",
|
|
535
|
+
"open-execution-unsandboxed": "Trust and run without the sandbox",
|
|
517
536
|
execution: "How it runs",
|
|
518
537
|
loading: "Where it loads from",
|
|
519
538
|
executionBulk: "How they all run",
|
|
@@ -559,10 +578,21 @@ var messages = {
|
|
|
559
578
|
},
|
|
560
579
|
ja: {
|
|
561
580
|
addTitle: "\u6A5F\u80FD\u62E1\u5F35\u3092\u9078\u3076",
|
|
562
|
-
openTitle: "\u3053\u306E\u4F5C\u54C1\u306F\u6A5F\u80FD\u62E1\u5F35\u3092\u4F7F\u3044\u307E\u3059",
|
|
581
|
+
openTitle: "\u78BA\u8A8D: \u3053\u306E\u4F5C\u54C1\u306F\u6A5F\u80FD\u62E1\u5F35\u3092\u4F7F\u3044\u307E\u3059",
|
|
563
582
|
addIntro: "\u8FFD\u52A0\u3059\u308B\u3082\u306E\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002\u9078\u3093\u3060\u62E1\u5F35\u304C\u5FC5\u8981\u3068\u3059\u308B\u3082\u306E\u306F\u81EA\u52D5\u3067\u9078\u3070\u308C\u307E\u3059\u3002",
|
|
564
|
-
|
|
565
|
-
|
|
583
|
+
openReason: "\u3053\u306E\u4F5C\u54C1\u3092\u52D5\u304B\u3059\u306B\u306F\u3001\u4EE5\u4E0B\u306E\u300C\u6A5F\u80FD\u62E1\u5F35\u300D\u3092\u6709\u52B9\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",
|
|
584
|
+
openIntro: "\u4F5C\u54C1\u304C\u52D5\u304D\u51FA\u3059\u524D\u306B\u3001\u4F7F\u7528\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3068\u305D\u306E\u88FD\u4F5C\u8005\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
585
|
+
openTrust: "\u4F5C\u54C1\u3068\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u3092\u4FE1\u983C\u3067\u304D\u3001\u5B89\u5168\u306B\u4F7F\u7528\u3067\u304D\u308B\u3068\u5224\u65AD\u3057\u305F\u5834\u5408\u306B\u3060\u3051\u3001\u6709\u52B9\u306B\u3057\u3066\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
586
|
+
openIndividual: "\u6A5F\u80FD\u62E1\u5F35\u3054\u3068\u306B\u78BA\u8A8D\u3057\u3066\u5224\u65AD\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002",
|
|
587
|
+
allRequiredIntro: "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u304C\u300C\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u300D\u3067\u306E\u5B9F\u884C\u3092\u5FC5\u8981\u3068\u7533\u544A\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
588
|
+
stop: "\u5B9F\u884C\u3057\u306A\u3044",
|
|
589
|
+
reviewIndividually: "\u6A5F\u80FD\u62E1\u5F35\u3092\u500B\u5225\u306B\u78BA\u8A8D",
|
|
590
|
+
enableAll: "\u3059\u3079\u3066\u6709\u52B9\u306B\u3057\u3066\u5B9F\u884C",
|
|
591
|
+
individualMode: "\u500B\u5225\u78BA\u8A8D\u30E2\u30FC\u30C9",
|
|
592
|
+
runSelected: "\u9078\u3093\u3060\u5185\u5BB9\u3067\u5B9F\u884C",
|
|
593
|
+
"open-execution-deny": "\u52D5\u304B\u3055\u306A\u3044",
|
|
594
|
+
"open-execution-sandboxed": "\u69D8\u5B50\u3092\u898B\u308B\u305F\u3081\u306B\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u5185\u3067\u52D5\u304B\u3059",
|
|
595
|
+
"open-execution-unsandboxed": "\u4FE1\u983C\u3057\u3066\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u3067\u52D5\u304B\u3059",
|
|
566
596
|
execution: "\u52D5\u304B\u3057\u65B9",
|
|
567
597
|
loading: "\u8AAD\u307F\u8FBC\u307F\u5143",
|
|
568
598
|
executionBulk: "\u3059\u3079\u3066\u306E\u52D5\u304B\u3057\u65B9",
|
package/dist/permission-ui.cjs
CHANGED
|
@@ -28,10 +28,21 @@ module.exports = __toCommonJS(permission_ui_exports);
|
|
|
28
28
|
var messages = {
|
|
29
29
|
en: {
|
|
30
30
|
addTitle: "Choose extensions",
|
|
31
|
-
openTitle: "This project wants to run extensions",
|
|
31
|
+
openTitle: "Confirmation: This project wants to run extensions",
|
|
32
32
|
addIntro: "Choose what to add. Anything a chosen extension needs is selected for you.",
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
openReason: "To run this project, you need to enable the extensions listed below.",
|
|
34
|
+
openIntro: "Before the project starts, check the extensions it uses and their creators.",
|
|
35
|
+
openTrust: "Enable and run them only if you trust the creators of both the project and its extensions and judge them safe to use.",
|
|
36
|
+
openIndividual: "You can also review each extension separately before deciding.",
|
|
37
|
+
allRequiredIntro: "All extensions state that they need to run without the sandbox.",
|
|
38
|
+
stop: "Do not run",
|
|
39
|
+
reviewIndividually: "Review each extension",
|
|
40
|
+
enableAll: "Enable all and run",
|
|
41
|
+
individualMode: "Individual review mode",
|
|
42
|
+
runSelected: "Run with these choices",
|
|
43
|
+
"open-execution-deny": "Do not run",
|
|
44
|
+
"open-execution-sandboxed": "Run in the sandbox to try it out",
|
|
45
|
+
"open-execution-unsandboxed": "Trust and run without the sandbox",
|
|
35
46
|
execution: "How it runs",
|
|
36
47
|
loading: "Where it loads from",
|
|
37
48
|
executionBulk: "How they all run",
|
|
@@ -77,10 +88,21 @@ var messages = {
|
|
|
77
88
|
},
|
|
78
89
|
ja: {
|
|
79
90
|
addTitle: "\u6A5F\u80FD\u62E1\u5F35\u3092\u9078\u3076",
|
|
80
|
-
openTitle: "\u3053\u306E\u4F5C\u54C1\u306F\u6A5F\u80FD\u62E1\u5F35\u3092\u4F7F\u3044\u307E\u3059",
|
|
91
|
+
openTitle: "\u78BA\u8A8D: \u3053\u306E\u4F5C\u54C1\u306F\u6A5F\u80FD\u62E1\u5F35\u3092\u4F7F\u3044\u307E\u3059",
|
|
81
92
|
addIntro: "\u8FFD\u52A0\u3059\u308B\u3082\u306E\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002\u9078\u3093\u3060\u62E1\u5F35\u304C\u5FC5\u8981\u3068\u3059\u308B\u3082\u306E\u306F\u81EA\u52D5\u3067\u9078\u3070\u308C\u307E\u3059\u3002",
|
|
82
|
-
|
|
83
|
-
|
|
93
|
+
openReason: "\u3053\u306E\u4F5C\u54C1\u3092\u52D5\u304B\u3059\u306B\u306F\u3001\u4EE5\u4E0B\u306E\u300C\u6A5F\u80FD\u62E1\u5F35\u300D\u3092\u6709\u52B9\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",
|
|
94
|
+
openIntro: "\u4F5C\u54C1\u304C\u52D5\u304D\u51FA\u3059\u524D\u306B\u3001\u4F7F\u7528\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3068\u305D\u306E\u88FD\u4F5C\u8005\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
95
|
+
openTrust: "\u4F5C\u54C1\u3068\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u3092\u4FE1\u983C\u3067\u304D\u3001\u5B89\u5168\u306B\u4F7F\u7528\u3067\u304D\u308B\u3068\u5224\u65AD\u3057\u305F\u5834\u5408\u306B\u3060\u3051\u3001\u6709\u52B9\u306B\u3057\u3066\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
96
|
+
openIndividual: "\u6A5F\u80FD\u62E1\u5F35\u3054\u3068\u306B\u78BA\u8A8D\u3057\u3066\u5224\u65AD\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002",
|
|
97
|
+
allRequiredIntro: "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u304C\u300C\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u300D\u3067\u306E\u5B9F\u884C\u3092\u5FC5\u8981\u3068\u7533\u544A\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
98
|
+
stop: "\u5B9F\u884C\u3057\u306A\u3044",
|
|
99
|
+
reviewIndividually: "\u6A5F\u80FD\u62E1\u5F35\u3092\u500B\u5225\u306B\u78BA\u8A8D",
|
|
100
|
+
enableAll: "\u3059\u3079\u3066\u6709\u52B9\u306B\u3057\u3066\u5B9F\u884C",
|
|
101
|
+
individualMode: "\u500B\u5225\u78BA\u8A8D\u30E2\u30FC\u30C9",
|
|
102
|
+
runSelected: "\u9078\u3093\u3060\u5185\u5BB9\u3067\u5B9F\u884C",
|
|
103
|
+
"open-execution-deny": "\u52D5\u304B\u3055\u306A\u3044",
|
|
104
|
+
"open-execution-sandboxed": "\u69D8\u5B50\u3092\u898B\u308B\u305F\u3081\u306B\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u5185\u3067\u52D5\u304B\u3059",
|
|
105
|
+
"open-execution-unsandboxed": "\u4FE1\u983C\u3057\u3066\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u3067\u52D5\u304B\u3059",
|
|
84
106
|
execution: "\u52D5\u304B\u3057\u65B9",
|
|
85
107
|
loading: "\u8AAD\u307F\u8FBC\u307F\u5143",
|
|
86
108
|
executionBulk: "\u3059\u3079\u3066\u306E\u52D5\u304B\u3057\u65B9",
|
package/dist/permission-ui.mjs
CHANGED
|
@@ -2,10 +2,21 @@
|
|
|
2
2
|
var messages = {
|
|
3
3
|
en: {
|
|
4
4
|
addTitle: "Choose extensions",
|
|
5
|
-
openTitle: "This project wants to run extensions",
|
|
5
|
+
openTitle: "Confirmation: This project wants to run extensions",
|
|
6
6
|
addIntro: "Choose what to add. Anything a chosen extension needs is selected for you.",
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
openReason: "To run this project, you need to enable the extensions listed below.",
|
|
8
|
+
openIntro: "Before the project starts, check the extensions it uses and their creators.",
|
|
9
|
+
openTrust: "Enable and run them only if you trust the creators of both the project and its extensions and judge them safe to use.",
|
|
10
|
+
openIndividual: "You can also review each extension separately before deciding.",
|
|
11
|
+
allRequiredIntro: "All extensions state that they need to run without the sandbox.",
|
|
12
|
+
stop: "Do not run",
|
|
13
|
+
reviewIndividually: "Review each extension",
|
|
14
|
+
enableAll: "Enable all and run",
|
|
15
|
+
individualMode: "Individual review mode",
|
|
16
|
+
runSelected: "Run with these choices",
|
|
17
|
+
"open-execution-deny": "Do not run",
|
|
18
|
+
"open-execution-sandboxed": "Run in the sandbox to try it out",
|
|
19
|
+
"open-execution-unsandboxed": "Trust and run without the sandbox",
|
|
9
20
|
execution: "How it runs",
|
|
10
21
|
loading: "Where it loads from",
|
|
11
22
|
executionBulk: "How they all run",
|
|
@@ -51,10 +62,21 @@ var messages = {
|
|
|
51
62
|
},
|
|
52
63
|
ja: {
|
|
53
64
|
addTitle: "\u6A5F\u80FD\u62E1\u5F35\u3092\u9078\u3076",
|
|
54
|
-
openTitle: "\u3053\u306E\u4F5C\u54C1\u306F\u6A5F\u80FD\u62E1\u5F35\u3092\u4F7F\u3044\u307E\u3059",
|
|
65
|
+
openTitle: "\u78BA\u8A8D: \u3053\u306E\u4F5C\u54C1\u306F\u6A5F\u80FD\u62E1\u5F35\u3092\u4F7F\u3044\u307E\u3059",
|
|
55
66
|
addIntro: "\u8FFD\u52A0\u3059\u308B\u3082\u306E\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002\u9078\u3093\u3060\u62E1\u5F35\u304C\u5FC5\u8981\u3068\u3059\u308B\u3082\u306E\u306F\u81EA\u52D5\u3067\u9078\u3070\u308C\u307E\u3059\u3002",
|
|
56
|
-
|
|
57
|
-
|
|
67
|
+
openReason: "\u3053\u306E\u4F5C\u54C1\u3092\u52D5\u304B\u3059\u306B\u306F\u3001\u4EE5\u4E0B\u306E\u300C\u6A5F\u80FD\u62E1\u5F35\u300D\u3092\u6709\u52B9\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",
|
|
68
|
+
openIntro: "\u4F5C\u54C1\u304C\u52D5\u304D\u51FA\u3059\u524D\u306B\u3001\u4F7F\u7528\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3068\u305D\u306E\u88FD\u4F5C\u8005\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
69
|
+
openTrust: "\u4F5C\u54C1\u3068\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u3092\u4FE1\u983C\u3067\u304D\u3001\u5B89\u5168\u306B\u4F7F\u7528\u3067\u304D\u308B\u3068\u5224\u65AD\u3057\u305F\u5834\u5408\u306B\u3060\u3051\u3001\u6709\u52B9\u306B\u3057\u3066\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
70
|
+
openIndividual: "\u6A5F\u80FD\u62E1\u5F35\u3054\u3068\u306B\u78BA\u8A8D\u3057\u3066\u5224\u65AD\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002",
|
|
71
|
+
allRequiredIntro: "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u304C\u300C\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u300D\u3067\u306E\u5B9F\u884C\u3092\u5FC5\u8981\u3068\u7533\u544A\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
72
|
+
stop: "\u5B9F\u884C\u3057\u306A\u3044",
|
|
73
|
+
reviewIndividually: "\u6A5F\u80FD\u62E1\u5F35\u3092\u500B\u5225\u306B\u78BA\u8A8D",
|
|
74
|
+
enableAll: "\u3059\u3079\u3066\u6709\u52B9\u306B\u3057\u3066\u5B9F\u884C",
|
|
75
|
+
individualMode: "\u500B\u5225\u78BA\u8A8D\u30E2\u30FC\u30C9",
|
|
76
|
+
runSelected: "\u9078\u3093\u3060\u5185\u5BB9\u3067\u5B9F\u884C",
|
|
77
|
+
"open-execution-deny": "\u52D5\u304B\u3055\u306A\u3044",
|
|
78
|
+
"open-execution-sandboxed": "\u69D8\u5B50\u3092\u898B\u308B\u305F\u3081\u306B\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u5185\u3067\u52D5\u304B\u3059",
|
|
79
|
+
"open-execution-unsandboxed": "\u4FE1\u983C\u3057\u3066\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u3067\u52D5\u304B\u3059",
|
|
58
80
|
execution: "\u52D5\u304B\u3057\u65B9",
|
|
59
81
|
loading: "\u8AAD\u307F\u8FBC\u307F\u5143",
|
|
60
82
|
executionBulk: "\u3059\u3079\u3066\u306E\u52D5\u304B\u3057\u65B9",
|
package/dist/project-review.cjs
CHANGED
|
@@ -216,11 +216,19 @@ async function loadExtensionInfo(url, signal) {
|
|
|
216
216
|
const source2 = decodeExtensionDataURL(url);
|
|
217
217
|
return { source: source2, metadata: parseExtensionMetadata(source2) };
|
|
218
218
|
}
|
|
219
|
-
const address = reviewURL(url, "extension URL");
|
|
219
|
+
const address = reviewURL(url, "extension URL", true);
|
|
220
220
|
const response = await fetch(address, { signal, credentials: "omit", referrerPolicy: "no-referrer" });
|
|
221
221
|
if (!response.ok) throw new Error(`Extension request failed (HTTP ${response.status})`);
|
|
222
222
|
const source = await response.text();
|
|
223
|
-
|
|
223
|
+
const metadata = parseExtensionMetadata(source);
|
|
224
|
+
if (metadata.banner) {
|
|
225
|
+
try {
|
|
226
|
+
metadata.banner = new URL(metadata.banner, response.url || address).href;
|
|
227
|
+
} catch (e) {
|
|
228
|
+
delete metadata.banner;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return { source, metadata };
|
|
224
232
|
}
|
|
225
233
|
|
|
226
234
|
// src/storage.ts
|
|
@@ -6509,7 +6517,8 @@ function createProjectSecurityReview({
|
|
|
6509
6517
|
id: "extension-security-batch",
|
|
6510
6518
|
className: styles.frame,
|
|
6511
6519
|
contentLabel: title,
|
|
6512
|
-
onRequestClose: onCancel
|
|
6520
|
+
onRequestClose: onCancel,
|
|
6521
|
+
manageHistory: false
|
|
6513
6522
|
}, import_react2.default.createElement("div", { className: styles.body }, children));
|
|
6514
6523
|
frames.set(Modal, Frame);
|
|
6515
6524
|
}
|
package/dist/project-review.mjs
CHANGED
|
@@ -184,11 +184,19 @@ async function loadExtensionInfo(url, signal) {
|
|
|
184
184
|
const source2 = decodeExtensionDataURL(url);
|
|
185
185
|
return { source: source2, metadata: parseExtensionMetadata(source2) };
|
|
186
186
|
}
|
|
187
|
-
const address = reviewURL(url, "extension URL");
|
|
187
|
+
const address = reviewURL(url, "extension URL", true);
|
|
188
188
|
const response = await fetch(address, { signal, credentials: "omit", referrerPolicy: "no-referrer" });
|
|
189
189
|
if (!response.ok) throw new Error(`Extension request failed (HTTP ${response.status})`);
|
|
190
190
|
const source = await response.text();
|
|
191
|
-
|
|
191
|
+
const metadata = parseExtensionMetadata(source);
|
|
192
|
+
if (metadata.banner) {
|
|
193
|
+
try {
|
|
194
|
+
metadata.banner = new URL(metadata.banner, response.url || address).href;
|
|
195
|
+
} catch (e) {
|
|
196
|
+
delete metadata.banner;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return { source, metadata };
|
|
192
200
|
}
|
|
193
201
|
|
|
194
202
|
// src/storage.ts
|
|
@@ -6480,7 +6488,8 @@ function createProjectSecurityReview({
|
|
|
6480
6488
|
id: "extension-security-batch",
|
|
6481
6489
|
className: styles.frame,
|
|
6482
6490
|
contentLabel: title,
|
|
6483
|
-
onRequestClose: onCancel
|
|
6491
|
+
onRequestClose: onCancel,
|
|
6492
|
+
manageHistory: false
|
|
6484
6493
|
}, React.createElement("div", { className: styles.body }, children));
|
|
6485
6494
|
frames.set(Modal, Frame);
|
|
6486
6495
|
}
|