2016-07-13 1 views
5

現在、新しいWebExtensions APIを使用してFirefox用の単純なアドオンを開発中です。マニフェストファイルにoptions_uiを定義しようとするまで、すべてがうまくいっています。設定した場合、次のエラーに拡張した結果をロード:FirefoxのWebExtensionsオプションページを定義するときのエラー

There was an error during installation: getURL may not be called before an id or uuid 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があり、それは機能します。

ありがとうございます。

答えて

7

これは明らかにknown bugです。今すぐ回避するには、applications.gecko.idを手動で設定します。

"applications": { 
    "gecko": { 
    "id": "[email protected]" 
    } 
} 
+0

これを共有していただきありがとうございます! – Noitidart

関連する問題