Preload doesn't load in sandboxed render if preload path contains special chars (#12037)

* Adding missing headers

* adding ut

* Removing the file path exists check

* fixing test

* exposing window.require in UT
This commit is contained in:
Hari Juturu 2018-03-07 08:40:00 -08:00 committed by Shelley Vohr
parent 69e7afee26
commit 2f4fd3324b
3 changed files with 28 additions and 4 deletions

View file

@ -0,0 +1,6 @@
(function () {
window.require = require
if (location.protocol === 'file:') {
window.test = 'preload'
}
})()