what does WinJS.strictProcessing() do?
MSDN’s explanation is not very helpful – http://msdn.microsoft.com/en-us/library/windows/apps/hh987021.aspx
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It turns on a security feature. The scenario is this:
When strictProcessing mode is turned on, only functions that are explicitly marked as safe for declarative processing can be called from markup. This reduces the surface area of functions that can be called significantly, and reduces the areas of your app that need to be security reviewed.
Most importantly, none of the WinRT or the eval function are so marked, so you can’t get downloaded HTML to call the WinRT directly (before, you could).
This mode wasn’t turned on by default in RC to give app developers time to adjust their code before they get broken, but this behavior will be most likely be on by default in RTM.