Why doesn't chrome.tabs.query() return the tab's URL when called using RequireJS in a Chrome extension?
问题 I have a simple Chrome extension that adds a browser action. When the extension's popup is opened, it needs to access the current tab's URL. Since it doesn't need access to all the tabs, I just have the activeTab permission specified in the manifest: { "manifest_version": 2, "name": "RequireJS Test", "version": "0.0.1", "description": "Test RequireJS and the activeTab permission.", "permissions": [ "activeTab" ], "browser_action": { "default_popup": "popup.html" }, "web_accessible_resources":