-
Notifications
You must be signed in to change notification settings - Fork 409
Fixing detection of IE 11 masking as Firefox #57
Conversation
Did you test the latest platform.js? |
Yes, this was me testing against master (commit 0d310f8). |
As far as I know, the IE11 user agent does not include Firefox. @jdalton can you confirm this? Are you sure you’re not using an extension? |
@ibash Is talking about masking as Firefox via F12 emulation options which allow running canned UA strings, one of which is Firefox. |
@D10 / @jdalton When I grabbed that user agent I didn't think IE was emulating firefox, it looks like it is though as the default user agent is: You can close this if you don't want to support it, otherwise I can expand this to support all user agents of IE11 emulating other browsers. |
Apparently this has something to do with compatibility mode, which was extended in IE10+ to allow site specific user agents, including user agents of other browsers. I will have to think through how to deal with this. |
I've added support for detecting IE identifying as other browsers, but not IE masking as other browsers yet. @jdalton do you think we should do that? We could probably just use |
@D10 Side note -- for our needs that changes you have made (bumping platform.js version and IE commit) are plenty. Not sure what use cases there are for detecting masking, or correct behavior is there. Thanks for fixing this! |
d454235
to
5aaeed1
Compare
6dde37a
to
56f8100
Compare
14fa1ac
to
7fbc576
Compare
I got the user agent from a IE11 on windows 7 vm from here: http://www.modern.ie/en-us/virtualization-tools
It was being detected as firefox, this corrects that.