-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add method for a web page to know that whimsy is installed #102
Comments
Instead of directly touching content, I would recommend having Whimsy send a message down to content with postMessage. Pages that care can then add a message listener for that message, and respond accordingly (by adding an attribute to the content, or what have you). We could even write a simple importable .js library that does the message listening and adds such an attribute, so that consumers can just drop a <script> tag into their HTML. |
How does this look? |
Sent from my mobile. Please excuse my brevity. |
Any opinions from anyone on putting it behind a pref (like everything else in the add-on so far)? |
We could do a pref for "domains allowed to know I'm whimsical" with "*.mozilla.org" as default.Sent from my mobile. Please excuse my brevity. |
Shipped! 55a92a4 |
Fingerprinting is a thing. The user population of Whimsy is small enough that this message would be a pretty big stake through the heart of anti-fingerprinting efforts. Whitelisting mozilla properties is one good step. Pref is another. |
Good thing I did both, then! ;) |
Whimsy could add an attribute to
<html>
, or add a property towindow.navigator
, or something else entirely. Let's discuss.The text was updated successfully, but these errors were encountered: