Skip to content

[Bug] popup.js の URL チェックが CloudFormation 限定になっている #8

@ryoupr

Description

@ryoupr

問題

popup.jsgetCurrentTab()cloudformation を含むURLのみ許可しているが、manifest.jsoncontent_scripts.matches はAWSコンソール全体 (https://*.console.aws.amazon.com/*) を対象にしている。

拡張機能名も "AWS View Auto Refresher" であり、CloudFormation以外のAWSコンソールページで「このページでは利用できません」エラーになってしまう。

// popup.js 現状(問題あり)
if (!tab.url || (!tab.url.includes('console.aws.amazon.com') || !tab.url.includes('cloudformation'))) {
  throw new Error('このページでは利用できません');
}

対応方針

AWSコンソール全体を対象とする場合、cloudformation チェックを削除する。

if (!tab.url || !tab.url.includes('console.aws.amazon.com')) {
  throw new Error('このページでは利用できません');
}

または、CloudFormation専用に仕様を絞る場合は拡張機能名・manifest.jsonmatches も合わせて変更する。

優先度

🔴 高(AWSコンソール全体で動作しない)

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