Recently I’ve faced strange issue while working with Sitecore.NET 7.0. (rev. 130810) in Chrome browser. I was trying to access presentation details of Sitecore item and layout details pop-up was not coming properly. I’ve checked Chrome console to verify if there is any JavaScript error. I’ve seen below error in Chrome console:
This issue is not occurring in Sitecore 7.2 version. After troubleshooting I’ve found that this issue was occurring in Chrome version 37.x. Chrome 37 disables support for showModalDialog by default thus window.showModalDialog() won’t work anymore in Chrome 37 onwards. For more information refer to the chromium blog. However, Google has added a temporary Group Policy setting EnableDeprecatedWebPlatformFeatures to re-enable deprecated web platform features for a limited time. In May 2015, this setting will be removed and showModalDialog will be completely removed from Chrome. Below section describes the steps to enable EnableDeprecatedWebPlatformFeatures policy setting to Chrome, which administrators can then configure via Windows Group Policy:
Related articles:
1.) SDN Forum : showModalDialog disabled by default in Chrome 37
2.) Sitecore Knowledge Base Article
Comments and suggestions are most welcome. Happy coding!
This issue is not occurring in Sitecore 7.2 version. After troubleshooting I’ve found that this issue was occurring in Chrome version 37.x. Chrome 37 disables support for showModalDialog by default thus window.showModalDialog() won’t work anymore in Chrome 37 onwards. For more information refer to the chromium blog. However, Google has added a temporary Group Policy setting EnableDeprecatedWebPlatformFeatures to re-enable deprecated web platform features for a limited time. In May 2015, this setting will be removed and showModalDialog will be completely removed from Chrome. Below section describes the steps to enable EnableDeprecatedWebPlatformFeatures policy setting to Chrome, which administrators can then configure via Windows Group Policy:
- Download ADM policy templates for Windows from here.
- Unzip downloaded zip file and navigate to Start > Run: gpedit.msc
- Navigate to Local Computer Policy > Computer Configuration > Administrative Templates.
- Right-click Administrative Templates and select Add/Remove Templates.
- Add the downloaded chrome.adm template of Windows via the dialog for the specific language. In my case; I’ve selected adm templates for en-US locale.
- Once added, a Google Chrome folder will appear under 'Classic Administrative Templates' if it's not there already.
- Select EnableDeprecatedWebPlatformFeatures setting in right column and edit it.
- Edit EnableDeprecatedWebPlatformFeatures as shown in below image.
- Restart chrome browser and type chrome://policy/ in address bar and you will see that setting is enabled now.
- Above procedure will create/update windows registry value.
Related articles:
1.) SDN Forum : showModalDialog disabled by default in Chrome 37
2.) Sitecore Knowledge Base Article
Comments and suggestions are most welcome. Happy coding!