Skip to content

[Bug] manifest.json に tabs パーミッションが不足している #7

@ryoupr

Description

@ryoupr

問題

popup.jsgetCurrentTab()chrome.tabs.query() を使って tab.url を取得しているが、manifest.jsontabs パーミッションが宣言されていない。

MV3 では activeTab だけでは tab.urlundefined になるため、URLチェックが常に失敗する可能性がある。

対応方針

manifest.jsonpermissions"tabs" を追加する。

"permissions": ["activeTab", "tabs"]

参考

https://developer.chrome.com/docs/extensions/reference/api/tabs#manifest

優先度

🔴 高(動作不全の原因)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions