-
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
No-op mode doesn't work on Safari #364
Comments
It's almost the end of the year and I still couldn't find a solution for this 😢 |
xeenon
added a commit
to xeenon/webextension-polyfill
that referenced
this issue
Mar 7, 2024
xeenon
added a commit
to xeenon/webextension-polyfill
that referenced
this issue
Mar 9, 2024
Verify the object that might be at `globalThis.browser` is not already implementing the basic Web Extension APIs. This is symmetric with the check to verify the poly fill is only included in extension contexts.
This can now be closed. |
Yeah, seems like #582 fixes this issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Safari, no-op mode doesn't work as the line below returns true.
webextension-polyfill/src/browser-polyfill.js
Line 13 in f818ecb
Strangely, the browser object on Safari inherits
CallbackObject
. SoObject.getPrototypeOf(globalThis.browser)
doesn't returnObject
.Object.getPrototypeOf(Object.getPrototypeOf(globalThis.browser)) !== Object.prototype
finally gives the expected value.The text was updated successfully, but these errors were encountered: