Description
We are using Errbit
for application error tracking and noticed that our error reports were erroneously saying "Internet Explorer 7" for some of our internal users who are actually using IE 11.
Errbit uses this gem for user agent identification and it turns out that our corporate settings for IE are flagging our site as being in the Intranet zone, which automatically turns on "compatibility mode" (see here for the gory details). Our actual site is using <meta http-equiv="x-ua-compatible" content="ie=edge">
to force the browser back out of compatibility mode, but by the time the server sees the User-Agent
header it is too late for that to matter.
I would like to make a fix to Errbit to have it call #real_version
to get the actual version of IE being used in compatibility mode, but I would rather not have to add a call to #respond_to?(:real_version)
and bifurcate the code.
Would it make sense to add this to UserAgent::Browsers::Base
:
def real_version
version
end
If that were done, I could simply change the Errbit code to call #real_version
instead of #version
and avoid this issue with compatibility mode.
Activity