Tony Posted February 17, 2022 Share Posted February 17, 2022 Does Cubecart use any of the 2 digits user-agent strings that might break Cubecart for the newer web browsers? https://www.theverge.com/2022/2/17/22938721/chrome-firefox-edge-version-100-websites-bug-compatibility-issues-mozilla-google-microsoft cc @Al Brookbanks Link to comment Share on other sites More sharing options...
bsmither Posted February 17, 2022 Share Posted February 17, 2022 Short answer: no. CubeCart does use a common regex to detect if a web browser is any of the several browsers installed in mobile devices -- but the regex does not discriminate based on version numbers. This function (detecting user-agent strings of browsers built for mobile-type devices) is a carry-over to accommodate non-responsive skins -- generally skins built for CC5 -- so that, if the admin settings permit, will auto-switch to a specified mobile-designed skin. (See the Mobile skin in the Marketplace.) Responsive skins (are supposed to) have an indicator in the config.xml file that they are responsive, and CubeCart will not (if I recall correctly) pursue examining the user-agent string. I have not seen any evidence of the following in existence, but I assume it could be done -- a third-party plugin may want to customize its page structure depending on the specific browser. Link to comment Share on other sites More sharing options...
lizziesweat Posted March 9, 2022 Share Posted March 9, 2022 On 2/18/2022 at 4:23 AM, bsmither said: Short answer: no. CubeCart does use a common regex to detect if a web browser is any of the several browsers installed in mobile devices -- but the regex does not discriminate based on version numbers. This function (detecting user-agent strings of browsers built for mobile-type devices) is a carry-over to accommodate non-responsive skins -- generally skins built for CC5 -- so that, if the admin settings permit, will auto-switch to a specified mobile-designed skin. (See the Mobile skin in the Marketplace.) Responsive skins (are supposed to) have an indicator in the config.xml file that they are responsive, and CubeCart will not (if I recall correctly) pursue examining the user-agent string. I have not seen any evidence of the following in existence, but I assume it could be done -- a third-party plugin may want to customize its page structure depending on the specific browser. io games thanks for taking the time to explain. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.