Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Fixing detection of IE 11 masking as Firefox #57

Closed
wants to merge 1 commit into from
Closed

Fixing detection of IE 11 masking as Firefox #57

wants to merge 1 commit into from

Conversation

ibash
Copy link

@ibash ibash commented May 25, 2014

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.

@bnjmnt4n
Copy link
Member

Did you test the latest platform.js?

@ibash
Copy link
Author

ibash commented May 25, 2014

Yes, this was me testing against master (commit 0d310f8).

@bnjmnt4n
Copy link
Member

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?

@jdalton
Copy link
Member

jdalton commented May 26, 2014

As far as I know, the IE11 user agent does not include Firefox

@ibash Is talking about masking as Firefox via F12 emulation options which allow running canned UA strings, one of which is Firefox.

@ibash
Copy link
Author

ibash commented May 26, 2014

@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: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko

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.

@bnjmnt4n
Copy link
Member

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.

bnjmnt4n added a commit that referenced this pull request May 31, 2014
@bnjmnt4n
Copy link
Member

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 document.documentMode to find out if the browser is IE, though I'm not sure if other browsers also have document.documentMode.

@ibash
Copy link
Author

ibash commented Jun 2, 2014

@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!

@jdalton jdalton force-pushed the master branch 4 times, most recently from 14fa1ac to 7fbc576 Compare October 16, 2016 06:39
@bnjmnt4n bnjmnt4n closed this in 49e1722 Nov 2, 2016
bnjmnt4n added a commit that referenced this pull request Nov 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

3 participants