現在、新しいWebExtensions APIを使用してFirefox用の単純なアドオンを開発中です。マニフェストファイルにoptions_ui
を定義しようとするまで、すべてがうまくいっています。設定した場合、次のエラーに拡張した結果をロード:FirefoxのWebExtensionsオプションページを定義するときのエラー
There was an error during installation: getURL may not be called before an
id
oruuid
has been set.
フルマニフェスト:
{
"manifest_version": 2,
"name": "MyExtension",
"version": "1.0",
"description": "...",
"icons": {
"48": "icons/48.png",
"96": "icons/96.png"
},
"permissions": [
"storage",
"notifications",
"*://*.example.com/"
],
"browser_action": {
"default_icon": "icons/32.png",
"default_title": "MyExtension",
"default_popup": "popup.html"
},
"options_ui": {
"page": "options.html"
},
"background": {
"scripts": [ "background.js" ]
}
}
別に、options_ui
が設定されていない場合、および伸長が期待作品としてをが発生しない問題もちろん欠けているオプションページ。
このエラーの原因は何ですか? options_ui
でのみ発生するのはなぜですか? browser_action.default_popup
にもURLがあり、それは機能します。
ありがとうございます。
これを共有していただきありがとうございます! – Noitidart