Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.9
-
MOODLE_29_STABLE
-
MOODLE_29_STABLE
-
Description
One of my clients uses Safari in private mode a lot and had issues with a feature I developed which utilised the new templating engine. When Moodle renders the mustache template in browser it uses the localstorage system to cache things. In private mode safari reports local storage as being available but then throws an exception any time you try to write to it which totally breaks client side rendering of mustache templates. In order to solve this I have extended the detectSupport method in the core/localstorage javascript module to actually try to insert and remove an item, this solves the issue.
I have no idea where in core Moodle client side js rendering is actually used so I cannot provide test instructions.