]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP1198983: Remove deprecated useragent.override variable user/rsteed/lp1198983_clear_useragent_override
authorRemington Steed <rjs7@calvin.edu>
Wed, 5 Mar 2014 22:57:24 +0000 (17:57 -0500)
committerRemington Steed <rjs7@calvin.edu>
Wed, 5 Mar 2014 23:05:05 +0000 (18:05 -0500)
commit49063c386ad1a4f9a92c71f0badad3bd4186eee0
treec851b54ddc36d78a5d6441653baec058ce78b762
parent0cbadccad019f5130e04e6d74cdd36b1c15c7c8e
LP1198983: Remove deprecated useragent.override variable

To quote Dan Wells in bug comment #6:

Back in the 2.2 days, Evergreen had code which set the
'general.useragent.override' to something like 'Mozilla/5.0 (Windows; U;
Windows NT 6.1; en-US; rv:1.9.2.25) Gecko/20111212 oils_xulrunner
/xul/rel_2_2_0/server/'. For anyone who once had a 2.2 client installed
and upgraded from it, this setting persists (this is the situation for
most stations in our library).

Since this string does not match the new test for 'open_ils_staff_client'
in the useragent, these clients are not properly streaming requests. This
problem was most easily noticed in Vandelay progress bars (they always
jumped from 0% to 100%).

This commit adds the code provided by Bill Erickson in the LP bug
comments. To test it, you can add the 'general.useragent.override'
setting to your staff client with any value (using the 'about:config'
interface), then run this code and check that your setting is gone.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js