Access Denied error in IE11 (Windows 10) while in Create Issue form
Summary
IE11 throws Access is denied
in console while trying to access New Issue page or any other page where markdown editor form is present.
Steps to reproduce
This error occurs if user has certain strict integrity policies enabled in Windows (introduced starting Windows Vista. This bug mainly affects large enterprises who are running IE11 under Windows with certain configurations.
-
Enable security policies in Windows by running
icacls %userprofile%\Appdata\LocalLow /t /setintegritylevel (OI)(CI)H
command prompt as Administrator.a. Revert back this change by running
icacls %userprofile%\Appdata\LocalLow /t /setintegritylevel (OI)(CI)L
and restarting IE. -
Restart IE11 (if already running) and visit any issue page, and open Console in Developer Tools of IE, notice
Access is denied
error.
Expected behavior
There should not be any error while trying to access a page.
Actual behavior
IE throws Access Denied, see attached screenshot.
(What actually happens)
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
Recommended way to test localStorage
feature availability is to guard it within try...catch, however, autosave.js attempts to detect localStorage availability using if (window.localStorage == null)
is not guarded under try...catch block, enclosing it should fix the issue under this situation.