-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Consistent detection of "Safari shells" in iOS #84
Comments
I've gone back and forth and back and forth on how to handle iOS browsers. It's a complex issue with no right answer. As you've seen, thus far I've just landed on just not handling them to and letting them be parsed as Safari. I've got two groups of people who use this a. people who use it for deploying features by browser I suspect for the majority of users, not parsing them is in their best interest - If I called On the other hand people using it for analytics might be burned because they get inflated states for Chrome use, despite it actually being Safari, so they invest more time in optimizing for Chrome and not enough time optimizing for Safari that people are actually running. As for the specific advantages of detecting them, there are certainly going to be people specifically targeting features towards specific Safari wrapping pseudo-browsers - I imagine propper feature detection is more optimal in these cases. As for the stats people, I don't know why you'd actually care what Safari wrapper they're running, it doesn't really affect you? Please push back though, this is just the state of my thinking currently. I'm more than happy to hear you out. |
And indeed... not sure how useful it is to know what browser the person uses, if in the end the actual data is "how to support our users". That all said.......... I'm really reporting a bug in this topic 😅 CriOS is reported as iPhone Chrome, while the others go as Safari, as it would make more sense. |
HAH - I need to work on my reading comprehension 😆 I feel like a dork now. I didn't realize that was the case… let me get back to you… |
Seems I just copy-pasted without reading lol nvm |
See, that's the question. You're completely right, the inconsistency sucks. I don't know how or why I did that. My gut says this means I need to add iOS Firefox and Edge, but my heart says I should drop Chrome 😆 |
I'm not exactly sure what's going on, I didn't took the time to fully grasp the codebase. Anyhow, I would guess by the time you coded the CriOS override, FxiOS and EdgiOS weren't available yet, so we could guess it's just outdated? Another idea, as to cater to that duality you face, is adding an option to the class instance (or |
Fun fact: a while after the discovery of your fake clone, I stumbled upon this dependency on the project and realized I was kinda talking to you here as if you were really working with us (re: "yep you know for which project" in the description and all) 🤦♂️ Anyhow, at least I didn't include this because of the other guy, it was just a coincidence. I guess I should've asked him for help, instead of formally opening this issue lol |
My fake clone? |
Yep...... That person that was working at a company (or more?) using your
name?
…On Tue, Jan 24, 2023, 23:44 Jesse Donat ***@***.***> wrote:
a while after the discovery of your fake clone, I stumbled upon this
dependency
My fake clone?
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB6S4GRLYZ35XNIPR3DVLWUCHQFANCNFSM52AYVTBA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Oh, I see. You worked with the person who stole my identity! Did you work for one of the two companies that have already reached out to me - or is there a third I’m just learning about now? |
😂 😂 Yep!
It's the most recent one, which got in touch with you earlier this month
(or around that).
Not sure if you found the other GitHub, but... It's donatij lol
Igor Santos
-- Desenvolvedor Web
[enviado do meu celular]
…On Wed, Jan 25, 2023, 03:06 Jesse Donat ***@***.***> wrote:
Oh, I see. You worked with the person who stole my identity! Did you work
for one of the two companies that have already reached out to me - or is
there a third I’m just learning about now?
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB6S2TJJGHM54WMY426TLWUC7FXANCNFSM52AYVTBA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks for the heads up. I contacted GitHub and their account is already gone. It was really quick. |
Wow, that was really fast indeed! Glad it works that way.
Better luck in the future, man! And congrats for being so good that you're
being copied around 😂
*Igor Santos*
Web Developer / Community Leader @ Toptal - top 3% of freelancer talent
<http://www.toptal.com/#obtain-only-eye-opening-coders-now>
igorsantos.com.br <http://www.igorsantos.com.br>
…On Wed, Jan 25, 2023 at 11:34 AM Jesse Donat ***@***.***> wrote:
Thanks for the heads up. I contacted GitHub and their account is *already
gone*. It was really quick.
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB6SYXZP26KY4DBFJ6XITWUE2XVANCNFSM52AYVTBA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
After giving up on some "simple regex" to detect common browsers (yep, you know for which project lol), I landed in this library :)
Thus, I already had a bunch of UA strings to test against; I noticed that, while iPhone/CriOS is detected as Chrome on iPhone, FxiOS and EdgiOS end up simply as Safari.
This seems related to #40 since there might not be much value on distinguishing them all, but looking from a statistical POV, it would make some sense to separate the shells from the actual Safari. Besides that, consistency is always good :)
Samples:
The text was updated successfully, but these errors were encountered: