-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All browserAction / pageAction methods support callbacks in Chrome 67+ #99
Comments
We currently call these API method with the callback first (at least the ones that were already identified when we were working on #59), and then if the call with the callback is raising an error, we retry the API call without the callback: webextension-polyfill/src/browser-polyfill.js Lines 135 to 156 in a7cbdcc
@Rob--W Do you mind to check if this is working as expected in Chrome 67+? So that we can detail more clearly what is actually missing so that we can consider this issue as fixed. |
The patch in Chrome 67 has just landed, so it will take a short while until Canary has the patch. The following pageAction and browserAction methods are missing from api-metadata.json:
The following browserAction methods are missing:
|
Note that the "openPopup" method is only available to the dev channel: https://chromium.googlesource.com/chromium/src/+/c2b078825ab52c22d0b473682b8eb214836ede25/chrome/common/extensions/api/_api_features.json#178 https://crbug.com/436489
Note that the "openPopup" method is only available to the dev channel: https://chromium.googlesource.com/chromium/src/+/c2b078825ab52c22d0b473682b8eb214836ede25/chrome/common/extensions/api/_api_features.json#178 https://crbug.com/436489
Fixed by #125 . |
Chrome 67+ supports callbacks for all pageAction / browserAction methods, since https://bugs.chromium.org/p/chromium/issues/detail?id=451320#c10
The polyfill should pass a callback for these methods, in order to catch any errors. The logic to do so is described at #13 (comment)
The text was updated successfully, but these errors were encountered: